Cognitive Solutions A776 All in One Printer User Manual


 
Chapter 5: Programming commands 65
A776-PG00001 C 12/09 A776 (B780) Programming Guide
Dene extended user-dened 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 rst (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 dene 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 dened 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
The number of bytes for the ith character cell is j x ni.
The bytes are printed down and across each cell.
See the illustration.
Denes and enters downloaded characters into RAM. The command may be used to overwrite single characters. User-
dened 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.
Select active user-dened character set
Selects user-dened character set number for download or printing. The default at power on is 0.
ASCII US i n
Hexadecimal 1F 69 n
Decimal 31 105 n
n = 0 - 127
Set high order bit of n to congure user-dened character set number as the default. To congure the printer to print from
the user-dened character set at power, send 1F 3 0F 01 and reset the printer. Information will print on the rst diagnostic
page.




