02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter —Program Instructions<br />

MAP, cont.<br />

Do not map any characters to ASCII values occupied by characters used<br />

in Fingerprint instructions, for example keywords, operators, %, $, #, and<br />

certain punctuation marks. Mapping will be reset to normal at power-up<br />

or reboot.<br />

Examples You can check what characters the host produces using a simple program.<br />

Pressing different keys on the host should produce the corresponding characters<br />

both on the label and on the screen of the host. If not, try another<br />

character set (see NASC). In this example we presume that the keyboard<br />

produces ASCII 81 dec. and ASCII 90 dec. when you press the Q and<br />

Z keys respectively. Should any unexpected characters be printed on the<br />

labels or the screen, check the manuals of the host for information on what<br />

ASCII values will be produced by the various keys and how the screen will<br />

present various ASCII values received from the printer.<br />

10 FONT "Swiss 721 BT"<br />

20 PRPOS 30,100<br />

30 INPUT "Enter character";A$<br />

40 PRTXT A$<br />

50 PRINTFEED<br />

By adding a MAP statement in line 5, you can test what happens. In this<br />

case we remap the character Q to be printed as Z, as in the explanation<br />

on the previous page. After printing, we map the character Q back to its<br />

original position.<br />

5 MAP 81,90<br />

10 FONT "Swiss 721 BT"<br />

20 PRPOS 30,100<br />

30 INPUT "Enter character";A$<br />

40 PRTXT A$<br />

50 PRINTFEED<br />

60 MAP 81,81<br />

Assume that a device connected to "uart2:" produces strings always starting<br />

with the control character STX (ASCII 2 decimal). STX can be filtered out<br />

by mapping it as NUL (ASCII 0 decimal):<br />

10 MAP 2,2,0<br />

Should "uart2:" be appointed standard IN channel (see SETSTDIO), the<br />

first parameter can be omitted from the example above:<br />

10 MAP 2,0<br />

1 <strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!