Example - Ladder Diagram
=
The = instruction compares a WORD value, S1, to another WORD value, S2, and executes if S1 is equal to S2.
LD Execution Condition
When the result of the instruction execution of the expression D0 = D2 (5 = 45) is FALSE, the coil, Y0.0, is deenergized.
When the result of the instruction execution of the expression D0 = D2 (21 = 21) is TRUE, the coil, Y0.0, is energized.
Memory Monitor
AND Execution Condition
When the result of the instruction execution of the expression D5 = D7 (11 = 35) is FALSE, and the contact, M0.0 is ON (1), the coil, Y0.1, is deenergized.
When the result of the instruction execution of the expression D5 = D7 (35 = 35) is TRUE, and the contact, M0.0 is ON (1), the coil, Y0.1, is energized.
Memory Monitor
OR Execution Condition
When the result of the instruction execution of the expression D10 = D12 (32 = 22) is FALSE, or the contact, M0.0 is ON (1), the coil, Y0.2, is energized.
When the result of the instruction execution of the expression D10 = D12 (22 = 22) is TRUE, and the contact, M0.1 is OFF (0), the coil, Y0.2, is energized.