Programming instructions
92
Intermec Fingerprint 6.13 – Programmer's Guide
5. Output to
Communication
Channels
8. OUTPUT FROM FINGERPRINT, cont'd.
Output from a Fingerprint program can be directed to any serial
communication channel OPENed for sequential OUTPUT follow-
ing the same principles as for output to files (see chapter 8.3).
Note that in this case, the parallel communication channel
"centronics:" cannot be used (one-way communication only).
The communication channels are specified by name as follows:
• "uart1:" • "uart2:" • "uart3:"
A special case is communication via the RS 422/485 interface
board, where the communication channel "uart2:" is specified as
"rs485:[n]" or "prel:[n;]rs485:" (also see chapter 7.9).
The following instructions are used in connection with output to a
communication channel:
OPEN Opens a serial communication channel
for sequential output.
PRINT# Prints data entered as numeric or string
expressions to the selected channel.
PRINTONE# Prints data entered as ASCII values to the
selected channel.
CLOSE Closes an OPENed channel.
LOC Returns the remaining number of free
bytes in the transmitter buffer of the se-
lected communication channel.
LOF Returns the remaining numbers of char-
acters to be transmitted from the transmit-
ter buffer is returned.
COPY Copies a file to a communication channel.
Example 1 (prints the records “Record 1” and “Record 2” to the
serial communication channel "uart3:"):
10 OPEN "uart3:" for OUTPUT AS #1
20 PRINT #1, "Record 1"
30 PRINTONE #1, 82;101;99;111;114;100;32;50
40 CLOSE #1
Example (prints the file "datafile" in a DOS-formatted memory
card to the serial communication channel "uart2:"):
COPY "card1:datafile","uart2:"
The only device, other than the serial communication channels, that
can be OPENed to receive output from a Fingerprint program, is the
printer's LCD display ("console:"). This is explained in chapter 15.2
together with other methods for controlling the display.
6. Output to Display