Exclusive Or (Xor) - Allen-Bradley MicroLogix 1000 User Manual

Programmable controllers
Table of Contents

Advertisement

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
MicroLogix 1000 Programmable Controllers User Manual
Preface

Exclusive Or (XOR)

The value at source A is Exclusive ORed bit by bit with the value at source B and
XOR
BITWISE EXCLUS OR
Source A
then stored in the destination.
Source B
Dest
Truth Table
Execution Times
(µsec) when:
True
False
33.64
6.92
Source A and B can either be a word address or a constant; however, both sources
cannot be a constant. The destination must be a word address.
Updates to Arithmetic Status Bits
S:0/0
S:0/1
S:0/2
S:0/3
9–20
Dest = A XOR B
A
B
Dest
0
0
0
1
0
1
0
1
1
1
1
0
With this Bit:
Carry (C)
Overflow (V)
Zero (Z)
Sign (S)
The Controller:
always resets.
always resets.
sets if result is zero; otherwise resets
sets if result is negative (most significant bit is set); otherwise
resets.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents