EasyManuals Logo

Delta DVP-20PM User Manual

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
Page #153 background imageLoading...
Page #153 background image
5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-33
API
Applicable model
20PM
17
D
D
XCH
P
P
Interchanging values
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D V Z
D
1
D
2
Note: The instruction supports V devices and Z devices. (If the 16-bit
instruction is used, Z devices can not be used. If the 32-bit
instruction is used, V devices can not be used.)
Please refer to specifications for more information about device
ranges.
If KnX/KnY/KnM/KnS is used, it is suggested that X/devices/Y
devices/M device numbers/S device numbers should start from a
number which is a multiple of 16 in the octal numeral system or in
the decimal numeral system, e.g. K1X0 (octal numeral system),
K4SY20 (octal numeral system), K1M0 (decimal numeral system),
and K4S16 (decimal numeral system).
16-bit instruction (5 steps)
XCH
Continuity
instruction
XCHP
Pulse
instruction
32-bit instruction (9 steps)
DXCH
Continuity
instruction
DFXCHP Pulse
instruction
Flag: None
Explanation
The instruction is used t
o interchange the value in D
1
with the value in D
2
.
D
1
: Value which is interchanged; D
2
: Value which is interchanged
It is suggested that users should use the pulse instruction XCHP.
Example
When X0 is turned from OFF to ON, the value in D20 is interchanged with the
value in D40.
X0
XCHP D20 D40
D40
D20
120
40
Before the instruction
is executed
After the instruction
is executed
40
120
D20
D40
Additional
remar
k
32-bit instruction: If
D
1
is the same as D
2
, and M1303 is ON, the high 16 bits
are interchanged with the low 16 bits.
16-bit instruction: If D
1
is the same as D
2
, and M1303 is ON, the high 8 bits are
interchanged with the low 8 bits.
When X0 is ON, and M1303 is ON, the high 8 bits in D100 are interchanged
with the high 8 bits in D101, and the low 8 bits in D100 are interchanged with
the low 8 bits in D101.
Before the instruction
is executed
After the instruction
is executed
X0
M1303
9
20
20
9
D100 Low
D100 High
8
40
40
8
D101 Low
D101 High
D100 Low
D100 High
D101 Low
D101 High
DXCHP D100 D101

Table of Contents

Other manuals for Delta DVP-20PM

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-20PM and is the answer not in the manual?

Delta DVP-20PM Specifications

General IconGeneral
BrandDelta
ModelDVP-20PM
CategoryController
LanguageEnglish

Related product manuals