Download 5300-5600_BASIC_Reference_en-US_RevA

Transcript
GO.ABS (continued)
Programming
guidelines
Program
segment
Rev F
•
Set appropriate RUN.SPEED, MIN.SPEED, ACCEL.RATE,
DECEL.RATE, and TARGET.POS variables.
•
Enable CONTINUOUS.MOTION for multiple motion
instructions.
•
Program parameter changes during a move using UPD.MOVE.
Program line
5
‘Set run speed to 1,000 RPM.
10
RUN.SPEED = 1000
15
‘Set acceleration
second.
20
ACCEL.RATE = 1000
25
‘Set
deceleration
RPM/second.
30
DECEL.RATE = 100000
35
‘Set target position to 10000 steps from
the electrical home position.
40
TARGET.POS = 10000
45
‘Move motor to target position.
50
GO.ABS
55
‘Hold execution of program
until move is completed.
60
WHILE MOVING : WEND
rate
StepperBASIC Reference Manual
to
rate
1,000
to
to
RPM
/
100,000
line
60
3 - 47