![Galil Motion Control DMC-14 5 Series Скачать руководство пользователя страница 89](http://html1.mh-extra.com/html/galil-motion-control/dmc-14-5-series/dmc-14-5-series_manual_3258007089.webp)
Teach (Record and Play-Back)
Several applications require teaching the machine a motion trajectory. Teaching can be accomplished
using the DMC-14XX automatic array capture feature to capture position data. The captured data may
then be played back in the contour mode. The following array commands are used:
DM C[n]
Dimension array
RA C[]
Specify array for automatic record (up to 4)
RD _TPX
Specify data for capturing (such as _TPX or _TPY)
RC n,m
Specify capture time interval where n is 2n msec, m is number of records to be
captured
RC? or _RC
Returns a 1 if recording
Record and Playback Example:
Instruction
Interpretation
#RECORD Begin
Program
DM XPOS[501]
Dimension array with 501 elements
RA XPOS[]
Specify automatic record
RD _TPX
Specify X position to be captured
MOX
Turn X motor off
RC2
Begin recording; 4 msec interval
#A;JP#A,_RC=1
Continue until done recording
#COMPUTE Compute
DX
DM DX[500]
Dimension Array for DX
C=0 Initialize
counter
#L Label
D=C+1
DELTA=XPOS[D]-XPOS[C] Compute the difference
DX[C]=DELTA
Store difference in array
C=C+1 Increment
index
JP #L,C<500
Repeat until done
#PLAYBCK Begin
Playback
CMX
Specify contour mode
DT2
Specify time increment
I=0
Initialize array counter
#B Loop
counter
CD XPOS[I];WC
Specify contour data I=I+1 Increment array counter JP #B,I<500 Loop until
done
DT 0;CD0
End contour mode
EN End
program
For additional information about automatic array capture, see Chapter 7, Arrays.
Stepper Motor Operation
When configured for stepper motor operation, several commands are interpreted differently than from
servo mode. The following describes operation with stepper motors.
80
i
Chapter 6 Programming Motion
DMC-14x5/6
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com