Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7 163
Chapter 2 Program Instructions
MAP
Field of Application
Statement for changing the ASCII value of a character when received
on the standard IN channel, or optionally on another specified
communication channel.
Syntax MAP[<nexp
1
>,]<nexp
2
>,<nexp
3
>
<nexp
1
> optionally specifi es a communication channel:
0 = "console:"
1 = "uart1:"
2 = "uart2:"
3 = "uart3:"
4 = "centronics:"
5 = "net1:"
6 = "usb1:"
Default: Standard I/O channel.
<nexp
2
> is the original ASCII decimal value.
<nexp
3
> is the new ASCII decimal value after mapping.
Remarks
This statement is used to modify a character set (see NASC and NASCD
statements) or to fi lter out undesired character. If you for example want a
“Q” (ASCII 81 dec.) to be printed as the letter “Z” (ASCII 90 dec.), the
MAP statement should be entered as:
MAP 81,90
The mapping interprets any ASCII 81 dec. value received on the standard IN
channel as ASCII 90 dec., that is when you press “Q” on the keyboard of the
host, the character “Z” will be printed (see note). However, pressing “Z” will
still produce a “Z”, because that character has not been remapped.
To reset the mapping performed above, map the character back to its
original ASCII value like this:
MAP 81,81
When a character is received by the printer, it is processed in regard
of possible MAP statements before it “enters” the Intermec Fingerprint
fi rmware. That allows you to fi lter out undesired control characters, which
may confuse the Intermec Fingerprint fi rmware, for example by mapping
them as NUL (ASCII 0 decimal).
After processing, the selected character set (see NASC and NASCD
statements) controls how characters will be printed or displayed. If none
of the character sets meets your demands completely, use MAP statements
to modify the set that comes closest. Note that MAP statements will be
processed before any COMSET or ON KEY..GOSUB strings are checked.
NASC and NASCD statements will be processed last.
Do not map any characters to ASCII values occupied by characters used
in Intermec Fingerprint instructions, for example keywords, operators,
%, $, #, and certain punctuation marks. Mapping will be reset to normal
at power-up or reboot.