Programmer's Guide
PcOS Series 90PLUS
Printer Control Codes
International Character Sets
12/16/99
Rev M
Page 31
Function
Print control character
ASCII
[ESC] ^ <n>
Hexadecimal
1BH 5EH <n>
Decimal
<27> <94> <n>
IPCL
&%CC <m
1
> <m
2
> <m
3
>
EPOS
[ESC] ^ <n>
Description
The [ESC] ^ <n> command allows characters from 0 to 31 codes to be printed.
During normal operation, characters from 0 to 31 are control characters. The
command turns off control code translation for the following character. <n> can be
from 0 to 255.
Function
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 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 * is 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
>
8
is the internal address of the replacement character image.
The mapping of a print pattern to each character address is referred to as 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,’ the character would be
addressed by sending a <65> decimal to the printer. There are 65 predefined code
pages or character maps that assign characters to a particular address built into the
printer. However, there are times when an application would like to redefine a
character or group of characters in a code page. To be able to redefine characters,
the Series 90PLUS Printer allows the map for any code page to be replaced. The
“Define Character Set” command allows any character or group of characters to be
replaced with any other printable character. There are over 500 printable master
characters 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 will remain until the printer is power cycled or the character set is
redefined. The code page and character set commands completely redefine the table.
Note
The OCR character set disable command ([ESC] y <12>) will also restore the
character set to the original definition.
8
The internal character map is provided in the
Master Character Set Definitions Guide
(PN: 100-9785).
Содержание PcOS series 90plus
Страница 1: ...P OS c SERIES 90PLUS Receipt Validation Journal Printers PROGRAMMER S GUIDE Rev M PN 100 7586 ...
Страница 2: ......
Страница 6: ...PcOS Series 90PLUS Programmer s Guide Page iv Rev M 12 16 99 ...
Страница 139: ...Programmer s Guide PcOS Series 90PLUS Product Self Tests 12 16 99 Rev M Page 127 73 Italian ...
Страница 143: ...Programmer s Guide PcOS Series 90PLUS Product Self Tests 12 16 99 Rev M Page 131 RTS and DTR flow ...
Страница 179: ......
Страница 180: ...INSERT PN 100 7307 Rev M 12 16 99 ...