Cognitive Solutions A776 All in One Printer User Manual


 
Chapter 5: Programming commands 123
A776-PG00001 C 12/09 A776 (B780) Programming Guide
n = 51 (ASCII n = 3) HEX 33
Loads user-dened characters to ash memory. An application must use this command to store user-dened
characters in ash memory. Any user-dened characters dened following this command are stored in ash memory. A
user-dened character cannot be redened in ash memory. The ash memory page must be erased by an application
before redening user-dened characters. For more information, see the erase user ash sector (1D 40 n) command.
Species whether to load the logos or user-dened characters to logo/font ash memory or to RAM (volatile memory).
The selection remains in eect 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-dened 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 dierent 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 dierent 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 dierent 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]
Continued . . .