17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FILE& LOAD<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for receiving and storing binary files in the printer's memory.<br />

Syntax FILE& LOAD[ 1 ,],[,]<br />

is optionally the number of bytes to skip before starting to<br />

read the file data.<br />

is the desired name of the file when stored in the printer's<br />

memory.<br />

is the size of the file in number of bytes.<br />

optionally specifies a communication channel OPENed for<br />

INPUT by the number assigned to the device.<br />

(Default: Std IN channel).<br />

Remarks This statement prepares the printer to receive a binary file on the standard IN<br />

channel (see SETSTDIO statement) or on another communication channel<br />

OPENed for INPUT.<br />

Another, but more cumbersome, way of obtaining the same result is to use the<br />

TRANSFER KERMIT statement.<br />

Image files and font files can also be downloaded using the IMAGE LOAD<br />

statement.<br />

As opposed to IMAGE LOAD and TRANSFER KERMIT statements,<br />

FILE& LOAD will not immediately install the fonts, but the font files will<br />

remain as files in the printer's memory until next power-up.<br />

The optional first parameter makes it possible to use this statement in MS-<br />

DOS (CR/LF problem).<br />

The name of the file, when stored in the printer's memory, may consist of max.<br />

30 characters including possible extension.<br />

The size of the original file should be given in bytes according to its size in<br />

the host.<br />

Before the FILE& LOAD statement can be used on a serial channel, the setup<br />

must be changed to 8 characters, CTS/RTS handshake. When a FILE&<br />

LOAD statement is executed, the execution stops and waits for the number<br />

of bytes specified in the statement to be received. During the transfer of file<br />

data to the printer, there is a 25 sec. timeout between characters. If a new<br />

character has not been received within the timeout limit, an error occurs<br />

(Error 80 “Download timeout”). When the specified number of characters<br />

have been received, the execution is resumed.<br />

Example 10 OPEN "uart2:" FOR INPUT AS 5<br />

20 FILE& LOAD "FILE1.PRG",65692,5<br />

30 CLOSE 5<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 74

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!