Skip to main content

Example - Ladder Diagram

<> Example

The <> instruction compares a WORD value, S1, to another WORD value, S2, and executes if S1 is not equal to S2.

LD Execution Condition


When the result of the instruction execution of the expression D0D2 (25,00025,000) is FALSE, the coil, Y5.0, is deenergized.



When the result of the instruction execution of the expression D0D2 (-4,56225,000) is TRUE, the coil, Y5.0, is energized.

Memory Monitor

AND Execution Condition


When the result of the instruction execution of the expression D5D7 (-8,754-8,754) is FALSE, and the contact, M0.0 is ON (1), the coil, Y5.1, is deenergized.



When the result of the instruction execution of the expression D5D7 (-1,245-8,754) is TRUE, and the contact, M0.0 is ON (1), the coil, Y5.1, is energized.

Memory Monitor

OR Execution Condition


When the result of the instruction execution of the expression D10D12 (6,5436,543) is FALSE, or the contact, M0.1 is ON (1), the coil, Y5.2, is energized.



When the result of the instruction execution of the expression D10D12 (-9,8746,543) is TRUE, and the contact, M0.1 is OFF (0), the coil, Y5.2, is energized.

Memory Monitor