EasyManua.ls Logo

Delta DVP-20PM

Delta DVP-20PM
580 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...
5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-128
API
Applicable model
20PM
221~
223
D
D
OR#
Logical operation
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D V Z
S
1
S
2
Note: represents &, |, or ^.
Please refer to specifications for more information about device ranges.
16-bit instruction (5 steps)
OR
Continuity
instruction
32-bit instruction (7 steps)
DOR
Continuity
instruction
Flag: None
Explanation
The instruct
ion is used t
o compare the value in S
1
with that in S
2
. If the
comparison result is not 0, the condition of the instruction is met. If the
comparison result is 0, the condition of the instruction is not met.
S
1
: Source device 1; S
2
: Source device 2
The instruction OR# is connected to
a contact in parallel.
API No.
16-bit
instruction
32-bit
instruction
ON OFF
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 AND operation
|: Logical OR operation
^: Logical exclusive OR operation
If a 32-bit counter is used, the 32-bit instruction DOR# must be used. If a 32-bit
counter and the 16-bit instruction OR# are used, a program error will occur, and
the ERROR LED indicator on the DVP-20PM series motion controller used will
blink. (C200~C255 are 32-bit counters.)
Example
When X1 is ON, Y0 is ON. Besides, when a logical AND operator performs the
logical AND operation on each pair of corresponding bits in C0 and C10, and
the operation result is not 0, Y0 is ON.
When X2 and M30 are ON, M60 is ON. When a logical OR operator performs
the logical OR operation on each pair of corresponding bits in the 32-bit
register (D11, D10) and the 32-bit register (D21, D20), and the operation result
is not 0, M60 is ON. Besides, when the logical XOR operator performs the
logical exclusive OR operation on each pair of corresponding bits in the 32-bit
counter C235 and the 32-bit register (D201, D200), and the operation result is
not 0, M60 is ON.
DOR
C235 D200
OR
C0 C10
DOR
D10 D20
&
^
I
Y0
X2
X1
M30
M60

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals