16-Bit Exclusive Or Operations, 32-Bit Exclusive Or Operations - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

16-bit exclusive OR operations, 32-bit exclusive OR operations

WXOR(P), DXOR(P) [When two data are set]
High
Basic
Process
Redundant Universal
performance
WXOR, DXOR
WXORP, DXOR
(S): Data for an exclusive OR operation or head number of the devices where the data is stored (BIN 16/32 bits)
(D): Head number of the devices where the exclusive OR operation result will be stored (BIN 16/32 bits)
Setting
Internal device
data
Bit
Word
(S)
(D)
Processing details
■WXOR
• Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated by (D) and the 16-bit data of the
device designated by (S), and stores the results at the device designated by (D).
b15
D
1
0
1
0
1
0
1
b15
S
0
0
0
1
1
0
1
b15
1
0
1
1
0
0
0
D
• For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
■DXOR
• Conducts an exclusive OR operation on each bit of the 32-bit data of the device designated by (D) and the 32-bit data of the
device designated by (S), and stores the results at the device designated by (D).
+ 1
D
b31
0
0
0
1
1
1
D
S
+ 1
b31
S
0
1
1
0
0
1
D + 1
b31
D
0
0
1
1
0
0
• For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
LCPU
Command
Command
R, ZR
J\
Bit
b8
b7
0
1
0
1
0
1
0
1
XOR
b8
b7
1
1
1
1
1
0
0
0
b8
b7
1
0
1
0
1
1
0
1
D
b16
b15
0
0
0
0
1
1
1
XOR
S
b16
b15
1
0
1
0
0
1
1
D
b16
b15
1
1
1
1
0
0
1
indicates an instruction symbol of WXOR/DXOR.
U\G
Word
b0
0
b0
0
b0
0
b0
1
b0
0
b0
1
S
D
P
S
D
Zn
Constant
Others
K, H
7 APPLICATION INSTRUCTIONS
7.1 Logical Operation Instructions
7
369

Advertisement

Table of Contents
loading

Table of Contents