RTC
®
4 PC Interface Board
Rev. 1.3 e
10 Commands And Functions
96
innovators for industry
Ctrl Command load_program_file
Function
loads the specified program file into RTC
®
4 memory
Parameter
FileName
name of the program file as a pointer to a null-terminated ANSI string
Result
error code as a signed 16-bit value:
Value
Description
0
Success.
3
File error.
4
Verify error.
6
Number of bytes in Intel hex file is odd.
7
Checksum error in Intel hex file.
8
System driver not found, or the system driver is locked by another application.
9
Program file not complete.
11
RTC
®
4 not found.
Integration
Pascal:
function load_program_file(FileName: pchar): smallint;
C:
short load_program_file(const char* FileName);
Basic:
function load_program_file(ByVal FileName$)%
Comments
• The program file must be loaded at the beginning of each RTC
®
4 application program.
chapter 9.3 "Initializing the RTC
• The filename extension for RTC
®
4 program files is
*.HEX
.
• The command
®
4. This means all parameters are
reset to their default values. The laser focus is positioned in the center of the image field
at the point (0|0). If any correction file(s) were loaded previously, they will remain in
RTC
®
4 memory, but the
settings are reset to default.
• After execution of the command
active
.
References
,