50
4 Functional Description
4.6 Sequence programs
2.) Sequence controlled via digital input (without RS232)
After power-on, the drive moves to the limit switch and then the Hall index.
With a positive edge at the fault pin digital input, the drive moves forward 5000 increments.
If the level is still high after 5000 increments, the drive moves to position 0.
Configuration
SOR0
… Digital velocity presetting via RS232
LR0
… Set current position as target position
M
… Switch to position control (Motion 0)
REFIN
… Reprogram error output to input
SHA1
… Homing Sequence with Notify at Input 1 (AnIn)
SHN1
SHL1
HOSP-200
… Homing velocity 200 rpm backwards
HP1
… Rising edge at limit switch (Input 1) effective
POHOSEQ1
… Execute Homing Sequence after power-on
ENPROG
… Start motion program after power-on
ANSW0
… No asynchronous responses
EEPSAV
… Save configuration
Program
GOHOSEQ
… Homing to reference switch
GOHIX
… Subsequent homing to Hall sensor zero point (Hall index)
A1
HP3
… High level at input 2 (Fault pin input) and input 1 (AnIn) effective
A2
JPF2
… Endless loop until low level at input 2
HP1
… Low level effective at input 2 (Fault pin input),
input 1 (AnIn) continued high level
A3
JPF3
… Endless loop until high level at input 2 (evaluation of positive edge)
LR5000
NP
... Notify at target position (sequence stops until target position is reached)
M
… Move forward 5000 increments
DELAY50
… Wait 0.5 seconds until input 2 is queried
JPF1
… Jump back to start in case of low level at input 2
LA0
NP
M
… Move to position 0, if high level at input 2
JMP1
... Jump to start
With this program, an RS232 interface is no longer required for operation (stand-alone application).
The desired sequence is started with short pulses at the input (e.g. key) and the return is triggered
with a continuous signal (e.g. switch).
NOTE