Skip to main content

Example - Ladder Diagram

E=

The E= instruction compares a REAL value, S1, to another REAL value, S2, and executes if S1 is equal to S2.

LDE Execution Condition Example


When the result of the instruction execution of the expression D26 = D28 (1.200000 = 0.000000) is FALSE, the coil, Y0.6, is deenergized.



When the result of the instruction execution of the expression D26 = D28 (1.200000 = 1.200000) is TRUE, the coil, Y0.6, is energized.

Memory Monitor

ANDE Execution Condition Example


When the result of the instruction execution of the expression D30 = D32 (3.100000 = 0.000000) is FALSE, and the contact, M0.0 is ON (1), the coil, Y0.7, is deenergized.



When the result of the instruction execution of the expression D30 = D32 (-3.100000 = -3.100000) is TRUE, and the contact, M0.0 is ON (1), the coil, Y0.7, is energized.

Memory Monitor

ORE Execution Condition Example


When the result of the instruction execution of the expression D34 = D36 (2.500000 = 0.000000) is FALSE, or the contact, M0.0 is ON (1), the coil, Y0.8, is energized.



When the result of the instruction execution of the expression D34 = D36 (0.000000 = 0.000000) is TRUE, and the contact, M0.1 is OFF (0), the coil, Y0.8, is energized.

Memory Monitor