315
WOR, WORP, DOR, DORP
1
2
3
4
4
6
7
8
7.1
Logical oper
atio
n instructions
7.1.3
W
OR,
WORP, DOR, D
O
R
P
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]
(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]
[List Mode]
[Operation]
Step
Instruction
Device
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
D33
Y
3B
to
Y
30
Regarded
as
0s
.
0
0
0
0
1
1
0
0
0
0
1
1
0
0
0
0
X10
X17
X1B
to
X10
X13
X18
X1B
Y
3B
Y
3
4Y
33
X1
4
N
ot
changed
Step
Instruction
Device
0
0
0
0
0
0
0
1
0
0
1
0
0
1
X20
X37
OR
1
1
1
1
0
0
0
1
1
0
0
1
1
1
b0
b23
b31
b24
1
1
1
1
0
0
0
1
1
0
1
1
1
1
b31
b16
b0
b15
b28
b3
D1
,
D0
X37 to X20
D24
,
D23
Regarded as 0s.
0
0
0
X36X35
X23X22X21
b27
b22b21
b2 b1
S
D
S
D
+1
+1