RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
510
Normal
List Command
simulate_ext_start
Function after the specified track delay, causes a simulated external list start.
Call
simulate_ext_start( Delay, EncoderNo )
Parameters
Delay
track delay (in counter steps of the selected
EncoderNo
encoder counter) as a
signed 32-bit value; allowed range: [–2
31
…+(2
31
–1)]
EncoderNo
Number of the to-be-used encoder counter as an unsigned 32-bit value,
allowed values:
= 0: Encoder counter Encoder0
= 1: Encoder counter Encoder1
Comments • For external list starts, see page 210.
• The track delay is specified in (relative) counting units of the selected encoder counter
(the RTC
®
5’s encoder counters are triggered via an external or simulated encoder
signal, see page 215). The list start will only be triggered after the internal encoder
counter was counted up (or down) by the specified track delay. External list starts initi-
ated via simulate_ext_start or via an external start signal, but whose execution was
postponed according to the specified track delay, will be placed in a queue that accom-
modates up to 8 starts. simulate_ext_start cancels a previous queue and starts a new
one.
• A start trigger initiated via simulate_ext_start or an external start signal will only
trigger a list start if it doesn’t occur when the BUSY status is set (e.g. when outputting
a list), when the INTERNAL-BUSY status is set (e.g. during goto_xy) or/and when the
PAUSED status is set (after pause_list, stop_list or set_wait). Otherwise, bit#11 of the
get_startstop_info return value will be set. Therefore, if an unsuitable track delay is
specified (e.g.
Delay
= 0), no list start will be triggered. If simulate_ext_start is the
first command in a list, then get_startstop_info can be used for checking whether
processing of this list can finish within the defined track delay.
• Ensure that the sign of the track delay (
Delay
parameter) is appropriate for the selected
encoder’s counting direction (for external triggering, this corresponds to the work-
piece’s direction of motion).
• Track delays can also be set with set_ext_start_delay or set_ext_start_delay_list. Track
delays are deactivated via initialization (with load_program_file), via external list stops
and via stop_execution. They can also be deactivated with set_control_mode (bit#2).
•The simulate_ext_start command alone doesn’t cause an encoder reset. But if accord-
ingly set with set_control_mode (bit#9), a start trigger initiated via
simulate_ext_start, simulate_ext_start_ctrl or via an external start signal will cause an
encoder reset if the start trigger is preceded by one of the Processing-on-the-fly
commands set_fly_x, set_fly_y or set_fly_rot.
•If
EncoderNo
> 1, then simulate_ext_start will be replaced with a list_nop
(get_last_error return code
RTC5_PARAM_ERROR
).
RTC
®
4
RTC
®
5 unchanged functionality (except for the extended range of values)
In RTC
®
4 compatibility mode, the RTC
®
5 multiplies the specified value for
Delay
by 16 (the
permissible range of values is correspondingly reduced).
References simulate_ext_start_ctrl, set_ext_start_delay, set_ext_start_delay_list
set_extstartpos, set_extstartpos_list, set_control_mode, simulate_ext_stop