Delta AS Series Programming Manual page 419

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
API
Instruction code
0308
D
Device
X
S
Data
type
S
Symbol
Explanation
1.
The 16-bit instruction exchanges the data in the low byte in S with the data in the high byte in S.
_6
2.
The 32-bit instruction exchanges the data in the low byte of the high word in S with the data in the high byte of the
high word in S, and exchanges the data in the low byte of the low word in S with the data in the high byte of the low
word in S.
3.
Only the 32-bit instructions can use the 32-bit counter, but not the device E.
Example 1
When X0.0 is ON, the instruction exchanges the data in the low byte in D0 with the data in the high byte in D0.
6 - 1 4 0
SWAP
P
Y
M
S
T
C
Operand
S
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
: Data source
S
D0
High byte
Function
Exchanging the high byte with the low
byte
SR
E
K
16#
32-bit instruction
AS
AS
Low byte
"$"
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents