Delta DVP-ES2 User Manual
Page 202
D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g
3 - 8 6
API Mnemonic
Operands
Function
27
DOR P
Logical DWord OR
Controllers
ES2/EX2 SS2
SA2
SE
SX2
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H
KnX
KnY KnM KnS T C D E F
S
1
*
* *
*
*
*
*
*
*
*
S
2
*
* *
*
*
*
*
*
*
*
D
*
*
*
*
*
*
*
DOR, DORP: 13 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
S
1
: Source data device 1 S
2
: Source data device 2 D: Operation result
Explanations:
1.
Logical double word (32-bit) OR operation.
2.
This instruction conducts logical OR operation of S
1
and S
2
in 32-bit mode and stores the
result in D.
3. If
operands
S
1
, S
2
,
D use index F, then only a 16-bit instruction is available.
Program Example:
When X1 is ON, the 32-bit data source (D11, D10) and (D21, D20) are analyzed and the operation
result of the logical OR is stored in (D41, D40).
X1
DOR
D10
D20
D40
b31
Before
execution
After
execution
D11 D10
DOR
b
0
0
1
1
1
1
1
1
0 0 0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
b15
b0
0
0
0
0
0
0
1
1
0
1
1 1
0
1
1
1 1
1 1 1 1 1
1
D21 D20
D41 D40
0
0
1
1
1
1
1
1
0
0
0
0
0
0
1
1
0 0 0
0
0
0
1
1
1
1
0
1
1 1
0
1
0
0
0
0
1
1
1
1
1 1
1 1 1 1 1
1