4 logical exclusive or (xor) – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 143

Advertising
background image

6Ć11

6.4

Logical Exclusive Or (XOR)

Use the Logical Exclusive Or instruction to perform a bitĆwise logical exclusive OR

operation between two variables. While EN is true, the instruction performs a logical

exclusive OR operation between In1 and In2. The result is stored in Out.
The truth table for a bitĆwise logical XOR operation is as follows:

In1

In2

Out

0

0

0

1

0

1

0

1

1

1

1

0

Advertising