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 D26D28 (3.0000003.000000) is FALSE, the coil, Y5.6, is deenergized.



When the result of the instruction execution of the expression D26D28 (2.4000003.000000) is TRUE, the coil, Y5.6, is energized.

Memory Monitor

ANDE Execution Condition


When the result of the instruction execution of the expression D30D32 (0.0000000.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 D30D32 (-1.2000000.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 D34D36 (2.4000002.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 D34D36 (-1.2000000.000000) is TRUE, and the contact, M0.1 is OFF (0), the coil, Y5.8, is energized.

Memory Monitor