Example - Ladder Diagram
D>
The D> instruction compares a DWORD value, S1, to another DWORD value, S2, and executes if S1 is greater than S2.
LDD Execution Condition
When the result of the instruction execution of the expression D14 > D16 (-4,531,311 > -546,513) is FALSE, the coil, Y3.3, is deenergized.
When the result of the instruction execution of the expression D14 > D16 (531,311 > -546,513) is TRUE, the coil, Y3.3, is energized.
Memory Monitor
ANDD Execution Condition
![]()
When the result of the instruction execution of the expression D18 > D20 (-874,512 > 65,324) is FALSE, and the contact, M0.0 is ON (1), the coil, Y3.4, is deenergized.
![]()
When the result of the instruction execution of the expression D18 > D20 (74,512 > 65,324) is TRUE, and the contact, M0.0 is ON (1), the coil, Y3.4, is energized.
Memory Monitor
ORD Execution Condition
![]()
When the result of the instruction execution of the expression D10 > D12 (-463,320 > -22,154) is FALSE, or the contact, M0.1 is ON (1), the coil, Y3.5, is energized.
![]()
When the result of the instruction execution of the expression D10 > D12 (-4,633 > -22,154) is TRUE, and the contact, M0.1 is OFF (0), the coil, Y3.5, is energized.