Publication 1763-RM001C-EN-P - October 2009
Logical Instructions 215
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 211 and
Updates to Math Status Bits on page 212.
XOR
Bitwise Exclusive OR
Source A N7:0
0000h<
Source B N7:1
0000h<
Dest N7:2
0000h<
XOR
Execution Time for the XOR Instruction
Controller Data Size When Rung Is:
True False
MicroLogix 1100 word 13.09 μs 0.87 μs
long word 13.31 μs 0.87 μs
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.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive