DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming
API
Mnemonic Operands Function
SS2
SX2
28 WXOR P
Logical Word XOR
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
WXOR, WXORP: 7 steps
SS2
SX2
SS2
SX2
SS2
SX2
Operands:
S
1
: Source data device 1 S
2
: Source data device 2 D: Operation result
Explanations:
1. This instruction conducts logical XOR operation of S
1
and S
2
in 16-bit mode and stores the
result in D
2. For 32-bit operation please refer to DXOR instruction.
Program Example:
When X0 = ON, the 16-bit data source D0 and D2 are analyzed and the operation result of the
logical XOR is stored in D4.
0 0 1 11 1 1 1
0 0 0 0 0 01 1 1 1
0 0 0 0
1 1 0
WOR
b15 b00
0 0 0 0 0 01 1
0 1 1 1 0 1
1 1 0 0 1 1 1 1 0
WXOR
Before
execution
After
execution
D0 D2 D4
X0
D0
D2
D4