CognitiveTPG A799II Programming Manual

CognitiveTPG A799II Programming Manual

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

Advertisement

Programming Guide
Includes LogoEZ® colorization
utility and Receiptware® marketing
software information.
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.
A799II Two-Color Thermal Receipt Printer

Advertisement

Table of Contents
loading

Summary of Contents for CognitiveTPG A799II

  • Page 1 A799II Two-Color Thermal Receipt Printer Programming Guide Includes LogoEZ® colorization utility and Receiptware® marketing software information. 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 2 100-240 Vac, 1.6 A, 50/60 Hz, output rated 24 Vdc, 2.5 A for 60 watt unit. Use of this product with a power supply other than the CognitiveTPG power supply will require you to test the power supply and CognitiveTPG printer for FCC and CE mark certification.
  • Page 3: Table Of Contents

    Select the firmware features sub-menu to set: ........22 Chapter 3: Programming the Printer ..........24 Overview of commands ..............24 Comparison to A793 .................24 Two-color commands (comparison A794 to A799II) ......25 Character appearance...............27 Width specifications ................27 Standard ....................... 27 Compressed ......................27 Print zones ..................27...
  • Page 4 Contents Text characteristics ................31 Graphics ....................32 Status ....................33 Batch mode ......................33 Real time ....................... 33 Automatic status back / Unsolicited status mode ......... 33 Bar codes ....................33 Page mode ..................34 Macros ....................34 User data storage ................34 Flash download .................35 Ethernet setup commands ...............35 Bluetooth commands ...............35 Settings commands ................35...
  • Page 5 Contents Set vertical line spacing to 1/6 inch ............48 Set vertical line spacing .................. 49 Set horizontal tab positions ................49 Set relative print position ................50 Select justification ..................... 51 Set left margin ....................51 Set printing area width ..................52 Text characteristics commands ............53 Select double-wide characters ..............
  • Page 6 Contents Select single-density graphics ..............71 Select double-density graphics ..............71 Select the current logo ..................72 Define downloaded bit image ..............73 Print downloaded bit image ................. 74 Print raster graphics ..................74 Print raster monochrome graphics (ColorPOS ) ........75 ®...
  • Page 7 Contents Recognizing data from the printer ............105 Bar codes ..................106 QR code Overview...................106 Select model for QR code ................106 Set size for QR code module ...............106 Set data parsing mode for QR Code ............107 Select error correction level for QR Code ..........107 Store symbol data for QR Code ..............107 Print symbol data for QR code ..............108 Transmit QR code print size .................109...
  • Page 8 Contents Flash download ................131 Switch to flash download mode ..............132 Erase all flash contents except boot sector ..........132 Return main program flash CRC ..............132 Download application ...................133 Reset firmware ....................133 Ethernet setup commands .............134 Restore default settings ................134 Set IP address ....................134 Set Net Mask ......................134 Set Gateway .......................134 Set raw TCP/IP port ..................134...
  • Page 9 Contents Enable or disable barcode ITF leading zero ...........144 Enable or disable barcode string terminator.........145 Set paper low threshold extension ............145 Enable or disable USM canned status ............145 Send diagnostic pages to comm port .............145 Enable or disable EJ action via operator control ........146 Set fine adjustment of partial cut steps ..........146 Set printer ID mode ..................146 Set default code page at power on ............146...
  • Page 10: Chapter 1: About This Guide

    This guide contains the most complete information available on programming the printer. If you cannot find what you need here or would like further guidance on how to program the printer, contact a CognitiveTPG representative for assistance. If you are having problems with the physical operation of the printer, the Service Guide provides in-depth information on diagnostics and service.
  • Page 11: Chapter 2: Diagnostics And Configuration

    Chapter 2: Diagnostics and Configuration Chapter 2: Diagnostics and Configuration The printer performs a number of diagnostics that provide useful information about the operating status of the printer. The following diagnostic tests are available. • Start-up diagnostics Performed during the printer’s start-up cycle. •...
  • Page 12: Runtime Diagnostics

    Chapter 2: Diagnostics and Configuration Runtime diagnostics Runtime diagnostics (sometimes called level 2 diagnostics) run during normal printer operation. When the following conditions occur, the printer automatically turns off the appropriate motors and disables printing to prevent damage to the printer: •...
  • Page 13 Chapter 2: Diagnostics and Configuration A799II Diagnostics Form *** A799II - Diagnostics Form *** Model number : A799-780X-TD00 Serial number : 0000000000 Loader Firmware : PN#: 189-799L111 Date : Nov 10 2015 Flash Firmware Revision : V1.42 : C0F4 - Set Firmware Features - >...
  • Page 14: Indicators

    Chapter 2: Diagnostics and Configuration 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. Indicator Sequence Condition Continuous, blinking on Paper out Cover open Black dot sensor error Knife unable to home...
  • Page 15: Printer Configuration

    Chapter 2: Diagnostics and Configuration Printer configuration Printers are shipped with all the functions and parameters preset at the factory. Settings for various printer parameters can be changed. This menu is printed on the receipt and scrolls through instructions for selecting and changing any of the functions or parameters.
  • Page 16: Configuring The Printer

    Chapter 4: Programming Commands Configuring the printer The configuration menu allows you to select functions or change various settings for the printer. Instructions printed on the receipt guide you through the processes. Caution: Be extremely careful changing any of the printer settings to avoid changing other settings that might affect the performance of the printer.
  • Page 17: Communication Interface Settings

    Chapter 2: Diagnostics and Configuration Communication interface settings To change the communication interface settings, enter the configuration menu, select “Set Communication Interface” from the main menu. Caution: Be extremely careful changing any of the printer settings to avoid inadvertently changing other settings that might affect the performance of the printer.
  • Page 18: Diagnostics Modes

    Chapter 2: Diagnostics and Configuration Diagnostics modes To change the diagnostic modes enter the configuration menu, select “Set Diagnostics Modes” from the main menu and select one of the following modes: • Normal: normal operating mode of the printer. • Datascope: the receipt printer prints incoming commands and data in hexadecimal format to help troubleshoot communication problems.
  • Page 19: Enable Or Disable Receipt Test Mode

    Chapter 2: Diagnostics and Configuration Enable or disable receipt test mode The receipt test mode verifies proper receipt printing. Receipt test is enabled and disabled by selecting the “Diagnostics Modes” sub-menu of the configuration menu. See “Configuring the printer”, page 16 for instructions on how to enter the configuration menu.
  • Page 20: Printer Settings And Functions

    This function is used to determine what printer ID value is returned in response to a Transmit printer ID command (1D 49 n) when the printer is in A794 emulation mode. The printer can be configured to send back the ID of the A799II, A794, A793 or Application Compatible Escape Command systems.
  • Page 21: Select The Hardware Options Sub-Menu To Set

    Adjusts printhead energy level to darken printout or adjust for paper variations. When printer prints high-density print lines (text or graphics), it automatically slows down. Factory setting for the A799II is 100%. Note: when printer is set to color paper, Print Density adjusts the overall darkness for both color and monochrome.
  • Page 22: Select The Paper Type Sub-Menu To Set

    Sets the printer to optimum performance for paper being used. This can also be done through the command 1D 81 m n. See the following chapter for command usage. Available paper types may vary. Refer to our website, www.CognitiveTPG.com, for an up-to-date list of qualified paper manufacturers. Currently there are 3 types:...
  • Page 23 Chapter 2: Diagnostics and Configuration This page intentionally left blank A799-2PG0001B 4/2016...
  • Page 24: Chapter 3: Programming The Printer

    Any nonlegal commands have their parameter sent to the print buffer as data. Comparison to A793 The following table details the list of commands whose behavior differs between the A793, A794, and A799II because of the physical differences of a 6 dots/mm head (A793) versus an 8 dots/mm head (A794 and A799II).
  • Page 25: Two-Color Commands (Comparison A794 To A799Ii)

    Print and feed paper This command uses n in terms of n/360 inches. Since the A793 had a fundamental step of 1/152 inch and the A799II has a fundamental step of 1/203 inch, the actual line spacing will not exactly match the requested spacing.
  • Page 26 Chapter 3: Programming the Printer ColorPOS two-color and color interpreted commands (continued) ® Hexadecimal ASCII Description 1D 8C n m GS 0x8C n m Merge watermark mode 1D 8D n m GS 0x8D n m Text strike through mode 1D 90 m x y o p q GS 0x8A m x y o p q Form and print real time surround graphic 1D 91 n...
  • Page 27: Character Appearance

    The A799II Series adds a 27 dot high font, so standard print spacing is 30 dots. The A799II Series paper-saving feature adds a 18 dot high font and reduces extra dot rows to 2, so standard print spacing is 20 dots.
  • Page 28: Rotated Printing Commands

    Chapter 3: Programming the Printer Print zones for 82.5mm paper Specifications 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.040 inches) • Top margin to manual tear-off: 17.8mm (0.70 inches) •...
  • Page 29: Emulation Modes

    Chapter 3: Programming the Printer Emulation modes The CognitiveTPG A799II Series printer may be operated in a number of different emulation modes. However, printing characteristics and defaults may differ, depending on the desired mode. For instance, two-color paper and ColorPOS ®...
  • Page 30: Chapter 4: Programming Commands

    Chapter 4: Programming Commands Chapter 4: Programming Commands Commands listed by function Printer actions Code (hexadecimal) Command Page Clear printer Perform full knife cut (or code 1B 69) Perform partial knife cut (or code 1B 6D) 1B 07 Generate tone 1B 3D n Select peripheral device (for multi-drop) 1B 40...
  • Page 31: Vertical And Horizontal Positioning

    Chapter 4: Programming Commands Vertical and horizontal positioning Code (hexadecimal) Command Page Horizontal tab 1B 14 n Set column 1B 24 nL nH Set absolute starting position 1B 32 Set vertical line spacing to 1/6 inch 1B 33 n Set vertical line spacing 1B 44 n1...nk 00 Set horizontal tab positions 1B 5C n1 n2...
  • Page 32: Graphics

    Chapter 4: Programming Commands 1D F0 02 n Select font style number 1D F0 03 Save font ID number as default font at power up 1D F0 80 Download font 1D F0 C0 02 Download font list 1F 03 45 FSID Configure use of font set over power cycles 1F 03 46 n Configure line spacing...
  • Page 33: Status

    Chapter 4: Programming Commands 1F 03 16 f s p/t t LogoEZ colorization ® 1F 03 17 a m s LogoEZ attribute mapping ® 1F 04 n Convert 6-dots/mm bitmap to 8 dots/mm bitmap 1F 7B n Enable constant speed logos Status Batch mode Code (hexadecimal)
  • Page 34: Page Mode

    Chapter 4: Programming Commands 1D 6B FF n Print Multiple Barcodes 1D 6B n d1... 00 Print GSI Databar (formerly RSS), null terminated 1D 6B m n L n H d1... dn Print GSI Databar (formerly RSS), data length specified 1D 70 a b c d e f Select PDF 417 parameters 1D 71 a b c d e f L f H...
  • Page 35: Flash Download

    Chapter 4: Programming Commands 1D F0 10 n Lock permanent flash area 67, 131 Flash download Code (hexadecimal) Command Page 1B 5B 7D Switch to flash download mode 1D 0E Erase all flash contents except boot sector 1D 0F Return main program flash CRC 1D 11 00 00 00 00 d1…dn Download Application 1D FF...
  • Page 36: Black Bar Commands

    Chapter 4: Programming Commands Black Bar commands Code (hexadecimal) Command Page 1F 03 51 00 nn Set black bar flags 1F 03 51 01 Enable feed to mark on form feed 1F 03 51 02 Enable feed to mark on cut 1F 03 51 03 Enable black bar paper low detection 1F 03 51 04 nn...
  • Page 37: Command Conventions

    Chapter 4: Programming Commands Command conventions The following information describes how each command is organized: Name: Name of command. ASCII: The ASCII control code. Hexadecimal: The hexadecimal control code. Decimal: The decimal control code. Value: A description of the command operands. Range: The upper and lower limits of the command operand.
  • Page 38: Perform Partial Knife Cut

    Chapter 4: Programming Commands Perform partial knife cut ASCII ESC m Hexadecimal 1B 6D Decimal 27 109 Partially cuts the receipt. The default setting leaves 5mm (0.20 inch) of paper on the left edge. (See setting partial cut distance in diagnostics.) There are two codes (Hex 1A or 1B 6D) for this command and both codes perform the same function.
  • Page 39: Initialize Printer

    Chapter 4: Programming Commands Initialize printer ASCII ESC @ Hexadecimal 1B 40 Decimal 27 64 Default: Character pitch: 15.6 CPI Column width: 44 characters Extra dot rows: Character set: Code Page 437 Printing position: Column One Clears the print line buffer and resets the printer to the default settings for the start-up configuration (refer to Default settings above).
  • Page 40: Generate Pulse To Open Cash Drawer

    Chapter 4: Programming Commands Generate pulse to open cash drawer ASCII ESC p n p1 p2 Hexadecimal 1B 70 n p1 p2 Decimal 27 112 n p1 p2 Value of n: 00, 48 (Decimal) = Drawer 1; 01, 49 (Decimal) = Drawer 2 Value of p1: 0–255 Value of p2:...
  • Page 41: Select Cut Mode And Cut Paper

    Chapter 4: Programming Commands Select cut mode and cut paper ASCII GS V m GS V m n Hexadecimal 1D 56 m 1D 56 m n Decimal 29 86 m 29 86 m n Value of m: Selects the mode as shown in the table. Value of n: Determines cutting position only if m is 65 or 66.
  • Page 42: Set Interpretation Of "Set Current Color" Command

    An incorrect setting of n for a two-color paper or failure to set n when a two-color paper is loaded will result in poor output quality. The following list clarifies how the A799II printer will behave in each emulation mode: Two-color paper and ColorPOS commands and features are supported only in Native mode.
  • Page 43: Set Timeout Value For Low-Power Idle State

    Chapter 4: Programming Commands Set timeout value for low-power idle state ASCII US ETX ‘ ll hh Hexadecimal 1F 03 3C ll hh Decimal 31 03 60 ll hh Value of ll: low byte of time in seconds Value of hh: high byte of time in seconds This command sets the timeout value in seconds.
  • Page 44: Print And Paper Feed

    Chapter 4: Programming Commands Print and paper feed The print and feed commands control printing on the receipt and paper feed by the printer. Print and feed paper one line ASCII Hexadecimal Decimal Prints one line from the buffer and feeds paper one line. Carriage return/line feed pair prints and feeds only one line.
  • Page 45: Feed N Dot Rows

    Chapter 4: Programming Commands Feed n dot rows ASCII NAK n Hexadecimal 15 n Decimal 21 n Value of n: n/203 inch Range of n: 0–255 in Native mode 0–127 in A793 emulation Feeds the paper n dot rows (n/8 mm, n/203 inch), without printing. Receipt moves n rows if the print buffer is empty. Related information This is ignored in LEGACY emulation and the parameter byte goes into the print buffer.
  • Page 46: Print

    Chapter 4: Programming Commands Print ASCII Hexadecimal Decimal Prints one line from the buffer and feeds paper one line. Executes LF on receipt. Related information This command is ignored in LEGACY emulation. Print and feed paper ASCII ESC J n Hexadecimal 1B 4A n Decimal...
  • Page 47: Vertical And Horizontal Positioning

    Chapter 4: Programming Commands Vertical and horizontal positioning The horizontal positioning commands control the horizontal print positions of characters on the receipt. The commands describe operation for 80mm paper. If the printer supports 82.5mm paper, the dot spacing is the same but there are 640 printable dots rather than 576 printable dots on the 80mm paper.
  • Page 48: Set Absolute Starting Position

    In order to improve the speed of printing, the A799II moves the data into a buffer for the printhead when it receives it. When the “Set relative print position” command contains a move to the left, this causes the new data to overstrike the previous data.
  • Page 49: Set Vertical Line Spacing

    Chapter 4: Programming Commands Set vertical line spacing ASCII ESC 3 n Hexadecimal 1B 33 n Decimal 27 51 n Value of n: n/406 inch in Native mode n/360 inch in A793 emulation mode n/203 inch in Application Compatible Escape Commands emulation mode Range of n: 0-255 Default:...
  • Page 50: Set Relative Print Position

    In order to improve the speed of printing, the A799II moves the data into a buffer for the printhead when it receives it. When the “Set relative print position” command contains a move to the left, this causes the new data to overstrike the Continued...
  • Page 51: Select Justification

    Chapter 4: Programming Commands previous data. This behavior can be used to an application’s advantage to provide the ability to create compound characters on the receipt station. This command also functions differently in the A793 emulation when used in graphics: n x 2 = Number of dots to be moved from the beginning of the line when this command is followed by a graphic command.
  • Page 52: Set Printing Area Width

    Chapter 4: Programming Commands Set printing area width ASCII GS W nL nH Printable Area 576 Dots Hexadecimal 1D 57 nL nH Decimal 29 87 nL nH Range of nL: 0–255 Left Printing Area Margin Width Range of nH: 0–255 Default: 576 dots (the maximum printable area) Sets the width of the printing area until the printer is initialized, reset, or powered off.
  • Page 53: Text Characteristics Commands

    Chapter 4: Programming Commands Text characteristics commands These commands control what the printed information looks like, selection of character sets, definition of custom-defined characters, and setting of margins. The commands are described in order of their hexadecimal codes. The commands describe operation for 80mm paper. If the printer supports 82.5mm paper, the dot spacing is the same but there are 640 printable dots rather than 576 printable dots on 80mm paper.
  • Page 54: Select Pitch (Column Width)

    Chapter 4: Programming Commands Select pitch (column width) ASCII ESC SYN n Hexadecimal 1B 16 n Decimal 27 22 n Value of n: 0 = Standard pitch 1 = Compressed pitch Default: 0 (Standard pitch) Selects the character pitch for a print line. Formulas The following table provides the print characteristics for both pitches on the receipt station.
  • Page 55: Select Print Mode

    Chapter 4: Programming Commands Select print mode ASCII ESC ! n Hexadecimal 1B 21 n Decimal 27 33 n Value of n: Pitch selection (standard, compressed, double high, or double wide.) Value of n Function Bit 0 Pitch Standard Compressed (See chart below) pitch pitch...
  • Page 56: Select Or Cancel User-Defined Character Set

    Chapter 4: Programming Commands Select or cancel user-defined character set ASCII ESC % n Hexadecimal 1B 25 n Decimal 27 37 n Value of n: 0 = Code Page 437 1 = User Defined (RAM) 2 = Code Page 850 Range of n: 0–2 Default:...
  • Page 57: Define Extended User-Defined Character Set

    Chapter 4: Programming Commands Define extended user-defined character set ASCII US & s c1 c2 [character 1 data] ... [character k data] Hexadecimal 1F 26 s c1 c2 [character 1 data] ... [character k data] Decimal 31 38 s c1 c2 [character 1 data] ... [character k data] Values and ranges: s = the number of dot rows in the character cell (maximum 64) c = the ASCII codes of the first (c1) and last (c2) characters respectively...
  • Page 58: Copy Character Set From Rom To Ram

    Chapter 4: Programming Commands Copy 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. Use this command to re-initialize the user-defined character set. Code page 437 is copied by default at initialization.
  • Page 59: Select Or Cancel Double-Strike

    Chapter 4: Programming Commands Select or cancel double-strike ASCII ESC G n Hexadecimal 1B 47 n Decimal 27 71 n Value of n: 0 = Off 1 = On (When 0 and 1 are the least significant bit, LSB) Default: 0 (Off ) Turns double-strike mode on or off until the printer is initialized, reset, or powered off.
  • Page 60: Select International Character Code

    Chapter 4: Programming Commands Select international character code ASCII ESC R n Hexadecimal 1B 52 n Decimal 27 82 n Value of n: Native mode A793 emulation Application Compatible Escape Command emulation (1B 52 n only) 0 = Code Page 437 0 = Code Page 437 0 = U.S.A.
  • Page 61: Select Or Cancel 90 Degree Clockwise Rotated Print

    Chapter 4: Programming Commands Selects the character set to be used until the printer is initialized, reset, or powered off. Look in “Appendix B: Resident Character Sets” in this programming guide for the character sets. The alphanumeric characters (0x20-0x7F) are the same for each set.
  • Page 62: Select Or Cancel Upside-Down Print Mode

    Chapter 4: Programming Commands 0E = Code Page 1255 0F = Code Page KZ_1048 10 = Code Page 1254 11 = Code Page 1250 12 = Code Page 28591 13 = Code Page 28592 14 = Code Page 28599 15 = Code Page 28605 16= Code Page 864 17 = Code Page 720 18 = Code Page 1256...
  • Page 63: Select Character Size

    Chapter 4: Programming Commands Select character size ASCII GS ! n Hexadecimal 1D 21 n Decimal 29 33 n Value of n: 1–8 = vertical number of times active font 1–8 = horizontal number of times active font Range of n: 00–07, 10–17, ...70–77 Default of n: 11 hexadecimal...
  • Page 64: Select Or Cancel White/Black Reverse Print Mode

    Chapter 4: Programming Commands Select or cancel white/black reverse print mode ASCII GS B n Hexadecimal 1D 42 n Decimal 29 66 n Value of n: 0 = Off 1 = On (When 0 and 1 are the least significant bit, LSB) Range of n: 0–255 Default:...
  • Page 65: Reverse Color Text Mode (Colorpos ® )

    Chapter 4: Programming Commands Reverse color text mode (ColorPOS ® ASCII GS 0x85 m n Hexadecimal 1D 85 m n Decimal 29 133 m n Value of m: 0 = white 1 = black 2 = paper color Value of n: 0 = white 1 = black 2 = paper color...
  • Page 66: Select Active User-Defined Character Set

    Chapter 4: Programming Commands Select active user-defined character set Selects user-defined character set number for download or printing. The default at power on is 0. ASCII US i n Hexadecimal 1F 69 n Decimal 31 105 n n = 0 - 127 Set high order bit of n to configure user-defined character set number as the default.
  • Page 67: Double-Byte Fonts

    Chapter 4: Programming Commands 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.
  • Page 68: Select Font Id Number

    Chapter 4: Programming Commands Select font ID number ASCII GS 0xF0 0x01 n Hexadecimal 1D F0 01 n Decimal 29 240 1 n Value of n: 128 - 255 Select font ID number for downloaded font. This command is sent before downloading the map file for a specific font. Each font ID has one map file to download. This command is also sent to select a downloaded font at run time.
  • Page 69: Download Font

    Chapter 4: Programming Commands Download font ASCII GS 0xF0 0x80 followed by file Hexadecimal 1D F0 80 Decimal 29 240 128 This command is the sequence introducer for downloading existing files. The downloaded font is always stored in the permanent font area of flash. If there is not enough memory in the permanent font area to store the file the printer returns NACK.
  • Page 70: Select Bit Image Mode

    Chapter 4: Programming Commands Select bit image mode ASCII ESC * m n1 n2 d1 ... dn Hexadecimal 1B 2A m n1 n2 d1 ... dn Decimal 27 42 m n1 n2 d1 ... dn Value of m: Value of m Mode No.
  • Page 71: Print Advanced Raster Graphics

    Chapter 4: Programming Commands Print advanced 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 … dn Value of m: horizontal offset from left margin = 8 x m dots Value of n: number of data bytes that compose the raster...
  • Page 72: Select The Current Logo

    Chapter 4: Programming Commands Select the current logo ASCII GS # n Hexadecimal 1D 23 n Decimal 29 35 n Range of n: 0 – 255 Default: Selects a color or monochrome logo to be defined or printed. The active logo n remains in use until this command is sent again with a different logo n.
  • Page 73: Define Downloaded Bit Image

    Chapter 4: Programming Commands Define downloaded bit image ASCII GS * n1 n2 d1 ... dn] Hexadecimal 1D 2A n1 n2 d1 ... dn] Decimal 29 42 n1 n2 d1 ... dn] Value of n: Value of n1 Value of n2 Value of d 1–72 (8 x n1 = number of 1–64 (number of vertical bytes)
  • Page 74: Print Downloaded Bit Image

    Chapter 4: Programming Commands Print downloaded bit image ASCII GS / m Hexadecimal 1D 2F m Decimal 29 47 m Value and range of m: This command is used to print a previously stored monochrome or color logo (defined by 1D 2A) from printer memory on the receipt station.
  • Page 75: Print Raster Monochrome Graphics (Colorpos ® )

    Chapter 4: Programming Commands Print raster 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.5 mm paper Decimal 29 130 n1…..n72 (576 dots) for 80 mm paper, or n80 (640 dots) for 82.5 mm paper ASCII...
  • Page 76: Download Logo Image (Colorpos ® )

    Chapter 4: Programming Commands Download logo image (ColorPOS ® ASCII GS 0x84 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m Hexadecimal 1D 84 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m Decimal 29 132 m n1 n2 d1…..dx , x = (n1 * n2*8 ) * m Value of m:...
  • Page 77: Apply Shading To Logo (Colorpos ® )

    Chapter 4: Programming Commands 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.
  • Page 78: Monochrome Shade Mode (Colorpos ® )

    Chapter 4: Programming Commands Monochrome shade mode (ColorPOS ® ASCII GS 0x86 m Hexadecimal 1D 86 m Decimal 29 134 m This applies a selected shade density to all monochrome objects such as text and monochrome logos. The parameter m specifies the shading effect and has an initial value of 0 which signifies no effect.
  • Page 79: Form And Merge Real Time Surround Graphic (Colorpos ® )

    Chapter 4: Programming Commands Form and merge real time surround graphic (ColorPOS ® ASCII GS 0x90 m x y o p q Hexadecimal 1D 90 m x y o p q Decimal 29 144 m x y o p q This command will print a real-time graphic style designated by m.
  • Page 80: Background Logo Print Mode (Colorpos ® )

    Chapter 4: Programming Commands Background logo print mode (ColorPOS ® ASCII GS 0x92 n Hexadecimal 1D 92 n Decimal 29 146 n This command will place into the graphics buffer the logo designated by n. As soon as there is a print action command (such as text output) the graphics buffer will be merged (logical OR process) with print output.
  • Page 81: Shade And Store Logo (Colorpos ® )

    Chapter 4: Programming Commands Shade and store logo (ColorPOS ® ASCII GS Ox9A n m o Hexadecimal 1D 9A n m o Decimal 29 154 n m o Value of n: n is ID (logo index value) of an existing logo in either flash or RAM memory Value of m: m is the % of shading to be applied to the logo, 0 <= m <=100.
  • Page 82: Set Temporary Max Target Speed

    Chapter 4: Programming Commands Set temporary max target speed ASCII GS 0xA0 nl nh Hexadecimal 1D A0 nl nh Decimal Values: 15 00 - 5E 01 monochrome 15 00 - 96 00 color Max value is limited by the max speed setting of the printer Default: 0 - normal speed This command sets a specific speed for an operation, allowing the user more control of the print environment.
  • Page 83 Chapter 4: Programming Commands • set centered justification (1B 61 1 command), saving the previous justification • if the logo at F0h is currently defined, print logo by sending print downloaded bit image, normal size (1D 2F 0 command) without changing the value of current logo •...
  • Page 84 Chapter 4: Programming Commands The margin message printing feature is activated after the header logo after a restart at each knife-cut. Note that when printing graphic objects, merging is turned off by each knife cut. No correlation exists (when both are set) between watermark and logo skip distances.
  • Page 85: Set Logoez Attribute Mapping

    Chapter 4: Programming Commands Set LogoEZ attribute mapping ® ASCII US ETX ETB a m s Hexadecimal 1F 03 17 a m s Decimal 31 03 23 a m s Values: attribute map selector a , m, s = 0, 0, 0 turn off attribute mapping (all 3 bytes required) a = 1 selects first attribute mapping definition (of two available)
  • Page 86: Convert 6-Dots/Mm Bitmap To 8-Dots/Mm Bitmap

    Chapter 4: Programming Commands The operational theory of this command is that if (input character attributes) AND (original) = (original); then (output character attributes) = ([original] XOR [input character attributes]) OR (substituted). The input character’s original attributes are mapped to the substituted attributes, but any attributes not specified for mapping are unchanged. In the tables you will see that there are 7 input attributes and 9 outputs.
  • Page 87: Status

    Exceptions Unlike the A793, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the A799II has a single connector that shares data reporting from either cash drawer. When either cash drawer is open, an open status is reported by the printer.
  • Page 88: Transmit Paper Sensor Status

    4, 52 = Logo Definition Transmits the printer ID specified by n as follows: Printer ID Specification ID (Hexadecimal) 1, 49 Printer model ID A799II 0x25 2, 50 Type ID Installed options Refer to below 3, 51 ROM version ID...
  • Page 89 Chapter 4: Programming Commands Knife installed. – – – Undefined. – – – Undefined. Not used. Fixed to Off. – – – Undefined – – – Undefined Not used. Fixed to Off. n = 4 or 52: Logo Definition Off/On Decimal Function No logo downloaded (SRAM or Flash)
  • Page 90: Transmit Printer Id, Remote Diagnostics Extension

    Chapter 4: Programming Commands Transmit printer ID, remote diagnostics extension ASCII GS I @ n Hexadecimal 1D 49 40 n Decimal 29 73 64 n Values of n: Refer to table Range of n: 32–255 (not all defined, but reserved) Twenty-six remote diagnostic items are defined in the following table: five printer ID items and twenty-one printer tally items.
  • Page 91 Chapter 4: Programming Commands Hours on tally, 8 digit ASCII numeric, Write to NVRAM max 99,999,999 Hours on tally Write to NVRAM, and print on receipt to verify Hours on tally Clear Hours on tally to 0 Hours on tally Return hours on tally, returns 10 bytes Flash firmware version Return flash firmware version, returns 6 bytes...
  • Page 92 Chapter 4: Programming Commands Printhead Changes Write to NVRAM Printhead Changes Write to NVRAM, and print on receipt to verify Printhead Changes Clear Printhead Changes tally to 0 Printhead Changes Return Printhead Changes tally, returns 10 bytes Receipt Mechanism Changes Write to NVRAM Receipt Mechanism Changes Write to NVRAM, and print on receipt to verify...
  • Page 93: Transmit Status

    Exceptions Unlike the A793, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the A799II has a single connector that shares data reporting from either cash drawer. When either cash drawer is open, an open status is reported by the printer.
  • Page 94: Send Printer Software Version

    Chapter 4: Programming Commands Flash memory user sector status (n = 4 or n = 52) Bit Off/On Hex Decimal Status for transmit status – – – Undefined. Fixed to off. – – – Undefined. Fixed to off. User data storage write successful User data storage write failed, specified area not erased.
  • Page 95: Preferred Implementation

    Chapter 4: Programming Commands Preferred implementation For a new application the GS (1D) sequences are recommended to avoid possible misinterpretation of a DLE (0x10) sequence as a clear printer (0x10 0, ASCII DLE NUL) command. An application using these GS (1D) sequences, does not need to distinguish for the printer between the new real time commands and the clear printer command.
  • Page 96: Busy Line And Fault Conditions

    10 04 n. Unlike the A793, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the A799II has a single connector that shares data reporting from either cash drawer. When either cash drawer is open, an open status is reported by the printer.
  • Page 97 Chapter 4: Programming Commands 2 = Transmit RS-232C Busy Status Bit Status Hex Decimal Function Fixed to off. Fixed to on. Cover closed. Cover open. Paper feed button is not pressed. Paper feed button is pressed. Fixed to on. Printing not stopped due to paper condition. Printing stopped due to paper condition.
  • Page 98: Real Time Request To Printer

    Chapter 4: Programming Commands Real time request to printer GS sequence DLE sequence ASCII GS ETX n DLE ENQ n Hexadecimal 1D 03 n 10 05 n 29 3 n 16 5 n Value of n: 1 = recover and restart 2 = recover and clear buffers The printer responds to a request from the host specified by n.
  • Page 99: Real Time Printer Status Transmission

    Exceptions Unlike the A793, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the A799II has a single connector that shares data reporting from either cash drawer. When either cash drawer is open, an open status is reported by the printer.
  • Page 100: Automatic Status Back

    Chapter 4: Programming Commands Automatic Status Back Enable/disable Automatic Status Back (ASB) ASCII: GS a n Hexadecimal: 1D 61 n Decimal: 29 97 n Range of n: 0 - 255 Default: 0 (ASB disabled) Enables or disables automatic status back (ASB) and specifies the status items. This command is a batch mode command; that is, it is processed after all prior data in the input buffer has been processed.
  • Page 101 Chapter 4: Programming Commands Byte 1 = printer information Byte 2 = error information Byte 3 = paper sensor information Byte 4 = paper sensor information First Byte (Printer Information) Bit Off/On Hex Decimal Status for ASB Not used. Fixed to off. Not used.
  • Page 102 Chapter 4: Programming Commands Receipt paper present. Receipt paper exhausted. Not used. Fixed to off. – – – Undefined – – – Undefined Not used. Fixed to off. Fourth byte (paper sensor information) Bit Off/On Hex Decimal Status for ASB –...
  • Page 103: Unsolicited Status Mode

    Chapter 4: Programming Commands Unsolicited status mode Select or cancel unsolicited status mode (USM) ASCII: GS a n Hexadecimal: 1D 61 n Decimal: 29 97 n Value of n: 0 turns mode off; any non-zero value turns mode on Default: 0 (USM disabled) Enables or disables automatic return of 4 status bytes whenever one or more of the listed changes occurs.
  • Page 104 Chapter 4: Programming Commands One or both cash drawers open. Both cash drawers closed. Not busy at the RS232C interface. Printer is busy at the RS232C interface. Not used. Fixed to on. Receipt cover closed. Receipt cover open. Paper feed button is not pressed. Paper feed button is pressed.
  • Page 105: Recognizing Data From The Printer

    Chapter 4: Programming Commands Fourth byte (paper sensor information) Bit Off/On Hex Decimal Status for USM – – – Undefined – – – Undefined – – – Undefined – – – Undefined Not used. Fixed to off. – – – Undefined –...
  • Page 106: Bar Codes

    Chapter 4: Programming Commands Bar codes These commands format and print bar codes and are described in order of their hexadecimal codes, with the exception of the QR code overview, which is described in the order of use in creating two- dimensional QR codes.
  • Page 107: Set Data Parsing Mode For Qr Code

    Chapter 4: Programming Commands Set data parsing mode for QR Code ASCII GS ( k ETX NUL 1 D m Hexadecimal 1D 28 6B 03 00 31 44 m Decimal 29 40 107 3 49 68 m Value of m: 30h = Manual Mode 31h = Auto Mode (default) This command specifies which method of data parsing to use.
  • Page 108: Print Symbol Data For Qr Code

    Chapter 4: Programming Commands Sample Auto Mode Data: 1D 28 6B 03 00 31 44 31 ‘ Set auto parsing 1D 28 6B 0D 00 31 50 30 ‘ Set data size 53 54 31 2D 35 36 37 38 39 30 ‘...
  • Page 109: Transmit Qr Code Print Size

    Chapter 4: Programming Commands Transmit QR code print size ASCII GS ( k ETX NUL 1 R 0 Hexadecimal 1D 28 6B 03 00 31 52 30 Decimal 29 40 107 03 00 49 82 48 Transmits the size information for printing the QR symbol data stored by the store data command in the symbol storage area.
  • Page 110 Chapter 4: Programming Commands “2001”. (0x32 30 30 31) No barcode data in the symbol storage area. Put data in the print buffer. “2002”. (0x32 30 30 32) The symbol size is bigger than the current printing area. “3001”. (0x33 30 30 31) Too much data.
  • Page 111: Select Printing Position Of Hri Characters

    Chapter 4: Programming Commands Select printing position of HRI characters ASCII GS H n Hexadecimal 1D 48 n Decimal 29 72 n Value of n: Printing position 0 = Not printed 1 = Above the bar code 2 = Below the bar code 3 = Both above and below the bar code Default: 0 (Not printed)
  • Page 112 Chapter 4: Programming Commands Rotated barcodes set with small modules (select bar code width command 1D 77 n , with n=1 or 2) and PDF 417 barcodes in any orientation are printed at low speed, for better readability. Exceptions The command is only valid at the beginning of a line. Illegal data cancels the command.
  • Page 113: Print Multiple Barcodes

    Chapter 4: Programming Commands PDF 417 0–255 Variable length 00–FF 0 < n < 2800 data length specified via integer n = nH:nL 1D 6B m nL nH d1 . . . dn The value of m selects the bar code system as described in the table. The variable d indicates the character code to be encoded into the specified bar code system.
  • Page 114: Print Gs1 Databar, Null Terminated

    Chapter 4: Programming Commands 1D 6B 49 06 67 27 2d 2e 2d 2e Barcode 1, code 128 1D 6B 49 07 67 04 05 06 07 08 09 Barcode 2, code 128 1D 6B 49 04 67 01 02 03 Barcode 3, code 128 1D 6B FF 00 End multiple barcodes, print...
  • Page 115: Set Gs1 Databar Parameters

    Chapter 4: Programming Commands Set GS1 DataBar parameters Setting of parameters for GS! DataBar ASCII GS q a b c d e fL fH Hexadecimal 1D 71 a b c d e fL fH Decimal 29 113 a b c d e fL fH pixels per minimum unit, default 3, minimum 2, maximum 6 (value a applies byte to parameters b, c, d)
  • Page 116: Select Bar Code Width

    Chapter 4: Programming Commands Sample symbol description: Each PDF 417 symbol consists of 3 to 90 stacked rows surrounded on all four sides by a quiet zone. Each row contains: Data Character 1 Leading quiet zone Start Pattern Code words Stop Pattern 2 Start pattern Left Row Indicator...
  • Page 117: Set Datamatrix Parameters

    Chapter 4: Programming Commands Set DataMatrix Parameters ASCII GS ( k pL pH cn fn m d1 d2 Hexadecimal 1D 28 6B 05 00 36 42 m d1 d2 Decimal 29 40 107 5 0 54 66 m d1 d2 Value and Ranges: Value: Ranges:...
  • Page 118: Set Datamatrix Module Size

    Chapter 4: Programming Commands Set DataMatrix module size ASCII GS ( k pL pH cn fn n Hexadecimal 1D 28 6B 03 00 36 43 n Decimal 29 40 107 3 0 54 67 n Value and Ranges: Value: Ranges: (pL + pH x 256) 2-16 Defaults:...
  • Page 119: Store Datamatrix Data In Symbol Storage Area

    Chapter 4: Programming Commands Store DataMatrix data in symbol storage area ASCII GS ( k pL pH cn fn m d1...dk Hexadecimal 1D 28 6B pL pH 36 50 30 d1...dk Decimal 29 40 107 pL pH 54 80 48 d1...dk Value and Ranges: Value: Ranges:...
  • Page 120: Print Datamatrix Symbol Data In The Symbol Storage Area

    Chapter 4: Programming Commands Print DataMatrix symbol data in the symbol storage area ASCII GS ( k pL pH cn fn m Hexadecimal 1D 28 6B 03 00 36 54 30 Decimal 29 40 107 3 0 54 84 48 Value and Ranges: Value: Ranges:...
  • Page 121: Page Mode

    Page mode Page mode is one of two modes that the A799II 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. Page mode is different in that it processes or prepares the data as a “page”...
  • Page 122: Select Page Mode

    Chapter 4: Programming Commands Select page mode 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. The developed data is deleted after being printed.
  • Page 123: Select Standard Mode

    Chapter 4: Programming Commands Select standard mode ASCII ESC S Hexadecimal 1B 53 Decimal 27 83 Switches from page mode to standard mode. In switching from page mode to standard mode, data buffered in page mode are cleared, the printing area set by set print area in page mode (1B 57) is initialized and the print position is set to the beginning of the line.
  • Page 124: Set Print Area In Page Mode

    Chapter 4: Programming Commands Set print area in page mode ASCII ESC W n1, n2 ...n8 Hexadecimal 1B 57 n1, n2 ...n8 Decimal 27 87 n1, n2 ...n8 (x0, y0) Range of n: 0-255 Default: n1-4 = Print Area n5 = n6 = n7 = n8 =...
  • Page 125: Set Absolute Vertical Print Position In Page Mode

    Chapter 4: Programming Commands 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. The absolute print position is set to [(nL + nH X 256) x (vertical or horizontal motion unit)] inches.
  • Page 126: Macros

    Chapter 4: Programming Commands Macros These commands are used to select and perform a user-defined sequence of printer operations. Select or cancel macro definition ASCII GS : Hexadecimal 1D 3A Decimal 29 58 Starts or ends macro definition. Macro definition begins when this command is received during normal operation and ends when this command is received during macro definition.
  • Page 127: User Data Storage

    Chapter 4: Programming Commands User data storage Write to user data storage 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 Value of m: 0 –...
  • Page 128: Flash Memory User Sectors Allocation

    Chapter 4: Programming Commands Flash memory user sectors allocation ASCII GS “ U n1 n Hexadecimal 1D 22 55 n1 n2 Decimal 29 34 85 n1 n2 Default Value of n1: 1 (see below) Default Value of n2: 1 (see below) n1 is the number of 64k sectors used for logos and user-defined characters.
  • Page 129: Expanded Flash Memory Allocation

    Chapter 4: Programming Commands Expanded flash memory allocation ASCII GS “ 0x80 Hexadecimal 1D 22 80 Decimal 29 34 128 This sequence of commands is used to specify the number of flash sectors to be used for different applications. The begin and end sequence commands must be sent.
  • Page 130: Erase User Flash Sector

    Chapter 4: Programming Commands Erase user flash sector ASCII GS @ n Hexadecimal 1D 40 n Decimal 29 64 n Value of n: 49 – 51 n = 49 (ASCII n = 1) HEX 31 This command erases all 64K flash memory sectors allocated to user-defined character and logos storage. Those sectors should be erased in two situations: when the logo definition area is full and an application is attempting to define new logos, and when an application wants to replace one user-defined character set with another.
  • Page 131: Lock Permanent Font Flash Area

    Chapter 4: Programming Commands Note: When a specific item request is made, a returned CRC value of 0 0 indicates that no item is stored at that index. There is a practically negligible possibility that a valid object will have a 0 0 CRC; if this is of concern, applications should check the object downloaded byte sequence to verify that this is not the case (as well as store the CRC as an “ID”...
  • Page 132: Switch To Flash Download Mode

    Chapter 4: Programming Commands Switch to flash download mode ASCII ESC [ } Hexadecimal 1B 5B 7D Decimal 27 91 125 Puts the printer in flash download mode in preparation to receive commands controlling the downloading of objects into flash memory. When this command is received, the printer leaves normal operation and can no longer print transactions until the reboot the printer command (1D FF) is received or the printer is rebooted.
  • Page 133: Download Application

    Chapter 4: Programming Commands Download application ASCII GS DC1 NUL NUL NUL NUL d1… dn Hexadecimal 1D 11 00 00 00 00 d1… dn Decimal 29 17 0 0 0 0 d1… dn Value of d: data bytes, 0–255 Sending this command followed by an application will download the application to the printer. This will reprogram the flash.
  • Page 134: Ethernet Setup Commands

    Chapter 4: Programming Commands Ethernet setup commands The following commands are designed to set the required printer internal parameters for Ethernet operation. The commands can be used only in flash download mode. See User Guide for default setup. Restore default settings ASCII US BS NUL Hexadecimal...
  • Page 135: Dhcp (Auto-Configuration)

    Chapter 4: Programming Commands DHCP (auto-configuration) ASCII US BS BS n1 Hexadecimal 1F 08 08 n1 Decimal 31 8 8 n1 = 0: disabled n1 = 1: enabled Default: enabled Enables or disables the use of DHCP at power-up to obtain an IP address. If no address is found within two minutes, DHCP obtains the default IP address.
  • Page 136: Get Ethernet Configuration

    Chapter 4: Programming Commands Get Ethernet configuration ASCII Hexadecimal Decimal value Return all Return IP address Return net mask Return gateway Return TCP/IP port Return DHCP status Return inactivity timeout status Return keep alive pings status Return HTTP port Returns rr record1...recordr for the selected value of nn, where rr is the number of records being returned (always 1 except when nn = 00).
  • Page 137: Bluetooth Commands

    Chapter 4: Programming Commands Bluetooth commands Any changes made to the Bluetooth configuration require resetting the Bluetooth module using the Bluetooth Reset command. The printer will no longer be in configuration mode after a Bluetooth reset is performed. A799 printers will only allow data to be sent on the “active” port. The active port is the one which first receives data. The only way to switch the active port is to reset or power cycle the printer.
  • Page 138: Bluetooth Forget All Devices

    Chapter 4: Programming Commands Bluetooth Forget All Devices ASCII US HT SOH BEL Hexadecimal 1F 7F 01 07 Decimal 31 127 1 7 Instructs the Bluetooth module to forget all paired devices. This means that devices previously paired with the printer will need to be paired again.
  • Page 139: Settings Commands

    Chapter 4: Programming Commands Settings commands The following commands enable the user to save and restore printer settings. Save current settings ASCII US HT SOH ACK Hexadecimal 1F 09 01 06 Decimal 31 09 01 06 Saves all current settings as factory settings. Restore factory settings ASCII US HT SOH BEL...
  • Page 140: Black Bar Commands

    Chapter 4: Programming Commands Black bar commands Set black bar flags ASCII US EXT 0x51 NUL nn Hexadecimal 1F 03 51 00 nn Decimal 31 03 81 00 nn Value of nn: binary byte of wanted flags (in hex) 01 = Sensor available 02 = Paper low active 04 = Feed to bar on form feed 08 = Cut on black bar...
  • Page 141: Set Black Bar Offset

    Chapter 4: Programming Commands Set black bar offset ASCII US EXT 0x51 ACK ll hh Hexadecimal 1F 03 51 06 ll hh Decimal 31 03 81 06 ll hh Value of ll: low byte of offset Value of hh: high byte of offset Sets the distance from the black bar to the printhead.
  • Page 142: Miscellaneous Configuration Commands

    Chapter 4: Programming Commands Miscellaneous configuration commands Set diagnostics mode ASCII US EXT NUL n Hexadecimal 1F 03 00 n Decimal 31 03 00 n Value of n: 0 = Normal operation/diagnostics mode off 1 = DataScope mode (without graphics) 2 = Receipt test mode 6 = DataScope mode (with graphics) Default:...
  • Page 143: Set Printer Emulation

    Chapter 4: Programming Commands Set printer emulation ASCII US EXT BEL n Hexadecimal 1F 03 07 n Decimal 31 03 07 n Value of n: 0 = Native mode 1 = A794 emulation 2 = A793 emulation 3 = LEGACY emulation Default: 0 (Native mode) Sets the printer emulation.
  • Page 144: Set Font Size

    Running at a higher energy level will reduce the printhead life. Consult your CognitiveTPG technical support specialist if you have questions. Enable or disable Code 128 check digit calculation...
  • Page 145: Enable Or Disable Barcode String Terminator

    Chapter 4: Programming Commands Enable or disable barcode string terminator ASCII US EXT RS n Hexadecimal 1F 03 1E n Decimal 31 03 30 n Value of n: 0 = Disable 1 = Enable Default: 0 (Disable) Enables or disables the barcode string terminator. If disabled, the string terminator will not be looked for when the length is specified.
  • Page 146: Enable Or Disable Ej Action Via Operator Control

    If n > 0, the printer ID will transmit whaver value of n is selected. If n = 0, the printer can be configured to send back the ID of the A799II, A794, A793 or Application Compatible Escape Command systems using the confiuration menu.
  • Page 147: Set Vertical White Space

    Chapter 4: Programming Commands Set vertical white space ASCII US EXT 0x47 n Hexadecimal 1F 03 47 n Decimal 31 03 71 n Value of n: number of dot rows 0 = Reduced white space on FF = Normal spacing When this command is sent, the amount of white space on the printed receipt is n dot rows.
  • Page 148: Commands Listed By Hexadecimal Code

    Appendix A: Commands by Hexadecimal Code Appendix A: Commands listed by hexadecimal code Code (hexadecimal) Command Page Horizontal tab Print and feed paper one line Print and return to standard mode Print and carriage return Clear printer 10 04 n Real time status transmission (DLE sequence) 10 05 n Real time request to printer (DLE sequence)
  • Page 149 Appendix A: Commands by Hexadecimal Code Code (hexadecimal) Command Page 1B 34 m a0 a1 a2 Read from user data storage 1B 3A 30 30 30 Copy character set from ROM to RAM 1B 3D n Select peripheral device (for multi-drop) 1B 3F n Cancel user-defined character 1B 40...
  • Page 150 Appendix A: Commands by Hexadecimal Code Code (hexadecimal) Command Page 1D 0F Return main program flash CRC 1D 11 00 00 00 00 d1…dn Download Application 1D 21 n Select character size 1D 22 n Select memory type (SRAM/Flash) where to save logos or user-defined fonts 1D 22 55 n1 n2 Flash memory user sectors allocation 1D 22 60 n1...
  • Page 151 Appendix A: Commands by Hexadecimal Code Code (hexadecimal) Command Page 1D 5E r t m Execute macro 1D 61 n Enable/disable Automatic Status Back (ASB) 1D 61 n Select or cancel unsolicited status mode 1D 62 n Set smoothing 1D 66 n Select pitch of HRI characters 1D 68 n Select bar code height...
  • Page 152 Appendix A: Commands by Hexadecimal Code Code (hexadecimal) Command Page 1D F0 20 nn Get double-byte font CRC (font ID) 1D F0 21 nn mm Get double-byte font CRC (font ID and font style) 1D F0 80 Download font 1D F0 C0 02 Download font list 1D FF Reset firmware...
  • Page 153 Appendix A: Commands by Hexadecimal Code Code (hexadecimal) Command Page 1F 03 51 04 nn Set black bar max feed 1F 03 51 05 FF Set black bar threshold 1F 03 51 06 ll hh Set black bar offset 1F 03 52 n fL fH dL dH Set printer tone 1F 03 54 00 n Enable or disable shutdown mode...
  • Page 154: Resident Character Sets

    Appendix B: Resident Character Sets Appendix B: Resident Character Sets Character sets Character code table Page 0 (PC437: USA, Standard Europe): " & < > ⌂ Ç ü é â ä à å ç ê ë è ï î ì Ä...
  • Page 155: Character Code Table Page 1 (Pc850: Multilingual Latin I)

    Appendix B: Resident Character Sets Character code table Page 1 (PC850: Multilingual Latin I): " & < > ⌂ Ç ü é â ä à å ç ê ë è ï î ì Ä Å É æ Æ ô ö ò...
  • Page 156: Character Code Table Page 2 (Pc852: Latin Ii)

    Appendix B: Resident Character Sets Character code table Page 2 (PC852: Latin II): " & < > ⌂ Ç ü é â ä ů ć ç ł ë Ő ő î Ź Ä Ć É Ĺ ĺ ô ö Ľ ľ...
  • Page 157: Character Code Table Page 3 (Pc860: Portuguese)

    Appendix B: Resident Character Sets Character code table Page 3 (PC860: Portuguese): " & < > ⌂ Ç ü é â ã à Á ç ê Ê è Í Ô ì Ã Â É À È ô õ ò Ú ù...
  • Page 158: Character Code Table Page 4 (Pc863: Canadian French)

    Appendix B: Resident Character Sets Character code table Page 4 (PC863: Canadian French): " & < > ⌂ Ç ü é â Â à ¶ ç ê ë è ï î ‗ À § É È Ê ô Ë Ï û...
  • Page 159: Character Code Table Page 5 (Pc865: Nordic)

    Appendix B: Resident Character Sets Character code table Page 5 (PC865: Nordic): " & < > ⌂ Ç ü é â ä à å ç ê ë è ï î ì Ä Å É æ Æ ô ö ò û ù...
  • Page 160: Character Code Table Page 6 (Pc858: Multilingual I + Euro)

    Appendix B: Resident Character Sets Character code table Page 6 (PC858: Multilingual I + Euro): " & < > ⌂ Ç ü é â ä à å ç ê ë è ï î ì Ä Å É æ Æ ô ö...
  • Page 161: Character Code Table Page 7 (Pc866: Russian)

    Appendix B: Resident Character Sets Character code table Page 7 (PC866: Russian): " & < > ⌂ А Б В Г Д Е Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч...
  • Page 162: Character Code Table Page 8 (Wpc1252: Latin I)

    Appendix B: Resident Character Sets Character code table Page 8 (WPC1252: Latin I): " & < > ⌂ € ‚ ƒ „ … † ‡ ˆ ‰ Š ‹ Œ Ž ₹ ‘ ’ “ ” • – — ˜ ™...
  • Page 163: Character Code Table Page 9 (Pc862: Hebrew)

    Appendix B: Resident Character Sets Character code table Page 9 (PC862: Hebrew): " & < > ⌂ ‫א‬ ‫ב‬ ‫ג‬ ‫ד‬ ‫ה‬ ‫ו‬ ‫ז‬ ‫ח‬ ‫ט‬ ‫י‬ ‫ך‬ ‫כ‬ ‫ל‬ ‫ם‬ ‫מ‬ ‫ן‬ ‫נ‬ ‫ס‬ ‫ע‬ ‫ף‬ ‫פ‬ ‫ץ‬ ‫צ‬ ‫ק‬...
  • Page 164: Character Code Table Page 10 (Pc737: Greek)

    Appendix B: Resident Character Sets Character code table Page 10 (PC737: Greek): " & < > ⌂ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω...
  • Page 165: Character Code Table Page 11 (Pc874: Thai)

    Appendix B: Resident Character Sets Character code table Page 11 (PC874: Thai): " & < > ⌂ € … ‘ ’ “ ” • – — ก ข ฃ ค ฅ ฆ ง จ ฉ ช ซ ฌ ญ ฎ ฏ...
  • Page 166: Character Code Table Page 12 (Pc857: Turkish)

    Appendix B: Resident Character Sets Character code table Page 12 (PC857: Turkish): " & < > ⌂ Ç ü é â ä à å ç ê ë è ï î ı Ä Å É æ Æ ô ö ò û ù...
  • Page 167: Character Code Table Page 13 (Wpc1251: Cyrillic)

    Appendix B: Resident Character Sets Character code table Page 13 (WPC1251: Cyrillic): " & < > ⌂ Ђ Ѓ ‚ ѓ „ … † ‡ € ‰ Љ ‹ Њ Ќ Ћ Џ ђ ‘ ’ “ ” • – —...
  • Page 168: Character Code Table Page 14 (Wpc1255: Hebrew)

    Appendix B: Resident Character Sets Character code table Page 14 (WPC1255: Hebrew): " & < > ⌂ € ‚ ƒ „ … † ‡ ˆ ‰ ‹ ‘ ’ “ ” • – — ˜ ™ › ¡ ¢ £ ₪...
  • Page 169: Character Code Table Page 15 (Kz_1048: Kazakh)

    Appendix B: Resident Character Sets Character code table Page 15 (KZ_1048: Kazakh): " & < > ⌂ Ђ Ѓ ‚ ѓ „ … † ‡ € ‰ Љ ‹ Њ Қ Һ Џ ђ ‘ ’ “ ” • – —...
  • Page 170: Character Code Table Page 16 (Wpc1254: Turkish)

    Appendix B: Resident Character Sets Character code table Page 16 (WPC1254: Turkish): " & < > ⌂ € ‚ ƒ „ … † ‡ ˆ ‰ Š ‹ Œ ‘ ’ “ ” • – — ˜ ™ š › œ...
  • Page 171: Character Code Table Page 17 (Wpc1250: Central Europe)

    Appendix B: Resident Character Sets Character code table Page 17 (WPC1250: Central Europe): " & < > ⌂ € ‚ „ … † ‡ ‰ Š ‹ Ś Ť Ž Ź ‘ ’ “ ” • – — ™ š ›...
  • Page 172: Character Code Table Page 18 (Wpc28591: Latin 1)

    Appendix B: Resident Character Sets Character code table Page 18 (WPC28591: Latin 1): " & < > ⌂ ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ NBSP ° ± ² ³ ´ µ ¶ ·...
  • Page 173: Character Code Table Page 19 (Wpc28592: Latin 2)

    Appendix B: Resident Character Sets Character code table Page 19 (WPC28592: Latin 2): " & < > ⌂ Ą ˘ Ł ¤ Ľ Ś § ¨ Š Ş Ť Ź Ž Ż NBSP ° ą ˛ ł ´ ľ ś ˇ...
  • Page 174: Character Code Table Page 20 (Wpc28599: Turkish)

    Appendix B: Resident Character Sets Character code table Page 20 (WPC28599: Turkish): " & < > ⌂ ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ NBSP ° ± ² ³ ´ µ ¶ · ¸...
  • Page 175: Character Code Table Page 21 (Wpc28605: Latin 9)

    Appendix B: Resident Character Sets Character code table Page 21 (WPC28605: Latin 9): " & < > ⌂ ¡ ¢ £ € ¥ Š § š © ª « ¬ ® ¯ NBSP ° ± ² ³ Ž µ ¶ ·...
  • Page 176: Character Code Table Page 22 (Pc864: Arabic)

    Appendix B: Resident Character Sets Character code table Page 22 (PC864: Arabic): " & < > ⌂ ° · ∙ √ ▒ ─ │ ┼ ┤ ┬ ├ ┴ ┐ ┌ └ ┘ β ∞ φ ± ½ ¼ ≈ «...
  • Page 177: Character Code Table Page 23 (Pc720: Arabic)

    Appendix B: Resident Character Sets Character code table Page 23 (PC720: Arabic): " & < > ⌂ é â à ç ê ë è ï î _ّ _ْ ô ¤ ‫ـ‬ û ù ‫ء‬ ‫آ‬ ‫أ‬ ‫ؤ‬ £ ‫إ‬ ‫ئ‬ ‫ا‬...
  • Page 178: Character Code Table Page 24 (Wpc1256: Arabic)

    Appendix B: Resident Character Sets Character code table Page 24 (WPC1256: Arabic): " & < > ⌂ € ‫پ‬ ‚ ƒ „ … † ‡ ˆ ‰ ‫ٹ‬ ‹ Œ ‫چ‬ ‫ژ‬ ‫ڈ‬ ‫گ‬ ‘ ’ “ ” • – —...
  • Page 179: Character Code Table Page 25 (Wpc28596: Arabic)

    Appendix B: Resident Character Sets Character code table Page 25 (WPC28596: Arabic): " & < > ⌂ ¤ ، NBSP ‫؛‬ ‫؟‬ ‫ء‬ ‫آ‬ ‫أ‬ ‫ؤ‬ ‫إ‬ ‫ئ‬ ‫ا‬ ‫ب‬ ‫ة‬ ‫ت‬ ‫ث‬ ‫ج‬ ‫ح‬ ‫خ‬ ‫د‬ ‫ذ‬ ‫ر‬ ‫ز‬ ‫س‬...
  • Page 180: Character Code Table Page 26 (Katakana: Asia)

    Appendix B: Resident Character Sets Character code table Page 26 (KATAKANA: Asia): " & < > ⌂ ▁ ▄ █ ▌ ┼ ▂ ▃ ▅ ▆ ▇ ▏ ▎ ▍ ▋ ▊ ▉ ┴ ┬ ┤ ├ ─ │ ┌ ┐...
  • Page 181: Character Code Table Page 27 (Pc775: Baltic)

    Appendix B: Resident Character Sets Character code table Page 27 (PC775: Baltic): " & < > ⌂ Ć ü é ā ä ģ å ć ł ē Ŗ ŗ ī Ź Ä Å É æ Æ ō ö Ģ ¢ Ś...
  • Page 182: Character Code Table Page 28 (Wpc1257: Baltic)

    Appendix B: Resident Character Sets Character code table Page 28 (WPC1257: Baltic): " & < > ⌂ € ‚ „ … † ‡ ‰ ‹ ¨ ˇ ¸ ‘ ’ “ ” • – — ™ › ¯ ˛ ¢ £...
  • Page 183: Character Code Table Page 29 (Wp28594: Baltic)

    Appendix B: Resident Character Sets Character code table Page 29 (WP28594: Baltic): " & < > ⌂ Ą ĸ Ŗ ¤ Ĩ Ļ § ¨ Š Ē Ģ Ŧ Ž ¯ NBSP ° ą ˛ ŗ ´ ĩ ļ ˇ ¸...
  • Page 184 A799II Two-Color Thermal Receipt Printer: Programmer Guide A799-2PG0001 Rev. B 4/2016...

Table of Contents