EasyManua.ls Logo

Delta VP3000 Series - Page 383

Delta VP3000 Series
714 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7 Second Development Platform VP3000
374
API Instruction code Operand Function
221–223 D OR#
S
1
, S
2
Contact type logical operation OR#
Type
Operand
Bit devices Word devices
16-bit instruction (5 steps)
OR#
Continuous
execution
type
- -
32-bit instruction (9 steps)
DOR#
Continuous
execution
type
- -
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
1
S
2
Caution for using operand: : & | ^
See the specification of each model for the scope of device’s usage.
Description
S
1
: source device 1
S
2
: source device 2
This instruction is to compare S
1
and S
2
, if the result 0, the continuity of the instruction is
enabled; if the result = 0, the continuity of the instruction is disabled.
OR# (#: &, |, ^) instruction is used for parallel connection with contacts
API No.
16-bit
instruction
32-bit
instruction
Continuity condition Discontinuity condition
221 OR& DOR&
S
1
&
S
2
0
S
1
&
S
2
0
222 OR| DOR|
S
1
|
S
2
0
S
1
|
S
2
0
223 OR^ DOR^
S
1
^
S
2
0
S
1
^
S
2
0
&: logical operation with AND operator
|: Logical operation with OR operator
^: Logical operation with XOR operator
Example
When X0 =ON, or C0 and C10 perform “AND” logical operation with the result is not 0, then Y0
= ON
When both X2 and M30 are ON, or 32-bit registers D10 (D11) and D20 (D21) perform “OR”
logical operation with the result is not 0, or 32-bit counter C235 and 32-bit register D200
(D201) perform “XOR” logical operation with the result is not 0, then M60 = ON.
OR
C0 C10
DOR
D10 D20
&
I
Y0
X2
X1
M30
M60
DOR
D25
D200
^

Table of Contents

Related product manuals