Flash Memory User Sectors Allocation; Flash Object Area Pack; Flash Object Delete - CognitiveTPG A799II Programming Manual

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

Advertisement

128
Chapter 4: Programming Commands

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.

Flash object area pack

ASCII
GS " ` n1
Hexadecimal
1D 22 60 n1
Decimal
29 34 96 n1
Value of n1:
n1 specifies
n1 = 0
pack the permanent font area
n1 = 1
pack the logo and user-defined character area
Issuing this command will pack the objects currently stored in flash memory. Objects that are no longer valid will be
removed. This will provide the user the maximum amount of storage in this area for new objects.
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.

Flash object delete

ASCII
GS " ` n1 n2 (n3)
Hexadecimal
1D 22 61 n1 n2 (n3)
Decimal
29 34 97 n1 n2 (n3)
Value of n1:
n1 specifies
n1 = 01
user-defined character set where n2 is the ID of the user-defined character set to delete. This will delete all
characters found that are part of the specified set.
n1 = 02
logo where n2 is the ID of the logo to delete
n1 = 0C
double-byte font where n2 is the font ID and n3 is the font style of the font to delete. This will delete the
double-byte font of the specified ID and style. If no other fonts of the same ID are found, the double-byte
table that corresponds to this ID will be deleted as well.
n1 = 0D
POS fontset where n2 is the ID of the fontset to delete. This will delete both fonts specified by the fontset, if
they are not used in any other fontset.
n1 = 0F
demo script, which takes no following n parameters. Erases all scripts found, not individual scripts.
Issuing this command will delete an individual object or group of objects from flash memory. The parameter n3 is not used
for all types. To reuse the space that these objects occupied in flash memory, a flash area pack must be performed after
deleting the object(s).
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.
A799-2PG0001B 4/2016

Advertisement

Table of Contents
loading

Table of Contents