RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
407
innovators for industry
Ctrl Command set_auto_laser_control
Function
initializes or deactivates position- and/or speed-dependent or encoder-speed-dependent laser
control
Call
ErrorCode = set_auto_laser_control( Ctrl, Value, Mode, MinValue, MaxValue )
Parameters
Ctrl
Control parameter (unsigned 32-bit value) for initializing or deactivating position-
and/or speed-dependent or encoder-speed-dependent laser control:
= 1 … 6: defines which signal parameter will be automatically corrected via position-
and/or speed-dependent or encoder-speed-dependent 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 signals LASER1 and LASER2
= 5:
output period (
HalfPeriod
) of the laser signals LASER1 and LASER2
= 6:
output value at the 16-bit digital output
= 0 or > 6: deactivates position-, speed- and encoder-speed-dependent laser control
(for
Ctrl
RTC5_PARAM_ERROR
)
Value
defines the 100% value for the parameter selected via
Ctrl
(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 … (2
16
–
1)], higher bits are ignored.
Mode
Control parameter (unsigned 32-bit value) for initializing or deactivating speed-
dependent or encoder-speed-dependent (but not position-dependent) laser control.
Speed-dependent laser control (
Mode
=1…5) lets you select which data is to be used
for calculating speed-dependent correction.
=1:
set velocity (for all scan systems)
=2:
queried actual velocity (only with i
DRIVE
®
scan systems:
intelli
SCAN
®
, intelli
SCAN
de
®
, intelli
DRILL
®
, intelli
cube
®
,
intelli
WELD
®
, vario
SCAN
de
)
=3:
Reserved.
=4:
Reserved.
=5:
encoder speed (counter pulse rate)
= 0 or > 5: deactivates speed-dependent and encoder-speed-dependent laser
control (for
Mode
RTC5_PARAM_ERROR
)
MinValue
defines the
lower
range limit of the parameter selected via
Ctrl
for automatic
correction and that cannot be undercut (unsigned 32-bit value);
allowed values: see
Value
MaxValue
defines the
upper
range limit of the parameter selected via
Ctrl
for automatic
correction and that cannot be exceeded (unsigned 32-bit value);
allowed values: see
Value