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
.
• The command is similar to
, but the McBSP interface is
queried.
• If
and
simultaneously
activated, then
Value
will
consist of two 16-bit half-words (see
). 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
return code
RTC5_PARAM_ERROR
).
• If neither
nor
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,
, 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
).
RTC
®
4
RTC
®
5 new command
References
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