RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
251
Comments General comments:
•The control_command command can only be used in conjunction with an iDRIVE
®
scan
system (intelliSCAN
®
, intelliSCAN
de
®
, intelliDRILL
®
, intellicube
®
, intelliWELD
®
, varioSCAN
de
)
with XY2-100 interface and XY2-100 converter. Conventional scan systems (without iDRIVE
®
technology) will ignore the command.
• With invalid values of
Head
and/or
Axis
, the command is not executed (get_last_error return
code:
RTC5_PARAM_ERROR
). This also applies for
Head
= 2 if the “second scan head control”
option has not been enabled.
• Command code
Data
is transmitted to the scan system instead of the usual position data for
Head
and
Axis
. Therefore, the corresponding galvanometer scanner microstep is omitted, if the
command is called during execution of a list.
• Some parameters of control_command are not usable with older firmware versions of “intelli”
scan systems. These parameters are specifically noted. All other parameters are usable with any
firmware version.
• Under some circumstances, control_command might be unavailable at the primary scan head
connector if speed-dependent laser control has been activated via set_auto_laser_control
(
Mode
=2).
Comments regarding the commands SetMode (Code
H
= 05
H
), SetControlDefinitionMode
(Code
H
=0E
H
), SetEchoMode (Code
H
= 21
H
) and RestoreTransmissionMode (
Data
= 1700
H
):
• The data type selected via the control_command command (Code
H
= 05
H
, 0E
H
or 21
H
or
Data
= 1700
H
) will be transmitted until another data type is selected.
• Data returned to the RTC
®
5 can be queried via the commands get_value, get_values,
set_trigger/set_trigger4 and get_waveform. Switching to a different data source causes a
short (serial transmission-related) delay before transmission of the first data. After switching
data sources, therefore, a delay time of up to 60 µs can occur before reading the data. As of
DLL version 520, control_command always automatically inserts a waiting time of 60 µs after
the data source is switched (so that the previously mentioned commands will now always
return correct values).
• All data returned from the scan system are transmitted to the RTC
®
5 as signed 20-bit values.
This applies even if the DLL is set to RTC
®
4 compatibility mode and even for scan systems
without SL2-100 interface, controlled via an XY2-100 converter. Queried data returned via the
commands get_value, get_values or get_waveform are nevertheless generally transferred to
the PC as 32-bit signed values (for data evaluation, see comments for get_value).
• For scan systems with integrated SL2-100 interface, get_head_status queries the XY2-100
status word regardless of settings made via control_command (Code
H
= 05
H
, 0E
H
or 21
H
or
Data
= 1700
H
). It will be returned in addition to the selected data. In contrast, if iDRIVE
®
scan
systems (without an integrated SL2-100 interface) are controlled via an XY2-100 converter,
get_head_status will return the XY2-100 status word only if this signal was previously selected
to be returned from the scan system via control_command (also see page 153).
• After a reset or power-up of the scan system, it can take around 5 seconds for data to be
returned from the scan system (also see get_value). After a reset or power-up of the scan
system, always the XY2-100 status word is returned.
• control_command (
Data
= 1700
H
) has no effect if a power-up or reset was executed after the
most recent execution of the StoreTransmissionMode command (
Data
= 17FF
H
).
Ctrl Command control_command