Publication 1762-RM001C-EN-P
Logical Instructions 12-5
XOR - Exclusive OR
Instruction Type: output
The XOR instruction performs a logical exclusive OR of two sources and
places the result in the destination.
For more information, see Using Logical Instructions on page 12-1 and
Updates to Math Status Bits on page 12-2.
XOR
Bitwise Exclusive OR
Source A N7:0
0000h<
Source B N7:1
0000h<
Dest N7:2
0000h<
XOR
Table 12.7 Execution Time for the XOR Instruction
Controller Data Size When Rung Is:
True False
MicroLogix 1200 word 3.0
µ
s0.0
µ
s
long word 9.9
µ
s0.0
µ
s
MicroLogix 1500 word 2.3
µ
s0.0
µ
s
long word 8.9
µ
s0.0
µ
s
Table 12.8 Truth Table for the XOR Instruction
Destination = A XOR B
Source: A
1111101000001100
Source: B
1100111111000011
Destination:
0011010111001111
IMPORTANT
Do not use the High Speed Counter Accumulator
(HSC.ACC) for the Destination parameter in the AND, OR,
and XOR instructions.