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 4
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 Installations ...4 On a Flat Surface ...4 On a Wall (with optional wall-mount kit A794-K260) ...4 On a Flat Surface Vertically (see note) ...5 Features ...5...
Page 6
Parallel Interface...39 Chapter 6: Programming Information ...41 List of Commands ...42 Comparisons ...45 Command Descriptions...46 Command Conventions...46 Printer Function Commands ...47 Vertical Positioning and Print Commands ...55 Horizontal Positioning Commands ...60 Print Characteristics Commands...68 Graphics Commands ...79 Printer Status Commands ...87 Real Time Commands ...100...
Chapter 1: About the Printer Description of Printer Models Available Installations Features Options Model Identification Communication Interfaces On a Flat Surface On a Wall On a Flat Surface Vertically...
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 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...
Chapter 1: About the Printer 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.
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 Y cord for two drawers) March 1999 Chapter 1: About the Printer...
Chapter 1: About the Printer 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 82.5 mm 80 mm Interface Boards RS 232C IEEE Bi-Directional Parallel A794 Owner’s Guide...
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.
Page 15
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. For more information about...
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 17
A794 Owner’s Guide Remove the used roll. Tear off the end of the new roll so that the edge is loose. Chapter 2: Using the Printer March 1999...
Page 18
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.
A794 Owner’s Guide 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.
Page 20
Chapter 2: Using the Printer For more information about Poorly printed test printout See this section “Troubleshooting the Printer” March 1999 A794 Owner’s Guide...
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 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.
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.
The numbers are for reference only. Suppliers may use other numbers. Item Power supply with attached cable to printer and U.S. power supply cord Power supply, attached cable Power supply cord (to outlet) Chapter 3: Media and Supplies Guide...
Communication Cables RS-232C 25-pin (host) to 9-pin RS-232C 9-pin to 9-pin Parallel 25-pin to 25-pin Wall-Mount Kit Contact your sales representative to order the wall-mount kit. Printer wall-mount kit: A794-K260 Length Order Number (3 meters—9.8 ft.) A141-0008 (3 meters—9.8 ft.) A141-0007 (3 meters—9.8 ft.)
Chapter 4: Print Specifications Characters Paper Specifications Print Zones 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 Code Page 858 Code Page 860 Code Page 863 Code Page 865 Code Page 866...
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” March 1999 A794 Owner’s Guide...
A794 Owner’s Guide Paper Specifications The printer requires qualified thermal 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.
Chapter 4: Print Specifications 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.5 mm (3.25 in.)
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.
XOFF character = hexadecimal 13. 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.
Communication Connectors The following illustration shows the RS-232C communication connectors and pin assignments. The connectors are located at the rear of the printer, and are specified as male, DB9, 9-pin D-shell, and female DB25, 25-pin with RTS and CTS pins connected.
Page 44
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 RS-232C Settings...
IEEE Bi-directional Parallel Connector The following illustration shows the parallel communication connector and pin assignments. The connector is located at the rear of the printer, and is designated as an IEEE 1284-A receptacle, commonly known as a D-Subminiature 25 pin.
Page 46
Chapter 5: Communication Interface 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...
Chapter 6: Programming Information 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. The operation of various printers may be emulated by the commands, including...
Page 49
Set Line Spacing to 1/6 Inch Set Line Spacing Copy Character Set from ROM to RAM Select Peripheral Device (for Multi-Drop) Cancel User-Defined Character Initialize Printer Set Horizontal Tab Positions Select or Cancel Emphasized Mode Select or Cancel Double Strike Select or Cancel Italic Print...
Page 50
Erase User Flash Sector Select or Cancel White/Black Reverse Print Mode Select Printing Position of HRI Characters Transmit Printer ID Transmit Printer ID, Remote Diagnostics Extension Set Left Margin Set Horizontal and Vertical Minimum Motion Units Select Cut Mode and Cut Paper...
(Same as above) In emulation mode, the printer scales the graphics to provide the best match. The parameter to this command is in units of dots. However, the command moves and aligns to character positions.
Hexadecimal control code the Decimal control code a description of the command operand values the upper and lower limits of the command operand the command operand default after printer reset any formulas used for this command. March 1999 A794 Owner’s Guide...
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 Spacing, Pitch, and User-Defined Character Sets are maintained at current...
Page 54
Chapter 6: Programming Information 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.
Page 55
A794 Owner’s Guide Select Print Mode Selects the print mode: standard, compressed, emphasized, underlined, double high, or double wide. ASCII Hexadecimal Decimal Value of n Value of n Bit 0 Bit 3 Bit 4 Bit 5 Bit 7 Bits 1, 2 and 6 are not used. Default Exceptions Refer to the above table for exceptions.
Page 56
Initialize Printer 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.
Page 57
A794 Owner’s Guide 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.
Page 58
Chapter 6: Programming Information 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 Value of n Bits 5 and 7 are not used.
Page 59
A794 Owner’s Guide 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 Range of k Generate Pulse to Open Cash Drawer Sends a pulse to open the cash drawer.
Page 60
Chapter 6: Programming Information Write to Non-Volatile Memory (NVRAM) Writes two-byte word, n1 n2, to location k in history EEROM. ASCII Hexadecimal Decimal Value of n1 Value of n2 Range of k 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.
Decimal 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. Some applications expect the command to be ignored while others use it as print command.
Page 62
Chapter 6: Programming Information Feed n Dot Rows Feeds the paper n dot rows (n/203 inch, n/8 mm), without printing. ASCII Hexadecimal Decimal Value of n Range of n 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.
Page 63
A794 Owner’s Guide Print Prints one line from the buffer and feeds paper one line. ASCII Hexadecimal Decimal 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. ASCII Hexadecimal Decimal...
Page 64
Chapter 6: Programming Information 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.
Page 65
A794 Owner’s Guide Print and Feed n Lines Prints one line from the buffer and feeds paper n lines at the current line height. ASCII Hexadecimal Decimal Range of n ESC d n 1B 64 n 27 100 n 1-255 (0 is interpreted as 1) March 1999 Chapter 6: Programming Information...
Chapter 6: Programming Information 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. ASCII Hexadecimal Decimal...
Page 67
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 Print Position) will be interpreted accordingly and varies according to printer emulation. ASCII Hexadecimal...
Page 68
Chapter 6: Programming Information 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.
Page 69
A794 Owner’s Guide 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. ASCII Hexadecimal Decimal...
Page 70
“Set Relative 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.
Page 71
A794 Owner’s Guide 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).
Page 72
Chapter 6: Programming Information 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. ASCII Hexadecimal Decimal...
Page 73
A794 Owner’s Guide 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.
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. Double-wide characters may be used in the same line with single-wide characters.
Page 75
A794 Owner’s Guide 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...
Page 76
Chapter 6: Programming Information 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. ASCII Hexadecimal Decimal Value of n Range of n Default ESC % n...
Page 77
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.
Page 78
Chapter 6: Programming Information 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.
Page 79
A794 Owner’s Guide 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. ASCII Hexadecimal Decimal Default Related Information To modify characters in one of the character set variations, such as Rotated Print, Select one of the Rotated Print commands, copy to RAM, then use the Define User-Defined Character Set command (1B 26).
Page 80
Chapter 6: Programming Information 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 Value of n Default Exceptions Only the lowest bit of n is effective.
Page 81
A794 Owner’s Guide 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 Value of n Default Exceptions Only the lowest bit of n is valid.
Page 82
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.
Page 83
A794 Owner’s Guide 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).
Page 84
Chapter 6: Programming Information 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 Value of n Default Exceptions This command is ignored if n is out of the specified range.
Exceptions Raster graphics is not available in Page Mode. Download BMP Logo Enters a downloaded BMP logo into RAM or Flash. The downloaded BMP logo can be printer by using the Print Downloaded Image (1D 2A) command. ASCII Hexadecimal Decimal...
Page 86
Chapter 6: Programming Information 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.
Page 87
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.
Page 88
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.
Page 89
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.
Page 90
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 91
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.
Page 92
Selects or cancels 6 dot/mm emulation mode. When the 6dot/mm emulation is selected, logos and graphics are expanded horizontally and vertically to emulate their size on a 6 dot/mm printer. The horizontal positioning commands also emulate positioning on a 6 dot/mm printer.
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.
Page 94
Chapter 6: Programming Information 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.
Page 95
A794 Owner’s Guide 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. ASCII Hexadecimal Decimal...
Page 96
Chapter 6: Programming Information 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.
Page 97
Serial # written: 1234567890 Serial # Not available, cannot clear Serial # item Serial # Return Serial #, preceded by n to identify Printer returns 12 bytes in above example: #1234567890<CR> Class/model #, Write to NVRAM 15 digit ASCII Class/model #...
Page 98
Receipt lines tally Clear receipt lines tally to 0 Receipt lines tally Return receipt lines tally, preceded by n to identify Printer returns 10 bytes in above example: â00010000<CR> Knife cut tally, Write to NVRAM 8 digit ASCII numeric, max 99,999,999...
Page 99
A794 Owner’s Guide Value of n Remote diagnostic item Function Boot firmware version Not available Boot firmware version Not available Boot firmware version Return Boot firmware version, returns 6 bytes Flash firmware version Not available Flash firmware version Not available Flash firmware version Not available Flash firmware version...
Page 100
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 101
ASB status be differentiated according to the information found in Recognizing Data from the Printer, (in the Real Time Commands section in this document). The status bytes to be transmitted are described in the following four tables.
Page 102
Chapter 6: Programming Information 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. Not used.
Page 103
Back command (1D 61), the status transmitted by this command (Transmit Status) and the ASB status must be differentiated according to the information found in Recognizing Data from the Printer, (in the Real Time Commands section in this document). ASCII...
Page 104
Chapter 6: Programming Information Transmit Status (continued) 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. Off/On Decimal Status for Transmit Status...
Page 105
A794 Owner’s Guide 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: flash version is 4.56.
Transmit Cash Drawer Status (Hex 1B 75 0, ASCII ESC u 0) 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 the paper exhausts while printing data that was in the buffer ahead of the status command, the printer goes busy at the RS-232C interface and suspends processing the data in the buffer until paper is reloaded.
Page 107
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 108
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.
Page 109
A794 Owner’s Guide 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.
Page 110
Chapter 6: Programming Information 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. ASCII Hexadecimal Decimal Value of n Exceptions The command is ignored if n is out of range.
Page 111
Paper feed button is pressed. Fixed to On. Printing not stopped due to paper condition. Printing stopped due to paper condition. No error condition. Error condition exists in the printer. Fixed to Off. Decimal Function Fixed to Off. Fixed to On.
Page 112
Chapter 6: Programming Information Real Time Status Transmission (continued) 4 = Transmit Receipt Paper Status Status Decimal Function Fixed to Off 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...
Page 113
A794 Owner’s Guide Real Time Printer Status Transmission Transmits one byte status of the printer in real time. ASCII Hexadecimal Decimal Value of Byte Status GS ENQ 1D 05 29 5 Decimal Function Paper adequate. Paper low (if paper low sensor enabled).
Chapter 6: Programming Information 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. ASCII Hexadecimal Decimal...
Page 115
A794 Owner’s Guide Select Bar Code Height Sets the bar code height to n dots or n/203 inch (n/8 mm). ASCII Hexadecimal Decimal Value of n Range of n Default 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.
Page 116
The variable d indicates the character code to be encoded into the specified bar code system. See the table. If character code d cannot be encoded, the printer prints the bar code data processed so far, and the following data is treated as normal data.
Page 117
48- 57, 36, 43, 45, 46, 47, 58 0-105 d1 = 103-105 (must be a Start code) d2 = 0-102 (data bytes) (Stop code is provided by the printer) 0-255 GS w n 1D 77 n 29 119 n 1, 2, 3, 4, 5...
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 119
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.
Page 120
Set Right-Side Character Spacing (ESC SP) Select 1/6 Inch Line Spacing (ESC 2) Set Line Spacing (ESC 3) Standard mode is automatically selected when power is turned on, the printer is reset, or the Initialize Printer command (ESC @) is used. ASCII...
Page 121
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).
Page 122
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).
Page 123
A794 Owner’s Guide 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 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.
Page 124
Chapter 6: Programming Information Select Character Size (continued) Value of n Range of n Default of n 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. The absolute print position is set to [(nL + nH X 256) x (vertical or horizontal motion unit)] inches.
Page 125
A794 Owner’s Guide 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): When the starting position is set to the upper left or lower left of the printing area,...
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 (ESC @), thus, the Initialize Printer (ESC @) command may be used as part of the macro definition.
Page 127
A794 Owner’s Guide 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.
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 129
Hexadecimal Decimal Related Information See Entering Flash Download Mode elsewhere in this book to put the printer in flash download mode using the Configuration Menu. Return Boot Sector Firmware Part Number Returns ACK (06 hex) + 12 bytes ASCII string describing the Flash memory Boot sector Firmware part number.
Page 130
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 131
A794 Owner’s Guide 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 Exceptions Available only in download mode.
Page 132
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.
Page 133
A794 Owner’s Guide 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.
Page 134
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.
100 vertical positioning and print, 55 Commands, real time busy line and fault conditions, 101 moving data through the buffer, 101 recognizing data from the printer, 102 rules for using, 100 Commands, sending using BASIC, 34 using DOS, 34...
Page 136
Interface. See RS-232C interface Interfaces, 5 —L— LED, 8 continuously flashes, 15 on continuously, 15 —M— Memory, 5 models of printer, 3 —O— Options of printer, 6 Ordering cash drawers, 19 communication cables, 20 paper, 18 power supply, 19 supplies, 18...
Need help?
Do you have a question about the A794-D100 and is the answer not in the manual?
Questions and answers