
Chapter 3: Programming Commands58
Double-byte fonts
Fivedouble-bytefontsareavailableforuseontheA798IISeriesprinter:SimpliedChinese,TraditionalChinese,Kanji,
KoreanandThai.
TheThaifont(CodePage874)isalreadyavailableasaresidentcodepage.
Thecommandsneededfordownloadingthefontsaredescribedbelowintheorderofuse.BeforedownloadingSimplied
Chinese,TraditionalChinese,Kanji,orKorean,theexpandedashmemoryallocationmustbesetuptoexpandthesize
ofthepermanentfontspace.ForSimpliedChinese,2.2Megofspaceisrequired.TraditionalChineserequires1.3Meg.
Kanjirequires1Meg,andKoreanrequiresof1Megofspaceinthepermanentfontarea.
IftheA798IIissettoUnicode,theVietnamesecharactersetisavailable.
Lock permanent font ash area
ASCII GS 0xF0 0x10 n
Hexadecimal 1D F0 10 n
Decimal 29 240 16 n
Value of n: n = 0x00 lock permanent font ash (default)
n = 0x01 unlock permanent font ash 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 ash sector
ASCII GS @ n
Hexadecimal 1D 40 n
Decimal 29 64 n
Value of n: 51
n = 49 (ASCII n = 1) HEX 31
Thiscommanderasesall64KFlashMemorysectorsallocatedtouser-denedcharacterandlogosstorageinFlash.
Thosesectorsshouldbeerasedonlyinonesituation:whenthelogodenitionareaisfullandanapplicationisattempting
todenenewlogos.Inbothcases,alllogosandcharactersetdenitionsareerasedandmustberedened.
n = 50 (ASCII n = 2) HEX 32
This command erases all sectors available for user data storage.
n = 51 (ASCII n = 3) HEX 33
Thiscommanderasesallsectorsavailableforpermanentfonts.Theareamustbeunlockedrstusingthe1DF01001
command above.
Erasesapageofashmemoryandsendsacarriagereturnwhentheoperationiscomplete,oraNAKiferasefails.
Related information
Seecommand“Flashmemoryusersectorsallocation”(1D2255n1n2).
Seealsocommand“Expandedashmemoryallocation”(1D2280...)and“Selectasharea”(1D2281n).
Important: While erasing ash 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 ash 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 ash sector (1D 40 n) command before sending data.
Comentarios a estos manuales