FX Series Programmable Controlers Applied Instructions 5
5-38
5.3.9 WXOR (FNC 28)
Operation:
The bit patterns of the two source devices are
analyzed (the contents of S
2 is compared against
the contents of S
1). The result of the logical XOR
analysis is stored in the destination device (D).
The following rules are used to determine the result of a logical XOR operation. This takes
place for every bit contained within the source devices:
General rule: (S
1)Bit n WXOR (S2)Bit n = (D)Bit n
1WXOR1=0 0WXOR1=1
1WXOR0=1 0WXOR0=0
Mnemonic Function
Operands
Program steps
S1 S2 D
WXOR
FNC 28
(Logical
exclusive
OR)
AlogicalXORis
performed on the
source devices -
result stored at
destination
K, H
KnX, KnY, KnM, KnS,
T, C, D, V, Z
KnY, KnM, KnS,
T, C, D, V, Z
WXOR,
WXORP:
7steps
DXOR,DXORP
13 steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X2
WXOR
D 10 D 12 D 14
[ S1 ] [ D ][ S2 ]