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.
Page 3
24 Vdc, 2.3 A. Use of this product with a power supply other than the Axiohm power supply will require you to test the power supply and Axiohm printer for FCC and CE mark certification. Communication Interface Cable A shielded (360-degree) interface cable must be used with this product. The shield must be connected to the frame or earth ground connection or earth ground reference at EACH end of the cable.
A794 Owner’s Guide Contents Chapter 1: About the Printer ... 1 Description of Printer ... 2 Models Available ... 3 Model Identification ... 3 Communication Interfaces... 3 Features ... 4 Options ... 4 Chapter 2: Using the Printer... 5 Unpack the Printer... 6 Remove the Starter Paper Roll Supports ...
Page 5
Vertical Positioning and Print Commands ...68 Horizontal Positioning Commands ...72 Print Characteristics Commands ...79 Graphics Commands ...92 Status Commands ...101 Bar Code Commands...121 Page Mode Commands ...124 Macro Commands...130 User Data Storage Commands ...132 Flash Download Commands ...135 Index ...139 A794 Owner’s Guide December 1999...
Chapter 1: About the Printer 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 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...
Host-selectable 44 or 56 columns of print on 80 mm wide thermal paper. 8 dots/mm Up to 130 mm/second throughput. Speaker for software-generated tone. Drop-in paper loading. Configuration Menu for easy configuration. Connector for one or two cash drawers (use a “Y” cord for two drawers.) December 1999 A794 Owner’s Guide...
Chapter 2: Using the Printer Unpack the Printer Choose a Location Connect the Cables Printer Controls Loading Receipt Paper Configuring the Printer Troubleshooting the Printer Remove the Starter Paper Roll Supports On a Flat Surface On a Wall Communication Cable...
Chapter 2: Using the Printer Unpack the Printer Save all packing materials for use if printer needs to be repacked. Check that all items listed were shipped. For a single pack (multi-packs differ in packing configuration): Printer enclosed in a plastic bag with foam packing material...
A794 Owner’s Guide Remove the Starter Paper Roll Supports Starter Roll Thermal Paper Open the Rear Cover by pushing up on each side of the cover until it unsnaps. Remove the Test Printout. Lift the Starter Paper Roll out of the paper bucket and slide the two Paper Roll Supports off.
Chapter 2: Using the Printer 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.
A794 Owner’s Guide 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)
(see illustration on previous page.) Note: If your system has two cash drawers, attach a Y-cable to the printer’s Cash Drawer Connector as shown. b. Leave some slack in the cord to route through the Strain Relief at a later time.
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.
Page 17
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. For more information about...
Green LED flashes (quick flash) indicating the paper is out. Change the paper immediately or data may be lost. Caution: Do not operate the printer or host computer if the printer runs out of paper. The printer will not operate without paper, but it may continue to accept data from the host computer.
Page 19
Chapter 2: Using the Printer Remove the used paper roll. Tear off the end of the new roll so that the edge is loose. A794 Owner’s Guide December 1999...
Page 20
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.
Parameters?”. Select Yes or No. If answer Yes is selected, return DIP Switch 1 to OFF position (up.) b. Repeat Steps 3 and 4 above. If answer NO is selected, printer returns to the menu to set parameters again. Paper Feed Button Back of Printer Diagnostic printout verifies new settings.
Page 22
A794 Owner’s Guide For more information about Poorly printed test printout Chapter 2: Using the Printer See this section “Troubleshooting the Printer” December 1999...
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 Printing Problems Problem Possible Causes Colored stripe on the Paper is low. receipt. Receipt does not come Paper is jammed. out all the way. Printer starts to print, Paper is jammed. but stops while the receipt is being printed.
Page 25
Chapter 2: Using the Printer A794 Owner’s Guide This page intentionally left blank. December 1999...
Chapter 3: Media and Supplies Guide Ordering Thermal Paper Ordering Miscellaneous Supplies Thermal Paper Specifications Manufacturers How to Order Ordering Cash Drawers Ordering Power Supply and Power Cord Ordering Communication Cables Wall-Mount Kit...
Chapter 3: Media and Supplies Guide Ordering Thermal Paper Thermal Paper Specifications The printer requires qualified thermal paper with the following dimensions: Width 80 mm ± .2 mm (3.15 in. ± .02 in.) 82.5 mm ± .2 mm (3.25 in. ± .02 in.) The paper must not be attached at the core.
A794 Owner’s Guide Ordering Miscellaneous Supplies Ordering Cash Drawers Order cash drawers from the following suppliers: Cash Drawers M-S Cash Drawer Corp. APG Cash Drawer Indiana Cash Drawer Ordering Power Supply and Power Cord Contact your sales representative to order the power supply and power cords listed in the table.
RS-232C 9-pin female (ferrite-host) to 9-pin female (printer) IEEE-1284 Parallel 25-pin male to 25-pin male Wall-Mount Kit Contact your sales representative to order the wall-mount kit. Printer wall-mount kit: A794-K260 A794 Owner’s Guide Length Order Number (2 meters—6.6 ft.) A141-0005 (6 meters—19.7 ft.)
Chapter 4: Print Specifications Characters Paper Specifications Print Zones Print Density and Density of Receipt Print Lines Duty Cycle Restrictions (Printing Solid Blocks) Character Sets Print Modes Size Print Zones for 80 mm Paper Print Zones for 82.5 mm Paper Code Page 437 Code Page 850 Code Page 852...
Cell Size: 13 x 24 Dots Compressed Characters per Inch: 20.3 Characters per Line: 56 Cell Size: 10 x 24 Dots For more information about Programming the printer to print the various print modes. See this section “Programming Information” December 1999 A794 Owner’s Guide...
A794 Owner’s Guide Paper Specifications The printer requires qualified thermal paper with the following dimensions: Width 80 mm ± .2 mm (3.15 in. ± .02 in.) 82.5 mm ± .2 mm (3.25 in. ± .02 in.) 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.
Page 33
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. December 1999...
A794 Owner’s Guide 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)
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. Consult your Axiohm technical support specialist if you have any questions.
A794 Owner’s Guide 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.
For example, LPRINT CHR$(&H12); "ABC"; CHR$(&H0A) sends the hexadecimal numbers 12 41 42 43 0A to the printer. This causes the printer to set itself to double wide mode (12), load the print buffer with “ABC” (41 42 43), and finally, print (0A).
Example: 20 characters/line, with 20 lines = 0.5 seconds process time for the printer. It takes 1.2 seconds to send the data to the printer at 19.2K baud speed with a 50ms delay after each line. Thus the printer would have to wait 0.7 seconds longer to receive the data that it could process it if no delays existed and the transmission speed were faster.
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 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.
Page 51
The following illustration shows the pinouts for the cash drawer connector. Pin 1 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. Pin Number 3 Not Used...
Page 52
Parity Flow Control Method Data Reception Errors Generally the printer is shipped with all the RS-232C parameters pre-set at the factory. If you need to change any of these settings, you can do so using the configuration menu feature. This feature prints instructions on the receipt for changing the RS-232C settings (in addition to other settings).
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 Comparisons Command Descriptions By Command Code By Function Printer Function Commands Vertical Positioning and Print Commands Horizontal Positioning Commands Print Characteristics Commands Graphics Commands Status Commands Batch Mode Real Time...
The command operand default after printer reset. Brief description and summary of the command. Any formulas used for this command. Describes any exceptions to this command, for example: incompatible commands. Describes related information for this command, for example: bit information. December 1999 A794 Owner’s Guide...
A794 Owner’s Guide 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. The operation of various printers may be emulated by the commands,...
Enable or Disable Panel Button Print and Feed n Lines Perform Full Knife Cut Read from Non-Volatile Memory Perform Partial Knife Cut Generate Pulse to Open Cash Drawer Write to Non-Volatile Memory (NVRAM) Select Character Code Table December 1999 A794 Owner’s Guide Page...
Page 58
A794 Owner’s Guide Code (Hexadecimal) 1B 75 n 1B 75 0 1B 76 1B 7B n 1D 00 1D 01 1D 02 n 1D 03 n 1D 04 n 1D 05 1D 06 1D 07 1D 0E 1D 0F 1D 10 n 1D 11 aL aH cL cH d1...dn...
Page 59
Print Bar Code Print Bar Code Transmit Status Select Bar Code Width Reset Firmware Convert 6 Dots/mm Bitmap to 8 Dots/mm Bitmap Select Superscript or Subscript Modes Send Printer Software Version Print Test Form December 1999 A794 Owner’s Guide Page...
A794 Owner’s Guide By Function All items in BOLD are new or have additional functionality when compared to the A793. Printer Function Commands Code (Hexadecimal 1B 07 1B 3D n 1B 40 1B 63 33 n 1B 63 34 n...
Page 61
Select or Cancel 90 Degrees Clockwise Rotated Print Select International Character Set Select or Cancel Upside Down Printing Mode Select Character Size Select or Cancel White/Black Reverse Print Mode Select or Cancel Smoothing Mode Select Superscript or Subscript Modes December 1999 A794 Owner’s Guide Page Page...
Page 62
A794 Owner’s Guide Graphics Commands Code (Hexadecimal 11 n1 … n72 1B (+*.bmp) 1B 2A m n1 n2 d1…dn 1B 2E m n rL rH d1 … dn 1B 4B n1 n2 d1…dn 1B 59 n1 n2 d1…dn 1D 23 n 1D 2A n1 n2 d1…dn]...
Page 63
Read from User Data Storage Read from Non-Volatile Memory Write to Non-Volatile Memory (NVRAM) Select Memory Type (SRAM/Flash) Where to Save Logos or User-Defined Fonts Flash Memory User Sectors Allocation Erase User Flash Sector December 1999 A794 Owner’s Guide Page Page Page Page...
Chapter 6: Programming Information 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...
A DLE command followed by a 04 or 05 is interpreted as a “Real Time Command”. (See Real Time Command.) Related Information This command is recognized in A793 Emulation and A794 Native Mode, ignored in TM-T88 Emulation. Perform Full Knife Cut...
Page 67
ASCII Hexadecimal Decimal Generates an audible tone. Performed by the printer to signal certain conditions. Related Information This command is recognized in A793 Emulation and A794 Native Mode, ignored in TM-T88 Emulation. Select Peripheral Device (for Multi-Drop) ASCII Hexadecimal Decimal...
Page 68
Hexadecimal Decimal Default: Clears the print line buffer and resets the printer to the default settings for the startup configuration (refer to Default settings below). Single-Wide, Single-High, Non-Rotated, and Left-Aligned characters are set and User- defined characters or logo graphics are cleared. (Flash Memory is not affected.) Tabs reset to default.
Paper roll near-end sensor enable Paper roll near end sensor disabled Paper roll near end sensor enabled Paper roll end sensor disabled Paper roll end sensor enabled Paper roll end sensor disable Paper roll end sensor enabled Undefined 1-255 December 1999 A794 Owner’s Guide...
Page 70
A794 Owner’s Guide Select Sensors to Stop Printing ASCII Hexadecimal Decimal Value of n: Bits 5 and 7 are not used. Default: Determines which sensor stops printing on the respective station. The command does not affect the paper out status on the receipt station, which will automatically stop the printer when the paper is depleted.
Page 71
On-time = p1 (Hex) x 2 msec Off-time = p2 (Hex) x 2 msec Related Information The off-time is the delay before the printer performs the next operation. Refer to cash drawer specifications for required on and off-time. Select Cut Mode and Cut Paper...
Page 72
A794 Owner’s Guide Print Test Form ASCII Hexadecimal Decimal Prints the current printer configuration settings on the receipt. Disabled in Page Mode. AX t 1F 74 31 116 December 1999 Chapter 6: Programming Information...
Related Information See Ignoring/Using the Carriage Return in Diagnostics for more information. This command is recognized in A793 Emulation and A794 Native Mode, ignored in TM-T88 Emulation. Carriage Return/Line Feed pair prints and feeds only one line.
Page 74
This is ignored in TM-T88 Emulation and the parameter byte goes into the print buffer. NAK n 15 n 21 n n/203 inch 0-255 in A794 Native Mode 0-127 in A793 Emulation SYN n 16 n 22 n Number of extra dot rows...
Page 75
Decimal 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...
Page 76
When x or y is set to 0, the default setting for that motion unit is used. ESC J n 1B 4A n 27 74 n n/203 inch in A794 Native Mode and TM-T88 Emulation Mode n/360 inch in A793 Emulation Mode 0-255 ESC d n...
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.
Page 78
Print Position” command instructs the printer to move the print position to the left. In order to improve the speed of printing, the A794 moves the data into a buffer for the printhead when it receives it. When the “Set Relative Print Position” command contains a move to the left, this causes the new data to overstrike the previous data.
Page 79
Column number for tab minus one. (n is always less than or equal to the current selected column width) 0-32 Every 8 characters from column. 1 (9, 17, 25, etc.) for normal print. 44 columns December 1999 A794 Owner’s Guide...
Page 80
A794 Owner’s Guide Set Relative Print Position ASCII Hexadecimal Decimal Value of n: To Move the Relative Starting Position Right of the Current Position: 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.
Print Position” command instructs the printer to move the print position to the left. In order to improve the speed of printing, the A794 moves the data into a buffer for the printhead when it receives it. When the “Set Relative Print Position” command contains a move to the left, this causes the new data to overstrike the previous data.
Page 82
A794 Owner’s Guide Set Left Margin ASCII Hexadecimal Decimal Range of nL: Range of nH: Default: 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.
Page 83
The maximum printable area is 576 dots. See the illustration. GS W nL nH 1D 57 nL nH 29 87 nL nH 0-255 0-255 576 dots (the maximum printable area) Printable area 576 dots Left margin Printing area width December 1999 A794 Owner’s Guide...
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.
Page 85
Decimal 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.
Page 86
A794 Owner’s Guide Set Right-Side Character Spacing ASCII Hexadecimal Decimal Range of n: Default: 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.
Page 87
Emphasized Mode Canceled Double High Canceled Double Wide Canceled Underlined Mode Canceled 0 (for bits 0, 3, 4, 5, 7) Columns, Columns, 80 mm Paper 82.5 mm Paper Double Wide Single Wide December 1999 A794 Owner’s Guide Compressed Pitch 15.6 20.3...
Page 88
A794 Owner’s Guide Select or Cancel User-Defined Character Set ASCII Hexadecimal Decimal Value of n: Range of n: Default: 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.
Page 89
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.
Page 90
A794 Owner’s Guide Copy Character Set from ROM to RAM ASCII Hexadecimal Decimal Default: Copies characters in the active ROM set to RAM. Use this command to re-initialize the User-Defined Character Set. Code Page 437 is copied by default at initialization.
Page 91
Decimal Value of n: Default: Turns double strike mode on or off. Identical to Emphasized mode. 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. The settings do not apply in Page Mode. However they can be set or cleared in Page Mode.
Page 92
Related Information The TM-T88 Emulation selection applies only to the command “Select International Character Set” (1B 52 n). The TM-T88 Emulation generates the same as A794 Native Mode for the command “Select Character Code Table” (1B 74 n). ESC I n...
Page 93
Default: 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. Select or Cancel Upside Down Print Mode...
Page 94
A794 Owner’s Guide Character Width Selection Character Height Selection This command is effective for all characters (except for HRI characters). In Standard Mode, the vertical direction is the paper feed direction, and the horizontal direction is perpendicular to the paper feed direction. However, when character orientation changes in 90 degree clockwise-rotation mode, the relationship between vertical and horizontal directions is reversed.
Page 95
GS B n 1D 42 n 29 66 n 0 = Off 1 = On (When 0 and 1 are the Least Significant Bit, LSB) 0-255 0 (Off) GS b n 1D 62 n 29 98 n December 1999 A794 Owner’s Guide...
Page 96
A794 Owner’s Guide Select Superscript or Subscript Modes ASCII Hexadecimal Decimal Value of n: Default: 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.
Exceptions Raster graphics is not available in Page Mode. Related Information This command is recognized only in A794 Native Mode. In A793 and TM-T88 Emulations, the data bytes are put into the print buffer. DC1 n1 ...nl 11 n1 ...n72 17 n1 ...nl...
Page 98
To downloaded BMP file to save it as a Logo, send the hexadecimal code 1B followed by the whole BMP file. The printer decodes the BMP file header and will save the image data after checking important parameters, such as:...
Page 99
Density Mode) Value of d 3 x [n1 + (256 x n2)] Number of Bytes of Data (Printed Down, Then Across) December 1999 A794 Owner’s Guide No. of No. of Dots (Horizontal) Dots/Line 0-288 (101 DPI) 8 x 288 0-576 (203 DPI)
Page 100
A794 Owner’s Guide Related Information d4 d7 8-Dot Single-Density Mode Top of Bit Image 24-Dot Single-Density Mode Top of Bit Image December 1999 Chapter 6: Programming Information Receipt...
Page 101
+ (256 x n2) 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.
+ (256 x n2) 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.
Page 103
In the case of a previously existing application that expects only one possible logo, the printer will not receive the Select Current Logo (1D 23 n) command. In this case, the printer assigns 0 as the active logo identifier. It automatically stores any new logo definition in Flash Memory as logo 0, inactivating any previous logo 0 definition.
Page 104
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 Initialize Printer (1B 40) command is received.
Page 105
When the 6 dot/mm emulation is selected, logos and graphics are expanded horizontally and vertically during download to emulate their size on a 6 dot/mm printer. The horizontal positioning commands also emulate positioning on a 6 dot/mm printer. GS / m...
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.
Page 107
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.
Page 108
Status Byte (RS-232) 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. In DTS/DSR protocol, the printer waits for DSR = SPACE.. Related Information See Busy Line and Fault Conditions in the Real Time Commands section of this document for details about fault condition reporting.
Page 109
Off/On n = 4 or 52: Logo Definition 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.
Page 110
A794 Owner’s Guide Transmit Printer ID, Remote Diagnostics Extension ASCII Hexadecimal Decimal Values of n: The command performs the remote diagnostic function specified by n as described in the following table. Value of n ASCII Space ‘ Ç ü é...
Page 111
Clear Cover openings tally to 0 Cover openings tally Return Cover openings tally, returns 10 bytes Max Temperature tally Reset Max Temperature Reached value Max Temperature tally Return Max Temperature Reached since it was reset, returns 10 bytes December 1999 A794 Owner’s Guide...
Page 112
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.
Page 113
Chapter 6: Programming Information Printer Status ( n = 1 or n = 49) Off/On Cash Drawer Status ( n = 2 or n = 50) Flash Memory User Sector Status ( n = 4 or n = 52) Exceptions When n is out of the specified range, the command is ignored.
Page 114
Hexadecimal Decimal 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.
Page 115
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 data buffer as they are received and handled by the firmware in the order in which they were received. If...
Page 116
When the printer is busy due simply to buffer full (that is, it can’t print data as fast as it can receive it), then data continues to be processed out of the buffer at approximately print speed and the Real Time commands will eventually get flushed out.
Page 117
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.
Page 118
A794 Owner’s Guide Real Time Status Transmission (continued) 2 = Transmit RS-232C Busy Status Status 3 = Transmit Error Status Status Real Time Status Transmission (continued) Decimal Function Fixed to Off. Fixed to On. Cover closed. Cover open. Paper Feed Button is not pressed.
Page 119
Fixed to On Paper adequate Paper low (if paper low sensor enabled) Paper adequate Paper low (if paper low sensor enabled) Fixed to On Paper present Paper exhausted Paper present Paper exhausted Fixed to Off December 1999 A794 Owner’s Guide...
Page 120
Hexadecimal Decimal Value of n: 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. n = 1 Restarts printing from the beginning of the line where an error occurred, after recovering from the error.
Page 121
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.
Page 122
ASB response, depending on the receive buffer status. If any of the status items listed above are selected, ASB is enabled and the printer automatically transmits 4 status bytes whenever the selected status changes. If no status is selected, ASB is disabled.
Page 123
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.
Page 124
A794 Owner’s Guide Select or Cancel Automatic Status Back (ASB) (continued) Second Byte (Error information) Off/On Third Byte (Paper Sensor Information) Off/On Fourth Byte (Paper Sensor Information) Off/On Decimal Status for ASB Undefined Undefined Undefined No knife error. Knife error occurred.
Page 125
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.
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.
Page 128
JAN8 (EAN) CODE39 Interleaved 2 of 5 (ITF) CODABAR (NW-7) Code 93 Code 128* PDF 417 Exceptions: Code 93 and PDF 417 are only available in A794 Native Mode. Select Bar Code Width ASCII Hexadecimal Decimal Value of n: Default: Sets the bar code width to n dots.
Chapter 6: Programming Information 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 130
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.
Page 131
Set Right-Side Character Spacing (1B 20) Select 1/6 Inch Line Spacing (1B 32) Set Line Spacing (1B 33) Standard Mode is automatically selected when power is turned on, the printer is reset, or the Initialize Printer command (1B 40) is used. Exceptions This command is effective only in Page Mode.
Page 132
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).
Page 133
This command is effective only in Page Mode. If the [(nL + nH X 256) x (vertical or horizontal motion unit)] exceeds the specified printing area, this command is ignored. GS $ nL nH 1D 24 nL nH 29 36 nL nH December 1999 A794 Owner’s Guide...
Page 134
A794 Owner’s Guide Set Relative Vertical Print Position in Page Mode ASCII Hexadecimal Decimal 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.
Normal printing occurs while the macro is defined. When the power is turned on the macro is not defined. The defined contents of the macro are not cleared by the Initialize Printer (1B 40), thus, the Initialize Printer (1B 40) command may be used as part of the macro definition.
Page 136
Value of r: Value of t: 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.
Hexadecimal Decimal Range of k: Reads a two-byte word from location k in the history EEROM. The printer returns the word at the next available opportunity. Related Information: This is ignored in TM-T88 Emulation and the parameter byte goes into the print buffer.
Page 138
RAM (volatile memory). The selection remains in effect until it is changed via this command or until the power cycles. Related Information: This command is recognized in A794 Native Mode. In A793 and TM-T88 Emulations, parameter bytes go into the print buffer. GS " n...
Page 139
After sending the Erase User Flash Sector (1D 40 n) command, an application should wait for the response from the printer before sending data. Otherwise, data will be lost. If an application is unable to receive data, it should wait a minimum of five seconds after sending the Erase User Flash Sector (1D 40 n) command before sending data.
The printer never goes directly from the Download Mode to normal printer operation. To return to normal printer operation either the operator must turn the power off and then on to reboot or the application must send a command to cancel Download Mode and reboot.
Page 141
The printer also calculates the CRC for each sector during power up and halts the program if any sector is erroneous. The printer transmits ACK if the calculated CRC is correct for the selected sector; NAK if the CRC is incorrect or if no sector is selected.
Page 142
Erase All Flash Contents Except Boot Sector ASCII Hexadecimal Decimal 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. Return Main Program Flash CRC ASCII...
Page 143
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. NAK means that, for some reason, the data was not written correctly.
Need help?
Do you have a question about the A794 and is the answer not in the manual?
Questions and answers