TransAct POSjet 1500 Programmer's Manual page 133

Transact posjet 1500: software guide
Hide thumbs Also See for POSjet 1500:
Table of Contents

Advertisement

Programmer' s Guide
Function
Redefine character set
ASCII
[ESC] [ S <L
Hexadecimal
1BH 5BH 53H ...
Decimal
<27> <91> <83> ...
IPCL
none
Description
The [ESC] [ S <L
allows an application to replace or redefine the active character set mapping in the printer. Where
the total number of characters to be replaced; <B
replaced; and <T
mapping of a print pattern to each character address is referred to a code page or character set. At
any given time, the printer character set is comprised of 256 characters. Each character is
addressed by an 8-bit value generally referred to as a character code. For example, if you want to
print an 'A', it would be addressed by sending a <65> decimal to the printer.
predefined code pages or character maps assign characters to a particular address built into the
printer. Occasionally, an application needs to redefine a character or group of characters in a code
page. The POSjet
The define character set command allows any character or group of characters to be replaced with
any other printable character. Over 500 printable master characters are defined in the printer. For
example, to redefine the character map for the 35th character and replace it with internal master
character 346, the redefine character set command is used as follows:
[ESC] [ S <3> <0> <35> <90> <1>
The new map remains until the printer is power cycled or the character set is redefined. The code
page and character set commands completely redefine the table.
Note 1
The OCR character set disable command, [ESC] y <12>, also restores the character set to the
original definition.
13
The internal character map is provided in the Master Character Set Definitions Guide, PN 100-9785.
Nov-07
POSjet
> <L
> <B
> <T
><T
L
H
C
1L
> <L
> <B
> <T
L
H
C
<L
> <L
> defines the total length of the following data: <L
L
H
13
> <T
>
is the internal address of the replacement character image. The
1H
1L
®
1500 Printer allows the map for any code page to be redefined or replaced.
^^^^^
^^
^^^^^^
|
|
+- 346
|
|
|
+------- 35
+--------------- 3 bytes to follow [(0 * 256) + 3]
Rev M
®
1500
> <T
><T
> <T
><T
1H
2L
2H
3L
><T
> <T
><T
> <T
1L
1H
2L
2H
> is the first character in the active map to be
C
th
Character in the Master Set
[(1 * 256) + 90]
th
Character
Codes and Commands
> ...<T
><T
>
3H
nL
nH
><T
> ... <T
><T
> command
3L
3H
nL
nH
> + 256 * <L
> = 1 + 2 * is
L
H
Page 119
Sixty-five

Advertisement

Table of Contents
loading

Table of Contents