A794 Thermal Receipt Printer Owner's Guide A794-D100 TM
Legal Notices Disclaimer Information in this document is subject to change without notice. Consult your Axiohm sales representative for information that is applicable and current. Axiohm reserves the right to improve products as new technology, components, software, and firmware become available. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose without the express written permission of Axiohm.
In order to ensure compliance with the Product Safety, FCC and CE marking requirements, you must use the power supply, power cord, and interface cable which were shipped with this product or which meet the following parameters: Power Supply UL Listed (QQGQ), Class 2 power supply with SELV (Secondary Extra Low Voltage), non-energy hazard output, limited energy source, input rated 100-240 Vac, 1.5/0.8 A, 50/60 Hz, output rated 24 Vdc, 2.3 A.
A794 Owner’s Guide Contents Contents Chapter 1: About the Printer .............................................................. 1 Description of Printer .................................................................... 2 Models Available ........................................................................... 3 Model Identification ............................................................... 3 Communication Interfaces..................................................... 3 Features ..............
Contents A794 Owner’s Guide Code Page 852 .........................................................................34 Code Page 858 .........................................................................35 Code Page 860 .........................................................................36 Code Page 863 .........................................................................37 Code Page 865 .........................................................................38 Code Page 866 ..................
Chapter 1: About the Printer ♦ Description of Printer ♦ Models Available Model Identification Communication Interfaces ♦ Features ♦ Options
Chapter 1: About the Printer A794 Owner’s Guide Description of Printer The A794 thermal receipt printer is extremely fast, quiet, and very reliable. With thermal printing technology, there is no ribbon cassette to change, and paper loading is extremely simple. The printer is small enough to fit almost anywhere and is easy to use with the receipt exiting from the top. There is no journal as it is kept electronically by the host system.
A794 Owner’s Guide Chapter 1: About the Printer Models Available There are several models of the printer depending on the communication interface and the combination of options selected. Model Identification See the sample below to determine the configuration of the printer by the printer ID number. A794 Model ID Key A 7 9 4 - X X X X 1 = no knife 5 = knife 0 = standard character sets n = other expanded language versions 1 = light gray case 2 = dark gray case 2 = 80.0 mm, 512K Flash 3 = 82.
Chapter 1: About the Printer A794 Owner’s Guide Features Interfaces RS-232C, Parallel Memory/Firmware 512K Flash Memory, History EEROM, 4K Buffer (see “Options” for additional memory.) Resident Character Sets PC Code Page 437 (US), PC Code Page 850 (Multilingual), PC Code Page 852; Code Pages 865, 858, 860, 863, 866, and 1252. Integrated Bar Codes Code 39, UPC-A, UPC-E, JAN8 (EAN), JAN13 (EAN), Interleaved 2 of 5, Codabar, Code 128, EAN 128, PDF-417 (two-dimensional).
Chapter 2: Using the Printer ♦ Unpack the Printer Remove the Starter Paper Roll Supports ♦ Choose a Location On a Flat Surface On a Wall ♦ Connect the Cables Communication Cable Cash Drawer Cables Power Supply Cable ♦ Printer Controls ♦ Loading Receipt Paper ♦ Configuring the Printer ♦ Troubleshooting the Printer Printer Tone and Green LED Printing Problems Printer Does Not Function
Chapter 2: Using the Printer A794 Owner’s Guide Unpack the Printer Save all packing materials for use if printer needs to be repacked. Check that all items listed were shipped.
A794 Owner’s Guide Chapter 2: Using the Printer Remove the Starter Paper Roll Supports Paper Roll Supports Starter Roll Thermal Paper Test Printout 1. Open the Rear Cover by pushing up on each side of the cover until it unsnaps. Remove the Test Printout. 2. Lift the Starter Paper Roll out of the paper bucket and slide the two Paper Roll Supports off. 3. Remove all tape on the leading edge of the roll. 4. Place the Starter Paper Roll back into the bucket so that it unrolls from the bottom. 5.
Chapter 2: Using the Printer A794 Owner’s Guide Choose a Location You can install the printer three ways: flat on a level surface, set vertically on a level surface, or mounted on a wall using the optional wall-mount kit. Always be sure to leave room to open the cover and access the cables. Note: Position printer in a location that allows access to the cables, room to open the cover and away from traffic areas to limit the chance of being knocked or damaged.
A794 Owner’s Guide Chapter 2: Using the Printer Connect the Cables Caution: Connect the cables to the printer before plugging in the power supply. If power is received from the host computer, turn it off before connecting any cables. Communication Connector (RS-232C 9-pin DB-9 Connector shown) 6-pin Cash Drawer Connector Back of Printer Connector Cover Power Connector Note: Depending on your printer configuration, the connector panel may vary from the above illustration.
Chapter 2: Using the Printer A794 Owner’s Guide Cash Drawer Cables The Cash Drawer Cable connects the printer to one or two cash drawers. 1. Open Connector Cover at rear of printer if not previously open. 2. Plug the cable into the Cash Drawer Connector (standard phone jack) located at the rear of the printer (see illustration on previous page.) Note: a. If your system has two cash drawers, attach a Y-cable to the printer’s Cash Drawer Connector as shown. b.
A794 Owner’s Guide Chapter 2: Using the Printer Printer Controls LED (Green) Paper Feed Button Reset Button Reset Button Should a paper jam or fault condition occur, press the Reset Button to reset the printer. The printer performs a startup routine, as if having been turned off, then on again. Paper Feed Button Press the Paper Feed Button to advance the paper. Used in conjunction with the Reset Button to print the Diagnostic Mode or allow access to the Configuration Menu. (See page 16.
Chapter 2: Using the Printer A794 Owner’s Guide Tone A single beep indicates the printer has successfully completed its startup routine (after having been reset or the power supply turned on). If the printer beeps twice, a problem may be indicated.
A794 Owner’s Guide Chapter 2: Using the Printer Loading Receipt Paper Change the paper when any of the following conditions occurs: ♦ Colored stripe appears on the receipt paper indicating the paper is low. Change the paper as soon as possible to avoid running out of paper part way through a transaction. ♦ Green LED flashes (slow flash) indicating the paper is low. Change the paper as soon as possible to avoid running out of paper part way through a transaction.
Chapter 2: Using the Printer 14 A794 Owner’s Guide 2. Remove the used paper roll. 3. Tear off the end of the new roll so that the edge is loose.
A794 Owner’s Guide Chapter 2: Using the Printer 4. Place the new roll into the paper bucket with a few inches of paper extending over the cabinet front (or top, if printer is mounted vertically). Caution: The Paper must unroll from the bottom to ensure the printer will print and to prevent paper jamming. 5. Close the cover. Pull the excess paper across the tear-off blade and remove. 6. Advance the paper if necessary by pressing the Paper Feed Button.
Chapter 2: Using the Printer A794 Owner’s Guide Configuring the Printer The Configuration Menu allows the user to set general printer parameters. The test prints the settings for several functions, and partially cuts the paper between each variation. The printouts may vary for each model. The test ends with a partial cut of the paper, then begins again. A test printout may use several feet of paper to complete.
A794 Owner’s Guide Chapter 2: Using the Printer For more information about See this section Poorly printed test printout “Troubleshooting the Printer” December 1999 17
Chapter 2: Using the Printer A794 Owner’s Guide Troubleshooting the Printer The printer is simple and generally trouble-free, but from time to time minor problems may occur. Follow these procedures to determine the cause and resolution of any problems the printer may be having. If the procedures in this section do not correct the problem, contact a service representative.
A794 Owner’s Guide Chapter 2: Using the Printer Printing Problems Problem Possible Causes What to Do Where to Go Colored stripe on the receipt. Paper is low. Change the paper. A794 Owner’s Guide Receipt does not come out all the way. Paper is jammed. Open the receipt cover, inspect the knife, and clear any jammed paper. Printer starts to print, but stops while the receipt is being printed. Paper is jammed. Open the receipt cover, inspect the knife, and clear any jammed paper.
Chapter 2: Using the Printer A794 Owner’s Guide This page intentionally left blank.
Chapter 3: Media and Supplies Guide ♦ Ordering Thermal Paper Thermal Paper Specifications Manufacturers How to Order ♦ Ordering Miscellaneous Supplies Ordering Cash Drawers Ordering Power Supply and Power Cord Ordering Communication Cables Wall-Mount Kit
Chapter 3: Media and Supplies Guide A794 Owner’s Guide Ordering Thermal Paper Thermal Paper Specifications The printer requires qualified thermal paper with the following dimensions: Width Diameter Length 80 mm ± .2 mm (3.15 in. ± .02 in.) 90 mm max. (3.54 in.) 322 ft. nominal. 82.5 mm ± .2 mm (3.25 in. ± .02 in.) 90 mm max. (3.54 in.) 322 ft. nominal. The paper must not be attached at the core. Use paper with a colored stripe at the end to indicate that the paper is running low.
A794 Owner’s Guide Chapter 3: Media and Supplies Guide Ordering Miscellaneous Supplies Ordering Cash Drawers Order cash drawers from the following suppliers: Cash Drawers Number NCR 7052-K657 M-S Cash Drawer Corp. EP-125 K series, EP-127, EP-102 APG Cash Drawer Model 322 Indiana Cash Drawer Model SLD Ordering Power Supply and Power Cord Contact your sales representative to order the power supply and power cords listed in the table. The numbers are for reference only.
Chapter 3: Media and Supplies Guide A794 Owner’s Guide Ordering Communication Cables Contact your sales representative to order the communication cables listed in the table. The numbers are for reference only. Suppliers may use other numbers. Communication Cables Length Order Number RS-232C 25-pin male (printer) to 9 pin female (host) (2 meters—6.6 ft.) A141-0005 RS-232C 25-pin male (printer) to 9 pin female (host) (6 meters—19.7 ft.
Chapter 4: Print Specifications ♦ Characters Print Modes Size ♦ Paper Specifications ♦ Print Zones Print Zones for 80 mm Paper Print Zones for 82.
Chapter 4: Print Specifications A794 Owner’s Guide Characters Print Modes Available print modes: ♦ Standard ♦ Compressed ♦ Double High ♦ Double Wide ♦ Upside Down ♦ Rotated ♦ Underlined ♦ Bold ♦ Reverse ♦ Italic ♦ Scaled Size Characters sizes for the Standard and Compressed mode: Standard ♦ Characters per Inch: 15.6 ♦ Characters per Line: 44 ♦ Cell Size: 13 x 24 Dots Compressed 26 ♦ Characters per Inch: 20.
A794 Owner’s Guide Chapter 4: Print Specifications Paper Specifications The printer requires qualified thermal paper with the following dimensions: Width Diameter Length 80 mm ± .2 mm (3.15 in. ± .02 in.) 90 mm max. (3.54 in.) 322 ft. nominal. 82.5 mm ± .2 mm (3.25 in. ± .02 in.) 90 mm max. (3.54 in.) 322 ft. nominal. The paper must not be attached at the core. Use paper with a colored stripe at the end to indicate that the paper is running low.
Chapter 4: Print Specifications A794 Owner’s Guide When printing graphics or logos, converted from 6 dot/mm to 8 dot/mm, the printable zone is expanded to 598 dots.
A794 Owner’s Guide Chapter 4: Print Specifications Print Zones for 82.5 mm Paper Specifications of print zone for 82.5 mm paper: ♦ 640 dots (addressable) @ 8 dots/mm, centered on 82.5 mm ♦ Standard mode: minimum margins: 1.0 mm (0.040 inches) ♦ Top margin to manual tearoff: 17.8 mm (0.70 inches) ♦ Top margin to knife cut: 19.0 mm (0.75 inches) Paper Width = 82.5 mm (3.25 in.) Printable Zone, 640 Dots = 80 mm (3.15 in.) Nominal Margins (2) = 1.25 mm (0.05 in.) Cut Edge Cut Edge Top Margin, 17.
Chapter 4: Print Specifications A794 Owner’s Guide Print Density and Density of Receipt Print Lines This function makes it possible to adjust the energy level of the printhead to darken the printout. An adjustment should only be made when necessary. The factory setting is 100%. Warning: Choose an energy level no higher than necessary to achieve a dark printout. Failure to observe this rule may result in a printer service call or voiding of the printer warranty.
A794 Owner’s Guide Chapter 4: Print Specifications Duty Cycle Restrictions (Printing Solid Blocks) There are restrictions on the duty cycle because of the heat generated by the receipt thermal printhead when printing solid blocks (regardless of the length of the block in relation to the print line). The restrictions are ambient temperature, the percentage of time (measured against one minute) of continuous solid printing, and the amount of coverage.
Chapter 4: Print Specifications A794 Owner’s Guide Character Sets Code Page 437 32 December 1999
A794 Owner’s Guide Chapter 4: Print Specifications Code Page 850 December 1999 33
Chapter 4: Print Specifications A794 Owner’s Guide Code Page 852 34 December 1999
A794 Owner’s Guide Chapter 4: Print Specifications Code Page 858 December 1999 35
Chapter 4: Print Specifications A794 Owner’s Guide Code Page 860 36 December 1999
A794 Owner’s Guide Chapter 4: Print Specifications Code Page 863 December 1999 37
Chapter 4: Print Specifications A794 Owner’s Guide Code Page 865 38 December 1999
A794 Owner’s Guide Chapter 4: Print Specifications Code Page 866 December 1999 39
Chapter 4: Print Specifications A794 Owner’s Guide Code Page 1252 40 December 1999
Chapter 5: Communication Interface ♦ Communication Overview Interface Sending Commands ♦ RS-232C Interface Print Speed and Timing XON/XOFF Protocol DTR/DSR Protocol RS-232C Technical Specifications ♦ Parallel Interface
Chapter 5: Communication Interface A794 Owner’s Guide Communication Overview In order for a receipt to be printed, a program must be in place that translates the data from the host computer into a language that the printer can understand. This program must tell the printer exactly how to print each character. This chapter describes how to create such a program or modify an existing one. Interface In order for the printer to communicate with the host, a communication link must be set up.
A794 Owner’s Guide Chapter 5: Communication Interface RS-232C Interface The RS-232C interface uses either XON/XOFF (software) or DTR/DSR (hardware) protocol to control the flow of information between the computer and the printer. For XON/XOFF, a particular character is sent back and forth between the host and the printer to regulate the communication. For DTR/DSR, changes in the DTR/DSR signal on the RS-232C interface coordinate the information flow.
Chapter 5: Communication Interface A794 Owner’s Guide The next table shows that with no delay between lines, the transmit time is much less than the process time, allowing the printer to print at full speed. No Delay Between Lines Char. per Lines per Line Receipt Transmit Time (9600 Baud) in Seconds Transmit Time (19.2 K Baud) in Seconds Transmit Time (115.2 K Baud) in Seconds Process Time in Seconds 20 20 0.40 0.20 0.035 0.50 20 40 0.80 0.40 0.070 1.00 44 20 0.88 0.44 0.075 0.
A794 Owner’s Guide Chapter 5: Communication Interface DTR/DSR Protocol The DTR signal is used to control data transmission to the printer. It is driven low when the printer is ready to receive data and driven high when it cannot accept any more data. Data is transmitted from the printer after it confirms that the DSR signal is low. RS-232C Technical Specifications This section describes the pin settings for the connectors and the RS-232C interface parameters.
Chapter 5: Communication Interface A794 Owner’s Guide Power Connector With RS-232C, the printer is always remotely powered. The following illustration shows the power cable connector and pin assignments. The power cable connector is a 3-pin mini DIN plug and is located at the rear of the printer. Function Pin Numbers Function 3 Not Used +24 Volt 2 1 Ground Shell - Shield Cash Drawer Connector The following illustration shows the pinouts for the cash drawer connector.
A794 Owner’s Guide Chapter 5: Communication Interface RS-232C Settings The printer supports the standard RS-232C settings: Baud Rate 1200, 2400, 4800, 9600, 19.2 K, 38.4 K, 57.6 K, 115.2 K Parity Parity Enabled, Parity Disabled, Even Parity, Odd Parity Flow Control Method XON/XOFF, DTR/DSR Data Reception Errors Print “?” for Data Errors, Ignore Data Errors Generally the printer is shipped with all the RS-232C parameters pre-set at the factory.
Chapter 5: Communication Interface A794 Owner’s Guide Parallel Interface The printer is also available with an IEEE-1284 parallel interface. The printer configuration must be set to the parallel interface using the printer’s Configuration Menu described in the “Diagnostics and Configuration” section of the A794 Service Guide. IEEE Bi-directional Parallel Connector The following illustration shows the parallel communication connector and pin assignments.
Chapter 6: Programming Information ♦ Command Conventions ♦ List of Commands and Locations By Command Code By Function ♦ Comparisons ♦ Command Descriptions Printer Function Commands Vertical Positioning and Print Commands Horizontal Positioning Commands Print Characteristics Commands Graphics Commands Status Commands Batch Mode Real Time Auto Status Back Bar Code Commands Page Mode Commands Macro Commands User Data Storage Commands Flash Download Commands
Chapter 6: Programming Information A794 Owner’s Guide Command Conventions The following information describes how each command is organized: 50 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. Default: The command operand default after printer reset.
A794 Owner’s Guide Chapter 6: Programming Information List of Commands and Location Commands control all operations and functions of the printer. This includes selecting the size and placement of characters and graphics on the receipt to feeding and cutting the paper.
Chapter 6: Programming Information 52 A794 Owner’s Guide Code (Hexadecimal) Command Page 1B 21 n Select Print Mode 82 1B 24 nL nH Set Absolute Starting Position 73 1B 25 n Select or Cancel User-Defined Character Set 83 1B 26 s c1 c2 n1 d1...nn dn Define User-Defined Character Set 83 1B 27 m a0 a1 a2 d1 … dn Write to User Data Storage 132 1B 2A m n1 n2 d1...
A794 Owner’s Guide Chapter 6: Programming Information Code (Hexadecimal) Command Page 1B 75 n Request Alternate Status 102 1B 75 0 Transmit Peripheral Device Status 102 1B 76 Transmit Paper Sensor Status 103 1B 7B n Select or Cancel Upside Down Print Mode 88 1D 00 Return Boot Sector Firmware Part Number 136 1D 01 Return Segment Number Status of Flash Memory 136 1D 02 n Select Flash Memory Sector to Download 136 1D 03 n Real Time Request to Printer (GS Sequence) 115 1D 04 n Real
Chapter 6: Programming Information 54 A794 Owner’s Guide Code (Hexadecimal) Command Page 1D 6B m d1...dk 00 Print Bar Code 122 1D 6B m n d1...
A794 Owner’s Guide Chapter 6: Programming Information By Function All items in BOLD are new or have additional functionality when compared to the A793.
Chapter 6: Programming Information A794 Owner’s Guide Horizontal Positioning Commands Code (Hexadecimal Command Page 09 Horizontal Tab 72 1B 14 n Set Column 72 1B 24 nL nH Set Absolute Starting Position 73 1B 44 [n] k 00 Set Horizontal Tabs 74 1B 5C n1 n2 Set Relative Print Position 75 1B 61 n Select Justification 76 1D 4C nL nH Set Left Margin 77 1D 57 nL nH Set Printing Area Width 78 Print Characteristic Commands 56 Code (Hexadecimal Command Page 12 Select Double-Wide Ch
A794 Owner’s Guide Chapter 6: Programming Information Graphics Commands Code (Hexadecimal Command Page 11 n1 … n72 Print Raster Graphics 92 1B (+*.
Chapter 6: Programming Information A794 Owner’s Guide Barcode Commands Code (Hexadecimal Command Page 1D 48 n Select Printing Position for HRI Characters 121 1D 66 n Select Pitch for HRI Characters 121 1D 68 n Select Bar Code Height 121 1D 6B m d1…dk 00 or Print Bar Code 122 Select Bar Code Width 123 1D 6B m n d1…dn 1D 77 n Page Mode Commands Code (Hexadecimal Command Page 0C Print and Return to Standard Mode 124 18 Cancel Print Data in Page Mode 124 1B 0C Print Data in Page Mo
A794 Owner’s Guide Chapter 6: Programming Information Flash Download Commands Code (Hexadecimal Command Page 1B 5B 7D Switch Flash Download Mode 135 1D 00 Return Boot Sector Firmware Part Number 136 1D 01 Return Segment Number Status of Flash Memory 136 1D 02 n Select Flash Memory Sector to Download 136 1D 06 Get Firmware CRC 136 1D 07 Return Microprocessor CRC 137 1D 0E Erase All Flash Contents Except Boot Sector 137 1D 0F Return Main Program Flash CRC 137 1D 10 n Erase Select
Chapter 6: Programming Information A794 Owner’s Guide Comparisons The following table details the list of commands whose behavior differs from the A793 and the A794 because of the physical differences of a 6 dots/mm head (A793) versus an 8 dots/mm head (A794). Command Description Difference between previous product and new product Emulation Mode. 15 n Feed n Dot Rows This command will move the paper on the receipt in n/203 inch steps instead of n/152 inch steps.
A794 Owner’s Guide Chapter 6: Programming Information Command Descriptions Printer Function Commands The printer function commands control the following basic printer functions and are described in order of their hexadecimal codes: ♦ Resetting the printer ♦ Cutting the paper ♦ Opening the cash drawers Clear Printer ASCII Hexadecimal Decimal DLE 10 16 Clears the print line buffer without printing and sets the printer to the following condition: ♦ Double-Wide command (0x12) is canceled ♦ Line Spa
Chapter 6: Programming Information A794 Owner’s Guide Perform Partial Knife Cut ASCII Hexadecimal Decimal SUB 1A 26 ESC m 1B 6D 27 109 Partially cuts the receipt. The default setting leaves 5 mm. (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. Formulas The cut edge is 144 dot rows or 18 mm (0.71 inch) above the print station.
A794 Owner’s Guide Chapter 6: Programming Information Initialize Printer ASCII Hexadecimal Decimal ESC @ 1B 40 27 64 Default: Character Pitch: Column Width: Extra Dot Rows: Character Set: Printing Position: 15.6 CPI 44 characters 3 Code Page 437 Column One Clears the print line buffer and resets the printer to the default settings for the startup configuration (refer to Default settings below).
Chapter 6: Programming Information A794 Owner’s Guide Select Paper Sensors to Output Paper End Signals ASCII Hexadecimal Decimal ESC c 3 n 1B 63 33 n 27 99 51 n Value of n: If either bit 0 or bit 1 is on, the paper roll near-end sensor is selected as the paper sensor outputting paper-end signals. If either bit 2 or bit 3 is on, the paper roll end sensor is selected as the paper sensor outputting paper-end signals.
A794 Owner’s Guide Chapter 6: Programming Information Select Sensors to Stop Printing ASCII Hexadecimal Decimal ESC c 4 n 1B 63 34 n 27 99 52 n Value of n: Sensor status Sensor Status 1 Bit Sensor 0 0 Receipt Paper Near-End Disabled Enabled 1 Receipt Paper Near-End Disabled Enabled 2-4 Undefined 6 Undefined Bits 5 and 7 are not used. Default: 0 Determines which sensor stops printing on the respective station.
Chapter 6: Programming Information A794 Owner’s Guide Generate Pulse to Open Cash Drawer ASCII Hexadecimal Decimal ESC p n p1 p2 1B 70 n p1 p2 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: 0-255 Sends a pulse to open the cash drawer. Formulas The value for either p1 or p2 is the hexadecimal number multiplied by 2 msec to equal the total time.
A794 Owner’s Guide Chapter 6: Programming Information Print Test Form ASCII Hexadecimal Decimal AX t 1F 74 31 116 Prints the current printer configuration settings on the receipt. Disabled in Page Mode.
Chapter 6: Programming Information A794 Owner’s Guide Vertical Positioning and Print Commands The vertical positioning and print commands control the vertical print positions of characters on the receipt. Print and Feed One Line ASCII Hexadecimal Decimal LF 0A 10 Prints one line from the buffer and feeds paper one line. Carriage Return/Line Feed pair prints and feeds only one line. Activate Carriage Return ASCII Hexadecimal Decimal CR 0D 13 Prints one line from the buffer and feeds paper one line.
A794 Owner’s Guide Chapter 6: Programming Information Feed n Dot Rows ASCII Hexadecimal Decimal NAK n 15 n 21 n Value of n: n/203 inch Range of n: 0-255 in A794 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 TM-T88 Emulation and the parameter byte goes into the print buffer.
Chapter 6: Programming Information A794 Owner’s Guide Print ASCII Hexadecimal Decimal ETB 17 23 Prints one line from the buffer and feeds paper one line. Executes LF on receipt. Related Information This command is recognized in A793 Emulation and A794 Native Mode, ignored in TM-T88 Emulation. Set Line Spacing to 1/6 Inch ASCII Hexadecimal Decimal ESC 2 1B 32 27 50 Default: 3.33 mm (0.13 inch) Sets the default line spacing to 4.25 mm (1/6 of an inch).
A794 Owner’s Guide Chapter 6: Programming Information Print and Feed Paper ASCII Hexadecimal Decimal ESC J n 1B 4A n 27 74 n Value of n: n/203 inch in A794 Native Mode and TM-T88 Emulation Mode n/360 inch in A793 Emulation Mode Range of n: 0-255 Prints one line from the buffer and feeds the paper n/8 mm (n/203 inch). The line height equals the character height when n is too small.
Chapter 6: Programming Information A794 Owner’s Guide Horizontal Positioning Commands 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 576 printable dots on the 80 mm paper.
A794 Owner’s Guide Chapter 6: Programming Information Set Absolute Starting Position ASCII Hexadecimal Decimal ESC $ nL nH 1B 24 nL nH 27 36 nL nH Value of n: n= Number of dots to be moved from the beginning of the line. nL = Remainder after dividing n by 256. nH = Integer after dividing n by 256. The values for nL and nH are two bytes in low byte, high byte word orientation. Sets the print starting position to the specified number of dots (up to the right margin) from the beginning of the line.
Chapter 6: Programming Information A794 Owner’s Guide Set Horizontal Tab Positions ASCII Hexadecimal Decimal ESC D [n]…k NUL 1B 44 [n]…k 00 27 68 [n]…k 0 Value of n: Column number for tab minus one. (n is always less than or equal to the current selected column width) Value of k: 0-32 Default: Every 8 characters from column. 1 (9, 17, 25, etc.) for normal print. Sets up to 32 horizontal tab positions n columns from column one, but does not move the print position.
A794 Owner’s Guide Chapter 6: Programming Information Set Relative Print Position ASCII Hexadecimal Decimal ESC \ n1 n2 1B 5C n1 n2 27 92 n1 n2 Value of n: To Move the Relative Starting Position Right of the Current Position: n = Number of dots to be moved right of the current position n1 = Remainder after dividing n by 256 n2 = Integer after dividing n by 256 The values for n1 and n2 are two bytes in low byte, high byte word orientation.
Chapter 6: Programming Information A794 Owner’s Guide Compatibility Information (A794 receipt vs. A793 receipt) There is a difference in the normal behavior of this command in A794 Emulation Mode as compared to the original A793. The difference exists when the command is used to move to the left. The A793 processes the whole print string prior to putting it in the buffer for the print head.
A794 Owner’s Guide Chapter 6: Programming Information Set Left Margin ASCII Hexadecimal Decimal GS L nL nH 1D 4C nL nH 29 76 nL nH Range of nL: 0-255 Range of nH: 0-255 Default: 576 dots (the maximum printable area) Formulas Sets the left margin of the printing area. The left margin is set to ((nH X 256) + nL) times horizontal motion unit) inches. The horizontal motion units are set by the Set Horizontal and Vertical Minimum Motion Units command (1D 50), described in this manual.
Chapter 6: Programming Information A794 Owner’s Guide Set Printing Area Width ASCII Hexadecimal Decimal GS W nL nH 1D 57 nL nH 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. If the setting exceeds the printable area, the maximum value of the printable area is used. The width of the printing area is set to ((nH X 256) + nL) times horizontal motion unit) inches.
A794 Owner’s Guide Chapter 6: Programming Information Print 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 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 80 mm paper.
Chapter 6: Programming Information A794 Owner’s Guide Select 90 Degree Counter-Clockwise Rotated Print ASCII Hexadecimal Decimal ESC DC2 1B 12 27 18 Rotates characters 90 degrees counter-clockwise. The command remains in effect until the printer is reset or until a Clear Printer (0x10), Select or Cancel Upside Down Print (1B 7B) or Cancel Rotated Print (1B 56) command is received. Exceptions This command is valid only at the beginning of a line.
A794 Owner’s Guide Chapter 6: Programming Information Set Right-Side Character Spacing ASCII Hexadecimal Decimal ESC SP n 1B 20 n 27 32 n Range of n: 0 – 32 Default: 0 Sets the right side character spacing to [n x horizontal or vertical motion units]. Values for this command are set independently in standard and Page Mode. The units of horizontal and vertical motion are specified by the Set Horizontal and Vertical Minimum Motion Units (1D 50 …) command.
Chapter 6: Programming Information A794 Owner’s Guide Select Print Mode ASCII Hexadecimal Decimal ESC ! n 1B 21 n 27 33 n Value of n: Pitch selection (standard, compressed, double high, or double wide.) Value of n Bit1 Function 2 0 1 Bit 0 Pitch (See chart below) Standard Pitch Compressed Pitch Bit 3 Emphasized Mode Canceled Set Bit 4 Double High Canceled Set Bit 5 Double Wide Canceled Set Bit 7 Underlined Mode Canceled Set 1 Bits 1, 2 and 6 are not used.
A794 Owner’s Guide Chapter 6: Programming Information Select or Cancel User-Defined Character Set ASCII Hexadecimal Decimal ESC % n 1B 25 n 27 37 n Value of n: 0 = Code Page 437 1 = User Defined (RAM) 2 = Code Page 850 Range of n: 0-2 Default: 0 (Code Page 437) Selects the character set. When an undefined RAM character is selected, the current active ROM Code Page character is used. See the Printing Specification Guide for the character sets.
Chapter 6: Programming Information A794 Owner’s Guide Top of Character d1 d4 MSB d2 d5 dn d3 dn LSB Defines and enters downloaded characters into RAM. The command may be used to overwrite single characters. User-defined characters are available until power is turned off or the Initialize Printer command (1B 40) is received. Any invalid byte (s, c1, c2, n1) aborts the command.
A794 Owner’s Guide Chapter 6: Programming Information Copy Character Set from ROM to RAM ASCII Hexadecimal Decimal ESC : 0 0 0 1B 3A 30 30 30 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. This command is ignored if current font is the user font.
Chapter 6: Programming Information A794 Owner’s Guide Select or Cancel Emphasized Mode ASCII Hexadecimal Decimal ESC E n 1B 45 n 27 69 n Value of n: 0 (bit 0) not selected 1 (bit 0) selected (When 0 and 1 are the Least Significant Bit, LSB) Range of n: 0-255 Default: 0 (Off) Starts or stops emphasized printing. The printer is reset to the standard Print Mode after a Clear Printer (0x10) command is received. Exceptions Only the lowest bit of n is effective.
A794 Owner’s Guide Chapter 6: Programming Information Select or Cancel Italic Print ASCII Hexadecimal Decimal ESC I n 1B 49 n 27 73 n Value of n: 0 = Off 1 = On (When 0 and 1 are the Least Significant Bit, LSB) Default: 0 (Off) Turns Italic Print Mode on or off. The printer is reset to the standard Print Mode after a Clear Printer (0x10) command is received. Exceptions Only the lowest bit of n is valid. Related Information This command is recognized only in A794 Native Mode.
Chapter 6: Programming Information A794 Owner’s Guide Select or Cancel 90 Degree Clockwise Rotated Print ASCII Hexadecimal Decimal ESC V n 1B 56 n 27 86 n Value of n: 0 = Cancel 1 = Set Default: 0 (Cancel) Rotates characters 90 degrees clockwise. The command remains in effect until the printer is reset or until a Clear Printer (0x10) or Rotated Print (1B 12) command is received. See Summary of Rotated Printing in this document.
A794 Owner’s Guide Chapter 6: Programming Information Character Width Selection Hex Decimal Width 00 0 1 (normal) 10 16 2 (two times width) 20 32 3 (three times width) 30 48 4 (four times width) 40 64 5 (five times width) 50 80 6 (six times width) 60 96 7 (seven times width) 70 112 8 (eight times width) Character Height Selection Hex Decimal Height 00 0 1 (normal) 01 1 2 (two times height) 02 2 3 (three times height 03 3 4 (four times height) 04 4 5 (five times heig
Chapter 6: Programming Information A794 Owner’s Guide Select Or Cancel White/Black Reverse Print Mode ASCII Hexadecimal Decimal GS B n 1D 42 n 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: 0 (Off) Turns on White/Black Reverse Print Mode. In White/Black Reverse Print Mode, print dots and non-print dots are reversed, which means that white characters are printed on a black background.
A794 Owner’s Guide Chapter 6: Programming Information Select Superscript or Subscript Modes ASCII Hexadecimal Decimal AX ENQ n 1F 05 n 31 05 n Value of n: 0 = Normal character size 1 = Select subscript size 2 = Select superscript size Default: 0 (normal size) Turns superscript or subscript modes on or off. This attribute may be combined with other characters size settings commands (12, 13, 1B 21 n, 1D 21 n,…) Exceptions This command is ignored if n is out of the specified range.
Chapter 6: Programming Information A794 Owner’s Guide Graphics Commands These commands are used to enter and print graphics data 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 576 printable dots on 80 mm paper. Print Raster Graphics ASCII Hexadecimal Decimal DC1 n1 ...nl 11 n1 ...n72 17 n1 ...
A794 Owner’s Guide Chapter 6: Programming Information Download BMP Logo ASCII: ESC (+*.BMP file) Hexadecimal: 1B (+*.BMP file) Decimal: 27 (+*.BMP file) Maximum width = Maximum height = Value: 576 512 Enters a downloaded BMP logo into RAM or Flash. The downloaded BMP logo can be printed by using the Print Downloaded Bit Image (1D 2F m) command. To downloaded BMP file to save it as a Logo, send the hexadecimal code 1B followed by the whole BMP file.
Chapter 6: Programming Information A794 Owner’s Guide Select Bit Image Mode ASCII Hexadecimal Decimal ESC * m n1 n2 d1 ... dn 1B 2A m n1 n2 d1 ... dn 27 42 m n1 n2 d1 ... dn Value of m: Value of m Mode No. of Dots (Vertical) No. of Dots (Horizontal) No.
A794 Owner’s Guide Chapter 6: Programming Information Related Information 8-Dot Single-Density Mode Receipt MSB Top of Bit Image d1 d2 d3 d4 dn dn LSB 24-Dot Single-Density Mode Top of Bit Image d1 d4 d7 MSB d2 d5 dn d3 d6 dn LSB December 1999 95
Chapter 6: Programming Information A794 Owner’s Guide Print Advanced Raster Graghics ASCII Hexadecimal Decimal ESC .
A794 Owner’s Guide Chapter 6: Programming Information Select Double-Density Graphics ASCII Hexadecimal Decimal ESC Y n1 n2 d1 ... dn 1B 59 n1 n2 d1 ... dn 27 89 n1 n2 d1 ... dn Value of n: Value of n (8-Dot Single Density Mode) Value of n (24-Dot Single Density Mode) n1 + (256 x n2) 3 x [n1 + (256 x n2)] Value of d Number of Bytes of Data (Printed Down, Then Across) Enters one line of 8-dot double-density graphics into the print buffer.
Chapter 6: Programming Information A794 Owner’s Guide Select the Current Logo ASCII Hexadecimal Decimal GS # n 1D 23 n 29 35 n Range of n: 0 – 255 Selects a logo to be defined or printed. The active logo n remains in use until this command is sent again with a different logo n. When this command precedes a logo definition, that definition is stored in Flash Memory as logo n. If there is already a different definition in Flash Memory for logo n, the first is inactivated and the new definition is used.
A794 Owner’s Guide Chapter 6: Programming Information Define Downloaded Bit Image ASCII Hexadecimal Decimal GS * n1 n2 d1 ... dn] 1D 2A n1 n2 d1 ... dn] 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 Horizontal Dot Columns) 1-64 (Number of 1 Vertical Bytes) Bytes of Data (Printed Down, Then Across) 1 The number of bytes sent is represented by the following formula: n = 8 x n1 x n2 (n1 x n2 must be less than or equal to 4608).
Chapter 6: Programming Information A794 Owner’s Guide Print Downloaded Bit Image ASCII Hexadecimal Decimal GS / m 1D 2F m 29 47 m Value and Range of m: Value of m Print Mode Vertical DPI Horizontal DPI 0 1 2 3 Normal Double Wide Double High Quadruple 203 203 101 101 203 101 203 101 Prints the downloaded bit image in RAM or Flash at a density specified by m. It is ignored if any data is in the print buffer, if the downloaded bit image is undefined, or if the data defined exceeds one line.
A794 Owner’s Guide Chapter 6: Programming Information Status Commands Status Command Introduction The A794 has three methods of providing status to the application. These methods are through Batch Status Commands, Real Time Status Commands, and Auto Status Back. 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.
Chapter 6: Programming Information A794 Owner’s Guide Transmit Peripheral Device Status (RS-232C printers only) ASCII Hexadecimal Decimal ESC u 0 1B 75 0 27 117 0 Value of returned byte: Bit 0 Bit 1 1 = Drawer 1 Closed 1 = Drawer 2 Closed 0 = Drawer 1 Open 0 = Drawer 2 Open Bits 2-7 are not used. Transmits current status of the cash drawers. One byte is sent to the host computer. In DTR/DSR protocol, the printer waits for DSR = SPACE.
A794 Owner’s Guide Chapter 6: Programming Information Transmit Paper Sensor Status ASCII Hexadecimal Decimal ESC v 1B 76 27 118 Values: Status Byte (RS-232) Bit Function 0 Signifies 1 Signifies 0 Receipt Paper Present Low (only if paper low sensor is enabled) 1 Receipt Cover Closed Open 2 Receipt Paper Present Out 3 Knife Position Home Position Not Home Position 4 Not Used Fixed to Zero Fixed to Zero 5 Temperature In valid range Too hot or too cold 6 Voltage In valid range
Chapter 6: Programming Information A794 Owner’s Guide Transmit Printer ID ASCII Hexadecimal Decimal GS I n 1D 49 n 29 73 n Value of n: 1, 49 = Printer model ID 2, 50 = Type ID 3, 51 = ROM version ID 4, 52 = Logo Definition Transmits the printer ID specified by n as follows: n Printer ID Specification ID (Hexadecimal) 1, 49 Printer model ID Axiohm A794 0x24 2, 50 Type ID Installed options Refer to next table 3, 51 ROM version ID ROM version 0x00 4, 52 Logo Definition Logo Definition
A794 Owner’s Guide Chapter 6: Programming Information Transmit Printer ID, Remote Diagnostics Extension ASCII Hexadecimal Decimal GS I @ n 1D 49 40 n 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.
Chapter 6: Programming Information Value of n ASCII Hex Dec â 83 ä Remote Diagnostic Item Function 131 Receipt lines tally Return receipt lines tally, preceded by n to identify Printer returns 10 bytes in above example: â00010000 84 132 Knife cut tally, 8 digit ASCII numeric, max 99,999,999 Write to NVRAM à 85 133 Knife cut tally Write to NVRAM, and print on receipt to verify å 86 134 Knife cut tally Clear knife cut tally to 0 ç 87 135 Knife cut tally Return knife cut tally
A794 Owner’s Guide Chapter 6: Programming Information Performs the remote diagnostic function specified by n. Eighteen remote diagnostic items are defined: eight printer ID items and ten printer tally items. A group of four remote diagnostic functions is assigned to each diagnostic item. Most of the diagnostic items are maintained in non-volatile memory (NVRAM), but some are maintained in read-only memory (ROM). The table that follows describes the variables.
Chapter 6: Programming Information A794 Owner’s Guide Printer Status (n = 1 or n = 49) Bit Off/On Hex Decimal Status for Transmit Status 0 Off On 00 01 0 1 Paper present. Paper exhausted. 1 Off On 00 02 0 2 Cover closed. Cover open. 2 Off On 00 04 0 4 Paper present. Paper exhausted. 3 - - - Undefined. 4 Off 00 0 Not used. Fixed to off. 5 - - - Undefined. 6 - - - Undefined. 7 Off 00 0 Not used. Fixed to off.
A794 Owner’s Guide Chapter 6: Programming Information Send Printer Software Version ASCII Hexadecimal Decimal AX V 1F 56 31 86 The printer returns 8 bytes containing the boot and Flash software version. The first 4 bytes returned are an ASCII string for the boot version. The second 4 bytes are an ASCII string for the Flash version. Example: For 1.234.56 (8 bytes), the boot version is 1.23 and the Flash version is 4.56.
Chapter 6: Programming Information A794 Owner’s Guide Real Time Commands The Real Time commands provide an application interface to the printer even when the printer is not handling other commands (RS-232C communication interface only): ♦ Real Time Status Transmission: GS (Hex 1D) Sequence and DLE (Hex 10) Sequence ♦ Real Time Request to Printer: GS (Hex 1D) Sequence and DLE (Hex 10) Sequence ♦ Real Time Printer Status Transmission The Batch Mode Printer Status commands are placed in the printer’s d
A794 Owner’s Guide Chapter 6: Programming Information Rules for Using Real Time Commands Three situations must be understood when using real time commands. First, the printer executes the Real Time command upon receiving it and will transmit status regardless of the condition of the DSR signal.
Chapter 6: Programming Information A794 Owner’s Guide Busy Line and Fault Conditions If the printer is in error condition (cover is open, paper is exhausted…), the printer will still accept data, respond to the batch mode status commands (1B 76 and 1B 75 0), handle the cash drawer commands, and not go busy until it actually tries to execute a print command. Then it will stay busy and stop processing data out of the receive buffer until the condition clears.
A794 Owner’s Guide Chapter 6: Programming Information Real Time Status Transmission (continued) 2 = Transmit RS-232C Busy Status Bit Status Hex Decimal Function 0 Off 00 0 Fixed to Off. 1 On 02 2 Fixed to On. 2 Off On 00 04 0 4 Cover closed. Cover open. 3 Off On 00 08 0 8 Paper Feed Button is not pressed. Paper Feed Button is pressed. 4 On 10 16 Fixed to On. 5 Off On 00 20 0 32 Printing not stopped due to paper condition. Printing stopped due to paper condition.
Chapter 6: Programming Information A794 Owner’s Guide 4 = Transmit Receipt Paper Status 114 Bit Status Hex Decimal Function 0 Off 00 0 Fixed to Off 1 On 02 2 Fixed to On 2 Off On 00 04 0 4 Paper adequate Paper low (if paper low sensor enabled) 3 Off On 00 08 0 8 Paper adequate Paper low (if paper low sensor enabled) 4 On 10 16 Fixed to On 5 Off On 00 20 0 32 Paper present Paper exhausted 6 Off On 00 40 0 64 Paper present Paper exhausted 7 Off 00 0 Fixed to Off
A794 Owner’s Guide Chapter 6: Programming Information Real Time Request to Printer GS Sequence DLE Sequence ASCII Hexadecimal Decimal GS ETX n 1D 03 n 29 3 n DLE ENQ n 10 05 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. This command includes two sequences: GS and DLE. The operations performed depend on the value of n, according to the following parameters.
Chapter 6: Programming Information A794 Owner’s Guide Real Time Printer Status Transmission ASCII Hexadecimal Decimal GS ENQ 1D 05 29 5 Transmits one byte status of the printer in real time. Value of Byte: Bit Status Hex Decimal Function 0 Off On 00 01 0 1 Paper adequate. Paper low (if paper low sensor enabled). 1 Off On 00 02 0 2 Paper adequate. Paper low (if paper low sensor enabled). 2 Off On 00 04 0 4 Cover closed. Cover open.
A794 Owner’s Guide Chapter 6: Programming Information Auto Status Back Select or Cancel Automatic Status Back (ASB) ASCII Hexadecimal Decimal GS a n 1D 61 n 29 97 n Value of n: Status of ASB Byte 1= printer information Byte 2= error information Byte 3= paper sensor information Byte 4= paper sensor information The bits of n are defined in the table. Bit Off/On Hex Decimal Status for ASB 0 Off On 00 01 0 1 Cash drawer status disabled. Cash drawer status enabled.
Chapter 6: Programming Information A794 Owner’s Guide Select or Cancel Automatic Status Back (ASB) (continued) Exceptions If n = 0, ASB is disabled. Unlike the A793, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the A794 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.
A794 Owner’s Guide Chapter 6: Programming Information Select or Cancel Automatic Status Back (ASB) (continued) Second Byte (Error information) Bit Off/On Hex Decimal Status for ASB 0 - - - Undefined 1 - - - Undefined 2 - - - Undefined 3 Off On 00 08 0 8 No knife error. Knife error occurred. 4 Off 00 0 Not used. Fixed to off. 5 Off On 00 20 0 32 No unrecoverable error. Unrecoverable error occurred. 6 Off 00 0 No recoverable error.
Chapter 6: Programming Information A794 Owner’s Guide Recognizing Data from the Printer An application sending various Real Time and non-Real Time commands to which the printer responds can determine which command a response belongs to by the table below. Responses to ESC u and ESC v are non-Real Time responses and will arrive in the order in which they were solicited.
A794 Owner’s Guide Chapter 6: Programming Information Bar Code Commands 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 576 printable dots on 80 mm paper.
Chapter 6: Programming Information A794 Owner’s Guide Print Bar Code ASCII Hexadecimal Decimal First Variation Second Variation GS k m d1…dk NUL 1D 6B m d1…dk 00 29 107 m d1 dk 0 GS k m n d1…dn 1D 6B m n d1…dn 29 107 m n d1…dn (0 = End of command) Selects the bar code type and prints a bar code for the ASCII characters entered. If the width of the bar code exceeds one line, the bar code is not printed. There are two variations to this command.
A794 Owner’s Guide Chapter 6: Programming Information Print Bar Code (continued) Second Variation Length of Byte Specified at Beginning of String The value of m selects the bar code system as described in the table. When details present in the print buffer, the printer processes the data following m as normal data. The variable d indicates the character code to be encoded into the specified bar code system. See the table.
Chapter 6: Programming Information A794 Owner’s Guide Page Mode Commands Page Mode is one of two modes that the A794 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” in memory before it prints it. Think of this as a virtual page. The page can be any area within certain parameters that you define.
A794 Owner’s Guide Chapter 6: Programming Information Print Data in Page Mode ASCII Hexadecimal Decimal ESC FF 1B 0C 27 12 Collectively prints all buffered data in the printing area. After printing, the printer does not clear the buffered data and sets values for Select Print Direction in Page Mode (1B 54 n) and Set Print Area in Page Mode (1B 57 …), and sets the position for buffering character data. Exceptions This command is enabled only in Page Mode.
Chapter 6: Programming Information A794 Owner’s Guide Select Standard Mode ASCII Hexadecimal Decimal ESC S 1B 53 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.
A794 Owner’s Guide Chapter 6: Programming Information Selects the printing direction and start position in Page Mode. See the illustration on previous page. The command can be sent multiple times so that several different print areas, aligned in different print directions, can be developed in the printer’s page buffer before being printed using the Print Page Mode commands (0C or 1B 0C). Exceptions The command is valid only in Page Mode.
Chapter 6: Programming Information A794 Owner’s Guide Set Absolute Vertical Print Position in Page Mode ASCII Hexadecimal Decimal GS $ nL nH 1D 24 nL nH 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. The vertical or horizontal motion unit for the paper roll is used and the horizontal starting buffer position does not move.
A794 Owner’s Guide Chapter 6: Programming Information Set Relative Vertical Print Position in Page Mode ASCII Hexadecimal Decimal GS \ nL nH 1D 5C nL nH 29 92 nL nH Value: The value for the horizontal and vertical movement cannot be less than the minimum horizontal movement amount, and must be in even units of the minimum horizontal movement amount. Sets the relative vertical print starting position from the current position. This command can also change the horizontal and vertical motion unit.
Chapter 6: Programming Information A794 Owner’s Guide Macro Commands These commands are used to select and perform a user-defined sequence of printer operations. Select or Cancel Macro Definition ASCII Hexadecimal Decimal GS : 1D 3A 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.
A794 Owner’s Guide Chapter 6: Programming Information Execute Macro ASCII Hexadecimal Decimal GS ^ r t m 1D 5E r t m 29 94 r t m Value of r: The number of times to execute the macro. Value of t: The waiting time for executing the macro. Executes a macro. After waiting for a specified period the printer waits for the Paper Feed Button to be pressed. After the button is pressed, the printer executes the macro once. The printer repeats this operation the number of specified times.
Chapter 6: Programming Information A794 Owner’s Guide User Data Storage Commands Write to User Data Storage ASCII Hexadecimal Decimal ESC ‘ m a0 a1 a2 d1 ... dm 1B 27 m a0 a1 a2 d1 ... dm 27 39 m a0 a1 a2 d1 ... dm Value of m: 0 – 255 Writes m bytes of data to the User Data Storage Flash Page at the address specified. The printer waits for m bytes of data following the 3-byte address, addr. If any of the memory locations addressed by this command are not currently erased, the command is not executed.
A794 Owner’s Guide Chapter 6: Programming Information Select Memory Type (SRAM/Flash) Where to Save Logos or User-Defined Fonts ASCII Hexadecimal Decimal GS " n 1D 22 n 29 34 n Value of n: 48 - 51 n = 48 (ASCII n = 0) Loads active logo to RAM only. This is used to print a special logo but not have it take up Flash Memory. A logo defined following this command is not preserved over a power cycle. n = 49 (ASCII n = 1) Loads active logo to Flash Memory.
Chapter 6: Programming Information A794 Owner’s Guide Flash Memory User Sectors Allocation ASCII Hexadecimal Decimal GS " U n1 n 1D 22 55 n1 n2 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. n2 is the number of 64k sectors used for user data storage.
A794 Owner’s Guide Chapter 6: Programming Information Flash Download Commands 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. There are three ways to enter the Download Mode. 1. Powering the printer up with DIP Switch 1 down. 2.
Chapter 6: Programming Information A794 Owner’s Guide Return Boot Sector Firmware Part Number ASCII Hexadecimal Decimal GS NULL 1D 00 29 0 Returns ACK (Hex 06) + 12 bytes ASCII string describing the Flash Memory Boot sector Firmware part number. Ex : 189-1234567A Exceptions Available only in Download Mode. Return Segment Number Status of Flash Memory ASCII Hexadecimal Decimal GS SOH 1D 01 29 1 Returns the size of the Flash used. There may be 4, 8, or 16 sectors (64K each) in Flash Memory.
A794 Owner’s Guide Chapter 6: Programming Information Return Microprocessor CRC ASCII Hexadecimal Decimal GS BEL 1D 07 29 7 Returns the CRC calculated over the boot sector code space. Formulas ACK Erase All Flash Contents Except Boot Sector ASCII Hexadecimal Decimal GS SO 1D 0E 29 14 Causes the entire Flash Memory to be erased. The printer returns ACK if the command is successful; NAK if it is unsuccessful. Exceptions Available only in Download Mode.
Chapter 6: Programming Information A794 Owner’s Guide Download to Active Flash Sector ASCII Hexadecimal Decimal GS DC1 aL aH cL cH d1… dn 1D 11 aL aH cL cH d1… dn 29 17 aL aH cL cH d1… dn Value of aL: low byte of the address Value of aH: high byte of the address Value of cL: low byte of the count Value of cH: high byte of the count Value of d: data bytes, 0-255 Value of n (for number of data bytes) Range of Address (aL aH) Range of Count (cL cH) ((cH * 256) + cL) 0000-FFFF (hexadecimal) 0
A794 Owner’s Guide Index Index —8— 80 mm paper print zones, 27 82.5 mm paper print zones, 29 —A— Accessories.
Index A794 Owner’s Guide —D— —P— Density of print, 30 Description of printer, 2 DOS sending commands, 42 DTR/DSR protocol, 45 Duty cycle limitations, 31 Paper changing, 13 ordering, 22, 27 requirements, 22, 27 suppliers, 22, 27 Paper feed button, 11 Paper jam, 19 Parallel connector IEEE Bi-directional, 48 Parallel interface technical specifications, 48 Power supply ordering, 23 Power supply cable connecting, 10 Print light or spotty, 19 one side missing, 19 vertical column missing, 19 Print columns, 4
A794 Owner’s Guide —R— Real time commands alternate implementation, 110 preferred implementation, 110 Receipt not cut, 19 Reset button, 11 Rotated printing, 91 RS-232C interface, 43 cash drawer connector, 46 communication connectors, 45 parameters, 47 power connector, 46 print speed, 43 print timing, 43 technical specifications, 45 XON/XOFF protocol, 44, 45 —S— Setting switches RS-232C parameters, 47 Specifications Parallel interface, 48 RS-232C interface, 45 Speed, 43 Standard print, 26 Index Supplies
TM A794-D100 189-9200250 A 12/99 AXIOHM is the name and mark of AXIOHM © 1999 AXIOHM Printed in U.S.A.