Mitsubishi MELSEC QS Series Programming Manual page 147

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

Advertisement

(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-X10
D33
Y3B-Y30
(2) The following program performs a logical sum operation on the 32-bit data at D0 and D1,
and the 24-bit data from X20 to X37, and stores the results at D23 and D24 when M8 is ON.
[Ladder Mode]
[Operation]
D1,D0
X37-X20
D24,D23
X1B
X18
0
0
0
0
0
0
1
1
Regarded as 0.
OR
b15
b8
1
1
1
1
1
0
0
1
Y3B
Y38
1
0
0
1
1
1
0
1
Not changed.
S
+1
b31
b28
b27
b24
1
1
1
1
0
0
0
0
OR
0
0
0
0
0
0
0
0
Regarded as 0.
D
+1
b31
b16
1
1
1
1
0
0
0
0
7.1.2 Logical sums of 16-bit and 32-bit data (WOR(P), DOR(P))
X17
X14
X13
X10
0
0
0
0
0
0
1
1
b7
b0
1
0
0
1
0
0
1
1
Y37
Y34 Y33
Y30
1
0
1
1
0
0
1
1
S
b23
b22 b21
b3
b2 b1
b0
1
1
0
0
1
1
1
X37
X36 X35
X23 X22 X21
X20
1
0
0
1
0
0
1
D
b15
b0
1
1
0
1
1
1
1
7.1 Logical Operation Instructions
WOR(P), DOR(P)
7-11
7

Advertisement

Table of Contents
loading

Table of Contents