56
Appendix
Program Sequence:
Calling up Various Positioning Routines
at the RS-232
This program makes it possible to call up various
programs at the RS-232 port.
■
Homing: The motor first runs to a limiter
switch then to the Hall index zero. This type
of homing sequence is repeatable with a high
degree of positioning accuracy.
■
Sequence 1: Runs to 0 position and stops.
■
Sequence 2: The motor attempts to reach a
position with very little current limiting. It can
be that the motor doesn’t reach the given
position due to some blocking obstacle. After
5 seconds the motor should be stopped.
(Further evaluation then takes place in the
external computer)
■
Sequence 3: The motor runs the following
sequence 1000 times: 10 revolutions forward,
1 second pause, 5 revolutions backward, than
0.5 second pause.
Configuration:
SOR0
➔
Switches to receive command
speed at the RS-232
LR0
➔
Motion stop
M
➔
Switches to position control
(no motion)
HA1
HL1
➔
Analog input is limiter switch
HN1
CAHOSEQ
➔
Saves homing sequence in the
intermediate memory
HOSP200
➔
Loads homing speed
HP1
➔
Rising edge is trigger edge
ENPROG
➔
Run program immediately
following power on
ANSW0
➔
No asynchronus answering
EEPSAV
➔
Save configuration
Program:
A1
JMP1
➔
Continuous loop
A2
➔
Jump-in address for the homing
sequence
GOHOSEQ
➔
Run homing sequence
GOHIX
➔
Run Hall index
homing sequence
JMP1
➔
Jump to continuous loop
A3
➔
Jump-in address for sequence 1
LA0
➔
Sets command position to 0
NP
➔
Notify when command position
is achieved... Sequence suspend-
ed until the command position
has been reached.
M
➔
Start positioning
JMP1
➔
Jump to Continuous loop