Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7248
Chapter 2 Program Instructions
STORE INPUT
Field of Application
Statement for receiving and storing protocol frames of image data
in the printers memory.
Syntax STORE
INPUT<nexp
1
>[,<nexp
2
>]
<nexp
1
> is the timeout in ticks (0.01 sec.) before next character
is received.
<nexp
2
> is, optionally, the number assigned to a device when it was
OPENed for INPUT. Default: Standard IN channel.
Remarks
The STORE INPUT statement receives and stores a protocol frame of image
data as speci ed by preceding INPUT and STORE IMAGE statements. It also
performs an end frame check. (STORE INPUT is usually more convenient
than the old STORE statement, which still works even if it has been omitted in
this manual, refer to the Intermec Fingerprint v6.xx manuals.)
STORE INPUT works differently for various types of protocol:
INTELHEX Receives and stores frames until timeout or end
frame is received.
UBI00-03 Receives and stores frames until timeout or required
number of bytes are received.
UBI10 Receives and stores frames until timeout or end
frame is received.
Examples
This example shows how an Intelhex le is stored using the STORE IMAGE
statement. The number of input parameters may vary depending on type of
protocol, see STORE INPUT statement.
10 STORE OFF
20 INPUT "Name:", N$
30 INPUT "Width:", W%
40 INPUT "Height:", H%
50 INPUT "Protocol:", P$
60 STORE IMAGE N$, W%, H%, P$
70 STORE INPUT 100
80 STORE OFF
To receive the input from another channel than std IN channel, the
device must be OPENed for INPUT and a reference be included in the
STORE INPUT statement.
10 STORE OFF
20 OPEN "uart2:" FOR INPUT AS #9
30 INPUT "Name:", N$
40 INPUT "Width:", W%
50 INPUT "Height:", H%
60 INPUT "Protocol:", P$
70 STORE IMAGE N$, W%, H%, P$
80 STORE INPUT 100,9
90 CLOSE #9
100 STORE OFF