Delta AH500 Programming Manual page 296

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
0308
D
SWAP
Device X
Y
M
S
Symbol:
Explanation:
1.
When the 16-bit instruction is executed, the data in the low byte in S is exchanged with the
data in the high byte in S.
2.
When the 32-bit instruction is executed, the data in the low byte of the high word in S is
exchanged with the data in the high byte of the high word in S, and the data in the low byte of
the low word in S is exchanged 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.
Example 1:
When X0.0 is ON, the data in the low byte in D0 is exchanged with the data in the high byte in D0.
Example 2:
When X0.0 is ON, the data in the low byte in D11 is exchanged with the data in the high byte in D11,
and the data in the low byte in D10 is exchanged with the data in the high byte in D10.
6 - 1 2 8
Operand
S
P
S
T
C
HC
D
Pulse instruction 16-bit instruction (3 steps) 32-bit instruction (3 steps)
AH500
S : Data source
Exchange the high byte with the
low byte
L
SM SR
E
PR
AH500
Word/Double word
D0
High byte
Low byte
D11
Low byte
High byte
Function
K
16# "$"
DF
AH500
D10
High byte
Low byte

Advertisement

Table of Contents
loading

Table of Contents