CognitiveTPG A760 User Manual

Page 54

Advertising
background image

A760 User Guide: Programming Supplement
Chapter 4: Programming commands

54

Revision F January 2010

Select or cancel user-defined character set

ASCII

ESC % n

Hexadecimal 1B 25 n
Decimal

27 37 n

Value of n:

0 = Code Page 437

1 = User Defined (RAM)

2 = Code Page 850

Range of n:

0–2

Default:

0 (Code Page 437)

Selects the character set. When an undefined RAM
character is selected, the code page 437 character is used.
Look in Chapter 3: Programming the Printer, “Character
appearance” for the character sets.

Exception:

The character sets cannot be used together on the
same line.

Define user-defined character set

ASCII

ESC & s c1 c2 [character 1 data] ... [character k data]

Hexadecimal 1B 26 s c1 c2 [character 1 data] ... [character k data]
Decimal

27 38 s c1 c2 [character 1 data] ... [character k data]

Values and ranges:

Receipt:

s = 3, the number of bytes (vertically) in the character cell

c = the ASCII codes of the first (c1) and last (c2) characters
respectively

c1 = Hex 20–FF (20 is always printed as a space)

c2 = Hex 20–FF (20 is always printed as a space)

To define only one character, use the same code for

both c1 and c2

k = c2 – c1 + 1 = the number of characters to be defined
in this command string [character i data] = [ni d1 ... d(3 x ni)]
for 1 i k

ni = the number of dot columns for the ith character,
1
ni 16

d = the dot data for the characters

The number of bytes for the ith character cell is 3 x ni.

The bytes are printed down and across each cell.

Defines and enters downloaded characters into RAM. The
command may be used to overwrite single characters. User-
defined characters are available until power is turned off or
the initialize printer command (1B 40) is received.

Any invalid byte (s, c1, c2, n1) aborts the command.

Related information

See 1D 22 n (select memory type where to save
user-define fonts.)

Slip:

c = the ASCII codes of the first (c1) and last (c2) characters

respectively

c1 = Hex 20–FF

c2 = Hex 20–FF

To define only one character, use the same code for

both c1 and c2

d = the column data for the nth character as specified

by d1 ... dn

Each character is defined by 12 bytes (only bytes 2–11 are
printed.)

Each byte is one 7-dot high column (full- or half-dot
column.)

Overlapped dots are not printed.

The data must contain [(c2 - c1 + 1) x 12] bytes. (See
illustration on top of next page.)

Defines and enters downloaded characters into RAM
or flash. The command may be used to overwrite single
characters. User-defined characters are available until
power is turned off or the initialize printer command
(1B 40) is received.
Any invalid byte (s, c1, c2, n1) aborts the command.
User-defined character sets for both slip and receipt may
be used at the same time. The command clears bit image
logo data from RAM. The illustration on the next page
provides a sample of a character cell.

Related information

See 1D 22 n (select memory type where to save
user-define fonts.)

Advertising