Define Extended User-Defined Character Set; Select Or Cancel Underline Mode - CognitiveTPG A799II Programming Manual

Two-color thermal receipt printer
Hide thumbs Also See for A799II:
Table of Contents

Advertisement

Define extended user-defined character set

ASCII
US & s c1 c2 [character 1 data] ... [character k data]
Hexadecimal
1F 26 s c1 c2 [character 1 data] ... [character k data]
Decimal
31 38 s c1 c2 [character 1 data] ... [character k data]
Values and ranges:
s = the number of dot rows in the character cell (maximum 64)
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
j = s/8 = the number of bytes (vertically) in the character cell
k = c2 – c1 + 1 = the number of characters to be defined in this command string
[character i data] = [ni d1 ... d(j 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 (bit gets printed to 1 and not printed to 0)
The number of bytes for the ith character cell is j x ni.
The bytes are printed down and across each cell starting from the left side.
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, n2) aborts the command.
Related information
User-defined characters can be set for each pitch independently by selecting the pitch using the 1B 21 command.
See ID 22 n (select memory type) to save user-defined characters.

Select or cancel underline mode

ASCII
ESC - n
Hexadecimal
1B 2D n
Decimal
27 45 n
Value of n:
Decimal Hex
0, 48
30
1, 49
31
2, 50
32
Default:
0 (Cancel underline mode)
Turns underline mode on or off until the printer is initialized, reset, or powered off. Underlines cannot be printed for
spaces set by the horizontal tab, set absolute start position, or set relative print position commands. Underline thickness
grows as the vertical size of the character grows.
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.
This command does not affect HRI characters.
Related information
In A793 emulation, this command is unrecognized and the parameter n is put into the print buffer.
=
Cancel underline mode
=
Select underline mode
=
Select double thickness underline mode
A799-2PG0001B 4/2016
Chapter 4: Programming Commands
57

Advertisement

Table of Contents
loading

Table of Contents