RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
370
innovators for industry
Ctrl Command move_to
Function
moves the focusing optic of a vario
SCAN
FLEX
Z-axis to the specified position.
Call
move_to( Pos )
Parameter
Pos
position value as an unsigned 32-bit value
Comments
• It’s only practical to use this command if a vario
SCAN
FLEX
Z-Axis is connected to an
RTC
®
Step Motor Extension board installed at the RTC
®
5’s EXTENSION1 header (it isn’t
possible to determine automatically or via commands whether the
RTC
®
Step Motor Extension board and vario
SCAN
FLEX
are attached to the RTC
®
5).
• Rough position values for several working distances are listed in the vario
SCAN
FLEX
manual. The vario
SCAN
FLEX
manual also specifies the maximum allowed range for the
position value.
• The first time the
move_to
command is called after
and/or with
Pos
= 0, the vario
SCAN
FLEX
’s step motor will execute a reference movement to find its
reference position. In doing so, the vario
SCAN
FLEX
seeks the left end stop and positions
the step motor directly nearby. This position then serves as the null point. If an error
occurs during the reference motion, then the
error variable will get set
to
RTC5_PARAM_ERROR
and positioning to
Pos
> 0 won’t be performed.
• For
Pos
> 0, the vario
SCAN
FLEX
moves to the specified position. If an error occurs (e.g.
because the end stop is reached), then the
error variable will get set to
RTC5_PARAM_ERROR
. In this case, you should check the vario
SCAN
FLEX
(connections, end
stops, stepper motor, etc.) for proper functioning and call
move_to
(0) for another
reference movement, followed by another call of the normal command
move_to
(
Pos
).
• If the RTC
®
Step Motor Extension board is attached to the RTC
®
5’s EXTENSION1
header, then only a subset of the respective signals will be usable:
– Bits #12–15 of the 16-bit digital output are used for controlling the vario
SCAN
FLEX
.
To ensure that these four bits are set only via the
move_to
command (and
not
mis-
takenly via I/O commands, see below), they will be reserved exclusively for
vario
SCAN
FLEX
control commencing with the first
move_to
command. This exclusiv-
ity remains in effect until the next
command. Before the first
move_to
command executes, the four bits are still available but won’t influence
vario
SCAN
FLEX
positioning. They shouldn’t be used as long as the
RTC
®
Step Motor Extension board or a vario
SCAN
FLEX
are attached.
– Even when using the
move_to
command, you can continue altering the lower (but
not the upper) 8 bits of the16-bit digital output (without LATCH synchronization) for
other purposes via the commands
,
.
– Also available (via the RTC
®
Step Motor Extension board) are the lower (but not the
upper) 8 bits of the 16-bit digital input (without SYNC synchronization) and the
BUSY-OUT signal.
• For further information, see the manuals for the RTC
®
Step Motor Extension board and
the vario
SCAN
FLEX
.
RTC
®
4
RTC
®
5
• In contrast to the RTC
®
4, no separate
is required to reserve bits of
the 16-bit digital output for vario
SCAN
FLEX
control. Explicit releasing isn’t possible.
Version info
• Available beginning with version DLL 524, OUT 526