7-10
7.1 Logical Operation Instructions
7.1.3 Logical OR operation on 16-/32-bit data
WOR, DOR
DOR(P)
(1) Performs a logical OR operation on each bit of the 32-bit data of the device specified for
and the 32-bit data of the device specified for
, and stores the results to the device
specified for
.
(2) For bit devices, the operation is performed regarding the bit devices after the point of
specified digit as 0. (Refer to Program Example (2))
O
peration Error
No operation error occurs in the execution of the WOR(P) and DOR(P) instructions.
Program Example
(1) In the following program, the logical OR operation is performed on the data from X10 to X1B,
and the data in Var_D33 when X0A turns ON, and the results are output to Y30 to Y3B.
[Structured ladder]
[ST]
WORP(X0A,K3X10,Var_D33,K3Y30);
[Operation]
s
1
s
2
d1
0
0
1
0
1
1
0
0
0
0
1
1
1
1
b0
b15
b31
b16
OR
0
0
1
1
0
0
1
1
0
0
1
1
0
0
b0
b15
b31
b16
0
0
1
1
1
1
1
1
0
0
1
1
1
1
b31
b16
b0
b15
s
1
s
2
s
1
s
2
d
d1
1
1
1
1
1
0
0
1
1
0
0
1
0
0
1
1
1
0
0
1
1
1
0
1
1
0
1
1
0
0
1
1
Y
38
Y
30
Y
37
b0
b7
b15
b8
OR
Var_D
33
Y
3
B to Y
30
R
egar
d
e
d
as
0
s.
0
0
0
0
1
1
0
0
0
0
1
1
0
0
0
0
X
10
X
17
X
1
B to X
10
X
13
X
18
X
1
B
Y
3
B
Y
3
4 Y
33
X
1
4
Not change
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......