Programming GuideA798 Thermal Receipt PrinterMade under one or more of the following U.S. patents: 4886381, 5579043, 5613787, 5651624, 5713678, 575277
A798 Programming GuideChapter 1: About this Guide10Revision C 12/09A798-PG00001C
Chapter 4: Programming Commands100Revision C 12/09A798-PG00001CFlash downloadThese commands are used to load rmware into the printer.The commands are
Chapter 4: Programming Commands 101Revision C 12/09A798-PG00001CReturn segment number status of ash memoryASCII GS SOH Hexadecimal 1D 01 Decimal
Chapter 4: Programming Commands102Revision C 12/09A798-PG00001CReturn main program ash CRCASCII GS SI Hexadecimal 1D 0F Decimal 29 15Returns the C
Chapter 4: Programming Commands 103Revision C 12/09A798-PG00001C
Appendix A: Commands by Hexadecimal Code104Revision C 12/09A798-PG00001CAppendix A: Commands listed by hexadecimal codeBy command codeCode (hexadecim
Appendix A: Commands by Hexadecimal Code 105Revision C 12/09A798-PG00001CCode (hexadecimal) Command Page1B 33 n Set vertical line spacing 441B 3
Appendix A: Commands by Hexadecimal Code106Revision C 12/09A798-PG00001CCode (hexadecimal) Command Page1D 00 Return boot sector rmware part number
Appendix A: Commands by Hexadecimal Code 107Revision C 12/09A798-PG00001CCode (hexadecimal) Command Page1D 6B m d1...dk 00 Print bar code 84 or 1
Appendix B: Resident Character Sets108 Revision C 12/09A798-PG00001CAppendix B: Resident Character SetsCharacter setsCode page 437 (US)
Appendix B: Resident Character Sets 109Revision C 12/09A798-PG00001CCode page 737 (Greek)
Chapter 2: Diagnostics and Conguration 11Revision C 12/09A798-PG00001CChapter 2: Diagnostics and CongurationThe A798 printer performs a number of d
Appendix B: Resident Character Sets110 Revision C 12/09A798-PG00001CCode page 850 (Multilingual)
Appendix B: Resident Character Sets 111Revision C 12/09A798-PG00001CCode page 852 (Slavic)
Appendix B: Resident Character Sets112 Revision C 12/09A798-PG00001CCode page 857 (Turkish)
Appendix B: Resident Character Sets 113Revision C 12/09A798-PG00001CCode page 858 (with Eurosymbol)
Appendix B: Resident Character Sets114 Revision C 12/09A798-PG00001CCode page 860 (Portuguese)
Appendix B: Resident Character Sets 115Revision C 12/09A798-PG00001CCode page 862 (Hebrew)
Appendix B: Resident Character Sets116 Revision C 12/09A798-PG00001CCode page 863 (French Canadian)
Appendix B: Resident Character Sets 117Revision C 12/09A798-PG00001CCode page 865 (Nordic)
Appendix B: Resident Character Sets118 Revision C 12/09A798-PG00001CCode page 866 (Cyrillic)
Appendix B: Resident Character Sets 119Revision C 12/09A798-PG00001CCode page 1252 (Windows Latin 1)
Chapter 2: Diagnostics and Conguration12Revision C 12/09A798-PG00001CRuntime diagnosticsRuntime diagnostics (sometimes called level 2 diagnostics) ru
A798 Thermal Receipt Printer: Programmer Guide A798-PG00001 Rev. C 12/09
Chapter 2: Diagnostics and Conguration 13Revision C 12/09A798-PG00001CFor more information about See this section Accessing the remote diagnostic t
Chapter 2: Diagnostics and Conguration14Revision C 12/09A798-PG00001CIndicatorsThe printer communicates various conditions both visually, with the gr
Chapter 2: Diagnostics and Conguration 15Revision C 12/09A798-PG00001CPrinter congurationPrinters are shipped with all the functions and parameters
Chapter 2: Diagnostics and Conguration16Revision C 12/09A798-PG00001CConguring the printerThe conguration menu allows you to select functions or ch
Chapter 2: Diagnostics and Conguration 17Revision C 12/09A798-PG00001CCommunication interfaceTo change the communication interface settings, enter t
Chapter 2: Diagnostics and Conguration18Revision C 12/09A798-PG00001CDiagnostic modesTo change the diagnostic modes enter the conguration menu, sele
Chapter 2: Diagnostics and Conguration 19Revision C 12/09A798-PG00001CEnable or disable receipt test modeThe receipt test mode veries proper receip
Federal Communications Commission (FCC) Radio Frequency Interference Statement WarningChanges or modications to this unit not expressly approved by t
Chapter 2: Diagnostics and Conguration20Revision C 12/09A798-PG00001CPrinter settings and functionsTo change the printer settings and functions, ente
Chapter 2: Diagnostics and Conguration 21Revision C 12/09A798-PG00001CSelect the hardware options sub-menu to set: • Printhead setting This settin
Chapter 2: Diagnostics and Conguration22Revision C 12/09A798-PG00001C
Chapter 3: Programming the Printer 23Revision C 12/09A798-PG00001CChapter 3: Programming the PrinterOverview of commandsCommands control all operatio
Chapter 3: Programming the Printer24Revision C 12/09A798-PG00001CCommand Description Dierence between previous product and new product emulati
Chapter 3: Programming the Printer 25Revision C 12/09A798-PG00001CCharacter appearanceThe appearance of text can be changed using the following print
Chapter 3: Programming the Printer26Revision C 12/09A798-PG00001CA B CABCABC ABCPrint zones for 82.5mm paperSpecications of print zone for 82.5 mm
Chapter 3: Programming the Printer 27Revision C 12/09A798-PG00001CEmulation modesThe CognitiveTPG A798 printer may be operated in a number of differe
Chapter 3: Programming the Printer28Revision C 12/09A798-PG00001C
Chapter 4: Programming Commands 29Revision C 12/09A798-PG00001CChapter 4: Programming CommandsCommands listed by functionPrinter actionsCode (hexadec
A798 Programming GuideContents 3Revision C 12/09A798-PG00001CContentsChapter 1: About this Guide ...
Chapter 4: Programming Commands30Revision C 12/09A798-PG00001CVertical and horizontal positioning Code (hexadecimal) Command Page09 Horizontal tab
Chapter 4: Programming Commands 31Revision C 12/09A798-PG00001CGraphics Code (hexadecimal) Command Page11 n1 . . . n72 Print raster graphics 651
Chapter 4: Programming Commands32Revision C 12/09A798-PG00001CBar codesCode (hexadecimal) Command Page1D 48 n Select printing position for HRI char
Chapter 4: Programming Commands 33Revision C 12/09A798-PG00001CFlash downloadCode (hexadecimal) Command Page1B 5B 7D Switch to ash download mode
Chapter 4: Programming Commands34Revision C 12/09A798-PG00001CCommand descriptionsPrinter actionsThe printer function commands control the following b
Chapter 4: Programming Commands 35Revision C 12/09A798-PG00001CGenerate toneASCII ESC BEL Hexadecimal 1B 07 Decimal 27 7Generates an audible tone.
Chapter 4: Programming Commands36Revision C 12/09A798-PG00001CSelect paper sensors to output paper-end signalsASCII ESC c 3 n Hexadecimal 1B 63 33 n
Chapter 4: Programming Commands 37Revision C 12/09A798-PG00001CEnable or disable panel buttonASCII ESC c 5 n Hexadecimal 1B 63 35 n Decimal 27 99
Chapter 4: Programming Commands38Revision C 12/09A798-PG00001CSelect cut mode and cut paperASCII GS V m GS V m n Hexadecimal 1D 56 m 1D 56 m n
Chapter 4: Programming Commands 39Revision C 12/09A798-PG00001CPrint and paper feedThe print and feed commands control printing on the receipt and pa
A798 Programming GuideContents4 Revision C 12/09A798-PG00001CChapter 4: Programming Commands ...29Command
Chapter 4: Programming Commands40Revision C 12/09A798-PG00001CAdd n extra dot rowsASCII SYN n Hexadecimal 16 n Decimal 22 nValue of n: Number of e
Chapter 4: Programming Commands 41Revision C 12/09A798-PG00001CPrint and feed paperASCII ESC J n Hexadecimal 1B 4A n Decimal 27 74 nValue of n: n
Chapter 4: Programming Commands42Revision C 12/09A798-PG00001CVertical and horizontal positioningThe horizontal positioning commands control the horiz
Chapter 4: Programming Commands 43Revision C 12/09A798-PG00001CSet absolute starting positionASCII ESC $ nL nH Hexadecimal 1B 24 nL nH Decimal 27
Chapter 4: Programming Commands44Revision C 12/09A798-PG00001CSet vertical line spacingASCII ESC 3 n Hexadecimal 1B 33 n Decimal 27 51 nValue of n:
Chapter 4: Programming Commands 45Revision C 12/09A798-PG00001CSet relative print positionASCII ESC \ n1 n2 Hexadecimal 1B 5C n1 n2 Decimal 27 92
Chapter 4: Programming Commands46Revision C 12/09A798-PG00001CIn order to improve the speed of printing, the A798 moves the data into a buffer for the
Chapter 4: Programming Commands 47Revision C 12/09A798-PG00001CExceptions:The command is effective only at the beginning of a line. This command is i
Chapter 4: Programming Commands48Revision C 12/09A798-PG00001CText characteristics commandsThese commands control what the printed information looks l
Chapter 4: Programming Commands 49Revision C 12/09A798-PG00001CSelect pitch (column width)ASCII ESC SYN n Hexadecimal 1B 16 n Decimal 27 22 nValue
A798 Programming GuideContents 5Revision C 12/09A798-PG00001CSet relative print position ...
Chapter 4: Programming Commands50Revision C 12/09A798-PG00001CSelect print modeASCII ESC ! n Hexadecimal 1B 21 n Decimal 27 33 n Value of n: Pitch
Chapter 4: Programming Commands 51Revision C 12/09A798-PG00001CSelect or cancel user-dened character setASCII ESC % n Hexadecimal 1B 25 n Decimal
Chapter 4: Programming Commands52Revision C 12/09A798-PG00001CDene extended user-dened character setASCII US & s c1 c2 [character 1 data] ...
Chapter 4: Programming Commands 53Revision C 12/09A798-PG00001CCopy character set from ROM to RAMASCII ESC : 0 0 0 Hexadecimal 1B 3A 30 30 30 Decim
Chapter 4: Programming Commands54Revision C 12/09A798-PG00001CSelect or cancel double-strikeASCII ESC G n Hexadecimal 1B 47 n Decimal 27 71 nValue
Chapter 4: Programming Commands 55Revision C 12/09A798-PG00001CSelect international character code ASCII ESC R n Hexadecimal 1B 52 n Decimal 27 82
Chapter 4: Programming Commands56Revision C 12/09A798-PG00001CSelect international character set ASCII: ESC t n Hexadecimal: 1B 74 n Decimal: 27 11
Chapter 4: Programming Commands 57Revision C 12/09A798-PG00001CSelect character sizeASCII GS ! n Hexadecimal 1D 21 n Decimal 29 33 nValue of n: 1
Chapter 4: Programming Commands58Revision C 12/09A798-PG00001CSelect or cancel white/black reverse print modeASCII GS B n Hexadecimal 1D 42 n Decima
Chapter 4: Programming Commands 59Revision C 12/09A798-PG00001CSelect active user-dened character setSelects user-dened character set number for do
A798 Programming GuideContents6 Revision C 12/09A798-PG00001CTransmit status ...
Chapter 4: Programming Commands60Revision C 12/09A798-PG00001CSelect bit image modeASCII ESC * m n1 n2 d1 ... dn Hexadecimal 1B 2A m n1 n2 d1 ... dn
Chapter 4: Programming Commands 61Revision C 12/09A798-PG00001CPrint advanced raster graphicsASCII ESC . m n rL rH d1 … dn Hexadecimal 1B 2E m n rL
Chapter 4: Programming Commands62Revision C 12/09A798-PG00001CPrint Flash LogoASCII FS p n m Hexadecimal 1C 70 n m Decimal 28 112 n mPrint ash
Chapter 4: Programming Commands 63Revision C 12/09A798-PG00001CDene downloaded bit imageASCII GS * n1 n2 d1 ... dn] Hexadecimal 1D 2A n1 n2 d1 ...
Chapter 4: Programming Commands64Revision C 12/09A798-PG00001CPrint downloaded bit imageASCII GS / m Hexadecimal 1D 2F m Decimal 29 47 mValue and r
Chapter 4: Programming Commands 65Revision C 12/09A798-PG00001CPrint raster graphicsASCII DC1 n1…..nl (576 dots) for 80 mm paper, or n80 (640 dots)
Chapter 4: Programming Commands66Revision C 12/09A798-PG00001CTransmit peripheral device status (RS-232C printers only)ASCII ESC u 0 Hexadecimal 1B
Chapter 4: Programming Commands 67Revision C 12/09A798-PG00001CTransmit paper sensor statusASCII ESC v Hexadecimal 1B 76 Decimal 27 118Values:Stat
Chapter 4: Programming Commands68Revision C 12/09A798-PG00001CTransmit printer IDASCII GS I n Hexadecimal 1D 49 n Decimal 29 73 nValue of n: 1, 49
Chapter 4: Programming Commands 69Revision C 12/09A798-PG00001CTransmit printer ID, remote diagnostics extensionASCII GS I @ n Hexadecimal 1D 49 40
A798 Programming GuideContents 7Revision C 12/09A798-PG00001CExpanded ash memory allocation ...
Chapter 4: Programming Commands70Revision C 12/09A798-PG00001CValue of n (continued)ASCII Hex Dec Remote diagnostic item Function å 86 134 Kni
Chapter 4: Programming Commands 71Revision C 12/09A798-PG00001CTransmit statusASCII GS r n Hexadecimal 1D 72 n Decimal 29 114 nValue of n: 1, 49
Chapter 4: Programming Commands72Revision C 12/09A798-PG00001CFlash memory user sector status (n = 4 or n = 52)Bit O/On Hex Decimal Status for tr
Chapter 4: Programming Commands 73Revision C 12/09A798-PG00001CReal time commandsThe real time commands provide an application interface to the print
Chapter 4: Programming Commands74Revision C 12/09A798-PG00001CMoving data through the buerApplications should not let the buffer ll up with real ti
Chapter 4: Programming Commands 75Revision C 12/09A798-PG00001CAn application using DLE (0x10) sequence must send EOT within 100 milliseconds of DLE
Chapter 4: Programming Commands76Revision C 12/09A798-PG00001C3 = Transmit error statusBit Status Hex Decimal Function0 O 00 0 Fixed to o.1
Chapter 4: Programming Commands 77Revision C 12/09A798-PG00001CReal time request to printer GS sequence DLE sequenceASCII GS ETX n DLE ENQ n He
Chapter 4: Programming Commands78Revision C 12/09A798-PG00001CReal time printer status transmissionASCII GS ENQ Hexadecimal 1D 05 Decimal 29 5Trans
Chapter 4: Programming Commands 79Revision C 12/09A798-PG00001CUnsolicited status modeSelect or cancel unsolicited status mode (USM)ASCII: GS a n He
A798 Programming GuideContents8 Revision C 12/09A798-PG00001C
Chapter 4: Programming Commands80Revision C 12/09A798-PG00001CFirst Byte (Printer Information)Bit O/On Hex Decimal Status for USM0 O 00 0 No
Chapter 4: Programming Commands 81Revision C 12/09A798-PG00001CThird byte (paper sensor information)Bit O/On Hex Decimal Status for USM0 O 00
Chapter 4: Programming Commands82Revision C 12/09A798-PG00001CRecognizing data from the printerAn application sending various real time and non-real t
Chapter 4: Programming Commands 83Revision C 12/09A798-PG00001CBar codesThese commands format and print bar codes and are described in order of their
Chapter 4: Programming Commands84Revision C 12/09A798-PG00001CPrint bar code First Variation Second VariationASCII GS k m d1…dk NUL GS k m n d1…dn
Chapter 4: Programming Commands 85Revision C 12/09A798-PG00001CSecond variation: length n specied at beginning of string. Except as noted, 0 < n
Chapter 4: Programming Commands86Revision C 12/09A798-PG00001C· Page mode parameters initialized at end of multiple barcodes command stringSample mul
Chapter 4: Programming Commands 87Revision C 12/09A798-PG00001CPrint GS1 DataBar (formerly RSS), null terminatedASCII GS k n d1... 00Hexadecimal
Chapter 4: Programming Commands88Revision C 12/09A798-PG00001CSelect PDF 417 parametersASCII GS p a b c d e f Hexadecimal 1D 70 a b c d e f Decimal
Chapter 4: Programming Commands 89Revision C 12/09A798-PG00001CSample symbol description:Each PDF 417 symbol consists of 3 to 90 stacked rows surroun
Chapter 1: About this Guide 9Revision C 12/09A798-PG00001CChapter 1: About this GuideHow to use this guideThis is a supplemental guide providing prog
Chapter 4: Programming Commands90Revision C 12/09A798-PG00001CPage modePage mode is one of two modes that the A798 printer uses to operate. Standard m
Chapter 4: Programming Commands 91Revision C 12/09A798-PG00001CSelect page modeASCII ESC L Hexadecimal 1B 4C Decimal 27 76Switches from standard m
Chapter 4: Programming Commands92Revision C 12/09A798-PG00001CSelect standard modeASCII ESC S Hexadecimal 1B 53 Decimal 27 83Switches from page mod
Chapter 4: Programming Commands 93Revision C 12/09A798-PG00001CSet print area in page modeASCII ESC W n1, n2 ...n8 Hexadecimal 1B 57 n1, n2 ...n8 D
Chapter 4: Programming Commands94Revision C 12/09A798-PG00001CSet absolute vertical print position in page modeASCII GS $ nL nH Hexadecimal 1D 24 nL
Chapter 4: Programming Commands 95Revision C 12/09A798-PG00001CMacrosThese commands are used to select and perform a user-dened sequence of printer
Chapter 4: Programming Commands96Revision C 12/09A798-PG00001CUser data storageWrite to user data storageASCII ESC ‘ m a0 a1 a2 d1 ... dm Hexadecimal
Chapter 4: Programming Commands 97Revision C 12/09A798-PG00001CSelect memory type (SRAM/ash) where to save logos or user-dened fontsASCII GS “ n H
Chapter 4: Programming Commands98Revision C 12/09A798-PG00001CExpanded ash memory allocationASCII GS “ 0x80 Hexadecimal 1D 22 80 Decimal 29 34 128
Chapter 4: Programming Commands 99Revision C 12/09A798-PG00001CErase user ash sectorASCII GS @ n Hexadecimal 1D 40 n Decimal 29 64 nValue of n:
Comments to this Manuals