Double-Byte Fonts; Lock Permanent Font Flash Area; Erase User Flash Sector - CognitiveTPG A799II Programming Manual

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

Advertisement

Double-byte fonts

Five double-byte fonts are available for use on the A799II Series printer: Simplified Chinese, Traditional Chinese, Kanji,
Korean and Thai.
The Thai font (Code Page 874) is already available as a resident code page.
The commands needed for downloading the fonts are described below in the order of use. Before downloading Simplified
Chinese, Traditional Chinese, Kanji, or Korean , the expanded flash memory allocation must be set up to expand the size
of the permanent font space. For Simplified Chinese, 2.2 Meg of space is required. Traditional Chinese requires 1.3 Meg.
Kanji requires 1 Meg, and Korean requires of 1 Meg of space in the permanent font area.
If the A799II is set to Unicode, the Vietnamese character set is available.

Lock permanent font flash area

ASCII
GS 0xF0 0x10 n
Hexadecimal
1D F0 10 n
Decimal
29 240 16 n
Value of n:
n = 0x00
lock permanent font flash (default)
n = 0x01
unlock permanent font flash to erase or delete
This command allows or prevents the permanent font area to be erased.
Note: This only affects the 1D 40 33 commands and downloading a font to permanent font area when a font already exists
with the same ID.

Erase user flash sector

ASCII
GS @ n
Hexadecimal
1D 40 n
Decimal
29 64 n
Value of n:
51
n = 49 (ASCII n = 1) HEX 31
This command erases all 64K Flash Memory sectors allocated to user-defined character and logos storage in Flash . Those
sectors should be erased only in one situation: when the logo definition area is full and an application is attempting to
define new logos. In both cases, all logos and character set definitions are erased and must be redefined.
n = 50 (ASCII n = 2) HEX 32
This command erases all sectors available for user data storage.
n = 51 (ASCII n = 3) HEX 33
This command erases all sectors available for permanent fonts. The area must be unlocked first using the 1D F0 10 01
command above.
Erases a page of flash memory and sends a carriage return when the operation is complete, or a NAK if erase fails.
Related information
See command "Flash memory user sectors allocation" (1D 22 55 n1 n2).
See also command "Expanded flash memory allocation" (1D 22 80...) and "Select flash area" (1D 22 81 n).
Important: While erasing flash memory, the printer disables all interrupts, including communications. To provide feedback
to the application, the printer responds to the application when the erase is complete with a 0D (Hex). After sending the
erase user flash sector (1D 40 n) command, an application should wait for the response from the printer before sending
data. Otherwise, data will be lost. If an application is unable to receive data, it should wait a minimum of ten seconds after
sending the erase user flash sector (1D 40 n) command before sending data.
A799-2PG0001B 4/2016
Chapter 4: Programming Commands
67

Advertisement

Table of Contents
loading

Table of Contents