EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 373

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.1 Logical Operation Instructions
371
7
WXOR(P), DXOR(P) [When three data are set]
Processing details
WXOR
Conducts an exclusive OR operation on each bit of the 16-bit data of the device designated by (S1) and the 16-bit data of
the device designated by (S2), and stores the results at the device designated by (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 (S1) and the 32-bit data of
the device designated by (S2), and stores the results at the device designated by (D).
For bit devices, the bit devices after the points designated by digit specification are regarded as "0" in the operation.
(S1), (S2): 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
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1) 
(S2) 
(D) 
Command
Command
P
WXOR, DXOR
WXORP, DXORP
S1
S2
S1
S2
D
D
indicates an instruction symbol of WXOR/DXOR.
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0 1 0 110 1 0 1 0 1 001 0 1
b15 b8 b0b7
b0b7b15 b8
XOR
0011111111 00
b0b7b15 b8
00 00
D
S1
S2
1111 1
0
1
0
1
0
11
00
b0b15b31b16
XOR
1111
000000
1111
b0b15b31b16
0000 1 0 1 0 1 00011
b31b16 b0b15
+ 1
+ 1
+ 1
S1
S2
S1
S2
S1
S2
D
D
D

Table of Contents

Related product manuals