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-132
API
Applicable model
20PM
147
D
D
SWAP
P
P
Interchanging the high byte in a
device with the low byte in the
device
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D V Z
S
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)
SWAP
Continuity
instruction
SWAPP
Pulse
instruction
32-bit instruction (7 steps)
DSWAP
Continuity
instruction
DSWAPP
Pulse
instruction
Flag: None
Explanation
When the 16-bit instruct
ion is executed, the high eight bits in S are
interchanged with the low eight bits in S.
S: Source device
When the 32-bit instruction is executed, the high eight bits in S are
interchanged with the low eight bits in S, and the high eight bits in S+1 are
interchanged with the low eight bits in S+1.
Generally, the pulse instructions SWAPP and DSWAPP are used.
Example 1
When X0 is ON, the high byte in D0 is interchanged with the low byte in D0.
D0
SWAPP
X0
High eight bits
D0
Low eight bits
Example 2
When X0 is ON, the high eight bits in D11 are interchanged with the low eight
bits in D11, and the high eight bits in D10 are interchanged with the low eight
bits in D10.
D10DSWAP
X0
Low eight bits
D11 D10
High eight bits
High eight bits
Low eight bits

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals