CognitiveTPG A798 Instruction Manual

Browse online or download Instruction Manual for Print & Scan CognitiveTPG A798. CognitiveTPG A798 Instruction manual [en] [it] User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 121
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
Programming Guide
A798 Thermal Receipt Printer
Made under one or more of the following U.S. patents:
4886381, 5579043, 5613787, 5651624, 5713678, 5752779, 5789916, 5800080,
5879090, 5887999, 5975776, 6027266, 6085973, 6089450, 6129465, 6155483,
6404452, 6486902, 6504331, 5749277, 6722754, 6739773, 6784909.
Page view 0
1 2 3 4 5 6 ... 120 121

Summary of Contents

Page 1 - Programming Guide

Programming GuideA798 Thermal Receipt PrinterMade under one or more of the following U.S. patents: 4886381, 5579043, 5613787, 5651624, 5713678, 575277

Page 2

A798 Programming GuideChapter 1: About this Guide10Revision C 12/09A798-PG00001C

Page 3 - Contents

Chapter 4: Programming Commands100Revision C 12/09A798-PG00001CFlash downloadThese commands are used to load rmware into the printer.The commands are

Page 4 - 4 Revision C 12/09

Chapter 4: Programming Commands 101Revision C 12/09A798-PG00001CReturn segment number status of ash memoryASCII GS SOH Hexadecimal 1D 01 Decimal

Page 5

Chapter 4: Programming Commands102Revision C 12/09A798-PG00001CReturn main program ash CRCASCII GS SI Hexadecimal 1D 0F Decimal 29 15Returns the C

Page 6 - 6 Revision C 12/09

Chapter 4: Programming Commands 103Revision C 12/09A798-PG00001C

Page 7

