Skip to main content

Example - Ladder Diagram

>

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

LD Execution Condition


When the result of the instruction execution of the expression D0 > D2 (321 > 461) is FALSE, the coil, Y3.0, is deenergized.



When the result of the instruction execution of the expression D0 > D2 (5,642 > -2,321) is TRUE, the coil, Y3.0, is energized.

Memory Monitor

AND Execution Condition


When the result of the instruction execution of the expression D5 > D7 (-8,952 > -1,233) is FALSE, and the contact, M0.0 is ON (1), the coil, Y3.1, is deenergized.



When the result of the instruction execution of the expression D5 > D7 (2,623 > 4,561) is TRUE, and the contact, M0.0 is ON (1), the coil, Y3.1, is energized.

Memory Monitor

OR Execution Condition


When the result of the instruction execution of the expression D10 > D12 (-23,546 > -32,489) is FALSE, or the contact, M0.1 is ON (1), the coil, Y3.2, is energized.



When the result of the instruction execution of the expression D10 > D12 (-13,564 > -1,562) is TRUE, and the contact, M0.1 is OFF (0), the coil, Y3.2, is energized.

Memory Monitor