RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
419
innovators for industry
Ctrl Command set_encoder_speed_ctrl
Function
same as
(see above), but a control command
Call
set_encoder_speed_ctrl( EncoderNo, Speed, Smooth )
Parameters
EncoderNo
Number of the encoder counter to be used for speed measurement
as an unsigned 32-bit value,
allowed values:
= 0:
Encoder counter Encoder0
= 1:
Encoder counter Encoder1
= 2 and 3: vectorial encoder velocity: a vectorial velocity is calculated
from both encoder speeds (via the pulse rates of both encoder
counters) for use with encoder-speed-dependent automatic
laser control in
Mode
= 5.
Higher bits are ignored.
Speed
Target encoder speed (counter pulse rate) in [counter pulses/ms]
as a 64-bit IEEE floating point value;
allowed range: [100.0 … 16000.0]; for
Speed
> 16000.0,
Speed
is
clipped to 16000.0, for 0.0 <
Speed
< 100.0 to 100.0.
Smooth
Smoothing factor for a 2-stage low-pass filter as a 64-bit IEEE floating
point value; allowed range: [0.0 … 1.0]; larger values will be clipped.
Comments
• For
Speed
0.0 or
Smooth
< 0.0, the command is ignored (
eturn code
RTC5_PARAM_ERROR
).
• The command will also be ignored (
return code
:
RTC5_BUSY
) if the
board’s BUSY status is currently set (list is being processed or has been halted via
). In contrast, the command is executed when a list has been paused via
PAUSED status set) or the board’s INTERNAL-BUSY status is currently set.
RTC
®
4
RTC
®
5 new command
Version info
Last change with version DLL 536, OUT 536:
EncoderNo
= 2 and 3
References