Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 784
Chapter 2 Program Instructions
FILE& LOAD
Field of Application
Statement for receiving and storing binary les in the printers
memory.
Syntax FILE& LOAD[<nexp>
1
,]<sexp>,<nexp
2
>[,<nexp
3
>]
<nexp
1
> is optionally the number of bytes to skip before starting
to read the le data.
<sexp> is the desired name of the le when stored in the printers
memory.
<nexp
2
> is the size of the le in number of bytes.
<nexp
3
> optionally speci es a communication channel OPENed for
INPUT by the number assigned to the device.
(Default: Std IN channel.)
Remarks
This statement prepares the printer to receive a binary le on the standard
IN channel (see SETSTDIO statement) or on another communication
channel OPENed for INPUT.
Another, but more cumbersome, way of obtaining the same result is to use
the TRANSFER KERMIT statement.
Image les and font les can also be downloaded using the IMAGE
LOAD statement.
As opposed to IMAGE LOAD and TRANSFER KERMIT statements,
FILE& LOAD will not immediately install the fonts, but the font les will
remain as les in the printers memory until next power-up.
The optional rst parameter makes it possible to use this statement in
MS-DOS (CR/LF problem).
The name of the le, when stored in the printers memory, may consist of
max. 30 characters including possible extension.
The size of the original le should be given in bytes according to its
size in the host.
Before the FILE& LOAD statement can be used on a serial channel, the
setup must be changed to 8 characters, RTS/CTS handshake. When a FILE&
LOAD statement is executed, the execution stops and waits for the number
of bytes speci ed in the statement to be received. During the transfer of le
data to the printer, there is a 25 sec. timeout between characters. If a new
character has not been received within the timeout limit, an error occurs
(Error 80, Download timeout). When the speci ed number of characters
have been received, the execution is resumed.
Example
10 OPEN "uart2:" FOR INPUT AS 5
20 FILE& LOAD "FILE1.PRG",65692,5
30 CLOSE 5