6 - 57 6 - 57
6 IEC FUNCTIONS
6.9 Comparison Functions
6.9.1 Greater than right member ( > ) GT_E
In all the specified data, whether the relationship of > (greater than) is satisfied or not is acquired.
Function definition
BOOL GT_E( BOOL EN, ANY_SIMPLE S1, ANY_SIMPLE S2,…., ANY_SIMPLE Sn,
BOOL D1 );
Argument
Argument Name
IN/OUT
Description
EN
IN
Execution condition (Function is executed only when the result is TRUE)
S1 to Sn
IN
Comparison target data
D1 OUT
Comparison
result
Remarks: D1 = (S1 > S2 ) & (S2 > S3) & ............... & (Sn -1 > Sn)
Return value
Return Value
Description
BOOL Execution
condition
Example of use
Argument Type
ST Program
Conversion Result
Used Instruction
REAL
GT_E( M0 , Real1, Real2,
Real3, bBit1);
LDE>
Real1 Real2
ANDE> Real2 Real3
OUT
M8191
LD
M0
AND
M8191
SET
bBit1
LD
M0
ANI
M8191
RST
bBit1
LDE>, ANDE>,OUT,
LD,AND,SET,ANI,
RST
INT
GT_E( M0 , Int1, Int2, Int3,
bBit1 );
LD>
Int1 Int2
AND> Int2 Int3
OUT
M8191
LD
M0
AND
M8191
SET
bBit1
LD
M0
ANI
M8191
RST
bBit1
LD>,AND>,OUT,LD,
AND,SET,ANI,RST
DINT
GT_E( M0 , Dint1, Dint2 ,
Dint3, bBit1 );
LDD>
Dint1 Dint2
ANDD> Dint2 Dint3
OUT
M8191
LD
M0
AND
M8191
SET
bBit1
LD
M0
ANI
M8191
RST
bBit1
LDD>, ANDD>,OUT
LD, AND,SET,ANI,
RST
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......