Mitsubishi MELSEC QS Series Programming Manual page 151

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

Advertisement

(2) For bit devices, the bit devices below 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 from Y30 to Y3B.
[Ladder Mode]
[Operation]
X1B-X10
D33
Y3B-Y30
(2) The following program conducts an exclusive OR operation on the data at D20 and D21, and
the data at D30 and D31 when X10 goes ON, and stores the results at D40 and D41.
[Ladder Mode]
[Operation]
D21, D20
D31, D30
D41, D40
X1B
X18
0
0
0
0
0
1
0
1
Regarded as 0.
b15
b8
1
1
1
1
0
0
1
1
Y3B
Y38
0
1
1
0
0
1
1
0
Not changed.
S1
+ 1
b31
b16
1
1
0
0
1
0
1
XOR
S2
+ 1
b31
b16
0
0
0
0
1
1
0
D
+ 1
b31
b16
1
1
0
0
0
1
1
7.1.3 16-bit and 32-bit exclusive OR operations (WXOR(P), DXOR(P))
X17
X14
X13
X10
0
1
0
1
0
1
0
1
XOR
b7
b0
0
0
1
1
1
0
0
1
Y37
Y34 Y33
Y30
0
1
1
0
1
1
0
0
S1
b15
b0
0
1
1
0
0
1
1
S2
b15
b0
0
0
1
0
1
0
1
D
b15
b0
0
1
0
0
1
1
0
7.1 Logical Operation Instructions
WXOR(P), DXOR(P)
7-15
7

Advertisement

Table of Contents
loading

Table of Contents