A SERVICE OF

logo

Chapter 4: Programming Commands 113
Revision D 12/09
A799-PG00001D
Expanded ash memory allocation
ASCII GS “ 0x80
Hexadecimal 1D 22 80
Decimal 29 34 128
This sequence of commands is used to specify the number of ash sectors to be used for different applications. The begin
and end sequence commands must be sent. All areas do not need to have ash sectors specied.
The command to request the number of user sectors is optional.
If more sectors are specied than are available the command sequence is ignored and the printer returns NACK.
If the sectors are available, and different from current parameters, all sectors are erased and the printer returns ACK.
If the sectors specied are the same as current parameters, nothing is erased and the printer returns ACK.
1D 22 80 00 request number of user sectors available, printer returns nL nH
1D 22 80 30 begin expanded ash memory allocation sequence
1D 22 80 31 nL nH n sectors to logo/font area
1D 22 80 32 nL nH n sectors to usDe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.
er data storage area
1D 22 80 33 nL nH n sectors to permanent font area
1D 22 80 34 nL nH n sectors to electronic journal area
1D 22 80 40 end expanded ash memory allocation sequence
n = 0xFFFF means allocate all remaining sectors to this area; only one area can specify this parameter value.