16-Bit And 32-Bit Exclusive Or Operations (Wxor(P), Dxor(P)) - Mitsubishi MELSEC QS Series Programming Manual

Hide thumbs Also See for MELSEC QS Series:
Table of Contents

Advertisement

WXOR(P), DXOR(P)
7.1.3
16-bit and 32-bit exclusive OR operations
(WXOR(P), DXOR(P))
WXOR(P), DXOR(P)
When two data are set (
WXOR, DXOR
WXORP, DXOR
Function
WXOR
(1) Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated
by
D
designated by
(2) For bit devices, the bit devices below the points designated by digit specification are regarded as
"0" in the operation.
DXOR
(1) Conducts an exclusive OR operation on each bit of the 32-bit data of the device designated
by
D
designated by
7-12
7.1 Logical Operation Instructions

7.1.3 16-bit and 32-bit exclusive OR operations (WXOR(P), DXOR(P))

D
S
Command
Command
: Data for an exclusive OR operation or start number of the devices where the data is stored (BIN 16/32 bits)
S
: Start number of the devices where the exclusive OR operation result will be stored (BIN 16/32 bits)
D
Internal Devices
Set
Data
Bit
Word
D
and the 16-bit data of the device designated by
.
D
b15
D
1
0
1
0
1
0
b15
S
0
0
0
1
1
0
b15
1
0
1
1
0
0
D
and the 32-bit data of the device designated by
.
D
+ 1
D
b31
0
1
0
1
0
D
S
+ 1
b31
S
0
1
1
0
0
D + 1
b31
D
0
0
1
1
0
, (
+1,
)
(
+1,
D
D
D
S
P
Constants
Others
K, H
––
––
––
, and stores the results at the device
S
b8
b7
b0
1
0
1
0
1
0
1
0
1
0
XOR
b8
b7
b0
1
1
1
1
1
1
0
0
0
0
b8
b7
b0
0
1
0
1
0
1
1
0
1
0
, and stores the results at the device
S
D
b16
b15
b0
1
0
1
0
1
0
1
0
1
XOR
S
b16
b15
b0
1
1
0
1
0
0
1
1
0
D
b16
b15
b0
0
1
1
1
1
0
0
1
1
)
(
+1,
))
S
D
D
indicates "WXOR / DXOR".
S
D
S
D

Advertisement

Table of Contents
loading

Table of Contents