Programming instructions
63
Intermec Fingerprint 6.13 – Programmer's Guide
7. INPUT TO FINGERPRINT
1. Standard I/O Channel
1
/. Do not select "console:" as both std in
and out channel, since it would only make
characters entered on the printer's key-
board appear in the display.
2
/. The parallel communication channel
"centronics:" can only be used for input
(one-way communication only).
2. Input from Host
(Std IN Channel only)
The standard IN and standard OUT channels are the default
channels for input to the printer or output from the printer respec-
tively (in both cases "uart1:" by default). In most instructions, you
can override the standard IN or OUT channel by specifying another
channel. Usually, the same channel is used for both input and
output, but different channels can be specified.
SETSTDIO
You can appoint any of the following communication channels as
standard IN and/or standard OUT channel by means of the
SETSTDIO statement:
Standard IN channel Standard OUT channel
0 = "console:"
1
0 = "console:"
1
1 = "uart1:" (default) 1 = "uart1:" (default)
2 = "uart2:"/"rs485:" 2 = "uart2:"/"rs485:"
3 = "uart3:" 3 = "uart3:"
4 = "centronics:"
2
The std IN channel is used for sending instructions and data from
the host to the printer in order to control the printer in the immediate
mode, to write programs in the programming mode, to download
program files and to transmit input data.
Some instructions receives data on the std IN channel only:
INKEY$ Reads the 1:st character in the receive
buffer.
INPUT Receives input data during execution of a
program.
LINE INPUT Assigns an entire line to a string variable.
The following instructions are used to receive input from any
communication channel (incl. the std IN channel). The same
instructions are also used to read sequential files, see chapter 7.4:
OPEN Opens a channel for sequential INPUT.
INPUT# Receives input data during execution of a
program on the specified channel.
INPUT$ Reads a string of data from the specified
channel.
LINE INPUT# Assigns an entire line from the specified
channel to a string variable.
CLOSE Closes the channel.
☞
Output from Intermec Fingerprint
See:
• Chapter 8
3. Input from Host
(Any Channel)