RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
847
Normal List
Command
wait_for_mcbsp
Function Waits until the input value at the McBSP interface has reached, overstepped or
understepped the specified value for the first time.
Call
wait_for_mcbsp( Axis, Value, Mode )
Parameters
Axis
Selects which half-word of the input value is used for evaluation (see below).
As an unsigned 32-bit value.
Allowed values:
= 0: lower half-word (x axis, galvanometer scanner 2)
= 1: upper half-word (y axis, galvanometer scanner 1)
Value
Limit value.
As a signed 32-bit value.
Mode
Mode.
As a signed 32-bit value.
= 0: Waits for equality.
> 0: Waits for overstepping.
< 0: Waits for understepping.
Comments • For usage of wait_for_mcbsp, see Chapter 9.3.4 ”Synchronization and
Online Positioning by McBSP Signals”, page 300.
• wait_for_mcbsp is comparable to wait_for_encoder_mode, but the McBSP interface
is queried.
• If set_fly_x_pos and set_fly_y_pos are simultaneously activated, then
Value
consists of two 16-bit half-words, see Section ”Correction via McBSP Interface”,
page 245. Only in this case does
Axis
control which half-word is used for evaluation.
In all other cases,
Axis
is irrelevant and
Value
is interpreted as a signed 32-bit value.
•
Axis
must be either 0 or 1 (even if it is irrelevant). Otherwise, wait_for_mcbsp is
replaced by list_nop (get_last_error return code
RTC6_PARAM_ERROR
).
• If neither set_fly_x_pos, set_fly_y_pos nor set_fly_rot_pos are activated, then
wait_for_mcbsp merely creates a waiting period (without galvanometer scanner
motion) that allows implementation of an externally triggered synchronization (as an
alternative to External Starts, set_wait or if_cond, etc.).
• wait_for_mcbsp is available even if the Option Processing-on-the-fly is not enabled.
• wait_for_m
cbsp does not alter the La
ser Control Signals. If you want the laser off
during the wait, then wait_for_mcbsp must be preceded by some other command
that switches off the Signals for “Laser Active” Operation (for example, a list_nop).
RTC4RTC6 New command.
RTC5RTC6 Unchanged functionality.
Version info Available as of DLL 600, OUT 600, RBF 600.
References wait_for_encoder_mode