17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

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.

MAP<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for changing the ASCII value of a character when received on<br />

the standard IN channel, or optionally on another specified<br />

communication channel.<br />

Syntax MAP[,],<br />

1 2 3<br />

optionally specifies a communication channel:<br />

1<br />

0 = "console:"<br />

1 = "uart1:"<br />

2 = "uart2:"<br />

3 = "uart3:"<br />

4 = "centronics:"<br />

Default: Standard I/O channel.<br />

is the original ASCII decimal value.<br />

2<br />

is the new ASCII decimal value after mapping.<br />

3<br />

Remarks This statement is used to modify a character set (see NASC and NASCD<br />

statements) or to filter out undesired character . If you e.g. want a “Q” (ASCII<br />

81 dec.) to be printed as the letter “Z” (ASCII 90 dec.), the MAP statement<br />

should be entered as:<br />

MAP 81,90<br />

The mapping interprets any ASCII 81 dec. value received on the standard IN<br />

channel as ASCII 90 dec., i.e. when you press “Q” on the keyboard of the host,<br />

the character “Z” will be printed (see note). However, pressing “Z” will still<br />

produce a “Z”, since that character has not been remapped.<br />

To reset the mapping, map the character back to its original ASCII value, e.g.:<br />

MAP 81,81<br />

When a character is received by the printer, it is processed in regard of<br />

possible MAP statements before it “enters” the <strong>Intermec</strong> Fingerprint firmware.<br />

That allows you to filter out undesired control characters, which may confuse<br />

the <strong>Intermec</strong> Fingerprint firmware, e.g. by mapping them as NULL (ASCII<br />

0 decimal).<br />

After processing, the selected character set (see NASC and NASCD statements)<br />

controls how characters will be printed or displayed. If none of the character<br />

sets meets your demands completely, use MAP statements to modify the set<br />

that comes closest. Note that MAP statements will be processed before any<br />

COMSET or ON KEY..GOSUB strings are checked. NASC and NASCD<br />

statements will be processed last.<br />

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

<strong>Intermec</strong> Fingerprint instructions, e.g. keywords, operators, %, $, # and<br />

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

reboot.<br />

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

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

Saved successfully!

Ooh no, something went wrong!