02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FILE& LOAD<br />

Chapter —Program Instructions<br />

Purpose Statement for receiving and storing binary files in the printer’s memory.<br />

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

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

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 INPUT<br />

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<br />

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

channel OPENed for INPUT.<br />

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

the 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<br />

max. 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<br />

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

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

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

the transfer of file data to the printer, there is a 25 sec. timeout between<br />

characters. If a new character has not been received within the timeout<br />

limit, an error occurs (Error 80, “Download timeout”). When the specified<br />

number of characters 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 <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong> 8

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

Saved successfully!

Ooh no, something went wrong!