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 Installations ..............
Contents A794 Owner’s Guide Chapter 5: Communication Interface................................................33 Communication Overview............................................................34 Interface ....................................................................................34 Sending Commands................................................................34 RS-232C Interface ...........................................................................35 Print Speed and Timing..............
Chapter 1: About the Printer ♦ Description of Printer ♦ Models Available Model Identification Communication Interfaces ♦ Installations On a Flat Surface On a Wall On a Flat Surface Vertically ♦ 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 illustration for the features designated 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.5 mm, 512K Flash 5 = 80.
Chapter 1: About the Printer A794 Owner’s Guide Installations You can set up the printer three ways: set it flat on any level surface, mount it vertically on any level surface, or mount it on a wall using a wall-mount kit. Either way, be sure to leave room to open the cover and access the cables.
A794 Owner’s Guide Chapter 1: About the Printer On a Flat Surface Vertically (see note) Note: Clearance must be provided for the cords at the rear of the printer.
Chapter 1: About the Printer A794 Owner’s Guide Options ♦ Knife (Cutter) ♦ Wall Mount ♦ Power Supply: 55 Watt/75 Watt ♦ Power Cords: US, SEV, UK AC Cord, and Australia AC Cord ♦ 1MB memory ♦ Paper Low Sensor ♦ Paper Width ♦ 6 ♦ 82.
Chapter 2: Using the Printer ♦ Printer Controls ♦ Changing Paper ♦ Testing the Printer
Chapter 2: Using the Printer A794 Owner’s Guide Printer Controls LED (Green) Paper Feed Button Reset Button Reset Button Use the Reset Button to reset the printer in case of a jam or fault condition. When the Reset Button is pressed, the printer goes through a startup routine as if it had been turned off, then on again. Paper Feed Button Use the Paper Feed Button to advance the paper. Use the Reset Button with the Paper Feed Button to print the test printout.
A794 Owner’s Guide Chapter 2: Using the Printer 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.
Chapter 2: Using the Printer A794 Owner’s Guide Changing Paper Change the paper when either 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.
A794 Owner’s Guide Chapter 2: Using the Printer 2. Remove the used roll. 3. Tear off the end of the new roll so that the edge is loose.
Chapter 2: Using the Printer A794 Owner’s Guide 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: Be sure the paper unrolls from the bottom of the roll. Otherwise, the printer will not print or the paper will jam. 5. Close the cover and remove the excess paper by tearing it against the tear-off blade. 6. Advance the paper if necessary by pressing the Paper Feed Button.
A794 Owner’s Guide Chapter 2: Using the Printer Testing the Printer Run this test to check the printer. The test prints the settings for several functions, and partially cuts the paper between each variation. The printouts may vary depending on the model. The test ends with a partial cut of the paper, then begins again. Several feet of paper can be used to print one pass of the test. Reset Button Paper Feed Button 1. To start the test, press the Paper Feed Button and Reset Button at the same time.
Chapter 2: Using the Printer 14 A794 Owner’s Guide For more information about See this section Poorly printed test printout “Troubleshooting the Printer” March 1999
A794 Owner’s Guide Chapter 2: Using the Printer 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.
Chapter 2: Using the Printer A794 Owner’s Guide 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 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.27 in.) 322 ft. nominal. 82.5 mm ± .2 mm (3.25 in. ± .02 in.) 90 mm max. (3.27 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 (host) to 9-pin (3 meters—9.8 ft.) A141-0008 RS-232C 9-pin to 9-pin (3 meters—9.8 ft.) A141-0007 Parallel 25-pin to 25-pin (3 meters—9.8 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 Here are the available print modes. ♦ Standard ♦ Compressed ♦ Double High ♦ Double Wide ♦ Upside Down ♦ Rotated ♦ Underlined ♦ Bold ♦ Reverse ♦ Italic ♦ Scaled Size Here are the sizes of the characters for the Standard and Compressed mode. Standard ♦ Characters per Inch: 15.6 ♦ Characters per Line: 44 ♦ Cell Size: 13 x 24 Dots Compressed 22 ♦ Characters per Inch: 20.
A794 Owner’s Guide Chapter 4: Print Specifications Paper Specifications The printer requires qualified thermal thermal paper with the following dimensions: Width Diameter Length 80 mm ± .2 mm (3.15 in. ± .02 in.) 90 mm max. (3.27 in.) 322 ft. nominal. 82.5 mm ± .2 mm (3.25 in. ± .02 in.) 90 mm max. (3.27 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. Print Zones for 82.5 mm Paper Here are the specifications of the 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 inch es) Paper Width = 82.
A794 Owner’s Guide Chapter 4: Print Specifications Character Sets Code Page 437 March 1999 25
Chapter 4: Print Specifications A794 Owner’s Guide Code Page 850 26 March 1999
A794 Owner’s Guide Chapter 4: Print Specifications Code Page 852 March 1999 27
Chapter 4: Print Specifications A794 Owner’s Guide Code Page 858 28 March 1999
A794 Owner’s Guide Chapter 4: Print Specifications Code Page 860 March 1999 29
Chapter 4: Print Specifications A794 Owner’s Guide Code Page 863 f 30 March 1999
A794 Owner’s Guide Chapter 4: Print Specifications Code Page 865 March 1999 31
Chapter 4: Print Specifications A794 Owner’s Guide Code Page 866 32 March 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
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 XON/XOFF Protocol The XON/XOFF characters coordinate the information transfer between the printer and the host computer. The printer sends an XON character when it is ready to receive data and it sends an XOFF character when it cannot accept any more data. The software on the host computer must monitor the communication link as shown in the following flowchart in order to send data at the appropriate times.
A794 Owner’s Guide Chapter 5: Communication Interface RS-232C Technical Specifications This section describes the pin settings for the connectors and the RS-232C interface parameters. The RS-232C parameters are selected through the configuration menu feature. The RS-232C parameters must match those of the host computer.
Chapter 5: Communication Interface A794 Owner’s Guide Cash Drawer Connector The following illustration shows the pinouts for the cash drawer connector. Pin 1 Pin 6 The following table shows the pinouts for the cash drawer. The connector can support two cash drawers with a Y cable, and is located at the rear of the printer.
A794 Owner’s Guide Chapter 5: Communication Interface 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 5: Communication Interface 40 A794 Owner’s Guide March 1999
Chapter 6: Programming Information ♦ List of Commands ♦ Comparisons ♦ Command Descriptions Command Conventions Printer Function Commands Vertical Positioning and Print Commands Horizontal Positioning Commands Print Characteristics Commands Graphics Commands Printer Status Commands Real Time Commands Bar Code Commands Page Mode Commands Macro Commands Flash Download Commands
Chapter 6: Programming Information A794 Owner’s Guide Commands control all operations and functions of the printer; from selecting the size and placement of characters and graphics on the receipt to feeding and cutting the paper.
A794 Owner’s Guide Chapter 6: Programming Information Code (Hexadecimal) Command Page 1B 25 n Select Character Set 70 1B 26 s c1 c2 n1 d1...nn dn] Define User-Defined Character Set 71 1B 2A m n1 n2 d1...
Chapter 6: Programming Information 44 A794 Owner’s Guide Code (Hexadecimal) Command Page 1D 02 nn Select Flash Memory Sector to Download 124 1D 03 n Real Time Request to Printer 103 1D 04 n Real Time Status Transmission 104 1D 05 Real Time Printer Status Transmission 107 1D 06 Get Firmware CRC 124 1D 07 Return Boot Sector CRC 124 1D 0E Erase All Flash Contents Except Boot Sector 125 1D 0F Return Main Program Flash CRC 125 1D 10 n Erase Selected Flash Sector 125 1D 11 al ah c
A794 Owner’s Guide Chapter 6: Programming Information Comparisons The following table details the list of commands whose behavior differs from the A793(A756) and the A794(A758) because of the physical differences of a 6 dots/mm head (A793/A756) versus an 8 dots/mm head (A794/A758). 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.
Chapter 6: Programming Information A794 Owner’s Guide Command Descriptions Command Conventions The following information describes how each command is organized: Command Name A descriptive name (not the ASCII code) used to identify the command. Description A brief summary of the command, followed by more detailed information, if necessary.
A794 Owner’s Guide Chapter 6: Programming Information Printer Function Commands The printer function commands control the following basic printer functions and are described in order of their hexadecimal codes: ♦ Printing ♦ Feeding the paper ♦ Resetting the printer ♦ Cutting the paper ♦ Opening the cash drawers ♦ Defining the print area Clear Printer Clears the print line buffer without printing and sets the printer to the following condition: ♦ Double-Wide command (12) is canceled ♦ Line S
Chapter 6: Programming Information A794 Owner’s Guide Perform Partial Knife Cut Partially cuts the receipt. The length of the cut can be changed through the configuration menu. The default setting leaves .20 inches (5 mm) of paper on the left edge. See Setting Partial Cut Distance in Diagnostics. There are two codes for this command. Both codes perform the same function. ASCII Hexadecimal Decimal SUB 1A 26 ESC m 1B 6D 27 109 Formulas The cut edge is 144 dot rows or .
A794 Owner’s Guide Chapter 6: Programming Information Select Print Mode Selects the print mode: standard, compressed, emphasized, underlined, double high, or double wide.
Chapter 6: Programming Information A794 Owner’s Guide Select Peripheral Device (for Multi-Drop) Selects the device to which the host computer sends data. ASCII Hexadecimal Decimal ESC = n 1B 3D n 27 61 n Value of n 0 (bit 0), device not selected 1 (bit 0), device selected Default 1 (bit 0), device selected Related Information Other bits of n (1-7) are undefined and ignored. When the printer is disabled by this command, it ignores transmitted data until the printer is re-enabled by the same command.
A794 Owner’s Guide Chapter 6: Programming Information Select Paper Sensors to Output Paper End Signals Specifies the paper sensor to output a paper end signal. Multiple sensors may be selected to signal when paper has run out. When multiple sensors have been selected, anytime one of the sensors detects a paper end, the paper end signal is output. When this command is executed a sensor is switched. The paper end signal switching is delayed depending on the receive buffer state.
Chapter 6: Programming Information A794 Owner’s Guide Select Sensors to Stop Printing Selects the paper sensor used to detect when the paper is out. The printer finishes printing the current line and feeds the paper before stopping. 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.
A794 Owner’s Guide Chapter 6: Programming Information Read from Non-Volatile Memory Reads a two-byte word from location k in history EEROM. The printer returns the word at the next available opportunity. ASCII Hexadecimal Decimal ESC j k 1B 6A k 27 106 k Range of k 0-63 (Decimal) Generate Pulse to Open Cash Drawer Sends a pulse to open the cash drawer.
Chapter 6: Programming Information A794 Owner’s Guide Write to Non-Volatile Memory (NVRAM) Writes two-byte word, n1 n2, to location k in history EEROM. ASCII Hexadecimal Decimal ESC s n1 n2 k 1B 73 n1 n2 k 27 115 n1 n2 k Value of n1 1 Byte Value of n2 2 Byte Range of k 0-63 (Decimal) st nd Select Cut Mode and Cut Paper Selects a mode for cutting paper and cuts the paper. There are two formats for this command, one requiring one parameter m, the other requiring two parameters m and n.
A794 Owner’s Guide Chapter 6: Programming Information 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 Prints one line from the buffer and feeds paper one line. ASCII Hexadecimal Decimal LF 0A 10 Activate Carriage Return Prints one line from the buffer and feeds paper one line. The printer can be set through the configuration menu to ignore or use this command.
Chapter 6: Programming Information A794 Owner’s Guide Feed n Dot Rows Feeds the paper n dot rows (n/203 inch, n/8 mm), without printing. ASCII Hexadecimal Decimal NAK n 15 n 21 n Value of n n/203 inch Range of n 0-255 Add n Extra Dot Rows Adds n extra dot rows (n/203 inch, n/8 mm) to the character height to increase space between print lines or decrease the number of lines per inch.
A794 Owner’s Guide Chapter 6: Programming Information Print Prints one line from the buffer and feeds paper one line. ASCII Hexadecimal Decimal ETB 17 23 Set Column Prints the first character of the next print line in column n. It must be sent for each line not printed at column one. The value of n is set to one after each line.
Chapter 6: Programming Information A794 Owner’s Guide Set Line Spacing Sets the line spacing to n/406 inch (n/16 mm). The minimum line spacing is 8.5 lines per inch. The line spacing equals the character height when n is too small. If the Set Horizontal and Vertical Minimum Motion Units command (1D 50) is used to change the horizontal and vertical minimum motion unit, the parameters of this command (Set Line Spacing) will be interpreted accordingly.
A794 Owner’s Guide Chapter 6: Programming Information Print and Feed n Lines Prints one line from the buffer and feeds paper n lines at the current line height.
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. Horizontal Tab Moves the print position to the next tab position set by the Set Horizontal Tab Positions (1B 44 n1 n2 ... 00) command. The print position is reset to column one after each line.
A794 Owner’s Guide Chapter 6: Programming Information Set Absolute Starting Position Sets the print starting position to the specified number of dots (up to the right margin) from the beginning of the line. The print starting position is reset to the first column after each line.
Chapter 6: Programming Information A794 Owner’s Guide Set Horizontal Tab Positions Sets up to 32 horizontal tab positions n columns from column one, but does not move the print position. See the Horizontal Tab command (09). The tab positions remain unchanged if the character widths are changed after the tabs are set. The command ends with hexadecimal 00; hexadecimal 1B 44 00 clears all tabs.
A794 Owner’s Guide Chapter 6: Programming Information Set Relative Print Position Moves the print starting position the specified number of dots either right (up to the right margin) or left (up to the left margin) of the current position. The print starting position is reset to the first column after each line.
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 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). This command is described below. The width of the printing area is set by the Set Printing Area Width command (1D 57), which follows this command.
Chapter 6: Programming Information A794 Owner’s Guide Set Horizontal and Vertical Minimum Motion Units Sets the horizontal and vertical motion units to 1/x inch and 1/y inch respectively. When x or y is set to 0, the default setting for that motion unit is used.
A794 Owner’s Guide Chapter 6: Programming Information Set Printing Area Width 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. The horizontal motion units are set by the Set Horizontal and Vertical Minimum Motion Units command (1D 50), which is described earlier in this document.
Chapter 6: Programming Information A794 Owner’s Guide 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. Select Double-Wide Characters Prints double-wide characters. The printer is reset to single-wide mode after a line has been printed or the Clear Printer (10) command is received.
A794 Owner’s Guide Chapter 6: Programming Information Select 90 Degree Counter-Clockwise Rotated Print Rotates characters 90 degrees counter-clockwise. The command remains in effect until the printer is reset or until a Clear Printer (10) or Cancel Rotated Print (1B 56) command is received. ASCII Hexadecimal Decimal ESC DC2 1B 12 27 18 Related Information See “Summary of Rotated Printing” in this document.
Chapter 6: Programming Information A794 Owner’s Guide Select Character Set Selects the character set. When an undefined RAM character is selected, current active ROM Code Page character is used. See the Printing Specification Guide for the character sets.
A794 Owner’s Guide Chapter 6: Programming Information Define User-Defined Character Set 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, n2) aborts the command. ASCII Hexadecimal Decimal ESC & s c1 c2 n1 d1 ... nn dn] 1B 26 s c1 c2 n1 d1 ... nn dn] 27 38 s c1 c2 n1 d1 ...
Chapter 6: Programming Information A794 Owner’s Guide Select or Cancel Underline Mode Turns underline mode on or off. Underlines cannot be printed for spaces set by the Horizontal Tab, Set Absolute Start Position, or Set Relative Print Position commands. This command and the Select Print Mode(s) command (1B 21) turn underline on and off in the same way.
A794 Owner’s Guide Chapter 6: Programming Information Copy Character Set from ROM to RAM Copies characters in the active ROM set to RAM. Use this command to re-initialize the User-Defined Character Set.
Chapter 6: Programming Information A794 Owner’s Guide Select or Cancel Emphasized Mode Starts or stops emphasized printing. The printer is reset to the standard print mode after a Clear Printer (10) command is received. ASCII Hexadecimal Decimal ESC E n 1B 45 n 27 69 n Value of n 0 = Off 1 = On (When 0 and 1 are the Least Significant Bit, LSB) Default 0 (Off) Exceptions Only the lowest bit of n is effective. Emphasized printing cannot be used with bit-images or downloaded bit-images.
A794 Owner’s Guide Chapter 6: Programming Information Select or Cancel Italic Print Turns Italic print mode on or off. The printer is reset to the standard print mode after a Clear Printer (10) command is received. 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) Exceptions Only the lowest bit of n is valid. Select Character Code Table Selects the character set to be used.
Chapter 6: Programming Information A794 Owner’s Guide Select International Character Set See the previous command, Select Character Code Table (page 72) Select or Cancel 90 Degree Clockwise Rotated Print Rotates characters 90 degrees clockwise. The command remains in effect until the printer is reset or until a Clear Printer (10) or Rotated Print (1B 12) command is received. See Summary of Rotated Printing in this document.
A794 Owner’s Guide Chapter 6: Programming Information Select Or Cancel White/Black Reverse Print Mode Turns on White/Black reverse printing mode. In White/Black reverse printing mode, print dots and non-print dots are reversed, which means that white characters are printed on a black background. When the White/Black reverse printing mode is selected it is also applied to character spacing which is set by Right-Side Character Spacing (ESC SP).
Chapter 6: Programming Information A794 Owner’s Guide Select Superscript or Subscript Modes 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,…) 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) Exceptions This command is ignored if n is out of the specified range.
A794 Owner’s Guide Chapter 6: Programming Information Graphics Commands These commands are used to enter and print graphics data and are described in order of their hexadecimal codes. Print Raster Graphics Prints one row of data. n1 . .. nl: bytes describing the line to print. ASCII Hexadecimal Decimal DC1 n1 ...nl 11 n1 ...n72 17 n1 ...nl Value of n n1…n72 = Data bytes Range 0-255 Exceptions Raster graphics is not available in Page Mode.
Chapter 6: Programming Information A794 Owner’s Guide Set Absolute Starting Position Sets the print starting position for graphics at the specified number of dots from the beginning of the line. The print starting position is reset to column one after each line. If the Set Horizontal and Vertical Minimum Motion Units command (1D 50) is used to change the horizontal and vertical minimum motion unit, the parameters of this command (Set Absolute Starting Position) will be interpreted accordingly.
A794 Owner’s Guide Chapter 6: Programming Information Select Bit Image Mode Sets the print resolution and enters one line of graphics data into the print buffer. Excess data is accepted but ignored. Any print command is required to print the data, after which the printer returns to normal processing mode. See the illustration for graphic representations of the bit image. 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.
Chapter 6: Programming Information A794 Owner’s Guide Select Bit Image Mode (continued) 24-Dot Single-Density Mode Top of Bit Image d1 d4 d7 MSB d2 d5 dn d3 d6 dn LSB Select Single-Density Graphics Enters one line of 8-dot single-density graphics into the print buffer. Any print command is required to print the line, after which the printer returns to normal processing mode. Single-density mode allows 0-288 dot columns. The number of bytes sent is represented by the formulas in the table.
A794 Owner’s Guide Chapter 6: Programming Information Select Double-Density Graphics Enters one line of 8-dot double-density graphics into the print buffer. Any print command is required to print the line, after which the printer returns to normal processing mode. Double-density mode allows 0-576 dot columns. The number of bytes sent is represented by the formulas in the table. Each bit corresponds to one horizontal dot. Compare to Set Bit Image Mode (1B 2A, m=1) earlier in this document.
Chapter 6: Programming Information A794 Owner’s Guide Select the Current Logo 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 Enters a downloaded bit image (such as a logo) into RAM or Flash with the number of dots specified by n1 and n2. The downloaded bit image is available until power is turned off, another bit image is defined, or either Initialize Printer (1B 40), command is received. See the illustration below for a graphic representation of the downloaded bit image. Column Top of Graphic One Column 72 x 8 Max.
Chapter 6: Programming Information A794 Owner’s Guide Print Downloaded Bit Image 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. See the illustration on the previous page for a representation of the bit image.
A794 Owner’s Guide Chapter 6: Programming Information Printer Status Commands These commands enable the printer to communicate with the host computer following the selected handshaking protocol, either DTR/DSR or XON/XOFF. They are stored in the printer's data buffer as they are received, and are handled by the firmware in the order in which they were received. When a fault occurs, the printer will go busy at the RS-232C interface and not respond to either of the Printer Status commands.
Chapter 6: Programming Information A794 Owner’s Guide Request Alternate Status (parallel printers only) This command allows the printer to inform the host when the data in the buffer has been processed. When this command is sent to the printer, the printer goes “Busy” until all data which has been sent to the printer has been processed. The PAPER EXHAUST line shows the status for the cash drawer or receipt paper as shown in the table.
A794 Owner’s Guide Chapter 6: Programming Information Transmit Paper Sensor Status Sends status data to the host computer. The printer sends one byte to the host computer when it is not busy or in a fault condition. See the following table.
Chapter 6: Programming Information A794 Owner’s Guide Transmit Printer ID Transmits the printer ID specified by n. This command is a batch mode command; that is, the response is transmitted after all prior data in the receive buffer has been processed. There may be a time lag between the printer receiving this command and transmitting the response, depending on the receive buffer status.
A794 Owner’s Guide Chapter 6: Programming Information Transmit Printer ID, Remote Diagnostics Extension Performs the remote diagnostic functions specified by n.
Chapter 6: Programming Information 92 A794 Owner’s Guide Value of n Hex Dec Remote diagnostic item Function 31 49 Flash firmware part # Not available, cannot write to ROM 32 50 Flash firmware part # Not available, cannot write to ROM 33 51 Flash firmware part #, 12 digit ASCII Return Flash firmware part #, returns 14 bytes 34 52 Flash firmware CRC Not available, cannot write to ROM 35 53 Flash firmware CRC Not available, cannot write to ROM 36 54 Flash firmware CRC Not available
A794 Owner’s Guide Chapter 6: Programming Information Value of n Hex Dec Remote diagnostic item Function 95 149 Boot firmware version Not available 96 150 Boot firmware version Not available 97 151 Boot firmware version Return Boot firmware version, returns 6 bytes A0 160 Flash firmware version Not available A1 161 Flash firmware version Not available A2 162 Flash firmware version Not available A3 163 Flash firmware version Return Flash firmware version, returns 6 bytes A4
Chapter 6: Programming Information A794 Owner’s Guide Select or Cancel Automatic Status Back (ASB) Enables or disables automatic status back (ASB) and specifies the status items. This command is a batch mode command; that is, it is processed after all prior data in the receive buffer has been processed. There may be a time lag between the printer receiving this command and changing the ASB response, depending on the receive buffer status.
A794 Owner’s Guide Chapter 6: Programming Information Select or Cancel Automatic Status Back (ASB) (continued) 0 (ASB disabled) Default Exceptions If n = 0, ASB is disabled. Related Information When the printer is disabled by the Select Peripheral Device command (1B 3D), this command (Enable/Disable Automatic Status Back) is disabled but Automatic Status Back is not disabled.
Chapter 6: Programming Information A794 Owner’s Guide 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.
A794 Owner’s Guide Chapter 6: Programming Information Transmit Status Transmits the status specified by n. This is a batch mode command which transmits the response after all prior data in the receive buffer has been processed. There may be a time lag between the printer receiving this command and transmitting the response, depending on the receive buffer status.
Chapter 6: Programming Information A794 Owner’s Guide Transmit Status (continued) Cash Drawer Status (n = 2 or n = 50) Bit Off/On Hex Decimal Status for Transmit Status 0 Off On 00 01 0 1 One or both cash drawers open. Both cash drawers closed. 1 Off On 00 02 0 2 One or both cash drawers open. Both cash drawers closed. 2 - - - Undefined 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 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: 1.234.56 (8 bytes). The boot version is 1.23. The flash version is 4.56. ASCII Hexadecimal Decimal AX V 1F 56 31 86 Print Test Form Prints the current printer configuration settings on the receipt.
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 original Printer Status commands, Transmit Printer Status (Hex 1
A794 Owner’s Guide Chapter 6: Programming Information Moving Data through the Buffer Applications should not let the buffer fill up with Real Time commands when the printer is busy at the RS-232C interface. A busy condition at the RS-232C interface can be determined by bit 3 of the response to GS ENQ or GS EOT 1 or DLE EOT 1. The reason for a particular busy condition can be determined by other responses to GS EOT n or DLE EOT n.
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 Real Time Request to Printer 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 Status Transmission Transmits the selected one byte printer status specified by n in Real Time according to the following parameters. This command includes two sequences: GS and DLE.
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 Real Time Status Transmission (continued) 4 = Transmit Receipt Paper Status 106 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 Pa
A794 Owner’s Guide Chapter 6: Programming Information Real Time Printer Status Transmission Transmits one byte status of the printer in real time. ASCII Hexadecimal Decimal GS ENQ 1D 05 29 5 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.
Chapter 6: Programming Information A794 Owner’s Guide Bar Code Commands These commands format and print bar codes and are described in order of their hexadecimal codes. Select Printing Position of HRI Characters Prints HRI (Human Readable Interface) characters above or below the bar code.
A794 Owner’s Guide Chapter 6: Programming Information Select Bar Code Height Sets the bar code height to n dots or n/203 inch (n/8 mm). ASCII Hexadecimal Decimal GS h n 1D 68 n 29 104 n Value of n Number of dots Range of n 1-255 Default 216 Print Bar Code 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.
Chapter 6: Programming Information A794 Owner’s Guide Print Bar Code (continued) Values First Variation: String terminated with NULL Character M Bar Code D n, Length 0 UPC-A 48- 57 (ASCII numerals) Fixed Length: 11, 12 1 UPC-E 48- 57 Fixed Length: 11, 12 2 JAN13 (EAN) 48- 57 Fixed Length: 12, 13 3 JAN8 (EAN) 48- 57 Fixed Length: 7,8 4 Code 39 48- 57, 65- 90 (ASCII alphabet), 32, 36, 37, 43, 45, 46, 47 (ASCII special characters) d1 = dk = 42 (start/stop code is supplied by printer if
A794 Owner’s Guide Chapter 6: Programming Information Print Bar Code (continued) m Bar Code D n, Length 65 UPC-A 48- 57 (ASCII numerals) Fixed Length: 11, 12 66 UPC-E 48- 57 Fixed Length: 11, 12 67 JAN13 (EAN) 48- 57 Fixed Length: 12, 13 68 JAN8 (EAN) 48- 57 Fixed Length: 7, 8 69 CODE39 48- 57, 65- 90 (ASCII alphabet), 32, 36, 37, 43, 45, 46, 47 (ASCII special characters) d1 = dk = 42 (start/stop code is supplied by printer if necessary) Variable 70 Interleaved 2 of 5 (ITF) 48- 5
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 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 (ESC T) and Set Print Area in Page Mode (ESC W), and sets the position for buffering character data. ASCII Hexadecimal Decimal ESC FF 1B 0C 27 12 Exceptions This command is enabled only in page mode.
Chapter 6: Programming Information A794 Owner’s Guide Select Standard Mode 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 (ESC W) is initialized and the print position is set to the beginning of the line.
A794 Owner’s Guide Chapter 6: Programming Information Select Print Direction in Page Mode Selects the printing direction and start position in page mode. See the illustration. 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 (FF or ESC FF).
Chapter 6: Programming Information A794 Owner’s Guide Set Print Area in Page Mode Sets the position and size of the printing area in page mode. 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(FF or ESC FF). ASCII Hexadecimal Decimal ESC W n1, n2 ...n8.] 1B 57 n1, n2 ...n8] 27 87 n1,n2 ...
A794 Owner’s Guide Chapter 6: Programming Information Select Character Size Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 6, as follows: 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 0
Chapter 6: Programming Information A794 Owner’s Guide Select Character Size (continued) Value of n 1-8 = vertical number of times normal font 1-8 = horizontal number of times normal font Range of n 0-255 Default of n 11 hexadecimal Exceptions If n is out of the defined range, this command is ignored. Set Absolute Vertical Print Position in Page Mode Sets the absolute vertical print starting position for buffer character data in page mode.
A794 Owner’s Guide Chapter 6: Programming Information Set Relative Vertical Print Position in Page Mode Sets the relative vertical print starting position from the current position. This command can also change the horizontal and vertical motion unit. The unit of horizontal and vertical motion is specified by this command. This command functions as follows, depending on the print starting position set by Select Print Direction in Page Mode (ESC T): 1.
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 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. The macro definition is cleared, during definition of the macro when the Execute Macro (GS ^) command is received.
A794 Owner’s Guide Chapter 6: Programming Information Execute 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. When the macro is executed by pressing the Paper Feed Button (m = 1), paper cannot be fed by using the Paper Feed Button.
Chapter 6: Programming Information A794 Owner’s Guide Flash Download Commands These commands are used to load firmware into the printer. There are three ways to enter the download mode. 1. Powering the printer up with DIP Switch 1 down. 2. While the printer is running normally, send the command, “Switch to Flash Download Mode (1B 5B 7D)” to leave normal operation and enter the download mode. 3.
A794 Owner’s Guide Chapter 6: Programming Information Switch to Flash Download Mode Puts the printer in flash download mode in preparation to receive commands controlling the downloading of objects into flash memory. When this command is received, the printer leaves normal operation and can no longer print transactions until the Reboot the Printer command (1D FF) is received or the printer is rebooted. This command does not affect the current communication parameters.
Chapter 6: Programming Information A794 Owner’s Guide Select Flash Memory Sector to Download Selects the flash sector (nn) for which the next download operation applies. The values of the possible sector are restricted, depending upon the flash part type. The printer transmits an ACK if the sector number is acceptable or an NAK if the sector number is not acceptable.
A794 Owner’s Guide Chapter 6: Programming Information Erase All Flash Contents Except Boot Sector Causes the entire flash memory to be erased. The printer returns ACK if the command is successful; NAK if it is unsuccessful. ASCII Hexadecimal Decimal GS SO 1D 0E 29 14 Exceptions Available only in download mode. Return Main Program Flash CRC Returns the CRC calculated over the flash firmware code space. The format of the response is ACK .
Chapter 6: Programming Information A794 Owner’s Guide Download to Active Flash Sector Contains a start address (ah x 256 + al) and count (ch x 256 + cl) of binary bytes to load into the selected sector, followed by that many bytes. The start address is relative to the start of the sector. Addresses run from 0 to 64K. The printer may return one of several responses. ACK means that the data was written correctly and the host should transmit the next block.
A794 Owner’s Guide Chapter 6: Programming Information Select Memory Type (SRAM/Flash) Where to Save Logos or User-Defined Fonts Specifies whether to load the logos or user-defined characters to flash memory or to RAM (volatile memory). The selection remains in effect until it is changed via this command or until the power cycles. 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.
Chapter 6: Programming Information A794 Owner’s Guide Erase User Flash Sector Erases a page of flash memory and sends a carriage return when the operation is complete. ASCII Hexadecimal Decimal GS @ n 1D 40 n 29 64 n Value of n 49-50 n = 49 (ASCII n = 1) This command erases the entire 64K page available for user-defined characters and multiple logos.
A794 Owner’s Guide Index Index —8— 80 mm paper print zones, 23 82.5 mm paper print zones, 24 —A— Accessories.
Index —I— IEEE Bi-directional Parallel connector communication connector, 39 Interface.
A794 Owner’s Guide two-tone beep, 15 Index ordering, 20 —W— —X— Wall-mount kit XON/XOFF protocol, 36 March 1999 131
Index 132 A794 Owner’s Guide March 1999
TM A794-D100 189-9200223 0399 AXIOHM is the name and mark of AXIOHM © 1999 AXIOHM Printed in U.S.A.