CognitiveTPG B780 User Manual

Page 69

Advertising
background image

Chapter 5: Programming commands

57

A776-PG00001 C 12/09

A776 (B780) Programming Guide

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

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

Overlapped dots are not printed.

The data must contain [(c2 - c1 + 1) x 12] bytes. (See illustration.)

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.

s = 2 B780, slip only. Limited emulation of A721.

Related information

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

Select or cancel underline mode

ASCII

ESC - n

Hexadecimal 1B 2D n

Decimal

27 45 n

Decimal Hex

Value of n:

0, 48

30 = Cancel underline mode

1, 49

31 = Select underline mode

2, 50

32 = Select double thickness

underline mode

Default:

0 (Cancel underline mode)

Turns underline mode on or off. Underlines cannot be printed for spaces set by the horizontal tab, set absolute start
position, or set relative print position commands.

This command and the select print mode(s) command (1B 21) turn underline on and off in the same way.

Exceptions

This command is ignored if n is out of the specified range.

Copy character set from ROM to RAM

ASCII

ESC : 0 0 0

Hexadecimal 1B 3A 30 30 30

Decimal

27 58 48 48 48

Default:

Code page 437

Copies characters in the active ROM set to RAM. Use this command to re-initialize the user-defined character set. Code
page 437 is copied by default at initialization. This command is ignored if current font is the user font.

Related information

To modify characters in one of the character set variations, such as rotated print, select one of the rotated print
commands, copy to RAM, then use the define user-defined character set command (1B 26).

Advertising
This manual is related to the following products: