Mitsubishi MELSEC QS Series Programming Manual page 145

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

Advertisement

(2) For bit devices, the bit devices below the points designated by digit specification are
regarded as "0" in the operation.
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 at D10 and D20 when
XA goes ON, and stores the results at D10.
[Ladder Mode]
[Operation]
b15
D10
b15
D20
b15
D10
(2) The following program performs a logical sum operation on the 32-bit data from X0 to X1F,
and on the hexadecimal value FF00FF00
and D67.
[Ladder Mode]
[Operation]
X1F
FF00FF00
D67,D66
b8
b7
1
1
0
0
1
1
0
0
OR
b8
b7
0
0
0
0
1
0
1
1
b8
b7
1
1
0
0
1
1
1
1
S
+ 1
X1F
X1C
X0
1
0
1
0
0
0
D
+ 1
b31
1
1
1
1
0
0
H
D
+ 1
b31
1
1
1
1
0
0
7.1.2 Logical sums of 16-bit and 32-bit data (WOR(P), DOR(P))
b0
1
1
1
1
0
0
0
0
b0
1
0
0
1
0
0
0
1
b0
1
1
1
1
0
0
0
1
when XB goes ON, and stores the results at D66
H
S
X10
XF
X3
0
0
0
0
1
0
1
OR
D
b16
b15
0
1
1
1
0
0
0
D
b16
b15
0
1
1
1
1
0
1
7.1 Logical Operation Instructions
WOR(P), DOR(P)
X0
0
b0
0
b0
0
7-9
7

Advertisement

Table of Contents
loading

Table of Contents