Download ManualV3 - Electromate

Transcript
Application Example: Teach Mode
Objective: Record the position of a motor over 4 seconds in
16 ms intervals, and play back.
Method:
Step 1 - Record positions and store in array
Step 2 - Run in Contour Mode from array
Instruction
Interpretation
#RECORD
RA POS[251]
RD_TPX
RC 4,251
EN
#RUN
CMX
DT4
C=0
#LRUN
D=C+1
DX=POS[D]-POS[C]
CD DX
WC
C=C+1
JP #LRUN,C<250
DT0
CD0
EN
Label program
Select the arrays
Select data
Record 251 times at 16=24 ms intervals
End program
To run the motor
Contour Mode
Time interval
Initialize counter
Label subroutine
Define variable
Compute increment
Contour data
Wait for completion
Increment counter
Repeat 250 times
Stop Contour Mode
Contour data
End program
139
ELECTROMATE INDUSTRIAL SALES LTD.
TOLL FREE PHONE (877) SERVO98 • TOLL FREE FAX (877) SERVO99
[email protected] • WWW.ELECTROMATE.COM