Programmer's Guide

PcOS Series 150

 

Control Codes

 

 

 

Character Sets and Code Pages

 

EPOS Note: EPOS defines <n> as follows:

 

 

 

 

 

 

 

<n>

Character Code Page

<n>

Character Code Page

 

0

Code Page 437

3

Code Page 860

 

 

 

 

 

 

1

Not supported

4

Code Page 863

 

 

 

 

 

 

2

Code Page 850

5

Code Page 865

 

 

 

 

 

 

Table 8 EPOS code page definition table

 

Function

Print control character

 

 

ASCII

[ESC] ^ <n>

 

 

Hexadecimal

1BH 5EH <n>

 

 

Decimal

<27> <94> <n>

 

 

IPCL

&%CC <m1> <m2> <m3>

 

 

EPOS

[ESC] ^ <n>

 

 

Description This command allows characters from 0 to 31 codes to be printed. During normal operation, characters from 0 to 31 are control characters. This command turns off the control code translation for the following character. <n> can be from 0 to 255.

Function

Redefine Character Set

ASCII

[ESC] [ S <LL> <LH> <BC> <T1L><T1H><T2L><T2H><T3L><T3H> … <TnL>

 

<TnH>

Hexadecimal

1BH 5BH 40H …

Decimal

<27> <91> <64>

IPCL

none

EPOS

none

Description

This command allows an application to replace or redefine the active character

 

set mapping in the printer.

Where

<LL> <LH> defines the total length of the following data:

 

<LL> + 256 * <LH> = 1 + 2 * is the total number of characters to be replaced.

 

<BC> is the first character in the active map to be replaced.

 

<T1H> <T1L>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.

8The internal character map is provided in the Master Character Set Definitions Guide (PN 100-9785).

12/14/99

Rev G

Page 27

Page 37
Image 37
Star Micronics 150 manual Programmers Guide PcOS Series Control Codes, Character Code