Mitsubishi MELSEC System Q Manual page 155

Hide thumbs Also See for MELSEC System Q:
Table of Contents

Advertisement

More Advanced Programming
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": >=
IEC instruction:
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:
Ladder Diagram
Relay M12 is set to "1" when the value of counter C0 is equal to or greater than the contents of D20.
Ladder Diagram
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
Compare Instructions
(value 1
value 2)
GE ( Greater Equal )
MELSEC Instruction List
LD>=
OUT
IEC Instruction List
LD
LD_GE_M
ST
MELSEC Instruction List
LD>
AND
OUT
IEC Instruction List
LD
LD_GT_M
AND
ST
C0
D50
M12
TRUE
CN0, D20
M12
D10
K-2500
T52
Y13
TRUE
D10, -2500
TC52
Y13
6 – 23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents