Instruction/ maintenance manual of the product A799 Cognitive Solutions
Go to page of 142
Includes TPG LogoEZ ® colorization inf ormation P r ogr amming G uide A799 T w o -Color Thermal Rec eipt Printer Made under one or more of the following U .
Changes or modications to this unit not expressly appr oved by the party responsible for compliance could v oid the user ’ s authority to operate the equipmen t. Note This equipment has been tested and f ound to comply with the limits for a Class A digital de vice, pursuan t to Part 15 of the FCC Rules.
A799 Prog ramming Guide Cont ents 3 Revision D 12/09 A799-PG00001D C ontents Chapter 1: About this Guide ................................................................. 9 How to use this guide ........................................................
A799 Prog ramming Guide Cont ents 4 Revision D 12/09 A799-PG00001D Chapter 4: Progr amming Commands ................................................ 29 Commands listed b y func tion .......................................................... 29 Printer actions .
A799 Prog ramming Guide Cont ents 5 Revision D 12/09 A799-PG00001D V er tical and horizontal positioning .................................................45 Horizontal tab ...............................................................................
A799 Prog ramming Guide Cont ents 6 Revision D 12/09 A799-PG00001D Graphics ............................................................................................. 64 Download BMP logo ............................................................
A799 Prog ramming Guide Cont ents 7 Revision D 12/09 A799-PG00001D Real time request to printer ........................................................................... 93 Real time printer status transmission ......................................
A799 Prog ramming Guide Cont ents 8 Revision D 12/09 A799-PG00001D Return microprocessor CRC ......................................................................... 117 Erase all ash contents e xcept boot sector ..................................
Chapter 1: About this Guide 9 Revision D 12/09 A799-PG00001D Chapter 1: A bout this Guide How t o use this guide This is a supplemental guide providing programming information on CognitiveTPG’ s A799 printer .
A799 Prog ramming Guide Chapter 1: About this Guide 10 Revision D 12/09 A799-PG00001D.
Chapter 2: Diagnostics and Congur ation 11 Revision D 12/09 A799-PG00001D Chapter 2: Diagnostics and C onguration The A799 printer performs a number of diagnostics that provide useful information about the operating status of the printer . The following diagnostic tests are available.
Chapter 2: Diagnostics and Congur ation 12 Revision D 12/09 A799-PG00001D Runtime diagnostics Runtime diagnostics (sometimes called level 2 diagnostics) run during normal printer operation.
Chapter 2: Diagnostics and Congur ation 13 Revision D 12/09 A799-PG00001D For mor e information about See this section Accessing the r emote diagnostic tallies “Command descriptions ” in Chapte.
Chapter 2: Diagnostics and Congur ation 14 Revision D 12/09 A799-PG00001D Indicators The printer communicates various conditions both visually , with the green LED or audibly , with a series of tones or beeps. The following table lists these indicators.
Chapter 2: Diagnostics and Congur ation 15 Revision D 12/09 A799-PG00001D Print er conguration Printers are shipped with all the functions and parameters preset at the factory .
Chapter 2: Diagnostics and Congur ation 16 Revision D 12/09 A799-PG00001D Conguring the prin ter The conguration menu allows you to select functions or change various settings for the printer . Instructions printed on the receipt guide you through the processes.
Chapter 2: Diagnostics and Congur ation 17 Revision D 12/09 A799-PG00001D Communica tion interface T o change the communication interface settings, enter the conguration menu, select “Set Communication Interface” from the main menu and answer “Y es” to “SET INTERF ACE TYPE?” printed on the receipt.
Chapter 2: Diagnostics and Congur ation 18 Revision D 12/09 A799-PG00001D Diagnostic modes T o change the diagnostic modes enter the conguration menu, select “Set Diagnostic Modes” from the main menu and select one of the following modes: • Normal: normal operating mode of the printer .
Chapter 2: Diagnostics and Congur ation 19 Revision D 12/09 A799-PG00001D Enable or disable receipt t est mo de The receipt test mode veries proper receipt printing. Receipt test is enabled and disabled by selecting the “Diagnostic Modes” sub-menu of the conguration menu.
Chapter 2: Diagnostics and Congur ation 20 Revision D 12/09 A799-PG00001D Printer settings and functions T o change the printer settings and functions, enter the conguration menu, select the sub-menu from the main menu and answer the questions printed on the receipt until you come to the instructions for selecting the printer settings.
Chapter 2: Diagnostics and Congur ation 21 Revision D 12/09 A799-PG00001D Select the hardware options sub-menu to set: • Printhead setting This setting is the printhead energy rating and must match the rating marked on the front right of the thermal mechanism in the printer .
Chapter 2: Diagnostics and Congur ation 22 Revision D 12/09 A799-PG00001D.
Chapter 3: Pr ogramming the Printer 23 Revision D 12/09 A799-PG00001D Chapter 3: P rogramming the Prin ter Overview of commands Commands control all operations and functions of the printer . This includes selecting the size and placement of characters and graphics on the receipt to feeding and cutting the paper .
Chapter 3: Pr ogramming the Printer 24 Revision D 12/09 A799-PG00001D Command Description Dierence betw een previous product and new product emulation mode.
Chapter 3: Pr ogramming the Printer 25 Revision D 12/09 A799-PG00001D TPG ColorPOS ® tw o- color and color int erpreted commands (continued) Hexadecimal ASCII Description 1D 8C n m GS 0x8C n m Merge .
Chapter 3: Pr ogramming the Printer 26 Revision D 12/09 A799-PG00001D Character appearanc e The appearance of text can be changed using the following print modes: • Standard • Compressed • Doubl.
Chapter 3: Pr ogramming the Printer 27 Revision D 12/09 A799-PG00001D Print z ones for 82.5mm paper Specications of print zone for 82.5 mm paper: • 640 dots (addressable) @ 8 dots/mm, centered on 82.5mm • Standard mode: minimum margins: 1.0mm (0.
Chapter 3: Pr ogramming the Printer 28 Revision D 12/09 A799-PG00001D Emulation modes The CognitiveTPG A799 printer may be operated in a number of different emulation modes. However , printing characteristics and defaults may differ , depending on the desired mode.
Chapter 4: Pr ogramming Commands 29 Revision D 12/09 A799-PG00001D Chapter 4: P rogramming C ommands C ommands listed by function Printer actions Code (he xadecimal) Command Page 10 Clear printer 35 1.
Chapter 4: Pr ogramming Commands 30 Revision D 12/09 A799-PG00001D V er tical and horizontal positioning Code (he xadecimal) Command Page 09 Horizontal tab 45 1B 14 n Set column 45 1B 24 n L n H Set a.
Chapter 4: Pr ogramming Commands 31 Revision D 12/09 A799-PG00001D 1D 8D n m T ex t strike -through mode 62 1D F0 01 n Select font ID number 62 1D F0 02 n Select font style number 62 1D F0 03 Save f o.
Chapter 4: Pr ogramming Commands 32 Revision D 12/09 A799-PG00001D 1F 03 16 f s p/r t LogoEZ ® colorization 77 1F 03 17 a m s LogoEZ ® attribute mapping 79 1F 04 n Convert 6- dots/mm bitmap to 8 dot.
Chapter 4: Pr ogramming Commands 33 Revision D 12/09 A799-PG00001D 1D 71 a b c d e f L f H Set GSI Databar (formerly RSS) parameters 103 1D 77 n Select bar code width 104 Page mode Code (he xadecimal).
Chapter 4: Pr ogramming Commands 34 Revision D 12/09 A799-PG00001D Flash do wnload Code (he xadecimal) Command Page 1B 5B 7D Switch to ash download mode 116 1D 00 Return boot sector rmware part .
Chapter 4: Pr ogramming Commands 35 Revision D 12/09 A799-PG00001D C ommand con ventions The following information describes how each command is organized: Name: Name of command. ASCII: The ASCII c ontrol code. Hexadecimal: The hexadecimal control code.
Chapter 4: Pr ogramming Commands 36 Revision D 12/09 A799-PG00001D Perform full knife cut ASCII EM ESC i Hexadecimal 19 1B 69 Decimal 25 27 105 Cuts the receipt. There are two codes (Hex 19 or 1B 69) for this command and both perform the same function.
Chapter 4: Pr ogramming Commands 37 Revision D 12/09 A799-PG00001D Initialize printer ASCII ESC @ Hexadecimal 1B 40 Decimal 27 64 Default: Character pitch: 15.
Chapter 4: Pr ogramming Commands 38 Revision D 12/09 A799-PG00001D Select sensors to stop printing ASCII ESC c 4 n Hexadecimal 1B 63 34 n Decimal 27 99 52 n V alue of n: Sensor status Sensor Status Bi.
Chapter 4: Pr ogramming Commands 39 Revision D 12/09 A799-PG00001D Set current color ASCII ESC r m Hexadecimal 1B 72 m Decimal 27 114 m Default of m: 0 (monochrome) This command will set the current c.
Chapter 4: Pr ogramming Commands 40 Revision D 12/09 A799-PG00001D Set paper type (ColorPOS ® ) ASCII GS 0x81 m n Hexadecimal 1D 81 m n Decimal 29 129 m n V alue of m: 0 = monochrome (black) paper (K.
Chapter 4: Pr ogramming Commands 41 Revision D 12/09 A799-PG00001D Fon t and lines p er inch (LPI) setup for dier ent emulations Emulation LPI Fon t(s) F ont Default Default C omments Mode Options Options Size LPI EDR A799 native 6.00, 6.77, 7.52, 8.
Chapter 4: Pr ogramming Commands 42 Revision D 12/09 A799-PG00001D Print and paper f eed The print and feed commands control printing on the receipt and paper feed by the printer . Print and f eed paper one line ASCII LF Hexadecimal 0A Decimal 10 Prints one line from the buffer and feeds paper one line.
Chapter 4: Pr ogramming Commands 43 Revision D 12/09 A799-PG00001D Add n e xtra dot row s ASCII SYN n Hexadecimal 16 n Decimal 22 n V alue of n: Number of extra dot rows Range of n: 0–16 Default: 3 .
Chapter 4: Pr ogramming Commands 44 Revision D 12/09 A799-PG00001D Print and f eed paper ASCII ESC J n Hexadecimal 1B 4A n Decimal 27 74 n V alue of n: n /203 inch in A799 native mode, A794 emulation .
Chapter 4: Pr ogramming Commands 45 Revision D 12/09 A799-PG00001D V er tical and horizontal positioning The horizontal positioning commands control the horizontal print positions of characters on the receipt. The commands describe operation for 80mm paper .
Chapter 4: Pr ogramming Commands 46 Revision D 12/09 A799-PG00001D Set absolute starting p osition ASCII ESC $ n L n H Hexadecimal 1B 24 n L n H Decimal 27 36 n L n H V alue of n: n = Number of dots to be moved from the beginning of the line . n L = Remainder after dividing n by 256.
Chapter 4: Pr ogramming Commands 47 Revision D 12/09 A799-PG00001D Set vertical line spacing ASCII ESC 3 n Hexadecimal 1B 33 n Decimal 27 51 n V alue of n: n /406 inch in A799 native mode, A794 emulation n /360 inch in A793 emulation mode n/203 inch in Application Compatible Escape C ommands emulation mode Range of n: 0-255 Default: 3.
Chapter 4: Pr ogramming Commands 48 Revision D 12/09 A799-PG00001D Set relative prin t p osition ASCII ESC n1 n2 Hexadecimal 1B 5C n1 n2 Decimal 27 92 n1 n2 V alue of n: T o move the relative startin.
Chapter 4: Pr ogramming Commands 49 Revision D 12/09 A799-PG00001D previous data. This behavior can be used to an application’ s advantage to provide the ability to create compound characters on the receipt station.
Chapter 4: Pr ogramming Commands 50 Revision D 12/09 A799-PG00001D Set printing area width ASCII GS W nL nH Hexadecimal 1D 57 nL nH Decimal 29 87 nL nH Range of nL: 0–255 Range of nH: 0–255 Default: 576 dots (the maximum printable area) Sets the width of the printing area.
Chapter 4: Pr ogramming Commands 51 Revision D 12/09 A799-PG00001D T ext characteristics commands These commands control what the printed information looks like, selection of character sets, denition of custom-dened characters, and setting of margins.
Chapter 4: Pr ogramming Commands 52 Revision D 12/09 A799-PG00001D Select pitch (column width) ASCII ESC SYN n Hexadecimal 1B 16 n Decimal 27 22 n V alue of n: 0 = Standard pitch 1 = Compressed pitch Default: 0 (Standard pitch) Selects the character pitch for a print line.
Chapter 4: Pr ogramming Commands 53 Revision D 12/09 A799-PG00001D Select print mode ASCII ESC ! n Hexadecimal 1B 21 n Decimal 27 33 n V alue of n: Pitch selection (standard , compressed, double high, or double wide .
Chapter 4: Pr ogramming Commands 54 Revision D 12/09 A799-PG00001D Select or c ancel user-dened character set ASCII ESC % n Hexadecimal 1B 25 n Decimal 27 37 n V alue of n: 0 = Code P age 437 1 = User Dened (RAM) 2 = Code P age 850 Range of n: 0–2 Default: 0 (C ode Page 437) Selects the character set.
Chapter 4: Pr ogramming Commands 55 Revision D 12/09 A799-PG00001D Dene extended user-dened character set ASCII US & s c1 c2 [char ac ter 1 data] ... [char acter k data] Hexadecimal 1F 26 s c1 c2 [char acter 1 data] ... [character k data] Decimal 31 38 s c1 c2 [character 1 data] .
Chapter 4: Pr ogramming Commands 56 Revision D 12/09 A799-PG00001D Cop y character set from ROM to RAM ASCII ESC : 0 0 0 Hexadecimal 1B 3A 30 30 30 Decimal 27 58 0 0 0 Default: Current active ROM code page Copies characters in the active ROM set to RAM.
Chapter 4: Pr ogramming Commands 57 Revision D 12/09 A799-PG00001D Select or c ancel double-strike ASCII ESC G n Hexadecimal 1B 47 n Decimal 27 71 n V alue of n: 0 = O 1 = On ( When 0 and 1 are the least signicant bit, LSB) Default: 0 (O ) T urns double-strike mode on or off.
Chapter 4: Pr ogramming Commands 58 Revision D 12/09 A799-PG00001D Select international character code ASCII ESC R n Hexadecimal 1B 52 n Decimal 27 82 n V alue of n: A799 native mode A793 emulation Application Compatible Escape C ommand emulation (1B 52 n only) 0 = Code P age 437 0 = Code P age 437 0 = U.
Chapter 4: Pr ogramming Commands 59 Revision D 12/09 A799-PG00001D Select international character set ASCII: ESC t n Hexadecimal: 1B 74 n Decimal: 27 116 n V alue of n: A799 native mode A793 emulation emulation 0 = Code P age 437 0 = Code P age 437.
Chapter 4: Pr ogramming Commands 60 Revision D 12/09 A799-PG00001D Select charac ter size ASCII GS ! n Hexadecimal 1D 21 n Decimal 29 33 n V alue of n : 1–8 = vertical number of times ac tive font 1–8 = horizontal number of times active font Range of n : 00–07, 10–17, .
Chapter 4: Pr ogramming Commands 61 Revision D 12/09 A799-PG00001D T urns on white/black reverse print mode. In white/black reverse print mode, print dots and non-print dots are reversed, which means that white characters are printed on a black background.
Chapter 4: Pr ogramming Commands 62 Revision D 12/09 A799-PG00001D T ext strike-through mode (C olorPOS ® ) ASCII GS 0x85 m n Hexadecimal 1D 8D n m Decimal 29 141 n m V alue of m: 0 = retain same color as the character itself 1 = black 2 = paper color V alue of n: standard cell height Default: n = 0 (o ) Prints a strike-through over characters.
Chapter 4: Pr ogramming Commands 63 Revision D 12/09 A799-PG00001D Save f ont ID number as default font at power up ASCII GS 0xF0 0x03 Hexadecimal 1D F0 03 Decimal 29 240 3 Save current font ID number as default font at power up. All characters will be printed from the downloaded font.
Chapter 4: Pr ogramming Commands 64 Revision D 12/09 A799-PG00001D Select ac tive user-dened character set Selects user-dened character set number for download or printing.
Chapter 4: Pr ogramming Commands 65 Revision D 12/09 A799-PG00001D Select bit image mo de ASCII ESC * m n 1 n 2 d 1 ... d n Hexadecimal 1B 2A m n 1 n 2 d 1 ... d n Decimal 27 42 m n 1 n 2 d 1 ... d n V alue of m : V alue of m Mode No. of dots (v er tical) No .
Chapter 4: Pr ogramming Commands 66 Revision D 12/09 A799-PG00001D Print advanc ed raster graphics ASCII ESC . m n rL rH d1 … dn Hexadecimal 1B 2E m n rL rH d1 … dn Decimal 27 46 m n rL rH d1 … .
Chapter 4: Pr ogramming Commands 67 Revision D 12/09 A799-PG00001D Select the current logo ASCII GS # n Hexadecimal 1D 23 n Decimal 29 35 n Range of n: 0 – 255 Default: 0 Selects a color or monochrome logo to be dened or printed. The active logo n remains in use until this command is sent again with a different logo n .
Chapter 4: Pr ogramming Commands 68 Revision D 12/09 A799-PG00001D Dene downloaded bit image ASCII GS * n 1 n 2 d 1 ... dn ] Hexadecimal 1D 2A n 1 n 2 d 1 .
Chapter 4: Pr ogramming Commands 69 Revision D 12/09 A799-PG00001D Print downloaded bit image ASCII GS / m Hexadecimal 1D 2F m Decimal 29 47 m V alue and range of m: This command is used to print a previously stored monochrome or color logo from printer memory on the receipt station.
Chapter 4: Pr ogramming Commands 70 Revision D 12/09 A799-PG00001D Print r aster monochrome graphics ( ColorPOS ® ) ASCII GS 0x82 n1…..n72 (576 dots) for 80 mm paper , or n80 (640 dots) for 82.5 mm paper Hexadecimal 1D 82 n1…..n72 (576 dots) for 80 mm paper , or n80 (640 dots) for 82.
Chapter 4: Pr ogramming Commands 71 Revision D 12/09 A799-PG00001D Download logo image ( ColorPOS ® ) ASCII GS 0x84 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m Hexadecimal 1D 84 m n1 n2 d1….
Chapter 4: Pr ogramming Commands 72 Revision D 12/09 A799-PG00001D Apply shading to logo ( ColorPOS ® ) ASCII GS Ox8B n m o Hexadecimal 1D 8B n m o Decimal 29 139 n m o This command will apply shading effect m to logo n and store it at index o , also extending width to full horizontal size if logo n is not at full paper width.
Chapter 4: Pr ogramming Commands 73 Revision D 12/09 A799-PG00001D Color shade mode ( ColorPOS ® ) ASCII GS 0x87 m Hexadecimal 1D 87 m Decimal 29 135 m This applies a mixing of color into any monochrome objects such as text and monochrome logos.
Chapter 4: Pr ogramming Commands 74 Revision D 12/09 A799-PG00001D The geometric location points for this graphic are dened by a rectangular area start position of x bytes from the left edge and y bytes from the top of the new line and times o bytes wide times p bytes in length.
Chapter 4: Pr ogramming Commands 75 Revision D 12/09 A799-PG00001D Apply margin message mode ( ColorPOS ® ) ASCII GS 0x99 l m n o Hexadecimal : 1D 99 l m n o Decimal: 29 155 l m n o V alue of l : l i.
Chapter 4: Pr ogramming Commands 76 Revision D 12/09 A799-PG00001D Logo print with knife cut ASCII GS 0x9B m n Hexadecimal 1D 9B m n Decimal 29 155 m n V alues of m: 0 = Standard size 1 = Double wide .
Chapter 4: Pr ogramming Commands 77 Revision D 12/09 A799-PG00001D Set LogoEZ ® colorization ASCII US ET X SYN f s p/t t Hexadecimal 1F 03 16 f s p/t t Decimal 31 03 22 f s p/t t V alue of f: 0 = tur.
Chapter 4: Pr ogramming Commands 78 Revision D 12/09 A799-PG00001D f = 2 link watermark printing Example: Activate watermark printing using logo #F1 (1F 03 16 02 s r ) with “ s ” being the skip distance in dot rows before activation and “r ” is the distance in mm between watermark repetitions.
Chapter 4: Pr ogramming Commands 79 Revision D 12/09 A799-PG00001D f = 4 link logo print bef ore cut Prints a logo after the skip distance of “ s ” before a logo and “ p ” past a logo and performs a knife cut (1F 03 16 04 s p ).
Chapter 4: Pr ogramming Commands 80 Revision D 12/09 A799-PG00001D A word (2 bytes) is used to identify the attribute mapping, with “ m” bits 0 – 6 identifying which original attributes should b.
Chapter 4: Pr ogramming Commands 81 Revision D 12/09 A799-PG00001D Related informa tion This command is utilized in the TPG LogoEZ ® utility . The utility can be used to pre-congure new printers with a default colorization setup without requiring any application changes.
Chapter 4: Pr ogramming Commands 82 Revision D 12/09 A799-PG00001D Status Status command in troduc tion The A799 has three methods of providing status to the application. These methods are through batch status commands, real time status commands and unsolicited status mode.
Chapter 4: Pr ogramming Commands 83 Revision D 12/09 A799-PG00001D Request alternate sta tus (A793 emula tion only) ASCII ESC u n Hexadecimal 1B 75 n Decimal 27 117 n V alue and Range of n: V alue of .
Chapter 4: Pr ogramming Commands 84 Revision D 12/09 A799-PG00001D T ransmit printer ID ASCII GS I n Hexadecimal 1D 49 n Decimal 29 73 n V alue of n: 1, 49 = Printer model ID 2, 50 = Type ID 3, 51 = R.
Chapter 4: Pr ogramming Commands 85 Revision D 12/09 A799-PG00001D T ransmit printer ID , remote diagnostics extension ASCII GS I @ n Hexadecimal 1D 49 40 n Decimal 29 73 64 n V alues of n: Refer to t.
Chapter 4: Pr ogramming Commands 86 Revision D 12/09 A799-PG00001D V alue of n (continued) ASCII Hex Dec Remote diagnostic item Function å 86 134 Knife cut tally Clear k nife cut tally to 0 ç 87 135.
Chapter 4: Pr ogramming Commands 87 Revision D 12/09 A799-PG00001D The status bytes to be transmitted are described in the three tables on the next page.
Chapter 4: Pr ogramming Commands 88 Revision D 12/09 A799-PG00001D Cash dra wer status (n = 2 or n = 50) Bit O/On Hex Decimal Status for tr ansmit status 0 O 00 0 One or both cash drawers open. On 01 1 Both cash drawers closed. 1 O 00 0 One or both cash drawers open.
Chapter 4: Pr ogramming Commands 89 Revision D 12/09 A799-PG00001D Real time commands The real time commands provide an application interface to the printer even when the printer is not handling other.
Chapter 4: Pr ogramming Commands 90 Revision D 12/09 A799-PG00001D Moving data through the bu er Applications should not let the buffer ll up with real time commands when the printer is busy at the RS-232C interface. A busy condition at the RS-232C interface can be determined by bit 3 of the response to 1D 05, or 1D 04 1, or 10 04 1.
Chapter 4: Pr ogramming Commands 91 Revision D 12/09 A799-PG00001D Exc eptions The command is ignored if n is out of range. An application using DLE (0x10) sequence must send EOT within 100 milliseconds of DLE or the printer will misinterpret the DLE and execute a clear printer command.
Chapter 4: Pr ogramming Commands 92 Revision D 12/09 A799-PG00001D 3 = T ransmit error status Bit Status Hex Decimal Function 0 O 00 0 Fixed t o o . 1 On 02 2 Fix ed to on. 2 O 00 0 Fixed t o o . 3 O 00 0 No k nife error . On 08 8 Knife error occurred .
Chapter 4: Pr ogramming Commands 93 Revision D 12/09 A799-PG00001D Real time request to printer GS sequence DLE sequence ASCII GS ET X n DLE ENQ n Hexadecimal 1D 03 n 10 05 n 29 3 n 16 5 n V alue of n : 1 = recov er and restar t 2 = recov er and clear buers The printer responds to a request from the host specied by n .
Chapter 4: Pr ogramming Commands 94 Revision D 12/09 A799-PG00001D Real time printer status tr ansmission ASCII GS ENQ Hexadecimal 1D 05 Decimal 29 5 T ransmits one byte status of the printer in real time. V alue of byte: Bit Status Hex Decimal F unc tion 0 O 00 0 Paper adequate .
Chapter 4: Pr ogramming Commands 95 Revision D 12/09 A799-PG00001D Unsolicited status mode Select or c ancel unsolicited sta tus mode (USM) ASCII: GS a n Hexadecimal: 1D 61 n Decimal: 29 97 n V alue o.
Chapter 4: Pr ogramming Commands 96 Revision D 12/09 A799-PG00001D First Byt e (Printer Informa tion) Bit O/On Hex Decimal Status for USM 0 O 00 0 Not used. F ixed to o . 1 O 00 0 Not used. F ixed to o . 2 O 00 0 One or both cash drawers open.
Chapter 4: Pr ogramming Commands 97 Revision D 12/09 A799-PG00001D Third b yte (paper sensor information) Bit O/On Hex Decimal Status for USM 0 O 00 0 Receipt paper adequate On 01 1 Receipt pap.
Chapter 4: Pr ogramming Commands 98 Revision D 12/09 A799-PG00001D Recognizing data from the prin ter An application sending various real time and non-real time commands to which the printer responds can determine which command a response belongs to by the table below .
Chapter 4: Pr ogramming Commands 99 Revision D 12/09 A799-PG00001D Select pitch of HRI characters ASCII GS f n Hexadecimal 1D 66 n Decimal 29 102 n V alue of n: 0 = Standard P itch at 15 CPI 1 = Compressed P itch at 20 CPI Default: 0 (Standard P itch at 15 CPI) Selects standard and compressed font for printing bar code characters.
Chapter 4: Pr ogramming Commands 100 Revision D 12/09 A799-PG00001D V alues: First variation: String terminated with NUL character . Length k is not specied in command string; it depends on the bar code being printed.
Chapter 4: Pr ogramming Commands 101 Revision D 12/09 A799-PG00001D Print multiple barc odes ASCII GS k Hexadecimal 1D 6B FF n Decimal 29 108 255 All the individual barcode strings start with 1D 6B m, where m is the type of barcode. Use the same command to do multiple barcodes on one line.
Chapter 4: Pr ogramming Commands 102 Revision D 12/09 A799-PG00001D Print GS1 DataBar (f ormerly RSS), null terminated ASCII GS k n d1... 00 Hexadecimal 1D 6B n d1.
Chapter 4: Pr ogramming Commands 103 Revision D 12/09 A799-PG00001D Set GS1 DataBar (formerly RSS) paramet ers Setting of parameters for GS! DataBar ASCII GS q a b c d e fL fH Hexadecimal 1D 71 a b c .
Chapter 4: Pr ogramming Commands 104 Revision D 12/09 A799-PG00001D Sample symbol description: Each PDF 417 symbol consists of 3 to 90 stacked rows surrounded on all four sides by a quiet zone.
Chapter 4: Pr ogramming Commands 105 Revision D 12/09 A799-PG00001D Page mode Page mode is one of two modes that the A799 printer uses to operate. Standard mode is typical of how most printers operate by printing data as it is received and feeding paper as the various paper feed commands are received.
Chapter 4: Pr ogramming Commands 106 Revision D 12/09 A799-PG00001D Select page mo de ASCII ESC L Hexadecimal 1B 4C Decimal 27 76 Switches from standard mode to page mode. After printing has been completed either by the print and return to standard mode (FF) command or select standard mode (1B 53) the printer returns to standard mode.
Chapter 4: Pr ogramming Commands 107 Revision D 12/09 A799-PG00001D Select standard mode ASCII ESC S Hexadecimal 1B 53 Decimal 27 83 Switches from page mode to standard mode.
Chapter 4: Pr ogramming Commands 108 Revision D 12/09 A799-PG00001D Set print area in page mode ASCII ESC W n1, n2 ...n8 Hexadecimal 1B 57 n1, n2 ...n8 Decimal 27 87 n1, n2 ...n8 Range of n: 0-255 Default: n1 - 4 = 0 n5 = 64 n6 = 2 n7 = 64 n8 = 2 Sets the position and size of the printing area in page mode.
Chapter 4: Pr ogramming Commands 109 Revision D 12/09 A799-PG00001D Set absolute vertical print position in page mode ASCII GS $ nL nH Hexadecimal 1D 24 nL nH Decimal 29 36 nL nH Sets the absolute vertical print starting position for buffer character data in page mode.
Chapter 4: Pr ogramming Commands 110 Revision D 12/09 A799-PG00001D Macros These commands are used to select and perform a user-dened sequence of printer operations. Select or c ancel macro denition ASCII GS : Hexadecimal 1D 3A Decimal 29 58 Starts or ends macro denition.
Chapter 4: Pr ogramming Commands 111 Revision D 12/09 A799-PG00001D User da ta storage W rite to user data stor age ASCII ESC ‘ m a0 a1 a2 d1 ... dm Hexadecimal 1B 27 m a0 a1 a2 d1 ... dm Decimal 27 39 m a0 a1 a2 d1 ... dm V alue of m : 0 – 255 W rites m bytes of data to the user data storage ash page at the address specied.
Chapter 4: Pr ogramming Commands 112 Revision D 12/09 A799-PG00001D Select memor y type (SR AM/ash) where to sa ve logos or user-dened fonts ASCII GS “ n Hexadecimal 1D 22 n Decimal 29 34 n V alue of n: 48 – 53 n = 48 (ASCII n = 0) HEX 30 Loads active logo to RAM only .
Chapter 4: Pr ogramming Commands 113 Revision D 12/09 A799-PG00001D Expanded ash memory alloc ation ASCII GS “ 0x80 Hexadecimal 1D 22 80 Decimal 29 34 128 This sequence of commands is used to specify the number of ash sectors to be used for different applications.
Chapter 4: Pr ogramming Commands 114 Revision D 12/09 A799-PG00001D Select ash area for storing logos and user-dened characters ASCII GS” 0x81 Hexadecimal 1D 22 81 n Decimal 29 34 129 n V alue.
Chapter 4: Pr ogramming Commands 115 Revision D 12/09 A799-PG00001D User stor age status (C olorPOS ® ) ASCII GS 0x97 m n Hexadecimal 1D 97 m n Decimal 29 151 m n V alue of m: m species the type o.
Chapter 4: Pr ogramming Commands 116 Revision D 12/09 A799-PG00001D Flash do wnload These commands are used to load rmware into the printer . The commands are listed in numerical order according to their hexadecimal codes. Each command is described and the hexadecimal, decimal, and ASCII codes are listed.
Chapter 4: Pr ogramming Commands 117 Revision D 12/09 A799-PG00001D Return segment number status of ash memory ASCII GS SOH Hexadecimal 1D 01 Decimal 29 1 Returns the size of the ash used. There may be 16 (1 Meg) or 32 (2 Meg) sectors in ash memory .
Chapter 4: Pr ogramming Commands 118 Revision D 12/09 A799-PG00001D Erase all ash con tents ex cept boot sector ASCII GS SO Hexadecimal 1D 0E Decimal 29 14 Causes the entire ash memory to be erased. The printer returns ACK if the command is successful; NAK if it is unsuccessful.
Chapter 4: Pr ogramming Commands 119 Revision D 12/09 A799-PG00001D communications failed or that the write to ash failed. The alternatives seem to be to retry the block or halt loading and assume a hardware failure. Related informa tion A vailable only in download mode.
Chapter 4: Pr ogramming Commands 120 Revision D 12/09 A799-PG00001D Setting the Gateway ASCII US BS ET X n1 n2 n3 n4 Hexadecimal 1F 08 03 n1 n2 n3 n4 Decimal 31 8 3 n1 n2 n3 n4 Default: none Sets the printer to the gatewa y having the IP address value specied b y the values n1 to n4 .
Chapter 4: Pr ogramming Commands 121 Revision D 12/09 A799-PG00001D DHCP (auto- congura tion) ASCII US BS BS n1 Hexadecimal 1F 08 08 n1 Decimal 31 8 8 n1 n1 = 0: disabled n1 = 1: enabled Default: enabled Enables or disables the use of DHCP at power-up t o obtain an IP address.
Chapter 4: Pr ogramming Commands 122 Revision D 12/09 A799-PG00001D.
Appendix A: Commands by Hexadecimal C ode 123 Revision D 12/09 A799-PG00001D Appendix A: C ommands listed by he xadecimal code By c ommand code Code (he xadecimal) Command Page 09 Horizontal tab 45 0A.
Appendix A: Commands by Hexadecimal C ode 124 Revision D 12/09 A799-PG00001D Code (he xadecimal) Command Page 1B 33 n Set vertical line spacing 47 1B 34 m a0 a1 a2 Read from user data storage 111 1B 3.
Appendix A: Commands by Hexadecimal C ode 125 Revision D 12/09 A799-PG00001D Code (he xadecimal) Command Page 1C 70 m n Print ash logo 71 1C 71 n ..
Appendix A: Commands by Hexadecimal C ode 126 Revision D 12/09 A799-PG00001D Code (he xadecimal) Command Page 1D 68 n Select bar code height 99 1D 6B m d1...dk 00 Print bar code 99 or 1D 6B m n d1...dn P rint bar code 99 1D 6B n d 1... 00 Print GS1 Databar (RSS bar code), null terminated 102 1D 6B m n L n H d 1.
Appendix A: Commands by Hexadecimal C ode 127 Revision D 12/09 A799-PG00001D Code (he xadecimal) Command Page 1F 03 17 a m s LogoEZ ® attribute mapping 79 1F 04 n Convert 6- dots/mm bitmap to 8-dots/.
Appendix B: Resident Character Sets 128 Revision D 12/09 A799-PG00001D.
Appendix B: Resident Character Sets 129 Revision D 12/09 A799-PG00001D Appendix B: Resident Char ac ter Sets Character sets Code page 437 (US).
Appendix B: Resident Character Sets 130 Revision D 12/09 A799-PG00001D Code page 737 ( Greek).
Appendix B: Resident Character Sets 131 Revision D 12/09 A799-PG00001D Code page 850 (Multilingual).
Appendix B: Resident Character Sets 132 Revision D 12/09 A799-PG00001D Code page 852 (Sla vic).
Appendix B: Resident Character Sets 133 Revision D 12/09 A799-PG00001D Code page 857 (T urkish).
Appendix B: Resident Character Sets 134 Revision D 12/09 A799-PG00001D Code page 858 (with E urosymbol).
Appendix B: Resident Character Sets 135 Revision D 12/09 A799-PG00001D Code page 860 (P or tuguese).
Appendix B: Resident Character Sets 136 Revision D 12/09 A799-PG00001D Code page 862 (Hebr ew).
Appendix B: Resident Character Sets 137 Revision D 12/09 A799-PG00001D Code page 863 (F rench Canadian).
Appendix B: Resident Character Sets 138 Revision D 12/09 A799-PG00001D Code page 865 (Nor dic).
Appendix B: Resident Character Sets 139 Revision D 12/09 A799-PG00001D Code page 866 ( C yrillic).
Appendix B: Resident Character Sets 140 Revision D 12/09 A799-PG00001D Code page 1252 (Windo ws Latin 1).
.
A799 Tw o- Color Thermal Receipt Printer: P rogrammer Guide A799-PG00001 Rev . D 12/09.
An important point after buying a device Cognitive Solutions A799 (or even before the purchase) is to read its user manual. We should do this for several simple reasons:
If you have not bought Cognitive Solutions A799 yet, this is a good time to familiarize yourself with the basic data on the product. First of all view first pages of the manual, you can find above. You should find there the most important technical data Cognitive Solutions A799 - thus you can check whether the hardware meets your expectations. When delving into next pages of the user manual, Cognitive Solutions A799 you will learn all the available features of the product, as well as information on its operation. The information that you get Cognitive Solutions A799 will certainly help you make a decision on the purchase.
If you already are a holder of Cognitive Solutions A799, but have not read the manual yet, you should do it for the reasons described above. You will learn then if you properly used the available features, and whether you have not made any mistakes, which can shorten the lifetime Cognitive Solutions A799.
However, one of the most important roles played by the user manual is to help in solving problems with Cognitive Solutions A799. Almost always you will find there Troubleshooting, which are the most frequently occurring failures and malfunctions of the device Cognitive Solutions A799 along with tips on how to solve them. Even if you fail to solve the problem, the manual will show you a further procedure – contact to the customer service center or the nearest service center