Parker Hannifin
Using Drive Talk
The most sensible way to enable Drive Talk is through a program. If
you have a startup program (see the
PBOOT
command) for your
ACR controller, consider including the Drive Talk code in it.
NOTE:
Be sure all Aries drives are connected to the ACR controller
before power up (due to the Aries communication auto-
detect—see the section titled
Communication
, above).
To enable Drive Talk, do the following:
1.
Send the
OPEN DTALK
command as follows:
OPEN DTALK “COM2:9600,N,8,1” AS #1
2.
Set the “Communication Device” parameter (in “Drive Talk
Parameters”) for each axis to which an Aries drive is
connected.
3.
Set the “Drive Type” parameter (in “Drive Talk Parameters”) to
zero (Aries) for each axis to which an Aries drive is connected.
4.
Clear the “Stream Drive Lost”, “Stream Drive Timeout”, and
“Stream Address Error” bits for COM2 (bits 1112, 11123, and
11124 in “Stream Flags for Drive Talk COM2”).
5.
Set the “Auto Address Request” bit (in “Drive Talk Drive-Control
Flags”) for each axis to which an Aries drive is connected.
Once set up, you can do the following You can then get and send
configuration data, set the error log for the drive, and get drive
status data.
Example
The following example demonstrates the set up for two axes with
Aries drives:
OPEN DTALK “COM2:9600,N,8,1” AS #1 REM OPEN PORT
P28672=1 : REM SET DEVICE NUMBER FOR DRIVE 1
P28928=1 : REM SET DEVICE NUMBER FOR DRIVE 2
P28673=0 : REM SET DRIVE TALK AXIS1 TO ARIES DRIVES
P28929=0 : REM SET DRIVE TALK AXIS2 TO ARIES DRIVES
CLR 11122 : REM RESET TIMEOUT
CLR 11123 : REM RESET TIMEOUT
CLR 11124 : REM RESET TIMEOUT
SET 10505 : REM GET TPE AXIS0 USING GET DRIVE DATA
SET 10500 : REM UPDATE DATA AXIS0 USING
REM GET_DRIVE_DATA_REQUEST
SET 10537 : REM GET TPE AXIS1 USING GET DRIVE DATA
SET 10532 : REM UPDATE DATA AXIS1 USING
REM GET_DRIVE_DATA_REQUEST
?P28693 : REM SHOW TPE AXIS0 ON TERMINAL
?P28949 : REM SHOW TPE AXIS1 ON TERMINAL
SET 10500 : REM GET TPE AXIS1 USING GET DRIVE DATA
SET 10532 : REM UPDATE DATA AXIS1 USING
REM GET_DRIVE_DATA_REQUEST
?P28693 : REM SHOW TPE AXIS0 ON TERMINAL
?P28949 : REM SHOW TPE AXIS1 ON TERMINAL
Closing Drive Talk
►
To close a Drive Talk session, use the
CLOSE
command.
144 Programmer’s Guide
Содержание ACR Series
Страница 1: ......
Страница 65: ...Parker Hannifin Making Motion 65...
Страница 89: ...Parker Hannifin Servo Loop Fundamentals 89 Figure 17 Following Error...