C h a p t e r 5 A p p l i e d I n s t r u c t i o n s
API
Instruction code
Operand
Function
152
D
SWAP
P
S
Interchanging the high
byte in a device with
the low byte in the
device
Device
X
Y
M
S
K
16#
F
KnM KnS
D
W
T
C
V
Z
S
Pulse instruction 16-bit instruction (3 steps) 32-bit instruction (3 steps)
E xp la nat io n
When the 16-bit instruction 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 pulses instructions SWAPP and DSWAPP are used.
E xamp le 1
When X0.0 is ON, the high byte in D0 is interchanged with the low byte
in D0.
D0
SWAPP
X0.0
H igh eight bits
D 0
Low eight bits
E xamp le 2
When X0.0 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.
D10
DSWAP
X0.0
Low eight bits
D 11
D 10
H igh eight bits
H igh eight bits Low eight bits
5 - 11 3
Summary of Contents for AH500
Page 9: ...viii...
Page 53: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Yaskawa servo drive 2 32...
Page 55: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Fuji servo drive 2 34...
Page 115: ...AH500 Motion Control Module Manual 4 16 MEMO...
Page 375: ...AH500 Motion Control Module Manual 5 260 MEMO...
Page 383: ...AH500 Motion Control Module Manual 6 8 MEMO...
Page 419: ...AH500 Motion Control Module Manual 7 36 MEMO...
Page 436: ...Chapter 8 Electronic Cam 8 17...
Page 483: ...AH500 Motion Control Module Manual 10 8 MEMO...
Page 505: ...AH500 Motion Control Module Manual 12 8 MEMO...
Page 515: ...AH500 Motion Control Module Manual 13 10 MEMO...
Page 544: ...Appendix A Error Code Table Table of Contents A 1 Error Code Table A 2 A 1...