Working with XtraDrive-DP
C
HAPTER
3
Last printed: 6/1/03 4:21 PM
Ch3WorkingWith.doc
Last saved: 6/1/03 4:16 PM
33
3
Workin
g w
ith
X
traD
rive-
D
P
33
Workin
g w
ith
X
traD
rive-
D
P
Sending Commands
Perform the following steps in order to send commands during data
exchange:
1
Select the command module (see
Setting Up XtraDrive-DP
,
page 25).
2
During data exchange, the master sends the command to the
XtraDrive-DP.
The command message contains the following fields:
✦
ID - A numeric identifier that is used to associate between the
command and the relevant command response or diagnostic.
✦
Op_code - Shown in the table on page 34.
✦
Mode:
❖
Immediate
(Mode 2): Use this mode in order to issue a
single command for immediate execution (for example,
changing the state of an output while a program is running,
or lowering the gain while the motor is enabled).
❖
Program download
(Mode 4): Use this mode when
downloading a program to the XtraDrive-DP.
❖
Sequential
(Mode 3): Use this mode when the master sends
a command stream that should be executed as a program
(for example, move the motor and wait for the motion to
complete, wait for input, or execute another move).
✦
Command Parameter 1 — Command parameter 5 - Command
arguments.
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]