Download 5300-5600_BASIC_Reference_en-US_RevA

Transcript
GO.HOME (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 functions.
Program parameter changes during a move using UPD.MOVE.
Program line
5
‘Set run speed to 1000 RPM
10
RUN.SPEED = 1000
15
‘Set
acceleration
RPM/second.
20
ACCEL.RATE = 1000
25
‘Go to the electrical home position.
30
GO.HOME
35
‘Hold program execution at line 40 until
move completes.
40
WHILE MOVING : WEND
StepperBASIC Reference Manual
rate
to
1,000
3 - 49