Skip to main content

Example - Ladder Diagram

<

The < instruction compares a WORD value, S1, to another WORD value, S2, and executes if S1 is less than S2.

LD Execution Condition


When the result of the instruction execution of the expression D0 < D2 (62 < 37) is FALSE, the coil, Y1.0, is deenergized.



When the result of the instruction execution of the expression D0 < D2 (12 < 37) is TRUE, the coil, Y1.0, is energized.

Memory Monitor

AND Execution Condition


When the result of the instruction execution of the expression D5 < D7 (3 < 0) is FALSE, and the contact, M0.0 is ON (1), the coil, Y1.1, is deenergized.



When the result of the instruction execution of the expression D5 < D7 (23 < 45) is TRUE, and the contact, M0.0 is ON (1), the coil, Y1.1, is energized.

Memory Monitor

OR Execution Condition


When the result of the instruction execution of the expression D10 < D12 (333 < 22) is FALSE, or the contact, M0.1 is ON (1), the coil, Y1.2, is energized.



When the result of the instruction execution of the expression D10 < D12 (333 < 452) is TRUE, and the contact, M0.1 is OFF (0), the coil, Y1.2, is energized.

Memory Monitor