Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 784
Chapter 2 Program Instructions
FILE& LOAD
Field of Application
Statement for receiving and storing binary fi les in the printer’s
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 fi le data.
<sexp> is the desired name of the fi le when stored in the printer’s
memory.
<nexp
2
> is the size of the fi le in number of bytes.
<nexp
3
> optionally specifi 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 fi 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 fi les and font fi 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 fi les will
remain as fi les in the printer’s memory until next power-up.
The optional fi rst parameter makes it possible to use this statement in
MS-DOS (CR/LF problem).
The name of the fi le, when stored in the printer’s memory, may consist of
max. 30 characters including possible extension.
The size of the original fi 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 specifi ed in the statement to be received. During the transfer of fi 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 specifi 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