RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
613
Ctrl Command set_auto_laser_control
Function Initializes or deactivates “Automatic Laser Control“, see Chapter 7.4.9 ”“Automatic Laser
Control“”, page 197.
Call
ErrorCode = set_auto_laser_control( Ctrl, Value, Mode, MinValue, MaxValue )
Parameters
Ctrl
Control parameter.
As an unsigned 32-bit value.
= 1…7: Defines which signal parameter is corrected by “Automatic Laser
Control“.
= 1: 12-bit output value at the ANALOG OUT1 output port.
= 2: 12-bit output value at the ANALOG OUT2 output port.
= 3: Output value at the 8-bit digital output port.
= 4: Pulse length (
PulseLength
) of the Laser Control Signals
LASER1 and LASER2.
= 5: Output period (
HalfPeriod
) of the Laser Control Signals
LASER1 and LASER2.
= 6: Output value at the 16-bit digital output.
= 7: As 5. However, the pulse distance is geometrically constant
(“Spot Distance Control”).
= 0 or > 7: Deactivates “Automatic Laser Control“
(for
Ctrl
> 7: get_last_error return code
RTC6_PARAM_ERROR
).
Value
Defines the 100% value for the parameter selected by
Ctrl
.
As an unsigned 32-bit value.
Allowed values:
For
Ctrl
= 1/2: 12-bit values [0…4095].
Higher bits are ignored.
For
Ctrl
= 3: 8-bit values [0…255].
Higher bits are ignored.
For
Ctrl
= 4: [0…(2
32
–1)].
1 bit equals 1/64 µs.
For
Ctrl
= 5: [0…(2
32
–1)].
1 bit equals 1/64 µs.
For
Ctrl
= 6: 16-bit values [0…65,535].
Higher bits are ignored.
Mode
Speed-dependent laser control (
Mode
=1…5) lets you select which data is to be
used for calculating speed-dependent correction.
As an unsigned 32-bit value.
=1: Set speed.
=2: Actual speed (as well as extensions, see below).
=3: Reserved.
=4: Reserved.
=5: Encoder speed (counter pulse rate).