Compare as a logical AND operation
쐃
Compare condition
쐇
First comparison value
쐋
Second comparison value
An AND comparison can be used just like a normal AND instruction (see chapter 4).
The comparison options are the same as those described above for a comparison at the begin
-
ning of an operation.In the example shown above the relay M10 is set when the relay M0 is "1"
and the contents of data register D40 is equal to or smaller than the contents of data register
D50.
Compare as a logical OR operation
쐃
Compare condition
쐇
First comparison value
쐋
Second comparison value
An OR comparison can be used just like a normal OR instruction (see chapter 4). In this exam
-
ple the output Y1B is set when the input X7 is on or the Counter C20 has reached the actual
value "200".
6–24 MITSUBISHI ELECTRIC
Compare Instructions More Advanced Programming
Ladder Diagram
MELSEC Instruction List
LD M0
AND<= D40
D50
OUT M10
IEC Instruction List
LD M0
AND_GE_M D40, D50
ST M10
Ladder Diagram
MELSEC Instruction List
LD X7
OR= C20
K200
OUT Y1B
IEC Instruction List
LD X7
OR_EQ_M CN20, 200
ST Y1B