RTC6 boards
Doc. Rev. 1.0.21 en-US
10 RTC6 Commands
853
Ctrl Command write_abc_to_file_20b
Function Writes the ABC values directly into a specified correction file on the PC.
For a focus length value l in the RTC6 20-bit range [–524,288…+524,287].
Call
ErrorNo = write_abc_to_file_20b( Name, A, B, C )
Parameters
Name
Name of the correction file.
As a pointer to a \0-terminated ANSI string.
A
Coefficient A of the parabolic function z
out
= A + Bl +Cl
2
which is used for
calculating the Z output values
(focus length value l in the RTC6 20-bit range [–524,288…+524,287]).
As a 64-bit IEEE floating point value.
Allowed value range: see load_z_table_20b.
B
Like
A
(analogously).
C
Like
A
(analogously).
Result
ErrorNo
Error code.
As an unsigned 32-bit value.
0 No error.
1
A
exceeded the maximum allowed value.
2
A
undercut the minimum allowed value.
4
B
exceeded the maximum allowed value.
8
B
undercut the minimum allowed value.
16
C
exceeded the maximum allowed value.
32
C
undercut the minimum allowed value.
3 File-open error (empty string, file not found etc.).
12 File error (checksum could not be determined, file corrupt).
Comments • write_abc_to_file_20b is available even without explicit access rights to a specific
RTC6 board.
• write_abc_to_file_20b is not available as a multi-board command.
• The board-specific error variables
LastError
and
AccError
(see Chapter 6.8 ”Error
Handling”, page 130) are neither generated nor altered by write_abc_to_file_20b.
• ABC values are not outputted with error code
0 or 12.
•
write_abc_to_file_20b( A, B, C )
is synonymous with
write_abc_to_file( A × 1/16, B, C × 16 )
.
RTC4RTC6 New command.
RTC5RTC6 New command.
Version info Available as of DLL 631, OUT 632.
References read_abc_from_file_20b