Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-23
WXOR(P),DXOR(P)
1
2
3
4
6
6
7
8
7.1 Logical operation instructions
7.1.5 16-bit and 32-bit exclusive OR operations (WXOR(P),DXOR(P))
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 , and stores the results at 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 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] [List Mode]
[Operation]
S1
S2
D
1111 1
0
1
0
1
0
11
00
b0b15b31 b16
XOR
1111
000000
1111
b0b15b31 b16
0000 101010 0011
b31 b16 b0b15
+ 1
+ 1
+ 1
S1
S2
S1
S2
S1
S2
D
D
D
Step Instruction Device
1111
00
11
00
111
00
1
0110011001101100
Y38 Y30Y37
b0b7b15 b8
XOR
D33
Y3B to Y30
Regarded as 0s.
00000
1
0
1
0
1
0
1
0
1
0
1
X10X17
X1B to X10
X13X18X1B
Y3B Y34Y33
X14
Not changed