Chapter 5: Programming commands 123
A776-PG00001 C 12/09 A776 (B780) Programming Guide
n = 51 (ASCII n = 3) HEX 33
Loads user-dened characters to ash memory. An application must use this command to store user-dened
characters in ash memory. Any user-dened characters dened following this command are stored in ash memory. A
user-dened character cannot be redened in ash memory. The ash memory page must be erased by an application
before redening user-dened characters. For more information, see the erase user ash sector (1D 40 n) command.
Species whether to load the logos or user-dened characters to logo/font ash memory or to RAM (volatile memory).
The selection remains in eect until it is changed via this command or until the power cycles. To specify permanent
font ash, also send 1D 22 81 01.
Flash memory user sectors allocation
ASCII GS “ U n1 n
Hexadecimal 1D 22 55 n1 n2
Decimal 29 34 85 n1 n2
Default Value of n1: 1 (see below)
Default Value of n2: 1 (see below)
n1 is the number of 64k sectors used for logos and user-dened characters.
n2 is the number of 64k sectors used for user data storage.
n1 + n2 <= 6 (dec) (1M)
n1 + n2 <= 22 (dec) 16 (hex) (2M)
If n1 + n2 is greater than the maximum number of sectors available, the command is ignored. The printer returns
NACK.
Issuing this command with parameters dierent from current parameters will erase all sectors. The printer returns ACK.
Issuing this command with parameters the same as current parameters will do nothing. The printer returns ACK.
Note: Flash memory is made up of user and program code. Therefore, the available ash memory space will vary with the
amount of program code utilized.
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 dierent applications. The
begin and end sequence commands must be sent. All areas do not need to have ash sectors specied.
The command to request the number of user sectors is optional.
If more sectors are specied than are available the command sequence is ignored and the printer returns NACK.
If the sectors are available, and dierent from current parameters, all sectors are erased and the printer returns ACK.
If the sectors specied 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 usDene extended user-dened 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]
Continued . . .