CognitiveTPG B780 User Manual
Page 135

Chapter 5: Programming commands 123
A776-PG00001 C 12/09
A776 (B780) Programming Guide
n = 51 (ASCII n = 3) HEX 33
Loads user-defined characters to flash memory. An application must use this command to store user-defined
characters in flash memory. Any user-defined characters defined following this command are stored in flash memory. A
user-defined character cannot be redefined in flash memory. The flash memory page must be erased by an application
before redefining user-defined characters. For more information, see the erase user flash sector (1D 40 n) command.
Specifies whether to load the logos or user-defined characters to logo/font flash memory or to RAM (volatile memory).
The selection remains in effect until it is changed via this command or until the power cycles. To specify permanent
font flash, 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-defined 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 different 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 flash memory space will vary with the
amount of program code utilized.
Expanded flash memory allocation
ASCII
GS “ 0x80
Hexadecimal 1D 22 80
Decimal
29 34 128
This sequence of commands is used to specify the number of flash sectors to be used for different applications. The
begin and end sequence commands must be sent. All areas do not need to have flash sectors specified.
The command to request the number of user sectors is optional.
If more sectors are specified 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 specified 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 flash memory allocation sequence
1D 22 80 31 nL nH
n sectors to logo/font area
1D 22 80 32 nL nH
n sectors to usDefine 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]
Continued . . .