Expanded Flash Memory Allocation; Select Flash Area For Storing Logos And User-Defined Characters; Return Flash Area Size - CognitiveTPG A799II Programming Manual

Two-color thermal receipt printer
Hide thumbs Also See for A799II:
Table of Contents

Advertisement

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 user 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 flash memory allocation sequence
n = 0xFFFF means allocate all remaining sectors to this area; only one area can specify this parameter value.

Select flash area for storing logos and user-defined characters

ASCII
GS" 0x81
Hexadecimal
1D 22 81 n
Decimal
29 34 129 n
Value of n:
n specifies
n = 0
select logo/font flash
n = 1
select permanent font flash
n > 1
reserved
Logos and user-defined characters can be stored in either flash area.

Return flash area size

ASCII
GS" 0x90
Hexadecimal
1D 22 90 n
Decimal
29 34 144 n
Value of n:
n specifies
n = 0
select logo/font flash
n = 1
select permanent font flash
n > 1
reserved
Returns the size for the selected flash area.
A799-2PG0001B 4/2016
Chapter 4: Programming Commands
129

Advertisement

Table of Contents
loading

Table of Contents