Mitsubishi MELSEC Q Series Programming Manual page 397

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

DXOR
(1) Conducts an exclusive OR operation on each bit of the 32-bit data of the device designated
by
and the 32-bit data of the device designated by
S1
designated by
S1
S2
b31
D
(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 are no operation errors associated with the WXOR(P) or DXOR(P) instructions.
Program Example
(1) The following program conducts an exclusive OR operation on the data from X10 to X1B
and the data at D33 when X10 is ON, and outputs the result to Y30 to Y3B.
[Ladder Mode]
[Operation]
X1B to X10
D33
Y3B to Y30
.
D
+ 1
S1
b31
b16
1
1
1
1
0
0
0
XOR
S2
+ 1
b31
b16
1
1
1
1
1
0
1
+ 1
D
b16
0
0
0
0
1
0
1
X1B
0
0
0
0
0
1
0
Regarded as 0s.
b15
1
1
1
1
0
0
1
Y3B
Y38
0
1
1
0
0
1
1
Not changed
, and stores the results at the device
S2
S1
b15
b0
0
0
0
1
1
1
1
S2
b15
b0
0
1
0
1
1
0
0
D
b15
b0
0
1
0
0
0
1
1
[List Mode]
Step
Instruction
X18
X17
X14
X13
1
0
1
0
1
0
1
0
XOR
b8
b7
1
0
0
1
1
1
0
0
Y37
Y34Y33
Y30
0
0
1
1
0
1
1
0
WXOR(P),DXOR(P)
Device
X10
1
b0
1
0
7-23
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents