Mitsubishi MELSEC-Q/L Programming Manual page 322

Table of Contents

Advertisement

WXOR, WXORP, DXOR, DXORP
When three data are set
WXOR, DXOR
WXORP, DXORP
,
: Data for an exclusive OR operation or head number of the devices where the data is stored (BIN 16/32 bits)
S1 S2
: Head number of the devices where the exclusive OR operation result will be stored (BIN 16/32 bits)
D
Internal Devices
Setting
Data
Bit
S1
S2
D
Function
WXOR
(1) Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated by
the device designated by
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
(See Program Example (1))
DXOR
(1) Conducts an exclusive OR operation on each bit of the 32-bit data of the device designated by
the device designated by
(2) For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
Operation Error
(1)
There is no operation error in the WXOR(P) or DXOR(P) instruction.
320
(
( +1,
)
S1
S2
D
S1
S1
Command
Command
R, ZR
Word
Bit
, and stores the results at the device designated by
S2
b15
S1
0
0
0
0
1
1
b15
S2
0
1
0
1
0
1
b15
D
0
1
0
1
1
0
, and stores the results at the device designated by
S2
S1
+ 1
b31
S1
0
1
1
1
1
S2
+ 1
b31
S2
1
1
1
1
1
+ 1
D
b31
D
0
0
0
0
1
( +1,
)
( +1,
))
S2
S2
D
D
indicates an instruction symbol of WXOR/DXOR.
S 1
P
S 1
J
\
U
\G
Word
D
b8
b7
1
1
1
1
1
1
0
0
XOR
b8
b7
0
1
0
1
0
1
0
1
b8
b7
1
0
1
0
1
0
0
1
D
S1
b16
b15
0
0
0
0
0
1
1
XOR
S2
b16
b15
0
1
0
1
0
1
1
D
b16
b15
0
1
0
1
0
0
0
S2
D
S2
D
Constants
Zn
K, H
––
and the 16-bit data of
S1
.
b0
0
0
b0
0
1
b0
0
1
and the 32-bit data of
S1
.
b0
1
1
b0
0
0
b0
1
1
Other
––
––
––

Advertisement

Table of Contents
loading

Table of Contents