EasyManua.ls Logo

Scanlab RTC 5 PC Interface Board - wait_for_mcbsp; write_8 bit_port

Scanlab RTC 5 PC Interface Board
622 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
556
innovators for industry
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 should be 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
Threshold value as a signed 32-bit value
Mode
signed 32-bit value:
= 0: waits for equality
> 0: waits for overstepping
< 0: waits for understepping
Comments For information on using the command, see "Synchronization and Online Positioning via
McBSP Signals", page 216.
The command is similar 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
will
consist of two 16-bit half-words (see page 180). Only in this case does
Axis
control
which half-word will be used for evaluation. In all other cases,
Axis
is irrelevant and
Value
will be interpreted as a signed 32-bit value.
Axis
must be either 0 or 1 (even if it is irrelevant). Otherwise, the command will be
replaced by list_nop (get_last_error return code
RTC5_PARAM_ERROR
).
If neither set_fly_x_pos, set_fly_y_pos nor set_fly_rot_pos are activated, then the
command 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.).
The command is available even if the Processing-on-the-fly option is not enabled.
The command doesn’t alter the laser control signals. If you want the laser off during
the wait, then this command must be preceded by some other command that switches
off the “laser active” laser control signals (e.g. a list_nop).
RTC
®
4
RTC
®
5 new command
References wait_for_encoder_mode
Ctrl Command write_8bit_port
Function writes a value to the 8-bit digital output port on the EXTENSION 2 connector.
Call
write_8bit_port( Value )
Parameter
Value
8-bit output value (DATA0…DATA7) as an unsigned 32-bit value
(only the least significant 8 bits are evaluated).
Comments Also see section "8-Bit Digital Output Port", page 204.
RTC
®
4
RTC
®
5 unchanged functionality
References write_8bit_port_list

Table of Contents

Related product manuals