RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
638
Ctrl Command set_ext_start_delay
Function Sets a track delay for External Starts, so that the lists are started with a delay relative to
the triggering input signal or simulate_ext_start or simulate_ext_start_ctrl command.
Call
set_ext_start_delay( Delay, EncoderNo )
Parameters
Delay
Track delay (counter steps of the selected encoder counter
EncoderNo
).
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’s encoder counter is triggered by an external or simulated encoder signal,
see Chapter 9.3.3 ”Synchronization by Encoder Signals”, page 298).
• 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 and is always positive with simulated encoders).
• For
Delay
= 0, the track delay is deactivated.
• If a track delay is specified, that causes a start trigger (initiated by simulate_ext_start
or an external start signal) to occur when the BUSY list execution status or
INTERNAL-BUSY list execution status is set (for example, when outputting a list or
during goto_xy), then no starts are get triggered by this start trigger (in this case,
Bit #11 of the get_startstop_info return value is set).
• Track delays can also be set with simulate_ext_start. Track delays are deactivated by
initialization (with load_program_file), by an External Stop and by stop_execution.
They can also be deactivated with set_control_mode/set_control_mode_list (Bit #2).
• set_ext_start_delay cancels already externally triggered starts that have not yet
executed and are still being held in a queue that accommodates up to 8 starts.
• If
EncoderNo
> 1, then set_ext_start_delay is ignored (get_last_error return code
RTC6_PARAM_ERROR
).