Comparison Functions; Greater Than Right Member ( > ) - Mitsubishi MELSEC-q Programming Manual

Melsec q series; melsec l series
Hide thumbs Also See for MELSEC-q:
Table of Contents

Advertisement

6 IEC FUNCTIONS

6.9 Comparison Functions

6.9.1 Greater than right member ( > )
In all the specified data, whether the relationship of > (greater than) is satisfied or not is acquired.
Function definition
6 - 57
BOOL GT_E( BOOL EN, ANY_SIMPLE S1, ANY_SIMPLE S2,...., ANY_SIMPLE Sn,
BOOL D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1 to Sn
IN
D1
OUT
Remarks: D1 = (S1 > S2 ) & (S2 > S3) & ............... & (Sn -1 > Sn)
Return value
Return Value
BOOL
Execution condition
Example of use
Argument Type
REAL
GT_E( M0 , Real1, Real2,
Real3, bBit1);
INT
GT_E( M0 , Int1, Int2, Int3,
bBit1 );
DINT
GT_E( M0 , Dint1, Dint2 ,
Dint3, bBit1 );
GT_E
Execution condition (Function is executed only when the result is TRUE)
Comparison target data
Comparison result
ST Program
Conversion Result
LDE>
ANDE>
OUT
LD
AND
SET
LD
ANI
RST
LD>
AND>
OUT
LD
AND
SET
LD
ANI
RST
LDD>
ANDD>
OUT
LD
AND
SET
LD
ANI
RST
Description
Description
Used Instruction
Real1 Real2
LDE>, ANDE>,OUT,
Real2 Real3
LD,AND,SET,ANI,
RST
M8191
M0
M8191
bBit1
M0
M8191
bBit1
Int1 Int2
LD>,AND>,OUT,LD,
AND,SET,ANI,RST
Int2 Int3
M8191
M0
M8191
bBit1
M0
M8191
bBit1
Dint1 Dint2
LDD>, ANDD>,OUT
Dint2 Dint3
LD, AND,SET,ANI,
RST
M8191
M0
M8191
bBit1
M0
M8191
bBit1
6 - 57

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-l

Table of Contents