Mitsubishi MELSEC Q Series Programming Manual page 389

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

Advertisement

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
S1
designated by
b31
S1
0
b31
S2
0
b31
D
0
(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]
[Operation]
X1B to X10
0
Regarded as 0s.
b15
D33
1
Y3B to Y30
1
Not changed
.
D
S1
+ 1
b16
b15
0
1
1
0
0
1
1
OR
S2
+ 1
b16
b15
0
1
0
1
1
0
0
D
+ 1
b16
b15
0
1
1
1
1
1
1
X1B
X18
X17
0
0
0
1
1
0
0
0
OR
b8
B7
1
1
1
1
0
0
1
1
Y3B
Y38
Y37
0
0
1
1
1
0
1
1
, and stores the results at the device
S2
S1
b0
0
0
1
1
0
0
S2
b0
0
0
1
1
1
1
D
b0
0
0
1
1
1
1
[List Mode]
Step
Instruction
X14
X13
X10
0
1
1
0
0
0
0
b0
0
0
1
0
0
1
1
Y34Y33
Y30
0
1
1
0
0
1
1
WOR(P),DOR(P)
Device
7-15
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