17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MAP, <strong>cont'd</strong>.<br />

Chapter 2 Program Instructions<br />

Examples You can check what characters the host produces by means of a simple<br />

program. Pressing different keys should produce the corresponding characters<br />

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

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

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

respectively. Should any unexpected characters be printed on the labels or<br />

the screen, check the manuals of the host computer or terminal for information<br />

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

screen will 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 case<br />

we re-map the character Q to be printed as Z, as in the explanation on the<br />

previous page. After printing, we map the character Q back as before.<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 />

A device connected to "uart2:" produces strings always starting with the<br />

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

it as NULL (ASCII 0 decimal):<br />

10 MAP 2,2,0<br />

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

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

10 MAP 2,0<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 145

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

Saved successfully!

Ooh no, something went wrong!