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 D0 ≠ D2 (25,000 ≠ 25,000) is FALSE, the coil, Y5.0, is deenergized.



When the result of the instruction execution of the expression D0 ≠ D2 (-4,562 ≠ 25,000) is TRUE, the coil, Y5.0, is energized.

Memory Monitor​

AND Execution Condition​


When the result of the instruction execution of the expression D5 ≠ D7 (-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 D5 ≠ D7 (-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 D10 ≠ D12 (6,543 ≠ 6,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 D10 ≠ D12 (-9,874 ≠ 6,543) is TRUE, and the contact, M0.1 is OFF (0), the coil, Y5.2, is energized.

Memory Monitor​