Hide thumbs Also See for A795:
Table of Contents

Advertisement

Quick Links

Programming Supplement
A795-D100 PS Revision E 05/25/05
Includes TPG, Inc. LogoEZ
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.
A795 Two-Color Thermal Receipt Printer

User Guide

®
colorization information

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the A795 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for TPG A795

  • Page 1: User Guide

    A795 Two-Color Thermal Receipt Printer User Guide Programming Supplement A795-D100 PS Revision E 05/25/05 Includes TPG, Inc. LogoEZ ® colorization 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 240 Vac, 1.5/0.8 A, 50/60 Hz, output rated 24 Vdc, 2.3 A for 55 watt unit; 100-240 Vac, 2.0A, 50/60 Hz, output rate 24 Vdc, 3.125 A for 75 watt unit. Use of this product with a power supply other than the TPG, Inc. power supply will require you to test the power supply and TPG, Inc. printer for FCC and CE mark certification.
  • Page 3: Table Of Contents

    Select the hardware options sub-menu to set: ......21 Chapter 3: Programming the Printer ..........23 Overview of commands .............. 23 Comparison to A793 ..............23 Two-color commands (comparison A794 to A795) ..... 24 Character appearance ..............26 Width specifications ..............26 Standard .................. 26 Compressed ................
  • Page 4 A795 User Guide: Programming Supplement Revision E May 2005 Contents Chapter 4: Programming Commands ........29 Commands listed by function ..........29 Printer actions ................29 Print and paper feed ..............30 Vertical and horizontal positioning ..........30 Text characteristics ............... 31 Graphics ..................
  • Page 5: Character Sets

    A795 User Guide: Programming Supplement Revision E May 2005 Contents Vertical and horizontal positioning ..........48 Horizontal tab ................. 48 Set horizontal and vertical minimum motion units ....48 Set column ................48 Set absolute starting position ........... 49 Set vertical line spacing to 1/6 inch .......... 49 Set vertical line spacing ............
  • Page 6 A795 User Guide: Programming Supplement Revision E May 2005 Contents Graphics ..................65 Download BMP logo .............. 65 Select bit image mode ............66 Print advanced raster graphics ..........67 Select single-density graphics ..........67 Select double-density graphics ..........68 ®...
  • Page 7 A795 User Guide: Programming Supplement Revision E May 2005 Contents Unsolicited status mode ............95 Select or cancel unsolicited status mode (USM) ....95 Recognizing data from the printer ......... 97 Bar codes .................. 98 Select printing position of HRI characters ......98 Select pitch of HRI characters ..........
  • Page 8 A795 User Guide: Programming Supplement Revision E May 2005 Contents Appendix A: Commands listed by hexadecimal code ......119 By command code ..............119 Appendix B: Resident Character Sets ............. 1 2 5 Character sets ..............1 2 5 Code page 437 (US) ..............125 Code page 737 (Greek) ............
  • Page 9: Chapter 1: About This Supplement

    How to use this supplement This is a supplemental guide providing programming information on TPG, Inc.’s A795 printer. It is written for tech- savvy users who are interested in customizing or adjusting printer functionality and is meant to be used in ®...
  • Page 10 A795 User Guide: Programming Supplement Revision E May 2005 Chapter 1: About this Supplement This page intentionally left blank.
  • Page 11: Chapter 2: Diagnostics And Configuration

    Chapter 2: Diagnostics and Configuration Chapter 2: Diagnostics and Configuration The A795 printer performs a number of diagnostics that provide useful information about the operating status of the printer. The following diagnostic tests are available. See pages 11 and 12 for more information.
  • Page 12: Runtime Diagnostics

    A795 User Guide: Programming Supplement Revision E May 2005 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: Main Menu

    NONE Flow Control DTR/DSR native USB solution driver is used, this location will Reception Errors Ignore show either: “USB Driver Type: TPG, Inc.” or “USB Alternate DTR/DSR Disabled Driver Type: Printer Class”. USB Driver Type RS232 Emulation Resident Code Pages...
  • Page 14: Indicators

    A795 User Guide: Programming Supplement Revision E May 2005 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.
  • Page 15: Printer Configuration

    A795 User Guide: Programming Supplement Revision E May 2005 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

    OFF position DIP Switches Connector Cover Open 1 Open the connector cover. *** A795 - Diagnostics Form *** ********* ********** MAIN MENU ******************************* 2 Set DIP Switch 1 to ON position (down). DIP Switch Select a sub-menu : 2 should be in the OFF position (up).
  • Page 17: Communication Interface

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 2: Diagnostics and Configuration Communication interface To change the communication interface settings, enter the configuration menu, select “Set Communication Interface” from the main menu and answer “Yes” to “SET INTERFACE TYPE?”...
  • Page 18: Diagnostic Modes

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 2: Diagnostics and Configuration Diagnostic modes • Receipt test: the receipt printer prints two code To change the diagnostic modes enter the configuration pages to verify proper printing of the receipt.
  • Page 19: Enable Or Disable Receipt Test Mode

    A795 User Guide: Programming Supplement Revision E May 2005 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 “Diagnostic 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

    (1D 49 n) when the printer is in A794 as a print command. emulation mode. The printer can be configured to send back the ID of the A795, A794, A793 or Application • Default font Compatible Escape Command systems.
  • Page 21: Select The Hardware Options Sub-Menu To Set

    Factory setting is must match the indicated energy rating on the 100%. mechanism. (See A795 Service manual for CAUTION: Choose a print density setting no higher replacing the thermal mechanism.) than necessary to achieve acceptable print density.
  • Page 22 A795 User Guide: Programming Supplement Revision E May 2005 Chapter 2: Diagnostics and Configuration This page intentionally left blank.
  • Page 23: Chapter 3: Programming The Printer

    Comparison to A793 The following table details the list of commands whose behavior differs between the A793, A794, and A795 because of the physical differences of a 6 dots/mm head (A793) versus an 8 dots/mm head (A794 and A795). Command...
  • Page 24: Two-Color Commands (Comparison A794 To A795)

    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 A795 has a fundamental step of 1/203 inch, the actual line spacing will not exactly match the requested spacing.
  • Page 25 Set attribute mapping ® Note: The new TPG, Inc. LogoEZ colorization utility provides you a fast and easy way to get basic two-color and logos onto your receipt without having to enter commands. Check out the TPG, Inc. Website at: www.TPGprinters.com.
  • Page 26: Character Appearance

    80mm wide receipt. Minimum print line height is 24 dots for text or graphics. Standard print line spacing is 27 dots (i.e., 3 extra row dots). The A795 adds a 27 dot high font, so standard print spacing is 30 dots.
  • Page 27: Print Zones For 82.5Mm Paper

    A795 User Guide: Programming Supplement Revision E May 2005 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, • Top margin to manual tear-off: centered on 82.5mm...
  • Page 28: Emulation Modes

    • Right-side up and upside-down • Single-high (normal) and double-high Emulation modes The TPG, Inc. A795 printer may be operated in a number of different emulation modes. However, printing characteristics and defaults may differ, depending on the desired mode. For ®...
  • Page 29: Chapter 4: Programming Commands

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Chapter 4: Programming Commands Commands listed by function ® Commands in bold are ColorPOS commands. Printer actions Code (hexadecimal) Command Page Clear printer Perform full knife cut (or code 1B 69)
  • Page 30: Print And Paper Feed

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Print and paper feed Code (hexadecimal) Command Page Print and feed paper one line Print and carriage return 15 n Feed n dot rows 16 n Add n extra dot rows...
  • Page 31: Text Characteristics

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Text characteristics Code (hexadecimal) Command Page Select double-wide characters Select single-wide characters 1B 12 Select 90 degree counter-clockwise rotated print 1B 16 n Select pitch (column width)
  • Page 32: Graphics

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Graphics Code (hexadecimal) C o m m a n d P a g e 1B (+*.BMP file) Download BMP logo 1B 2A m n1 n2 d1…dn Select bit image mode 1B 2E m n rL rH d1 …...
  • Page 33: Status

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Graphics continued Code (hexadecimal) C o m m a n d P a g e ® 1F 03 17 a m s LogoEZ attribute mapping 1F 04 n...
  • Page 34: Bar Codes

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Bar codes Code (hexadecimal) Command Page 1D 48 n Select printing position for HRI characters 1D 66 n Select pitch for HRI characters 1D 68 n Select bar code height 1D 6B m d1…dk 00...
  • Page 35: Page Mode

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Page mode Code (hexadecimal) Command Page Print and return to standard mode Cancel print data in page mode 1B 0C Print data in page mode 1B 4C...
  • Page 36: User Data Storage

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands User data storage Code (hexadecimal) Command Page 1B 27 m a0 a1 a2 d1…dm Write to user data storage 1B 34 m a0 a1 a2 Read from user data storage...
  • Page 37: Command Conventions

    A795 User Guide: Programming Supplement Revision E May 2005 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.
  • Page 38: Command Descriptions

    Clears the print line buffer without printing and sets the printer to the following condition: This command is recognized in A793 emulation and A795 native mode, ignored in LEGACY emulation. • Double-wide command (0x12) is canceled • Line spacing, pitch, and user-defined character sets are maintained at current selections (RAM is not affected) •...
  • Page 39: Perform Partial Knife Cut

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Perform partial knife cut ASCII ESC m Hexadecimal 1A 1B 6D Decimal 27 109 Formulas Partially cuts the receipt. The default setting leaves 5mm (0.20 inch) of paper on the left edge. (See setting The cut edge is 144 dot rows or 18 mm (0.71 inch) above...
  • Page 40: Select Paper Sensors To Output Paper-End Signals

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Select paper sensors to output paper-end signals ASCII ESC c 3 n Hexadecimal 1B 63 33 n Decimal 27 99 51 n Value of n: Range of n: 1–255...
  • Page 41: Enable Or Disable Panel Button

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Enable or disable panel button ASCII ESC c 5 n Hexadecimal 1B 63 35 n Decimal 27 99 53 n Value of n: 0 = Enable Exceptions...
  • Page 42: Set Current Color

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Set current color ASCII ESC r m Hexadecimal 1B 72 m Decimal 27 114 m Default of m: 0 (monochrome) Description This command will set the current color to the color m...
  • Page 43: Set Paper Type (Colorpos ® )

    • If emulation is switched from any emulation to A795 When issuing this command a value of n = OxFF can native, the font and LPI will remain unchanged always be used;...
  • Page 44: Set Interpretation Of "Set Current Color" Command

    It provides a method to resolve any differences in the definition of command 1B72 between the A795 native mode and earlier implementations in other printers. In A795 native mode, the standard “Set current color” command should be used. Print test form ASCII...
  • Page 45: Print And Paper Feed

    A795 User Guide: Programming Supplement Revision E May 2005 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...
  • Page 46: Add N Extra Dot Rows

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Add n extra dot rows ASCII SYN n Hexadecimal 16 n Decimal 22 n Value of n: Number of extra dot rows Extra rows Lines per inch...
  • Page 47: Print And Feed Paper

    Hexadecimal 1B 4A n Decimal 27 74 n Value of n: n/203 inch in A795 native mode, A794 If the set horizontal and vertical minimum motion units emulation and Application Compatible command (1D 50) is used to change the horizontal and...
  • Page 48: Vertical And Horizontal Positioning

    A795 User Guide: Programming Supplement Revision E May 2005 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 49: Set Absolute Starting Position

    Formulas print position to the left. The example shows how to calculate 280 dots as the In order to improve the speed of printing, the A795 absolute starting position. moves the data into a buffer for the printhead when it...
  • Page 50: Set Vertical Line Spacing

    Hexadecimal 1B 33 n Decimal 27 51 n Value of n: n/406 inch in A795 native mode, If the set horizontal and vertical minimum motion units A794 emulation command (1D 50) is used to change the horizontal and n/360 inch in A793 emulation mode...
  • Page 51: Set Relative Print Position

    2 x 10 = 20 dots (two columns to be moved left of the current position) In order to improve the speed of printing, the A795 65,536–20 = 65516 moves the data into a buffer for the printhead when it...
  • Page 52: Select Justification

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Select justification ASCII ESC a n Hexadecimal 1B 61 n Decimal 27 97 n Value of n: 0, 48 = Left aligned Related information 1, 49 = Center aligned...
  • Page 53: Set Printing Area Width

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Set printing area width ASCII GS W nL nH Hexadecimal 1D 57 nL nH Decimal 29 87 nL nH Range of nL: 0–255 Printable Area 576 Dots Range of nH: 0–255...
  • Page 54: Text Characteristics Commands

    A795 User Guide: Programming Supplement Revision E May 2005 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.
  • Page 55: Select Pitch (Column Width)

    A795 User Guide: Programming Supplement Revision E May 2005 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 Related information 1 = Compressed pitch Look in Chapter 3: Programming the Printer, “Character...
  • Page 56: Select Print Mode

    A795 User Guide: Programming Supplement Revision E May 2005 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, Exceptions double high, or double wide.) Refer to the table in other column for exceptions.
  • Page 57: Define User-Defined Character Set

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Define user-defined character set ASCII ESC & s c1 c2 n1 d1 ... nn dn] Hexadecimal 1B 26 s c1 c2 n1 d1 ... nn dn] Decimal 27 38 s c1 c2 n1 d1 ...
  • Page 58: Copy Character Set From Rom To Ram

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Related information In A793 emulation, this command is unrecognized and the parameter n is put into the print buffer. Copy character set from ROM to RAM ASCII...
  • Page 59: Select Or Cancel Double-Strike

    Only the lowest bit of n is valid. (When 0 and 1 are the least Related information significant bit, LSB) This command is recognized in A795 native mode and Default: 0 (Off) A794 emulation. Turns italic print mode on or off. The printer is reset to...
  • Page 60: Select International Character Code

    8 = Code Page 1252 8 = Japan 9 = Code Page 862 9 = Norway 10 = Code Page 737, Greek (only in A795 native mode) Default: 0 (Code Page 437) Related information Selects the character set to be used. Look in “Appendix The LEGACY emulation selection applies only to the B: Resident Character Sets”...
  • Page 61: Select International Character Set

    8 = Code Page 1252 8 = Japan 9 = Code Page 862 9 = Norway 10 = Code Page 737, Greek (in A795 native mode and A794 emulation) Default: 0 (Code Page 437) Related information Selects the character set to be used. Look in “Appendix The LEGACY emulation selection applies only to the B: Resident Character Sets”...
  • Page 62: Select Character Size

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Select character size ASCII GS ! n Hexadecimal 1D 21 n Decimal 29 33 n This command is effective for all characters (except for Value of n: 1–8 = vertical number of times active...
  • Page 63: Select Or Cancel White/Black Reverse Print Mode

    A795 User Guide: Programming Supplement Revision E May 2005 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 White/black reverse print mode has a higher priority 1 = On than underline mode.
  • Page 64: Text Strike-Through Mode (Colorpos ® )

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Text strike-through mode (ColorPOS ® ASCII GS 0x85 m n Hexadecimal 1D 8D n m Decimal 29 141 n m Value of m: 0 = retain same color as the character...
  • Page 65: Graphics

    (only monochrome images are the print buffer. accepted) Related information Microsoft BMP bitmap file format. This command is recognized in A795 native mode and in A794 emulation. In A793 and LEGACY emulations, the BMP file bytes are put into the print buffer.
  • Page 66: Select Bit Image Mode

    A795 User Guide: Programming Supplement Revision E May 2005 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...
  • Page 67: Print Advanced Raster Graphics

    A795 User Guide: Programming Supplement Revision E May 2005 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...
  • Page 68: Select Double-Density Graphics

    Related information This command is recognized in A795 native mode and A794 emulation. In A793 and LEGACY emulations, the parameters are put...
  • Page 69: Define Downloaded Bit Image (Colorpos ® )

    A795 User Guide: Programming Supplement Revision E May 2005 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]...
  • Page 70: Print Downloaded Bit Image (Colorpos ® )

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Print downloaded bit image ASCII GS / m Hexadecimal 1D 2F m Decimal 29 47 m Value and range of m: The indexed downloaded bit image from RAM or flash...
  • Page 71: Print Raster Color Graphics (Colorpos ® )

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Print raster color graphics (ColorPOS ® ASCII GS 0x83 n1…..n144 (576 dots 80mm paper) / n160 (640 dots, 82.5mm paper) Hexadecimal 1D 83 n1…..n144 (576 dots 80mm paper) / n160 (640 dots, 82.5mm paper) Decimal 29 13 n1…..n144 (576 dots 80mm paper) / n160 (640 dots, 82.5mm paper)
  • Page 72: Apply Shading To Logo (Colorpos ® )

    A795 User Guide: Programming Supplement Revision E May 2005 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...
  • Page 73: Monochrome Shade Mode (Colorpos ® )

    A795 User Guide: Programming Supplement Revision E May 2005 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 When the current color mode is set to black, increasing objects such as text and monochrome logos.
  • Page 74: Form And Merge Real Time Surround Graphic (Colorpos ® )

    A795 User Guide: Programming Supplement Revision E May 2005 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...
  • Page 75: Background Logo Print Mode (Colorpos ® )

    A795 User Guide: Programming Supplement Revision E May 2005 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 This command sets the graphics buffer state to “merge...
  • Page 76: Logo Print With Knife Cut

    The command is available only in A795 native mode. receipt before initiating the cut at the end of the current receipt.
  • Page 77: Set Logoez ® Colorization

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Set LogoEZ ® colorization ASCII US ETX SYN f s p/t t Hexadecimal 1F 03 16 f s p/t t Decimal 31 03 22 f s p/t t ®...
  • Page 78 A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands f = 3 link margin message printing f = 2 link watermark printing Example: Example: Activate margin message printing using logo #F2 Activate watermark printing using logo (1F 03 16 03 s r t) with “s”...
  • Page 79 Prints a logo after the skip distance of “s” before a ® This command is utilized in the TPG, Inc. LogoEZ logo and “p” past a logo and performs a knife cut utility. The utility can be used to pre-configure new (1F 03 16 04 s p).
  • Page 80: Set Logoez ® Attribute Mapping

    A795 User Guide: Programming Supplement Revision E May 2005 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:...
  • Page 81: Convert 6-Dots/Mm Bitmap To 8-Dots/Mm Bitmap

    The operational theory of this command is that if (input character attributes) AND (original) = (original); then ® This command is utilized in the TPG, Inc. LogoEZ (output character attributes) = ([original] XOR [input utility. The utility can be used to pre-configure new character attributes]) OR (substituted).
  • Page 82: Status

    Status Status command introduction The A795 has three methods of providing status to the application. These methods are through batch status commands, real time status commands and unsolicited status mode. An application may use one or more of these methods to understand the current status of the printer.
  • Page 83: Transmit Peripheral Device Status (Rs-232C Printers Only)

    1 = Drawer 1 Closed 1 = Drawer 2 Closed drawer, the A795 has a single connector that shares data reporting from either cash drawer. When either cash 0 = Drawer 1 Open 0 = Drawer 2 Open drawer is open, an open status is reported by the printer.
  • Page 84: Transmit Paper Sensor Status

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Transmit paper sensor status ASCII ESC v Hexadecimal 1B 76 Decimal 27 118 Sends status data to the host computer. The printer sends one byte to the host computer when it is not Values: busy or in a fault condition.
  • Page 85: Transmit Printer Id

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Transmit printer ID ASCII GS I n Hexadecimal 1D 49 n Decimal 29 73 n n = 4 or 52: Logo Definition Value of n: 1, 49 = Printer model ID...
  • Page 86: Transmit Printer Id, Remote Diagnostics Extension

    A795 User Guide: Programming Supplement Revision E May 2005 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)
  • Page 87 A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Value of n (continued) ASCII Remote diagnostic item Function é Receipt lines tally Clear receipt lines tally to 0 â Receipt lines tally Return receipt lines tally, preceded by n to identify Printer returns 10 bytes in above example: â00010000<CR>...
  • Page 88: Transmit Status

    Unlike the A793, that had a dedicated connector and resultant dedicated status reporting for each cash When DTR/DSR RS-232C communications handshaking drawer, the A795 has a single connector that shares data control is selected, the printer transmits the one byte reporting from either cash drawer. When either cash response only when the host signal DSR indicates it is drawer is open, an open status is reported by the printer.
  • Page 89 A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Printer status (n = 1 or n = 49) Flash memory user sector status (n = 4 or n = 52) Bit Off/On Hex Decimal Status for transmit...
  • Page 90: Send Printer Software Version

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Send printer software version ASCII AX V Hexadecimal 1F 56 Decimal 31 86 The printer returns 8 bytes containing the boot and The second 4 bytes are an ASCII string for the flash flash software version.
  • Page 91: Rules For Using Real Time Commands

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Rules for using real time commands Three situations must be understood when using real Third, care must be taken not to insert a real time time commands.
  • Page 92: Real Time Status Transmission

    Unlike the A793, that had a dedicated connector and DLE (0x10). resultant dedicated status reporting for each cash drawer, the A795 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 93: Real Time Request To Printer

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands 3 = Transmit error status 4 = Transmit receipt paper status Bit Status Hex Decimal Function Bit Status Hex Decimal Function Fixed to off Fixed to off.
  • Page 94: Real Time Commands Disable

    Unlike the A793, that had a dedicated connector and Value of byte: resultant dedicated status reporting for each cash Bit Status Hex Decimal Function drawer, the A795 has a single connector that shares data Paper adequate. reporting from either cash drawer. When either cash Paper low drawer is open, an open status is reported by the printer.
  • Page 95: Unsolicited Status Mode

    A795 User Guide: Programming Supplement Revision E May 2005 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;...
  • Page 96 A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands First Byte (Printer Information) Third byte (paper sensor information) Bit Off/On Hex Decimal Status for USM Bit Off/On Hex Decimal Status for USM Not used. Fixed to off.
  • Page 97: Recognizing Data From The Printer

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Recognizing data from the printer An application sending various real time and non-real Responses to transmit peripheral device status (1B 75) time commands to which the printer responds can...
  • Page 98: Bar Codes

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Bar codes These commands format and print bar codes and are described in order of their hexadecimal codes. These 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 the 576 printable dots on 80mm paper.
  • Page 99: Print Bar Code

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Print bar code First Variation Second Variation ASCII GS k m d1…dk NUL GS k m n d1…dn Hexadecimal 1D 6B m d1…dk 00 1D 6B m n d1…dn Decimal 29 107 m d1 dk 0 29 107 m n d1…dn...
  • Page 100 0–105 d1 = 103-105 (must be a start code) Variable d2 = 0–102 (data bytes) (Stop code is provided by the printer) PDF 417 0–255 Variable length Exceptions Code 93 and PDF 417 are only available in A795 native mode.
  • Page 101: Select Pdf 417 Parameters

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Select PDF 417 parameters ASCII GS p a b c d e f Hexadecimal 1D 70 a b c d e f Decimal 29 112 a b c d e f...
  • Page 102: Select Bar Code Width

    A795 User Guide: Programming Supplement Revision E May 2005 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...
  • Page 103: Page Mode

    Chapter 4: Programming commands Page mode Page mode is one of two modes that the A795 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 104: Select Page Mode

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Select page mode ASCII ESC L Hexadecimal 1B 4C Decimal 27 76 Switches from standard mode to page mode. After The table below shows the difference in memory...
  • Page 105: Select Print Direction In Page Mode

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Select print direction in page mode ASCII ESC T n Hexadecimal 1B 54 n Decimal 27 84 n Value of n: Start position Default: 0 = Upper left corner proceeding...
  • Page 106: Set Print Area In Page Mode

    A795 User Guide: Programming Supplement Revision E May 2005 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 Range of n: 0-255 •...
  • Page 107: Set Absolute Vertical Print Position In Page Mode

    A795 User Guide: Programming Supplement Revision E May 2005 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 The set horizontal and vertical minimum motion units...
  • Page 108: Macros

    A795 User Guide: Programming Supplement Revision E May 2005 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.
  • Page 109: User Data Storage

    A795 User Guide: Programming Supplement Revision E May 2005 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 ...
  • Page 110: Select Memory Type (Sram/Flash)

    = 50 (ASCII n = 2) HEX 32 Related information Loads user-defined characters to RAM only. This is the This command is recognized in A795 native mode. In default condition for user-defined character storage. A793 and LEGACY emulations, parameter bytes go into Any user-defined characters defined following this the print buffer.
  • Page 111: Erase User Flash Sector

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Erase user flash sector ASCII GS @ n Hexadecimal 1D 40 n Decimal 29 64 n Value of n: 49 – 50 Related information n = 49 (ASCII n = 1) HEX 31 See command “Flash memory user sectors allocation”...
  • Page 112: User Storage Status (Colorpos ® )

    Revision E May 2005 A795 User Guide: Programming Supplement Chapter 4: Programming commands User storage status (ColorPOS ® ASCII GS 0x97 m n Hexadecimal 1D 97 m n Decimal 29 151 m n Downloaded character sets are identified by integer...
  • Page 113: Flash Download

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Flash download These commands are used to load firmware 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.
  • Page 114: Return Boot Sector Firmware Part Number

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Return boot sector firmware part number ASCII GS NULL Hexadecimal 1D 00 Decimal 29 0 Exceptions Returns ACK (Hex 06) + 12 bytes ASCII string describing the flash memory boot sector firmware part Available only in download mode.
  • Page 115: Return Microprocessor Crc

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Return microprocessor CRC ASCII GS BEL Hexadecimal 1D 07 Decimal 29 7 Returns the CRC calculated over the boot sector code Formulas space. ACK <low byte> <high byte>...
  • Page 116: Download To Active Flash Sector

    New paper definitions should monochrome descriptions, with m n = 0 0 description be obtained from trusted sources such as the TPG, Inc. that is always populated, and factory preload of two Web site in order to optimize print quality while color descriptions.
  • Page 117: Return Paper Type Description (Colorpos ® )

    A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands Return paper type description (ColorPOS ® ASCII GS Ox8F m Hexadecimal 1D 8F m Decimal 29 143 m # Bytes Offset Definition Value and range of m: m is the paper type index, (0<...
  • Page 118 A795 User Guide: Programming Supplement Revision E May 2005 Chapter 4: Programming commands This page intentionally left blank.
  • Page 119: Commands Listed By Hexadecimal Code

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix A: Commands by hexadecimal code Appendix A: Commands listed by hexadecimal code By command code ® Note: Bold commands are new two-color, (ColorPOS ) commands. Code (hexadecimal) Command Page Horizontal tab...
  • Page 120 A795 User Guide: Programming Supplement Revision E May 2005 Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1B 20 n Set right-side character spacing 1B 21 n Select print mode 1B 24 nL nH Set absolute starting position...
  • Page 121 A795 User Guide: Programming Supplement Revision E May 2005 Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1B 54 n Select print direction in page mode 1B 56 n Select or cancel 90 degree clockwise rotated print 1B 57 n1, n2...n8 Set print area in page mode 1B 59 n1 n2 d1...dn...
  • Page 122 A795 User Guide: Programming Supplement Revision E May 2005 Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1D 03 n Real time request to printer (GS sequence) 1D 04 n Real time status transmission (GS sequence) 1D 05...
  • Page 123 A795 User Guide: Programming Supplement Revision E May 2005 Appendix A: Commands by hexadecimal code Code (hexadecimal) Command Page 1D 56 m n Select cut mode and cut paper (or code 1D 56 m) 1D 57 nL nH Set printing area width...
  • Page 124 A795 User Guide: Programming Supplement Revision E May 2005 Appendix A: Commands by hexadecimal code Code (hexadecimal) Command 1D 91 n Save graphics buffer as logo 1D 92 n Background logo print mode 1D 97 m n User storage status...
  • Page 125: Resident Character Sets

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix B: Resident Character Sets Appendix B: Resident Character Sets Character sets Code page 437 (US)
  • Page 126: Code Page 737 (Greek)

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix B: Resident Character Sets Code page 737 (Greek)
  • Page 127: Code Page 850 (Multilingual)

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix B: Resident Character Sets Code page 850 (Multilingual)
  • Page 128: Code Page 852 (Slavic)

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix B: Resident Character Sets Code page 852 (Slavic)
  • Page 129: Code Page 858 (With Eurosymbol)

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix B: Resident Character Sets Code page 858 (with Eurosymbol)
  • Page 130: Code Page 860 (Portuguese)

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix B: Resident Character Sets Code page 860 (Portuguese)
  • Page 131: Code Page 862 (Hebrew)

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix B: Resident Character Sets Code page 862 (Hebrew)
  • Page 132: Code Page 863 (French Canadian)

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix B: Resident Character Sets Code page 863 (French Canadian)
  • Page 133: Code Page 865 (Nordic)

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix B: Resident Character Sets Code page 865 (Nordic)
  • Page 134: Code Page 866 (Cyrillic)

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix B: Resident Character Sets Code page 866 (Cyrillic)
  • Page 135: Code Page 1252 (Windows Latin 1)

    A795 User Guide: Programming Supplement Revision E May 2005 Appendix B: Resident Character Sets Code page 1252 (Windows Latin 1)
  • Page 136 189-9200302 Rev.E A795-D100 PS 05/25/05...

Table of Contents