RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
370
Ctrl Command move_to
Function moves the focusing optic of a varioSCAN
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 varioSCAN
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 varioSCAN
FLEX
are attached to the RTC
®
5).
• Rough position values for several working distances are listed in the varioSCAN
FLEX
manual. The varioSCAN
FLEX
manual also specifies the maximum allowed range for the
position value.
• The first time the move_to command is called after load_program_file and/or with
Pos
=0, the varioSCAN
FLEX
’s step motor will execute a reference movement to find its
reference position. In doing so, the varioSCAN
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 get_last_error error variable will get set
to
RTC5_PARAM_ERROR
and positioning to
Pos
> 0 won’t be performed.
•For
Pos
> 0, the varioSCAN
FLEX
moves to the specified position. If an error occurs (e.g.
because the end stop is reached), then the get_last_error error variable will get set to
RTC5_PARAM_ERROR
. In this case, you should check the varioSCAN
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 varioSCAN
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
varioSCAN
FLEX
control commencing with the first move_to command. This exclusiv-
ity remains in effect until the next load_program_file command. Before the first
move_to command executes, the four bits are still available but won’t influence
varioSCAN
FLEX
positioning. They shouldn’t be used as long as the
RTC
®
Step Motor Extension board or a varioSCAN
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 write_io_port_list, write_io_port,
write_io_port_mask_list, write_io_port_mask, set_io_cond_list,
clear_io_cond_list or stop_execution.
– 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 varioSCAN
FLEX
.
RTC
®
4
RTC
®
5 • In contrast to the RTC
®
4, no separate set_control_mode is required to reserve bits of
the 16-bit digital output for varioSCAN
FLEX
control. Explicit releasing isn’t possible.
Version info • Available beginning with version DLL 524, OUT 526