Skip to main content

Example - Ladder Diagram

D<>

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

LDD Execution Condition


When the result of the instruction execution of the expression D14D16 (789,456789,456) is FALSE, the coil, Y5.3, is deenergized.



When the result of the instruction execution of the expression D14D16 (123,456789,456) is TRUE, the coil, Y5.3, is energized.

Memory Monitor

ANDD Execution Condition


When the result of the instruction execution of the expression D18D20 (7,894,5617,894,561) is FALSE, and the contact, M0.0 is ON (1), the coil, Y5.4, is deenergized.



When the result of the instruction execution of the expression D18D20 (7,894,561-7,894,561) is TRUE, and the contact, M0.0 is ON (1), the coil, Y5.4, is energized.

Memory Monitor

ORD Execution Condition


When the result of the instruction execution of the expression D22D24 (1,254,9541,254,954) is FALSE, or the contact, M0.1 is ON (1), the coil, Y5.5, is energized.



When the result of the instruction execution of the expression D22D24 (987,465,6211,254,954) is TRUE, and the contact, M0.1 is OFF (0), the coil, Y5.5, is energized.

Memory Monitor