Delta Electronics AH500 Manual page 148

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
17
D
XCH
Device
X
Y
M
D
1
D
2
 D
 The instruction is used to interchange the value in D
E xp la nat io n
 It is suggested that users should use the pulse instruction XCHP.
 When X0.0 is turned from OFF to ON, the value in D20 is interchanged
E xa mple
 16-bit instruction: If D is the same as D , and M1303 is ON, the high 8
Additio nal
 32-bit instruction: If D
re mark
 When X0.0 is ON, and M1303 is ON, the h
5 - 3 3
P
S
K
16#
F
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (5 steps)
: Value which is interchanged; D
1
D
.
2
with the value in D40.
X0.0
XC HP
D 20
1
bits are interchanged with the low 8 bits.
1
bits are interchanged with the low 16 bits.
interchanged with the high 8 bits in D101, and the low 8 bits in D1
interchanged with the low 8 bits in D101.
X0.0
M1 30 3
D XCH P
D 10 0
Ch ap te r 5 Ap plie d Instruc tions
Operand
D
, D
1
2
KnM KnS
D
W
: Value which is interchanged
2
Before the instruction
is executed
D 40
D 20 1 20
4 0
D 40
2
is the same as D
, and M1303 i
2
igh 8 bits in D100 are
Before the instruction
is executed
D 10 0 L ow
9
2 0
D 10 0 H ig h
D 10 1
D 10 1 L ow
8
D 10 1 H ig h
4 0
Function
Interchanging values
T
C
V
Z
with the value in
1
After the instruction
is executed
D 20
4 0
1 20
D 40
s ON, the high 16
00 are
After the instruction
is executed
D 10 0 L ow
8
4 0
D 10 0 H ig h
9
D 10 1 L ow
D 10 1 H ig h
2 0

Advertisement

Table of Contents
loading

Table of Contents