Axiohm A795 User Manual

Axiohm A795 User Manual

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

Advertisement

A795 Two-Color Thermal Receipt Printer

User Guide

Programming Supplement
TM
A795-D100 PS

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 Axiohm A795

  • Page 1: User Guide

    A795 Two-Color Thermal Receipt Printer User Guide Programming Supplement A795-D100 PS...
  • Page 2 100-240 Vac, 1.5/0.8 A, 50/60 Hz, output rated 24 Vdc, 2.3 A. Use of this product with a power supply other than the Axiohm power supply will require you to test the power supply and Axiohm printer for FCC and CE mark certification.
  • Page 3: Table Of Contents

    Printhead resistance ....................20 Chapter 3: Programming the Printer .............. 21 Overview of commands ..................21 Comparison to A793 .................... 21 Two-color commands (comparision A794 to A795) ......22 Character appearance ..................23 Width specifications ....................23 Standard ....................... 23 Compressed ......................
  • Page 4: Contents

    A795 User Guide: Programming Supplement Contents Chapter 4: Programming Commands ............27 Commands listed by function ................. 27 Printer actions ......................27 Print and paper feed ....................28 Vertical and horizontal positioning ..............28 Text characteristics ....................29 Graphics ........................30 Status ...........................
  • Page 5: Contents

    A795 User Guide: Programming Supplement Contents Vertical and horizontal positioning ..............46 Horizontal tab ..................... 46 Set horizontal and vertical minimum motion units ......46 Set column ......................46 Set absolute starting position ..............47 Set vertical line spacing to 1/6 inch ............47 Set vertical line spacing ..................
  • Page 6: Contents

    A795 User Guide: Programming Supplement Contents Graphics ........................63 Download BMP logo ..................63 Select bit image mode ..................64 Print advanced raster graphics ..............65 Select single-density graphics ..............65 Select double-density graphics ..............66 Select the current logo (ColorPOS™) ............66 Define downloaded bit image (ColorPOS™) ...........
  • Page 7: Contents

    A795 User Guide: Programming Supplement Contents Bar codes ........................90 Select printing position of HRI characters ..........90 Select pitch of HRI characters ............... 90 Select bar code height ..................90 Print bar code ..................... 91 Select PDF 417 parameters ................93 Select bar code width ..................
  • Page 8 A795 User Guide: Programming Supplement Contents Appendix A: Commands listed by hexadecimal code ............. 111 By command code ....................111 Appendix B: Resident Character Sets ..................117 Character sets ....................... 117 Code page 437 (US) ....................117 Code page 737 (Greek) ..................118 Code page 850 (Multilingual) ................
  • Page 9: Chapter 1: About This Supplement

    Axiohm representative for further assistance. Where to find the basics If you are looking for information on set-up or basic operation, refer to the A795 ColorPOS™ User Guide. This supplemental guide assumes that you have the A795 ColorPOS™ User Guide handy for reference or are already familiar with the printer.
  • Page 10 A795 User Guide: Programming Supplement Chapter 1: About this Supplement...
  • 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 which provide useful information about the operating status of the printer. The following diagnostic tests are available. See the sections that follow for more information.
  • Page 12: Runtime Diagnostics

    A795 User Guide: Programming Supplement 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 A795 User Guide: Programming Supplement Chapter 2: Diagnostics and Configuration Print test and configuration menu samples will vary per model or printer configuration. (Shown approximately 60% of size.) For more information about See this section Accessing the remote diagnostic tallies “Command descriptions”...
  • Page 14: Indicators

    Error conditions and “ Troubleshooting the receive this information. correcting them printer” in Chapter 4: Using thr Printer, in the A795 User For more information about See this section Guide Communication of printer “Command descriptions” status to host application...
  • Page 15: Printer Configuration

    A795 User Guide: Programming Supplement Chapter 2: Diagnostics and Configuration Printer configuration Printers are shipped with all the functions and parameters pre-set 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

    1 to the OFF Postion (up). 3 Make sure receipt paper is loaded in the printer before b. Open the receipt cover. proceeding. (For loading instrrctions, see the A795 User Guide.) Press and hold the paper feed button while closing the receipt cover.
  • Page 17: Communication Interface

    A795 User Guide: Programming Supplement 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?” printed on the receipt.
  • Page 18: Printer Emulations

    A795 User Guide: Programming Supplement Chapter 2: Diagnostics and Configuration Printer emulations To change the printer emulations settings, enter the configuration menu, select “Emulation/ Software Options” from the main menu and answer “Yes” to “SET THE PRINTER EMULATIONS?” printed on the receipt. This will take you to the instructions for setting the printer emulation.
  • Page 19: Printer Settings And Functions

    3 clicks may void the printer warranty. Consult your • 6.00 lines per inch: 4 clicks Axiohm technical support specialist if you have questions. • Carriage return usage This function allows the printer to ignore or use the • Power supply wattage...
  • Page 20: Enable Or Disable Data Scope Mode

    A795 User Guide: Programming Supplement Chapter 2: Diagnostics and Configuration Enable or disable data scope mode The data scope mode test prints a hexadecimal dump of all data sent to the printer: “1” prints as hexadecimal 31, “A” as hexadecimal 41 and so on. This helps troubleshoot communication problems and runs during a normal application (after being enabled through printer configuration).
  • Page 21: 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 22: Two-Color Commands (Comparision 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 23: Character Appearance

    A795 User Guide: Programming Supplement Chapter 3: Programming the Printer Axiohm ColorPOS™ 2-color and color interpreted commands continued 1D 87 m GS 0x87 m Color shade mode 1D 89 n m GS 0x89 n m Logo print with color plane swap...
  • Page 24: Print Zones

    80-mm 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 25: Print Zones For 82.5-Mm Paper

    A795 User Guide: Programming Supplement Chapter 3: Programming the Printer Print zones for 82.5-mm paper Specifications of print zone for 82.5 mm paper: • 640 dots (addressable) @ 8 dots/mm, • Top margin to manual tearoff: centered on 82.5 mm 17.8 mm (0.70 inches)
  • Page 26: Emulation Modes

    Chapter 3: Programming the Printer Emulation modes The Axiohm 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 instance, two- color paper and ColorPOS™ commands and features are available only in A795 native mode.
  • Page 27: Chapter 4: Programming Commands

    A795 User Guide: Programming Supplement 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) Perform partial knife cut (or code 1B 6D)
  • Page 28: Print And Paper Feed

    A795 User Guide: Programming Supplement Chapter 4: Programming commands Print and paper feed Code (hexadecimal) Command Page Print and feed paper one line Print and carriage return 14 n Feed n print lines 15 n Feed n dot rows 16 n...
  • Page 29: Text Characteristics

    A795 User Guide: Programming Supplement 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) 1B 20 n Set right-side character spacing...
  • Page 30: Graphics

    A795 User Guide: Programming Supplement Chapter 4: Programming commands Graphics Code (hexadecimal) Command Page 1B (+*.BMP file) Download BMP logo 1B 2A m n1 n2 d1…dn Select bit image mode 1B 2E m n rL rH d1 … dn Print advanced raster graphics 1B 4B n1 n2 d1…dn...
  • Page 31: Status

    A795 User Guide: Programming Supplement Chapter 4: Programming commands Status Batch mode Code (hexadecimal) Command Page 1B 75 0 Transmit peripheral device status (RS-232C printers only) 1B 75 n Request alternate status (A793 emulation only) 1B 76 Transmit paper sensor status...
  • Page 32: Bar Codes

    A795 User Guide: Programming Supplement 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 Print bar code 1D 6B m n d1…dn...
  • Page 33: Page Mode

    A795 User Guide: Programming Supplement 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 Select page mode 1B 53...
  • Page 34: User Data Storage

    A795 User Guide: Programming Supplement 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 1B 6A k...
  • Page 35: Command Conventions

    A795 User Guide: Programming Supplement 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.
  • Page 36: Command Descriptions

    27 105 Exceptions Cuts the receipt. The full cut is replaced by a partial cut in the Axiohm There are two codes (Hex 19 or 1B 69) for this command A793 emulation. ASCII EM, (0x19) is ignored in TM-T88 and both perform the same function.
  • Page 37: Perform Partial Knife Cut

    27 7 Related information Generates an audible tone. Performed by the printer to signal certain conditions. This command is recognized in A793 emulation and A795 native mode, ignored in TM-T88 emulation. Select peripheral device (for multi-drop) ASCII ESC = n Hexadecimal...
  • Page 38: Select Paper Sensors To Output Paper End Signals

    A795 User Guide: Programming Supplement 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 Vaue of n: Range of n: 1-255 Default of n:...
  • Page 39: Enable Or Disable Panel Button

    A795 User Guide: Programming Supplement 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 1 = Disable Functions that require the paper feed button (except for the...
  • Page 40: Set Current Color

    A795 User Guide: Programming Supplement 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 for...
  • Page 41: Set Paper Type (Colorpos™)

    • If emulation is switched from any emulation to A795 choosing “ latest standard red/black”. native, the font and LPI will remain unchanged because...
  • Page 42: Print Test Form

    A795 User Guide: Programming Supplement Chapter 4: Programming commands Print test form ASCII AX t Hexadecimal 1F 74 Decimal 31 116 Prints the current printer configuration settings on the Disabled in page mode. receipt.
  • Page 43: Print And Paper Feed

    Some applications expect the more information. command to be ignored while others use it as print This command is recognized in A793 emulation and A795 command. native mode, ignored in TM-T88 emulation. Carriage return/line feed pair prints and feeds only one line.
  • Page 44: Add N Extra Dot Rows

    Print ASCII Hexadecimal Decimal Related information Prints one line from the buffer and feeds paper one line. Executes LF on receipt. This command is recognized in A793 emulation and A795 native mode, ignored in TM-T88 emulation.
  • Page 45: Print And Feed Paper

    1B 4A n Decimal 27 74 n Value of n: n/203 inch in A795 native mode and If the set horizontal and vertical minimum motion units TM-T88 emulation mode command (1D 50) is used to change the horizontal and n/360 inch in A793 emulation mode...
  • Page 46: Vertical And Horizontal Positioning

    A795 User Guide: Programming Supplement 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 80 mm paper. If the printer supports 82.5 mm paper, the dot spacing is the same but there are 640 printable dots rather than 576 printable dots on the 80 mm paper.
  • Page 47: Set Absolute Starting Position

    Formulas the left. The example shows how to calculate 280 dots as the In order to improve the speed of printing, the A795 moves absolute starting position. the data into a buffer for the printhead when it receives it. 28 x 10 = 280 dots (beginning of column 29) When the “Set relative print position”...
  • Page 48: Set Vertical Line Spacing

    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 n/360 inch in A793 emulation mode command (1D 50) is used to change the horizontal and...
  • Page 49: 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 moves 65,536-20 = 65516 the data into a buffer for the printhead when it receives it.
  • Page 50: Select Justification

    A795 User Guide: Programming Supplement 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 On the Epson TM-T88, this command is valid only at the 2, 50 = Right aligned beginning of a line.
  • Page 51: Set Printing Area Width

    A795 User Guide: Programming Supplement 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 Range of nH: 0-255 Default: 576 dots (the maximum printable area) Sets the width of the printing area.
  • Page 52: Text Characteristics Commands

    A795 User Guide: Programming Supplement 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 53: Select Pitch (Column Width)

    A795 User Guide: Programming Supplement 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 54: Select Print Mode

    A795 User Guide: Programming Supplement 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 55: Define User-Defined Character Set

    A795 User Guide: Programming Supplement 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 ... nn dn]...
  • Page 56: Copy Character Set From Rom To Ram

    A795 User Guide: Programming Supplement 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 Related information Copies characters in the active ROM set to RAM.
  • Page 57: 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 only in A795 native mode. Default: 0 (Off ) In A793 and TM-T88 emulations, the parameter byte is Turns italic print mode on or off.
  • Page 58: Select International Character Code

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

    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 B: The TM-T88 emulation selection applies only to the Resident Character Sets”...
  • Page 60: Select Character Size

    A795 User Guide: Programming Supplement 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 This command is effective for all characters (except for 1-8 = horizontal number of times HRI characters).
  • Page 61: Select Or Cancel White/Black Reverse Print Mode (Colorpos™)

    A795 User Guide: Programming Supplement 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 than 1 = On underline mode.
  • Page 62: Text Strike-Through Mode (Colorpos™)

    A795 User Guide: Programming Supplement 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 itself...
  • Page 63: Graphics

    - Number of colors Related information (only monochrome images are accepted) Microsoft BMP bitmap file format. This command is recognized only in A795 native mode. In A793 and TM-T88 emulations, the BMP file bytes are put into the print buffer.
  • Page 64: Select Bit Image Mode

    A795 User Guide: Programming Supplement 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 65: Print Advanced Raster Graphics

    A795 User Guide: Programming Supplement 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 66: Select Double-Density Graphics

    Related information This command is recognized only in A795 native mode. In A793 and TM-T88 emulations, the parameters are put into the print buffer.
  • Page 67: Define Downloaded Bit Image (Colorpos™)

    A795 User Guide: Programming Supplement 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:...
  • Page 68: Print Downloaded Bit Image (Colorpos™)

    A795 User Guide: Programming Supplement 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 will be printed on the receipt station at a size specified by This command is used to print a previously stored m.
  • Page 69: Print Raster Color Graphics (Colorpos™)

    A795 User Guide: Programming Supplement Chapter 4: Commands listed by hexadecimal code Print raster color graphics (ColorPOS™) ASCII GS 0x83 n1…..n144 (576 dots 80 mm paper) / n160 (640 dots, 82.5 mm paper) Hexadecimal 1D 83 n1…..n144 (576 dots 80 mm paper) / n160 (640 dots, 82.5 mm paper) Decimal 29 13 n1…..n144 (576 dots 80 mm paper) / n160 (640 dots, 82.5 mm paper)
  • Page 70: Apply Shading To Logo (Colorpos™)

    A795 User Guide: Programming Supplement 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 71: Monochrome Shade Mode (Colorpos™)

    A795 User Guide: Programming Supplement 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 72: Form And Merge Real Time Surround Graphic (Colorpos™)

    A795 User Guide: Programming Supplement 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...
  • Page 73: Background Logo Print Mode (Colorpos™)

    A795 User Guide: Programming Supplement 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 This command sets the graphics buffer state to “merge designated by n.
  • Page 74: 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. A brief description of each of these methods follows.
  • Page 75: Transmit Peripheral Device Status (Rs-232C Printers Only)

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

    A795 User Guide: Programming Supplement Chapter 4: Programming commands Transmit paper sensor status ASCII ESC v Hexadecimal 1B 76 Decimal 27 118 Values: Sends status data to the host computer. The printer sends one byte to the host computer when it is not busy or in a Status Byte (RS-232) fault condition.
  • Page 77: Transmit Printer Id

    A795 User Guide: Programming Supplement Chapter 4: Programming commands Transmit printer ID ASCII GS I n Hexadecimal 1D 49 n Decimal 29 73 n Value of n: 1, 49 = Printer model ID Off/On Decimal Function 2, 50 = Type ID...
  • Page 78: Transmit Printer Id, Remote Diagnostics Extension

    A795 User Guide: Programming Supplement 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 The command performs the remote diagnostic function specified by n as described in the following table.
  • Page 79 A795 User Guide: Programming Supplement Chapter 4: Programming commands Value of n ASCII Remote diagnostic item Function å Knife cut tally Clear knife cut tally to 0 ç Knife cut tally Return knife cut tally, returns 10 bytes É Hours on tally, 8 digit ASCII numeric,...
  • Page 80: Transmit Status

    Unlike the A793, that had a dedicated connector and status. resultant dedicated status reporting for each cash drawer, the A795 has a single connector that shares data reporting When DTR/DSR RS232C communications handshaking from either cash drawer. When either cash drawer is open, control is selected, the printer transmits the one byte an open status is reported by the printer.
  • Page 81 A795 User Guide: Programming Supplement 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 status Bit Off/On Hex Decimal Status for transmit status Paper present.
  • Page 82: Send Printer Software Version

    A795 User Guide: Programming Supplement 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 flash The second 4 bytes are an ASCII string for the flash software version.
  • Page 83: Rules For Using Real Time Commands

    A795 User Guide: Programming Supplement Chapter 4: Programming commands Rules for using real time commands Three situations must be understood when using real time Third, care must be taken not to insert a real time commands. command into the data sequence of another command that consists of two or more bytes.
  • Page 84: Real Time Status Transmission

    Unlike the A793, that had a dedicated connector and (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 85: Real Time Request To Printer

    A795 User Guide: Programming Supplement 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 Fixed to on. Fixed to on Fixed to off.
  • Page 86: Real Time Printer Status Transmission

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

    A795 User Guide: Programming Supplement 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; A change in any of the following conditions will trigger...
  • Page 88 A795 User Guide: Programming Supplement 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. Receipt paper adequate...
  • Page 89: Recognizing Data From The Printer

    A795 User Guide: Programming Supplement Chapter 4: Programming commands Recognizing data from the printer An application sending various real time and non-real time Responses to transmit peripheral device status (1B 75) commands to which the printer responds can determine and transmit paper sensor status (1B 76) are non-real time which command a response belongs to by the table below.
  • Page 90: Bar Codes

    A795 User Guide: Programming Supplement 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 80 mm paper. If the printer supports 82.5 mm paper, the dot spacing is the same but there are 640 printable dots rather than the 576 printable dots on 80 mm paper.
  • Page 91: Print Bar Code

    A795 User Guide: Programming Supplement 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 92 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 93: Select Pdf 417 Parameters

    A795 User Guide: Programming Supplement 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 94: Select Bar Code Width

    A795 User Guide: Programming Supplement 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: Related Information: 1 Leading quiet zone 2 Start pattern The “Set bar code width”...
  • Page 95: 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 96: Select Page Mode

    A795 User Guide: Programming Supplement 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 The table below shows the difference in memory has been completed either by the print and return to...
  • Page 97: Select Print Direction In Page Mode

    A795 User Guide: Programming Supplement 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 Selects the printing direction and start position in page across page to the right (A) mode.
  • Page 98: Set Print Area In Page Mode

    A795 User Guide: Programming Supplement 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 • x0 = [(n1 + n2 x 256) x (horizontal direction of the...
  • Page 99: Set Absolute Vertical Print Position In Page Mode

    A795 User Guide: Programming Supplement 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 The set horizontal and vertical minimum motion units character data in page mode.
  • Page 100: Macros

    A795 User Guide: Programming Supplement 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...
  • Page 101: User Data Storage

    A795 User Guide: Programming Supplement 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 102: Select Memory Type (Sram/Flash)

    = 50 (ASCII n = 2) 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. Any A793 and TM-T88 emulations, parameter bytes go into user-defined characters defined following this command the print buffer.
  • Page 103: Erase User Flash Sector

    A795 User Guide: Programming Supplement 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) See command “Flash memory user sectors allocation”...
  • Page 104: User Storage Status (Colorpos™)

    A795 User Guide: Programming Supplement Chapter 4: Commands listed by hexadecimal code User storage status (ColorPOS™) ASCII GS 0x97 m n Hexadecimal 1D 97 m n Decimal 29 151 m n Value of m: m specifies the type of stored object to User defined characters’...
  • Page 105: Flash Download

    A795 User Guide: Programming Supplement 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 106: Return Boot Sector Firmware Part Number

    A795 User Guide: Programming Supplement 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 number.
  • Page 107: Return Microprocessor Crc

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

    New paper definitions should be obtained from trusted is always populated, and factory preload of two color sources such as the Axiohm web site in order to optimize descriptions. Thus 13 remaining spaces are free for print quality while preventing premature head burnout or dynamic use;...
  • Page 109: Return Paper Type Description (Colorpos™)

    A795 User Guide: Programming Supplement Chapter 4: Programming commands Return paper type description (ColorPOS™) ASCII GS Ox8F m Hexadecimal 1D 8F m Decimal 29 143 m Value and range of m: m is the paper type index, # Bytes Offset Definition (0<...
  • Page 110 A795 User Guide: Programming Supplement Chapter 4: Programming commands...
  • Page 111: Commands Listed By Hexadecimal Code

    A795 User Guide: Programming Supplement 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 Print and feed paper one line...
  • Page 112 A795 User Guide: Programming Supplement 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 1B 25 n Select or cancel user-defined character set 1B 26 s c1 c2 n1 d1...nn dn...
  • Page 113 A795 User Guide: Programming Supplement 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 114 A795 User Guide: Programming Supplement 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 Real time printer status transmission...
  • Page 115 A795 User Guide: Programming Supplement 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 1D 5C nL nH...
  • Page 116 A795 User Guide: Programming Supplement Appendix A: Commands by hexadecimal code Code (hexadecimal) Command 1D 91 n Save graghics buffer as logo 1D 92 n Background logo print mode 1D 97 m n User storage status 1D FF Reset firmware...
  • Page 117: Appendix B: Resident Character Sets

    A795 User Guide: Programming Supplement Appendix B: Resident Character Sets Appendix B: Resident Character Sets Character sets Code page 437 (US)
  • Page 118: Code Page 737 (Greek)

    A795 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 737 (Greek)
  • Page 119: Code Page 850 (Multilingual)

    A795 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 850 (Multilingual)
  • Page 120: Code Page 852 (Slavic)

    A795 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 852 (Slavic)
  • Page 121: Code Page 858 (With Eurosymbol)

    A795 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 858 (with Eurosymbol)
  • Page 122: Code Page 860 (Portuguese)

    A795 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 860 (Portuguese)
  • Page 123: Code Page 862 (Hebrew)

    A795 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 862 (Hebrew)
  • Page 124: Code Page 863 (French Canadian)

    A795 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 863 (French Canadian)
  • Page 125: Code Page 865 (Nordic)

    A795 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 865 (Nordic)
  • Page 126: Code Page 866 (Cyrillic)

    A795 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 866 (Cyrillic)
  • Page 127: Code Page 1252 (Windows Latin 1)

    A795 User Guide: Programming Supplement Appendix B: Resident Character Sets Code page 1252 (Windows Latin 1)
  • Page 128 189-9200281 E A795-D100 PS 05/01...

Table of Contents

Save PDF