RTC
®
5 PC Interface Board
Rev. 1.9 e
8 Advanced Functions for Scan Head and Laser Control
182
innovators for industry
Then, Processing-on-the-fly correction must be acti-
vated via
(1)
. The parameter
Resolution
[in counts per revolution] must thereby be specified.
The inverse of this parameter defines the rotation [in
number of revolutions] of the current output position
in the image field corresponding to one counting unit
(see below).
command resets the encoder counter
Encoder0 to zero.
Thereafter, the output value is calculated from the
current output position via a linear transformation
(rotation around the specified rotation center, where
rotation angle / 360° = current Encoder0 counter
value /
Resolution
). This correction is performed
every 10
µ
s
(2)
.
Determining the
Resolution
Parameter
If the angular position of the workpiece is to be regis-
tered via an incremental encoder, then a calibration
must be performed to determine a value for the
Resolution
parameter:
Read the counter start value (via
and begin the rotation (any desired number of
full rotations)
Count the number of revolutions.
Stop the rotation and read the counter end value
(via
(3)
.
The parameter
Resolution
[i.e. the counts per
revolution] can then be calculated as follows:
Resolution
= (counter end value – counter start
value) / number of revolutions
Note that the number of counts per revolution is
equal to the number of encoder signal edges per
revolution i.e. four times the number of encoder
increments per revolution (see
If the workpiece rotates at a constant speed
[in
number of revolutions per second] and an encoder
simulation was activated via
the
Resolution
parameter can be calculated as
follows:
Resolution
= (1000000 counts/second) /
It might be necessary to adjust the sign of
Resolution
to the direction of rotary movement.
Correction via McBSP Interface
If angle-position values for Processing-on-the-fly
correction of rotary movement are forwarded via the
McBSP interface, then Processing-on-the-fly
correction must be activated via
.
Here, the required
Resolution
parameter has the
same meaning as with
and can be simi-
larly determined (see above), with the difference that
McBSP input values are queried via
(while counter values are queried via
Notes
• As with using McBSP input values to compensate
linear motions, McBSP input values get copied to
internal memory location 0 (see notes on
(1) See footnote
on
.
(2) 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.
(3) 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