RTC
®
5 PC Interface Board
Rev. 1.9 e
7 Basic Functions for Scan Head and Laser Control
106
Customizing the Variable Polygon Delay
The command load_varpolydelay (page 346) loads
a table for the scaling function scale() from an ASCII
text file. The text file can contain one or more tables.
Each table can contain up to 50 data points
(scale()) for various angles . The RTC
®
5 deter-
mines the scaling function scale() from this data by
linear interpolation.
Figure 36 shows a sample table and the corre-
sponding scaling function.
The following rules apply for these tables:
• Each table must start with the instruction
(Caption)
[VarPolyTable<No>]
where
<No>
must be replaced by a nonnegative
integer which denotes the table number.
• If the table contains multiple
[VarPolyTable<No>] entries with the same
<No>, then only the instructions after the first
entry will be used; instructions that follow further
entries will be ignored. Only instructions up to the
next ’[’ character (that is not preceded by a
semicolon) are used.
• Each data point (scale()) is described by two
instructions:
Angle<n> = <Value>
Scale<n> = <Value>
where
<n>
must be replaced by an integer
(1
<n>
50) which denotes the number of the
data point. The values
<Value>
for the angle (in
degrees) and for the scaling factor can be speci-
fied as (unsigned) floating point numbers. Use
the period
(.)
as the decimal separator.
• If the table contains multiple data points with the
same Index
<n>
, then the most recently read one
will be used and the previous ones ignored.
• If the table contains multiple data points with the
same angle , then the data point with the largest
Index
<n>
will be used and the others ignored.
Equality is checked to within ±0.01°.
•For
<Value>
, the following ranges apply:
0.0° 180.0° and 0.0 scale() 2.0.
• Each instruction must be in a separate line.
• Spaces and tabs in a line (e.g. between ’
=
’ and
<Value>
) are ignored.
• Empty lines are ignored.
• Data points with invalid values are ignored.
• The data point of a particular index
<n>
is ignored
if the corresponding
Angle<n>
and/or
Scale<n>
definition is missing.
• The semicolon ’;’ can be used for comments. All
characters in a line following a semicolon are
ignored.
• The instructions for data points in the table can
be ordered as desired.
• Indices for data point pairs in the table can be
selected as desired within the range [1…50] (the
table will then be automatically sorted by
ascending angles).
36
Sample table and resulting scaling function scale(). The sample table contains four data points.
; sample
[VarPolyTable1]
Angle1 = 20
Scale1 = 0.1
Angle2 = 40
Scale2 = 0.7
Angle3 = 60
Scale3 = 1.0
Angle4 = 90
Scale4 = 1.2