6 - 36 6 - 36
6 IEC FUNCTIONS
6.5.6 Natural exponential EXPT
EXPT_E
Natural exponential is operated from the specified data used as a base and data used as an exponent.
Function definition
REAL EXPT ( REAL S1, ANY_NUM S2 );
Argument
Argument Name
IN/OUT
Description
S1
IN
Data used as base
S2
IN
Data used as exponent
Return value
Return Value
Description
REAL
Operation result (real number data)
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
REAL
r_data1 := EXPT( r_data2,
r_data3 );
LD SM400
LOG r_data2
r_data1
E* r_data1
r_data3
r_data1
EXP r_data1
r_data1
LD, LOG, E*, EXP
INT
r_data1 := EXPT( 1.123,
k32767 );
LD SM400
LOG E1.123
r_data1
FLT K32767
D10238
E* r_data1
D10238
r_data1
EXP r_data1
r_data1
LD, LOG, FLT, E*,
EXP
DINT
r_data1 := EXPT( r_data2,
di_data1 );
LD SM400
LOG r_data2
r_data1
DFLT di_data1
D10238
E* r_data1
D10238
r_data1
EXP r_data1
r_data1
LD,LOG, DFLT, E*,
EXP
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......