Programming Codes
iTherm
®
280
Programmer’s Guide
Page 94
Rev K
[ESC] [ S
Redefine character set
ASCII
[ESC] [ S <L
L
> <L
H
> <B
C
> <T
1L
><T
1H
> <T
2L
><T
2H
> <T
3L
><T
3H
>
…<T
nL
><T
nH
>
Hexadecimal
1BH 5BH 53H …
Decimal
<27> <91> <83> …
IPCL
none
Description
The [ESC] [ S <L
L
> <L
H
> <B
C
> <T
1L
><T
1H
> <T
2L
><T
2H
> <T
3L
><T
3H
> …
<T
nL
><T
nH
> command allows an application to replace or redefine the
active character set mapping in the printer, where <L
L
> <L
H
> defines the
total length of the following data:
<L
L
> + 256 * <L
H
> = 1 + 2 * the total number of characters to be replaced;
<B
C
> is the first character in the active map to be replaced
<T
1H
> <T
1L
>
6
is the internal address of the replacement character image.
The 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. Sixty-five 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 iTherm
®
280 Printer allows the map for any code page to be
redefined or replaced. 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>
^^^^^ ^^ ^^^^^^
| | +- 346
th
Character in the Master Set
| | [(1 * 256) + 90]
| +------- 35
th
Character
+--------------- 3 bytes to follow [(0 * 256) + 3]
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.
6
The internal character map is provided in the
Master Character Set Definitions Guide
, PN
100-9785.
Summary of Contents for Ithaca 280
Page 1: ...iTherm 280 Programmer s Guide PN 28 04430 Rev K APRIL 2011...
Page 2: ...Page intentionally left blank...
Page 12: ...Page x Rev K...
Page 13: ...28 04430 Rev K Page 1 chapter 1 Introducing your iTherm 280 Printer...
Page 14: ...Page 2 Rev K...
Page 20: ......
Page 21: ...28 04430 Rev K Page 9 chapter 2 iTherm 280 Specifications and Requirements...
Page 22: ...Page 10 Rev K...
Page 41: ...28 04430 Rev K Page 29 chapter 3 Setup Procedures...
Page 42: ...Page 30 Rev K...
Page 50: ......
Page 51: ...28 04430 Rev K Page 39 chapter 4 How to Operate the iTherm 280 Printer...
Page 52: ...Page 40 Rev K...
Page 60: ......
Page 61: ...28 04430 Rev K Page 49 chapter 5 Configuring Your iTherm 280 Printer...
Page 62: ...Page 50 Rev K...
Page 68: ......
Page 69: ...28 04430 Rev K Page 57 chapter 6 Programming Codes...
Page 70: ...Page 58 Rev K...
Page 250: ......
Page 251: ...28 04430 Rev K Page 239 chapter 7 iTherm 280 Color Graphics...
Page 252: ...Page 240 Rev K...
Page 267: ...28 04430 Rev K Page 255 chapter 8 Unicode...
Page 268: ...Page 256 Rev K...
Page 272: ......
Page 273: ...28 04430 Rev K Page 261 chapter 9 iTherm 280 Extended Printer Control...
Page 274: ...Page 262 Rev K...
Page 280: ......
Page 281: ...28 04430 Rev K Page 269 chapter 10 Communications...
Page 282: ...Page 270 Rev K...
Page 306: ......
Page 310: ......
Page 312: ......