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.

STORE INPUT<br />

<strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong><br />

Chapter —Program Instructions<br />

Purpose Statement for receiving and storing protocol frames of image data in the<br />

printer’s memory.<br />

Syntax STORE ↔ INPUT[,]<br />

is the timeout in ticks (0.01 sec.) before next character is received.<br />

is, optionally, the number assigned to a device when it was<br />

OPENed for INPUT. Default: Standard IN channel.<br />

Remarks The STORE INPUT statement receives and stores a protocol frame of<br />

image data as specified by preceding INPUT and STORE IMAGE statements.<br />

It also performs an end frame check. (STORE INPUT substitutes<br />

the old STORE statement (not documented in this manual.)<br />

STORE INPUT works differently for various types of protocol:<br />

INTELHEX Receives and stores frames until timeout or end frame<br />

is received.<br />

UBI00-03 Receives and stores frames until timeout or required<br />

number of bytes are received.<br />

UBI10 Receives and stores frames until timeout or end frame<br />

is received.<br />

Examples This example shows how an Intelhex file is stored using the STORE<br />

IMAGE statement. The number of input parameters may vary depending<br />

on type of protocol, see STORE INPUT statement.<br />

10 STORE OFF<br />

20 INPUT "Name:", N$<br />

30 INPUT "Width:", W%<br />

40 INPUT "Height:", H%<br />

50 INPUT "Protocol:", P$<br />

60 STORE IMAGE N$, W%, H%, P$<br />

70 STORE INPUT 100<br />

80 STORE OFF<br />

To receive the input from another channel than std IN channel, the device<br />

must be OPENed for INPUT and a reference be included in the STORE<br />

INPUT statement.<br />

10 STORE OFF<br />

20 OPEN "uart2:" FOR INPUT AS #9<br />

30 INPUT "Name:", N$<br />

40 INPUT "Width:", W%<br />

50 INPUT "Height:", H%<br />

60 INPUT "Protocol:", P$<br />

70 STORE IMAGE N$, W%, H%, P$<br />

80 STORE INPUT 100,9<br />

90 CLOSE #9<br />

100 STORE OFF

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

Saved successfully!

Ooh no, something went wrong!