Programming instructions

93
Intermec Fingerprint 6.13 – Programmer's Guide
Continued!
9. DATA HANDLING
1. Preprocessing Input
Data
All input data to the printer come in binary form via the various
communication channels. Text files are transmitted in ASCII
format, which upon reception will be preprocessed by the printer's
software according to two instructions as to provide full compatibil-
ity between the printer and the host:
MAP Remaps the selected character set.
NASC Selects a suitable character set
A character received by the printer on a communication channel
will first be processed in regard of possible MAP statements. Then
the character will be checked for any COMSET or ON KEY...
GOSUB conditions. When a character is to be printed, it will be
processed into a bitmap pattern that makes up a certain character
according to the character set selected by means of a NASC
statement.
MAP
The MAP statement is used to modify a character set or to filter out
undesired characters on a specified communication channel by
mapping them as Null (ASCII 0 dec).
If no character set meets your requirements completely (see NASC
below), select the set that comes closest and modify it using MAP
statements. Do not map any characters to ASCII values occupied by
characters used in Fingerprint instructions, e.g. keywords, opera-
tors, %, $, #, and certain punctuation marks. Mapped characters will
be reset to normal at power-up or reboot.
Example. You may want to use the German character set (49) and
7 bits communication protocol. However, you need to print £
characters, but have no need for the & character. Then remap the
£ character (ASCII 187 dec.) to the value of the & character (ASCII
38 dec.) . Type a series of & characters on the keyboard of the host
and finish with a carriage return:
10 NASC 49
20 MAP 38,187
30 FONT "SW030RSN"
40 PRPOS 100,100
50 INPUT "Enter character";A$
60 PRTXT A$
70 PRINTFEED
RUN
Enter character? (see note!)
Note!
If you use 7 bit communication, the printer cannot echo back the
correct character to the host if its ASCII value exceeds 127, hence
;” characters will appear on the screen. Nevertheless, the desired
£” characters will be printed on the label.
COMSET statement
Also see:
Chapter 7.8
ON KEY...GOSUB statement
Also see:
Chapter 15.1
Character Sets
Also see:
Intermec Fingerprint Reference
Manual for complete character set
tables.