Chapter 7 Second Development Platform VP3000
316
API Instruction code Operand Function
27
WOR /
DOR
P S
1
, S
2
, D
Logical operation with OR operator
(16-bit) /
logical operation with OR operator
(32-bit)
Type
Operand
Bit devices Word devices
16-bit instruction (7 steps)
WOR
ontinuous
execution
type
WORP
Pulse
execution
type
32-bit instruction (13 steps)
DOR
Continuous
execution
type
DORP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
1
S
2
D
Caution for using operand: none
Description
S
1
source data device 1
S
2
source data device 2
D: operation result
This instruction conducts logical OR operation of S
1
and S
2
and stores the result in D.
The corresponding bit of the operation result in D will be “0” if any of the bits in S1 or S2 is “0”.
Example
When X0 = ON,16-bit D0 and D2 perform WOR, logical OR operation, and the result will be
stored in D4.
When X1 = ON, 32-bit (D11, D10) and (D21, D20) perform DOR, logical OR operation, and the
result will be stored in (D41, D40).