EasyManua.ls Logo

Scanlab RTC6 PCIe Board - Page 845

Scanlab RTC6 PCIe Board
1004 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...
RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
845
innovators for industry
Normal List
Command
wait_for_encoder_mode
Function Waits until the selected encoder counter has overstepped or understepped the specified
count for the first time.
Call
wait_for_encoder_mode( Value, EncoderNo, Mode )
Parameters
Value
Count.
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”.
Mode
Mode.
As a signed 32-bit value.
= 0: Waits for understepping/overstepping (position dependent).
> 0: Waits for overstepping (position independent).
< 0: Waits for understepping (position independent).
Comments For usage of wait_for_encoder_mode, see Chapter 9.3.3 ”Synchronization by
Encoder Signals”, page 298.
If
Mode =
0, ensure that the size and sign of the parameter
Value
is appropriate for the
counting direction of the selected encoder (for external triggering, this corresponds to
the workpiece’s direction of motion). If
Value
> 0, wait_for_encoder_mode waits for
overstepping, otherwise for understepping. If
Value
is positive and already less than
the current encoder count, then wait_for_encoder_mode waits for a complete
traversal of the counter (likewise if
Value
is negative and larger than the current
encoder count). At a 1 MHz counter rate, this can take up to approx. 36 minutes!
If
Mode
0, then wait_for_encoder_mode waits for overstepping/understepping of
the
Value
parameter independently of the current position and direction of motion.
If
EncoderNo
> 1, then wait_for_encoder_mode is replaced with a list_nop
(get_last_error return code
RTC6_PARAM_ERROR
).
If no encoder-based Processing-on-the-fly correction is active, then
wait_for_encoder_mode 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_encoder_mode is available even if the Option Processing-on-the-fly is not
enabled.
For
Mode =
0, wait_for_encoder_mode is synonymous with wait_for_e
ncoder.
wa
it_for_encoder_mode does not alter the Laser Control Signals. If you want the laser
off during the wait, then wait_for_encoder_mode must be preceded by some other
command that switches off the Signals for “Laser Active” Operation (for example, a
list_nop).

Table of Contents