Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-15
WOR(P),DOR(P)
1
2
3
4
6
6
7
8
7.1 Logical operation instructions
7.1.3 Logical sums of 16-bit and 32-bit data (WOR(P),DOR(P))
DOR
(1) Conducts a logical sum 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) When bit devices are designated, the bit devices below the points designated as digits are
regarded as "0" in the operation. (See Program Example (2))
Operation Error
(1) There are no operation errors associated with the WOR(P) or DOR(P) instructions.
Program Example
(1) The following program performs a logical sum operation on the data from X10 to X1B, and
the data at D33, and stores the result at Y30 to Y3B when XA is ON.
[Ladder Mode] [List Mode]
[Operation]
S1
S2
D
00
1
0
11
0000
1111
b0
b15
b31
b16
OR
00
11
00
11
00
11
00
b0
b15
b31
b16
0011 111100 1111
b31
b16
b0
b15
+ 1
+ 1
+ 1
S1
S2
S1 S1
S2
S2
D
D D
Step Instruction Device
11111
00
11
00
1
00
11
1
00
111
0
11
0
11
00
1
1
Y38 Y30Y37
b0
B7
b15 b8
OR
D33
Y3B to Y30
Regarded as 0s.
0000
11
0000
11
000
0
X10X17
X1B to X10
X13X18X1B
Y3B Y34Y33
X14
Not changed