Example of Using XtraDrive-DP
A
PPENDIX
E
Last printed: 6/1/03 4:26 PM
AppEExample_of_UsingXD.doc
Last saved: 6/1/03 3:46 PM
81
E
Ex
am
p
le of
U
sin
g X
tra
D
riv
e-
D
P
EE
Ex
am
p
le of
U
sin
g X
tra
D
riv
e-
D
P
Application Execution During Data
Exchange
The master must send the following commands in Sequential
Mode:
CONTROL ON
MOVE_D 3470 -1
SET_OUT 1 ON
Three messages will be transferred to XtraDrive-DP during data exchange, as
follows:
✦
Message 1 — For the CONTROL ON command:
Byte
#
0-1
2
3 4-7 8-11 12-15 16-19 20-23
Value
0x0001 0x45 0x03 0x00000001 0x00000000 0x00000000 0x00000000 0x00000000
Explanation
ID
OP_code
Mode
Command
Pa
ra
me
te
r 1
Command
Pa
ra
me
te
r 2
Command
Pa
ra
me
te
r 3
Command
Pa
ra
me
te
r 4
Command
Pa
ra
me
te
r 5
✦
Message 2 — For the MOVE_D command:
Byte # 0-1
2
3
4-7
8-11
12-15
16-19
20-23
Value
0x0002 0x81 0x03 0x00000E10 0xFFFFFFFF 0x00000000 0x00000000 0x00000000
Explanation
ID
OP_code
Mode
Command
Pa
ra
me
te
r 1
Command
Pa
ra
me
te
r 2
Command
Pa
ra
me
te
r 3
Command
Pa
ra
me
te
r 4
Command
Pa
ra
me
te
r 5
AUDIN - 7 bis rue de Tinqueux - 51100 Reims - France
Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20
Web : http: www.audin.fr - Email : [email protected]