Appendix A: Commands by Hexadecimal Code104Revision C 12/09A798-PG00001CAppendix A: Commands listed by hexadecimal codeBy command codeCode (hexadecim

Page 8 - 8 Revision C 12/09

Appendix A: Commands by Hexadecimal Code 105Revision C 12/09A798-PG00001CCode (hexadecimal) Command Page1B 33 n Set vertical line spacing 441B 3

Page 9

Appendix A: Commands by Hexadecimal Code106Revision C 12/09A798-PG00001CCode (hexadecimal) Command Page1D 00 Return boot sector rmware part number

Page 10 - A798-PG00001C

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

Page 11 - Start-up Diagnostics

Appendix B: Resident Character Sets108 Revision C 12/09A798-PG00001CAppendix B: Resident Character SetsCharacter setsCode page 437 (US)

Page 12 - Remote diagnostics

Appendix B: Resident Character Sets 109Revision C 12/09A798-PG00001CCode page 737 (Greek)

Page 13 - Comm Class”

Chapter 2: Diagnostics and Conguration 11Revision C 12/09A798-PG00001CChapter 2: Diagnostics and CongurationThe A798 printer performs a number of d

Page 14 - Indicators

Appendix B: Resident Character Sets110 Revision C 12/09A798-PG00001CCode page 850 (Multilingual)

Page 15 - Printer conguration

Appendix B: Resident Character Sets 111Revision C 12/09A798-PG00001CCode page 852 (Slavic)

Page 16 - Conguring the printer

Appendix B: Resident Character Sets112 Revision C 12/09A798-PG00001CCode page 857 (Turkish)

Page 17 - Communication interface

Appendix B: Resident Character Sets 113Revision C 12/09A798-PG00001CCode page 858 (with Eurosymbol)

Page 18 - Diagnostic modes

Appendix B: Resident Character Sets114 Revision C 12/09A798-PG00001CCode page 860 (Portuguese)

Page 19 - Printer emulations

Appendix B: Resident Character Sets 115Revision C 12/09A798-PG00001CCode page 862 (Hebrew)

Page 20

Appendix B: Resident Character Sets116 Revision C 12/09A798-PG00001CCode page 863 (French Canadian)

Page 21

Appendix B: Resident Character Sets 117Revision C 12/09A798-PG00001CCode page 865 (Nordic)

Page 22

Appendix B: Resident Character Sets118 Revision C 12/09A798-PG00001CCode page 866 (Cyrillic)

Page 23 - Comparison to A793

Appendix B: Resident Character Sets 119Revision C 12/09A798-PG00001CCode page 1252 (Windows Latin 1)

Page 24

Chapter 2: Diagnostics and Conguration12Revision C 12/09A798-PG00001CRuntime diagnosticsRuntime diagnostics (sometimes called level 2 diagnostics) ru

Page 26 - Rotated printing commands

A798 Thermal Receipt Printer: Programmer Guide A798-PG00001 Rev. C 12/09

Page 27 - Emulation modes

Chapter 2: Diagnostics and Conguration 13Revision C 12/09A798-PG00001CFor more information about See this section Accessing the remote diagnostic t

Page 28

Chapter 2: Diagnostics and Conguration14Revision C 12/09A798-PG00001CIndicatorsThe printer communicates various conditions both visually, with the gr

Page 29 - Commands listed by function

Chapter 2: Diagnostics and Conguration 15Revision C 12/09A798-PG00001CPrinter congurationPrinters are shipped with all the functions and parameters

Page 30 - Text characteristics

Chapter 2: Diagnostics and Conguration16Revision C 12/09A798-PG00001CConguring the printerThe conguration menu allows you to select functions or ch

Page 31 - Graphics

Chapter 2: Diagnostics and Conguration 17Revision C 12/09A798-PG00001CCommunication interfaceTo change the communication interface settings, enter t

Page 32 - User data storage

Chapter 2: Diagnostics and Conguration18Revision C 12/09A798-PG00001CDiagnostic modesTo change the diagnostic modes enter the conguration menu, sele

Page 33 - Command conventions

Chapter 2: Diagnostics and Conguration 19Revision C 12/09A798-PG00001CEnable or disable receipt test modeThe receipt test mode veries proper receip

Page 34 - Command descriptions

Federal Communications Commission (FCC) Radio Frequency Interference Statement WarningChanges or modications to this unit not expressly approved by t

Page 35 - Initialize printer

Chapter 2: Diagnostics and Conguration20Revision C 12/09A798-PG00001CPrinter settings and functionsTo change the printer settings and functions, ente

Page 36

Chapter 2: Diagnostics and Conguration 21Revision C 12/09A798-PG00001CSelect the hardware options sub-menu to set: • Printhead setting This settin

Page 37

Chapter 2: Diagnostics and Conguration22Revision C 12/09A798-PG00001C

Page 38 - Print test form

Chapter 3: Programming the Printer 23Revision C 12/09A798-PG00001CChapter 3: Programming the PrinterOverview of commandsCommands control all operatio

Page 39 - Print and paper feed

Chapter 3: Programming the Printer24Revision C 12/09A798-PG00001CCommand Description Dierence between previous product and new product emulati

Page 40 - Add n extra dot rows

Chapter 3: Programming the Printer 25Revision C 12/09A798-PG00001CCharacter appearanceThe appearance of text can be changed using the following print

Page 41 - Print and feed n lines

Chapter 3: Programming the Printer26Revision C 12/09A798-PG00001CA B CABCABC ABCPrint zones for 82.5mm paperSpecications of print zone for 82.5 mm

Page 42 - Set column

Chapter 3: Programming the Printer 27Revision C 12/09A798-PG00001CEmulation modesThe CognitiveTPG A798 printer may be operated in a number of differe

Page 43

Chapter 3: Programming the Printer28Revision C 12/09A798-PG00001C

Page 44 - Set horizontal tab positions

Chapter 4: Programming Commands 29Revision C 12/09A798-PG00001CChapter 4: Programming CommandsCommands listed by functionPrinter actionsCode (hexadec

Page 45 - To move to the left:

A798 Programming GuideContents 3Revision C 12/09A798-PG00001CContentsChapter 1: About this Guide ...

Page 46 - Set left margin

Chapter 4: Programming Commands30Revision C 12/09A798-PG00001CVertical and horizontal positioning Code (hexadecimal) Command Page09 Horizontal tab

Page 47 - Set printing area width

Chapter 4: Programming Commands 31Revision C 12/09A798-PG00001CGraphics Code (hexadecimal) Command Page11 n1 . . . n72 Print raster graphics 651

Page 48 - Text characteristics commands

Chapter 4: Programming Commands32Revision C 12/09A798-PG00001CBar codesCode (hexadecimal) Command Page1D 48 n Select printing position for HRI char

Page 49 - Select pitch (column width)

Chapter 4: Programming Commands 33Revision C 12/09A798-PG00001CFlash downloadCode (hexadecimal) Command Page1B 5B 7D Switch to ash download mode

Page 50 - Select print mode

Chapter 4: Programming Commands34Revision C 12/09A798-PG00001CCommand descriptionsPrinter actionsThe printer function commands control the following b

Page 51 - 

Chapter 4: Programming Commands 35Revision C 12/09A798-PG00001CGenerate toneASCII ESC BEL Hexadecimal 1B 07 Decimal 27 7Generates an audible tone.

Page 52

Chapter 4: Programming Commands36Revision C 12/09A798-PG00001CSelect paper sensors to output paper-end signalsASCII ESC c 3 n Hexadecimal 1B 63 33 n

Page 53 - Cancel user-dened character

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

Page 54 - Select or cancel italic print

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

Page 55

Chapter 4: Programming Commands 39Revision C 12/09A798-PG00001CPrint and paper feedThe print and feed commands control printing on the receipt and pa

Page 56

A798 Programming GuideContents4 Revision C 12/09A798-PG00001CChapter 4: Programming Commands ...29Command

Page 57 - Select character size

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

Page 58

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

Page 59

Chapter 4: Programming Commands42Revision C 12/09A798-PG00001CVertical and horizontal positioningThe horizontal positioning commands control the horiz

Page 60 - Select bit image mode

Chapter 4: Programming Commands 43Revision C 12/09A798-PG00001CSet absolute starting positionASCII ESC $ nL nH Hexadecimal 1B 24 nL nH Decimal 27

Page 61

Chapter 4: Programming Commands44Revision C 12/09A798-PG00001CSet vertical line spacingASCII ESC 3 n Hexadecimal 1B 33 n Decimal 27 51 nValue of n:

Page 62 - Select the current logo

Chapter 4: Programming Commands 45Revision C 12/09A798-PG00001CSet relative print positionASCII ESC \ n1 n2 Hexadecimal 1B 5C n1 n2 Decimal 27 92

Page 63 - Dene downloaded bit image

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

Page 64 - Print downloaded bit image

Chapter 4: Programming Commands 47Revision C 12/09A798-PG00001CExceptions:The command is effective only at the beginning of a line. This command is i

Page 65 - Batch mode

Chapter 4: Programming Commands48Revision C 12/09A798-PG00001CText characteristics commandsThese commands control what the printed information looks l

Page 66

Chapter 4: Programming Commands 49Revision C 12/09A798-PG00001CSelect pitch (column width)ASCII ESC SYN n Hexadecimal 1B 16 n Decimal 27 22 nValue

Page 67 - Transmit paper sensor status

A798 Programming GuideContents 5Revision C 12/09A798-PG00001CSet relative print position ...

Page 68 - Transmit printer ID

Chapter 4: Programming Commands50Revision C 12/09A798-PG00001CSelect print modeASCII ESC ! n Hexadecimal 1B 21 n Decimal 27 33 n Value of n: Pitch

Page 69

Chapter 4: Programming Commands 51Revision C 12/09A798-PG00001CSelect or cancel user-dened character setASCII ESC % n Hexadecimal 1B 25 n Decimal

Page 70

Chapter 4: Programming Commands52Revision C 12/09A798-PG00001CDene extended user-dened character setASCII US & s c1 c2 [character 1 data] ...

Page 71 - Transmit status

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

Page 72 - Send printer software version

Chapter 4: Programming Commands54Revision C 12/09A798-PG00001CSelect or cancel double-strikeASCII ESC G n Hexadecimal 1B 47 n Decimal 27 71 nValue

Page 73 - Real time commands

Chapter 4: Programming Commands 55Revision C 12/09A798-PG00001CSelect international character code ASCII ESC R n Hexadecimal 1B 52 n Decimal 27 82

Page 74 - Real time status transmission

Chapter 4: Programming Commands56Revision C 12/09A798-PG00001CSelect international character set ASCII: ESC t n Hexadecimal: 1B 74 n Decimal: 27 11

Page 75

Chapter 4: Programming Commands 57Revision C 12/09A798-PG00001CSelect character sizeASCII GS ! n Hexadecimal 1D 21 n Decimal 29 33 nValue of n: 1

Page 76

Chapter 4: Programming Commands58Revision C 12/09A798-PG00001CSelect or cancel white/black reverse print modeASCII GS B n Hexadecimal 1D 42 n Decima

Page 77 - Real time request to printer

Chapter 4: Programming Commands 59Revision C 12/09A798-PG00001CSelect active user-dened character setSelects user-dened character set number for do

Page 78 - Real time commands disabled

A798 Programming GuideContents6 Revision C 12/09A798-PG00001CTransmit status ...

Page 79 - Unsolicited status mode

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

Page 80

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

Page 81

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

Page 82

Chapter 4: Programming Commands 63Revision C 12/09A798-PG00001CDene downloaded bit imageASCII GS * n1 n2 d1 ... dn] Hexadecimal 1D 2A n1 n2 d1 ...

Page 83

Chapter 4: Programming Commands64Revision C 12/09A798-PG00001CPrint downloaded bit imageASCII GS / m Hexadecimal 1D 2F m Decimal 29 47 mValue and r

Page 84 - Print bar code

Chapter 4: Programming Commands 65Revision C 12/09A798-PG00001CPrint raster graphicsASCII DC1 n1…..nl (576 dots) for 80 mm paper, or n80 (640 dots)

Page 85 - Print multiple barcodes

Chapter 4: Programming Commands66Revision C 12/09A798-PG00001CTransmit peripheral device status (RS-232C printers only)ASCII ESC u 0 Hexadecimal 1B

Page 86

Chapter 4: Programming Commands 67Revision C 12/09A798-PG00001CTransmit paper sensor statusASCII ESC v Hexadecimal 1B 76 Decimal 27 118Values:Stat

Page 87 - 29 107 m nL nH d1... dn

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

Page 88 - Select PDF 417 parameters

Chapter 4: Programming Commands 69Revision C 12/09A798-PG00001CTransmit printer ID, remote diagnostics extensionASCII GS I @ n Hexadecimal 1D 49 40

Page 89 - Sample symbol description:

A798 Programming GuideContents 7Revision C 12/09A798-PG00001CExpanded ash memory allocation ...

Page 90

Chapter 4: Programming Commands70Revision C 12/09A798-PG00001CValue of n (continued)ASCII Hex Dec Remote diagnostic item Function å 86 134 Kni

Page 91 - Select page mode

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

Page 92 - Select standard mode

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

Page 93 - Set print area in page mode

Chapter 4: Programming Commands 73Revision C 12/09A798-PG00001CReal time commandsThe real time commands provide an application interface to the print

Page 94

Chapter 4: Programming Commands74Revision C 12/09A798-PG00001CMoving data through the buerApplications should not let the buffer ll up with real ti

Page 95 - Execute macro

Chapter 4: Programming Commands 75Revision C 12/09A798-PG00001CAn application using DLE (0x10) sequence must send EOT within 100 milliseconds of DLE

Page 96

Chapter 4: Programming Commands76Revision C 12/09A798-PG00001C3 = Transmit error statusBit Status Hex Decimal Function0 O 00 0 Fixed to o.1

Page 97

Chapter 4: Programming Commands 77Revision C 12/09A798-PG00001CReal time request to printer GS sequence DLE sequenceASCII GS ETX n DLE ENQ n He

Page 98

Chapter 4: Programming Commands78Revision C 12/09A798-PG00001CReal time printer status transmissionASCII GS ENQ Hexadecimal 1D 05 Decimal 29 5Trans

Page 99 - Erase user ash sector

Chapter 4: Programming Commands 79Revision C 12/09A798-PG00001CUnsolicited status modeSelect or cancel unsolicited status mode (USM)ASCII: GS a n He

Page 100 - Flash download

A798 Programming GuideContents8 Revision C 12/09A798-PG00001C

Page 101 - Return microprocessor CRC

Chapter 4: Programming Commands80Revision C 12/09A798-PG00001CFirst Byte (Printer Information)Bit O/On Hex Decimal Status for USM0 O 00 0 No

Page 102 - Return main program ash CRC

Chapter 4: Programming Commands 81Revision C 12/09A798-PG00001CThird byte (paper sensor information)Bit O/On Hex Decimal Status for USM0 O 00

Page 103

Chapter 4: Programming Commands82Revision C 12/09A798-PG00001CRecognizing data from the printerAn application sending various real time and non-real t

Page 104 - Appendix A:

Chapter 4: Programming Commands 83Revision C 12/09A798-PG00001CBar codesThese commands format and print bar codes and are described in order of their

Page 105

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

Page 106

Chapter 4: Programming Commands 85Revision C 12/09A798-PG00001CSecond variation: length n specied at beginning of string. Except as noted, 0 < n

Page 107

Chapter 4: Programming Commands86Revision C 12/09A798-PG00001C· Page mode parameters initialized at end of multiple barcodes command stringSample mul

Page 108 - Resident Character Sets

Chapter 4: Programming Commands 87Revision C 12/09A798-PG00001CPrint GS1 DataBar (formerly RSS), null terminatedASCII GS k n d1... 00Hexadecimal

Page 109 - Code page 737 (Greek)

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

Page 110 - Code page 850 (Multilingual)

Chapter 4: Programming Commands 89Revision C 12/09A798-PG00001CSample symbol description:Each PDF 417 symbol consists of 3 to 90 stacked rows surroun

Page 111 - Code page 852 (Slavic)

Chapter 1: About this Guide 9Revision C 12/09A798-PG00001CChapter 1: About this GuideHow to use this guideThis is a supplemental guide providing prog

Page 112 - Code page 857 (Turkish)

Chapter 4: Programming Commands90Revision C 12/09A798-PG00001CPage modePage mode is one of two modes that the A798 printer uses to operate. Standard m

Page 113

Chapter 4: Programming Commands 91Revision C 12/09A798-PG00001CSelect page modeASCII ESC L Hexadecimal 1B 4C Decimal 27 76Switches from standard m

Page 114 - Code page 860 (Portuguese)

Chapter 4: Programming Commands92Revision C 12/09A798-PG00001CSelect standard modeASCII ESC S Hexadecimal 1B 53 Decimal 27 83Switches from page mod

Page 115 - Code page 862 (Hebrew)

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

Page 116

Chapter 4: Programming Commands94Revision C 12/09A798-PG00001CSet absolute vertical print position in page modeASCII GS $ nL nH Hexadecimal 1D 24 nL

Page 117 - Code page 865 (Nordic)

Chapter 4: Programming Commands 95Revision C 12/09A798-PG00001CMacrosThese commands are used to select and perform a user-dened sequence of printer

Page 118 - Code page 866 (Cyrillic)

Chapter 4: Programming Commands96Revision C 12/09A798-PG00001CUser data storageWrite to user data storageASCII ESC ‘ m a0 a1 a2 d1 ... dm Hexadecimal

Page 119

Chapter 4: Programming Commands 97Revision C 12/09A798-PG00001CSelect memory type (SRAM/ash) where to save logos or user-dened fontsASCII GS “ n H

Page 120

Chapter 4: Programming Commands98Revision C 12/09A798-PG00001CExpanded ash memory allocationASCII GS “ 0x80 Hexadecimal 1D 22 80 Decimal 29 34 128

Page 121

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

No comments