RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
782
Normal List
Command
simulate_ext_start
Function After the specified track delay, causes a simulated External 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 value 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 Starts, see Section ”External Start”, page 290.
• The track delay is specified in relative counting units of the selected encoder counter
(the RTC6 encoder counters are triggered by an external or simulated encoder signal,
see Chapter 9.3.3 ”Synchronization by Encoder Signals”, page 298). The start trigger
for the start occurs only after the internal encoder counter has reached the specified
track delay. External Starts initiated by simulate_ext_start or by an external start
signal, but whose execution has been postponed according to the specified track delay,
are placed in a queue that accommodates up to 8 starts. simulate_ext_start cancels a
previous queue and starts a new one.
• A start trigger initiated by simulate_ext_start or an external start signal only triggers
a start if it does not occur when the BUSY list execution status is set (for example,
when outputting a list), when the INTERNAL-BUSY list execution status is set (for
example, during goto_xy) and/or when the PAUSED list execution status is set (after
pause_list, stop_list or set_wait). Otherwise, Bit #11 of the get_startstop_info
return value is set. Therefore, if an unsuitable track delay is specified (for example,
Delay =
0), no start is 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
workpiece’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 by initialization (with load_program_file), by external
stops and by stop_execution. They can also be deactivated by
set_
control_mode( Bit
#2 ).
• The simulate_ext_start command alone does not cause an encoder reset. But if
accordingly set with set_control_mode( Bit #9 ), a start trigger initiated by
simulate_ext_start, simulate_ext_start_ctrl or by an external start signal causes an
encoder reset if the start trigger is preceded by one of the Processing-on-the-fly
commands set_fly_x, set_fly_y, set_fly_2d, set_fly_2d or set_fly_rot.
• If
EncoderNo
> 1, then simulate_ext_start is replaced with a list_nop (get_last_error
return code
RTC6_PARAM_ERROR
).