The output of the instruction is only set to "1" if the first value is less than or equal to the sec
-
ond value.
–
Compare for "greater than or equal to": >= (value 1 욷 value 2)
IEC instruction: GE (
Greater Equal
)
The output of the instruction is only set to "1" if the first value is greater than or equal to the
second value.
To compare 32-bit data prefix a D (for double word) to the compare condition. (For example
LDD_EQ-M or LDD_GE_M)
More examples:
Relay M12 is set to "1" when the value of counter C0 is equal to or greater than the contents of D20.
Output Y13 is switched on when the contents of D10 is greater than -2,500 and timer T52 has
finished running.
MELSEC System Q Beginners Manual 6 – 23
More Advanced Programming Compare Instructions
Ladder Diagram
MELSEC Instruction List
LD>= C0
D50
OUT M12
IEC
Instruction List
LD TRUE
LD_GE_M CN0, D20
ST M12
Ladder Diagram
MELSEC Instruction List
LD> D10
K-2500
AND T52
OUT Y13
IEC
Instruction List
LD TRUE
LD_GT_M D10, -2500
AND TC52
ST Y13