Text characteristics commands – CognitiveTPG A798 User Manual

Page 48

Advertising
background image

Chapter 4: Programming Commands

48

Revision C 12/09

A798-PG00001C

Text characteristics commands

These commands control what the printed information looks like, selection of character sets, definition of custom-defined
characters, and setting of margins. The commands are described in order of their hexadecimal codes.
The commands describe operation for 80mm paper. If the printer supports 82.5mm paper, the dot spacing is the same but
there are 640 printable dots rather than 576 printable dots on 80mm paper.

Select double-wide characters

ASCII

DC2

Hexadecimal 12

Decimal

18

Prints double-wide characters. The printer is reset to single-wide mode after a line has been printed or the clear printer
(0x10) command is received. Double-wide characters may be used in the same line with single-wide characters.
Exceptions

Double-wide characters may not be used in the same line with single or double-density graphics.
Related information

This command is ignored in LEGACY emulation.

Select single-wide characters

ASCII

DC3

Hexadecimal 13

Decimal

19

Prints single-wide characters. Single-wide characters may be used in the same line with double-wide characters.
Exceptions

Single-wide characters may not be used in the same line with single or double-density graphics.
Related information

This command is ignored in LEGACY emulation.

Select 90 degree counter-clockwise rotated print

ASCII

ESC DC2

Hexadecimal 1B 12

Decimal

27 18

Rotates characters 90 degrees counter-clockwise. The command remains in effect until the printer is reset or until a clear
printer (0x10), select or cancel upside down print (1b 7b) or cancel rotated print (1b 56) command is received.
Exceptions

This command is valid only at the beginning of a line.
Rotated print and non-rotated print characters cannot be used together in the same line.
Related information

See “Summary of rotated printing” in this document.
This command is ignored in LEGACY emulation.

Advertising