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 D14 ≠ D16 (789,456 ≠ 789,456) is FALSE, the coil, Y5.3, is deenergized.
When the result of the instruction execution of the expression D14 ≠ D16 (123,456 ≠ 789,456) is TRUE, the coil, Y5.3, is energized.
Memory Monitor
ANDD Execution Condition
![]()
When the result of the instruction execution of the expression D18 ≠ D20 (7,894,561 ≠ 7,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 D18 ≠ D20 (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 D22 ≠ D24 (1,254,954 ≠ 1,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 D22 ≠ D24 (987,465,621 ≠ 1,254,954) is TRUE, and the contact, M0.1 is OFF (0), the coil, Y5.5, is energized.