RTC
®
5 PC Interface Board
Rev. 1.9 e
9 Programming Peripheral Interfaces
206
innovators for industry
Set-Position Movements
Set-position movements can be initiated via the
commands
or the corre-
sponding list commands.
Specify absolute set-position values for _abs
commands and relative values for _rel commands
(always as CLOCK pulse units). _no commands only
produce set-position movements for
one
stepper
motor output, the other set-position commands do
so for both stepper motor outputs simultaneously.
, you can interrupt further
execution of a list until a started stepper motor
movement is completed.
The list commands for set-position movements are
short list commands. Therefore, a stepper motor
movement can also execute synchronously with a
galvanometer scanner movement.
If the limit switch activates during a set-position
movement, then the movement will immediately
abort and can’t be resumed as a normal set-position
movement. You’ll either have to request a reference
motion or mechanically deactivate the limit switch. If
a stepper motor movement aborts once (e.g. also via
Period
= 0), then the existing set position gets over-
written by the current position value. Therefore the
stepper motor movement to the original set position
can’t be resumed by eliminating the cause of inter-
ruption (limit switch or CLOCK pulse period = 0).
Instead, it needs to be newly retriggered.
Querying Signals and Status Values
The current status of stepper motor signals (ENABLE,
DIRECTION, CLOCK and SWITCH), the currently
defined CLOCK pulse period and the current values of
internal position variables for both stepper motors
can be queried via
The
Busy and Init statuses of both stepper motors. The
Init status is set during reference movements and the
Busy status during set-position movements.
As long as the Init status is set, no set-position
commands (
,
permitted; control commands (except
)
return value of
RTC5_BUSY
and list commands wait until the Init
status gets reset. In some circumstances, the list itself
or the movement process must be aborted.
Terminating Infinite Movements
Depending on your chosen parameters, sometimes
very long or even infinite stepper motor movements
can be initiated via
, e.g. if
no limit switch exists in the specified direction or if a
very large set-position value is combined with a long
pulse period.
• If an infinite movement is started via a control
command (e.g.
), then this control
command will complete at the latest when the
positive time (in seconds) supplied for the
WaitTime
parameter has expired. However, the
stepper motor’s infinite movement itself will
continue and you might need to separately abort
it by setting the CLOCK pulse period (e.g. via the
control command
(emergency stop) or by defining an appropriate
new set position.
• If you start an infinite movement via a list
command (e.g.
) and wait for its
completion via
, then further list
execution will be blocked as long as the infinite
movement isn’t aborted via a control command
such as
with
Period
= 0 or an
appropriate new set position. You could also
abort the list via
or an external
list stop. But here, too, the stepper motor’s
infinite movement needs to be separately
stopped with
Period
= 0).