49
Program:
A1
JMP1
... Endless loop
A2
… Entry point for homing sequence (JMP2)
GOHOSEQ
… Homing to reference switch
GOHIX
… Subsequent homing to Hall sensor zero point (Hall index)
JMP1
... Return to endless loop
A3
… Entry point for routine 1 (JMP3)
LA0
… Set target position to 0
NP
… Notify at target position (sequence stops until target position is reached)
M
… Start positioning
JMP1
... Return to endless loop
A4
… Entry point for routine 2 (JMP4)
LPC500
… Set current limitation values to 500 mA (continuous current
peak current)
LA1000000
NP
TIMEOUT500
… Continue sequence after 5 sec., even if position has not yet been attained
M
… Start positioning
V0
… Stop motor
LR0
M
… Switch back to positioning mode
JMP1
... Return to endless loop
A5
… Entry point for routine 3 (JMP5)
SETA1000
… Predefine variable A
A6
… Entry point for loop
LR30000
NP
M
DELAY100
LR-
15000
NP
M
DELAY50
DAJNZ6
… Repeat loop 1000 times
JMP1
... Return to endless loop
The individual routines are called from the serial interface by sending the commands “JMP2”,
“JMP3”, etc..
If the sequence is to wait until the end of a motion command (M, GOHOSEQ, etc.), a Notify (NP or
SHN1 in the Homing Sequence configuration) must be set first of all.
4 Functional Description
4.6 Sequence programs
NOTE