Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7164
Chapter 2 Program Instructions
MAP, cont.
Examples
You can check what characters the host produces using a simple program.
Pressing different keys on the host should produce the corresponding
characters both on the label and on the screen of the host. If not, try another
character set (see NASC). In this example we presume that the keyboard
produces ASCII 81 dec. and ASCII 90 dec. when you press the Q and Z keys
respectively. Should any unexpected characters be printed on the labels or
the screen, check the manuals of the host for information on what ASCII
values will be produced by the various keys and how the screen will present
various ASCII values received from the printer.
10 FONT "Swiss 721 BT"
20 PRPOS 30,100
30 INPUT "Enter character";A$
40 PRTXT A$
50 PRINTFEED
By adding a MAP statement in line 5, you can test what happens. In this
case we remap the character Q to be printed as Z, as in the explanation
on the previous page. After printing, we map the character Q back to
its original position.
5 MAP 81,90
10 FONT "Swiss 721 BT"
20 PRPOS 30,100
30 INPUT "Enter character";A$
40 PRTXT A$
50 PRINTFEED
60 MAP 81,81
Assume that a device connected to "uart2:" produces strings always starting
with the control character STX (ASCII 2 decimal). STX can be fi ltered out
by mapping it as NUL (ASCII 0 decimal):
10 MAP 2,2,0
Should "uart2:" be appointed standard IN channel (see SETSTDIO), the fi rst
parameter can be omitted from the example above:
10 MAP 2,0