8.7.2 Compensation of Linear Move-
ments
Processing-on-the-fly correction for linear workpiece
movements can be activated via the list commands
set_fly_x
and/or
set_fly_y
or alternatively via the list
commands
set_fly_x_pos
and/or
via
set_mcbsp_in
or
set_mcbsp_in_list
(1)
(Mode = 1...3)
. A scaling factor must thereby be
specified.
With
set_multi_mcbsp_in
set_multi_mcbsp_in_list, you can activate addi-
tional Processing-on-the-fly correction with posi-
tional values for linear motion in all three coordinate
directions without bit-resolution restrictions. No
scaling factor is required.
Processing-on-the-fly correction can be stopped
(simultaneously for both directions) via the command
fly_return
(see the corresponding notes on
page
186).
Correction via Encoder Counter(s)
If position values for Processing-on-the-fly correction
are forwarded via the internal encoder counters, then
Processing-on-the-fly correction must be activated
via
set_fly_x
and/or set_fly_y. Here, the scaling
factor [in bits per count] defines the relation between
the shift [in bits] of the current output position in the
image field and one counter pulse (count) of the
corresponding encoder counter (see below).
The
set_fly_x
or
set_fly_y
command will reset the
respective encoder counter (Encoder0 or Encoder1)
(2)
to zero
.
Thereafter, the output value is calculated from the
current output position by adding (for each direction)
the product of the scaling factor and the current
counter value. This correction is performed every
(3)
10 µs
.
(1) There are restrictions on combining Processing-on-the-fly
corrections with each other (see the
page
178).
(2) With set_control_mode, bit#9 can be set in advance to deter-
mine whether the counter should reset immediately or only
after a subsequent start trigger (i.e. with a subsequent external
start signal,
simulate_ext_start
command, possibly postponed by a track delay defined via
simulate_ext_start,
set_ext_start_delay
set_ext_start_delay_list; also see set_control_mode, bit#2).
If the counter only gets reset after the subsequent trigger, then
this effectively eliminates the 10 µs jitter (random time offset
between the start signal and the list start).
(3) The encoder counters are 32-bit counters (for signed 32-bit
values). If the maximum (minimum) count is reached, then
counting will continue with the minimum (maximum) count.
®
RTC
5 PC Interface Board
Rev. 1.9 e
8 Advanced Functions for Scan Head and Laser Control
set_fly_y_pos
or
or
section "Overview" on
or
simulate_ext_start_ctrl
or
Notes
•
set_fly_x
and
set_fly_y
nation for 1D Processing-on-the-fly applications
(e.g. an obliquely angled conveyor belt) as well as
for encoder-based 2D Processing-on-the-fly appli-
cations (e.g. an XY translation stage), particularly
for separate or separable marking tasks in the real
image field. For continuous marking in the virtual
image field, SCANLAB instead recommends using
set_fly_2d
(see
chapter 8.7.4, page
Determining Scaling Factors
If the workpiece position is to be registered via one
(or two) incremental encoder(s), then a calibration
procedure will be required to determine the scaling
factor:
First, the command
get_encoder
determine the encoder increments i
per mm] for each direction:
Read the counter start value (via get_encoder)
and begin the movement
Stop the movement and read the counter end
value (via get_encoder)
Measure the distance travelled in mm
The encoder increment i can then be calculated as
follows:
i = (counter end value – counter start value) /
distance travelled
In a second step, the scaling factors Scale
[in bits per count] can be calculated from the
Scale
y
determined encoder increments as follows:
= K / i
Scale
x
x
= K / i
Scale
y
y
whereby K is the calibration factor [in bits per mm]
(see
page
119).
If the workpiece moves at a constant speed v
[in mm per second] and an encoder simulation was
activated via simulate_encoder, then the scaling
factors are calculated as follows:
= K · v
/ (1000000 counts/s)
Scale
x
x
= K · v
/ (1000000 counts/s)
Scale
y
y
It might be necessary to adjust the signs of the scaling
factors to the direction of movement.
(4) Alternatively, the counter start and end values can be stored in
®
a buffer on the RTC
5 via the list command
and then retrieved from there via the control command
read_encoder.
can be used in combi-
184).
must be used to
and i
[in counts
x
y
(4)
and
x
or v
x
y
store_encoder
179
Need help?
Do you have a question about the RTC 5 PC Interface Board and is the answer not in the manual?