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-126
API
Applicable model
20PM
215~
217
D
D
LD#
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)
LD
Continuity
instruction
32-bit instruction (7 steps)
DLD
Continuity
instruction
Flag: None
Explanation
The instruction 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 instruct
ion LD# can be connected to a busbar directly.
API No.
16-bit
instruction
32-bit
instruction
ON OFF
215 LD& DLD&
S
1
&
S
2
0
S
1
&
S
2
0
216 LD| DLD|
S
1
|
S
2
0
S
1
|
S
2
0
217 LD^ DLD^
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 insturciton DLD# must be used. If a 32-bit
counter and the 16-bit instruction LD# 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
A logical AND operator takes the values in C0 and C10, and performs the
logical AND operation on each pair of corresponding bits. If the operation result
is not 0, Y10 will be ON.
A logical OR operator takes the values in D200 and D300, and performs the
logical OR operation on each pair of corresponding bits. If the operation result
is not 0 and X1 is ON, Y11 will be set to ON.
A logical operator XOR takes the values in C201 and C200, and performs the
logical exclusive OR operation on each pair of corresponding bits. If the
operation result is not 0, or if M3 is ON, M50 will be ON.
M3
DLD
C201 C200
M50
LD
C0 C10
LD
D200 D300
SET
X1
&
^
I
Y11
Y10

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals