313
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 at D10 and D20 when XA is turned ON, and stores
the results at D10.
[Ladder Mode]
[List Mode]
[Operation]
(2) The following program performs a logical sum operation on the 32-bit data from X0 to X1F, and on the hexadecimal value
FF00FF00
H
when XB is turned ON, and stores the results at D66 and D67.
[Ladder Mode]
[List Mode]
[Operation]
Step
Instruction
Device
0
0
0
0
1
0
1
1
1
0
0
1
0
0
0
1
1
1
0
0
1
1
1
1
1
1
1
1
0
0
0
1
b15
b8
b0
b7
b0
b7
b15
b8
OR
1
1
0
0
1
1
0
0
1
1
1
1
0
0
0
0
b0
b7
b15
b8
D10
D20
D10
Step
Instruction
Device
1
1
1
1
0
0
0
1
1
1
0
0
0
0
b0
b15
b31
b16
OR
1
0
1
0
0
0
0
0
0
0
1
0
1
0
X0
XF
X1F
X10
1
1
1
1
0
0
0
1
1
1
1
0
1
0
b31
b16
b0
b15
X1C
X3
+ 1
+ 1
+ 1
X0
FF00FF00
H
D67
,
D66
D
S
S
D
D
D
X1F