6 - 23 6 - 23
6 IEC FUNCTIONS
6.3 Numeric Functions (Logarithm Functions)
6.3.1 Natural logarithm LN
LN_E
The natural logarithm of the specified data is operated.
Function definition
REAL LN( REAL S1 );
Argument
Argument Name
IN/OUT
Description
S1
IN
Data whose natural logarithm will be found (real number data)
Return value
Return Value
Description
REAL
Natural logarithm operation result (real number data)
Remarks:
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
REAL
r_data1 := LN( 1.23456 );
LD
SM400
LOG E1.23456
r_data1
LD,LOG
Function definition
BOOL LN_E( BOOL EN, REAL S1, REAL D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
S1
IN
Data whose natural logarithm will be found (real number data)
D1
OUT
Natural logarithm operation result (real number data)
Return value
Return Value
Description
BOOL Execution
condition
Example of use
(*
(*
When execution condition X0 turns ON, the natural logarithm of the data
stored in rData is found, and the result is stored into Result.
M0 := LN_E( X0, rData, Result ) ;
*)
*)
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......