Skip to main content

Example - Ladder Diagram

E<> Example​

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

LDE Execution Condition​


When the result of the instruction execution of the expression D26 ≠ D28 (3.000000 ≠ 3.000000) is FALSE, the coil, Y5.6, is deenergized.



When the result of the instruction execution of the expression D26 ≠ D28 (2.400000 ≠ 3.000000) is TRUE, the coil, Y5.6, is energized.

Memory Monitor​

ANDE Execution Condition​


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



When the result of the instruction execution of the expression D30 ≠ D32 (-1.200000 ≠ 0.000000) is TRUE, and the contact, M0.0 is ON (1), the coil, Y5.7, is energized.

Memory Monitor​

ORE Execution Condition​


When the result of the instruction execution of the expression D34 ≠ D36 (2.400000 ≠ 2.400000) is FALSE, or the contact, M0.1 is ON (1), the coil, Y5.8, is energized.



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

Memory Monitor​