Home
Epson A794-D100 User's Manual
Contents
1. 1 Description of Printer een 2 Models Available sirenen a dE de 3 Model Identification aa 3 Communication Interfaces 3 Trisfallatiensu u s ui S a Sin W EE Ee 4 Orna PlaESQrtaceyu nu ibe hua a sa mina s ua Nas 4 On a Wall with optional wall mount kit A794 K260 4 On a Flat Surface Vertically see note 5 eatuteg o nroa raose eege ege ege 5 OPHONS sai nhau a dis ahhh apan 6 Chapter 2 Using the Printer 7 Printer Control 8 Changing EE 10 esting E 13 Troubleshooting the Printer NENNEN 15 Printer Tone and Green LED 15 Printing Problems un 16 Printer Does Not Work 16 Chapter 3 Media and Supplies Guide 17 Ordering Thermal Paper EEN 18 Thermal Paper Specifications a 18 Manitifacturers maree ueir deceit eters oh oe ed ua ech 18 H w to OL eb aisen eer Seege 18 Ordering Miscellaneous Supplies en 19 Ordering Cash Drawers aaa 19 Ordering Power Supply and Power Cord 19 Ordering Communication Cables ee 20 Walll Motint Rit Zeg apy an a Ei E 20 Chapter 4 Print Specifications 21 ET EE 22 Print Modes cn Zuna PSI a au ae Su Ee Se E 22
2. 32 March 1999 Chapter 5 Communication Interface e Communication Overview Interface Sending Commands e 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 Interface 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 In order for the printer to communicate with the host a communication link must be set up The printer supports the RS 232C Serial and IEEE 1284 Parallel interface The interfaces have a protocol associated with them that the host must understand and adhere to Only when the interface parameters are matched and the proper protocol is used will the host and the printer be able to communicate For more information about See this section Protocol description RS 232C Interface Sending Commands 34 Once the communication link is established commands can be sent to the printer This section describes how to send commands to the printer using DOS and BASIC This section does not take into account the necessary protocol but is meant as a general introduction to how the printer functions Using DOS to Sen
3. 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 d e 2 B R b r T F gt 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 C SI Ic s La m lt 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 4 D T d t a 6 A 4i 425 4 20 36 52 68 84 100 116 132 148 164 180 196 212 228 244 5 E U e uj j a F O J 5 21 37 53 69 85 101 117 133 149 165 181 197 213 229 245 amp 6 F V f v T 6 22 38 54 70 86 103 118 134 150 166 182 198 214 230 246 1 We 7 G W w q F T t 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 a S e IL A 8 H X h x y T x 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 Y e O r e 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 Z j Q J J Z 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 SNE k i q T 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 ce ee s 1 l i 72 F mw olin 12 28 44 60 76 92 108 124 140 156 172 188 204 220 236 252 M m i i dB Bh 2 13 29 45 61 77 93 109 125 141 157 173 189 205 221 237 253 A JL zs N Alnis A Pt 2 FT le 14 30 46 62 78 94 110 126 142 158 174 190 206 222 238 254 _ J DW 1 O oi If x N 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255 March 1999 31 Chapter 4 Print Specifications A794 Owner s Guide Code Page 866 0 A P alu L it E 0 16 32 48 d 0 96 112
4. 00 08 10 00 Decimal Cl O N O Function Fixed to Off Fixed to On One or both cash drawers open Both cash drawers closed Not busy at the RS 232C interface Printer is Busy at the RS 232C interface Fixed to On Undefined Undefined Fixed to Off March 1999 A794 Owner s Guide Chapter 6 Programming Information Real Time Status Transmission continued 2 Transmit RS 232C Busy Status Bit Status Off On Off On Off On On Off On Off On Off Hex 00 02 00 04 00 08 10 00 20 00 40 00 Decimal CO O COIN O 3 Transmit Error Status Q D S gt Status Off On Off Off On Off Hex 00 02 00 00 08 10 00 20 00 40 00 Decimal CO O O 5 o Function Fixed to Off Fixed to On Cover closed Cover open Paper feed button is not pressed 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 Function Fixed to Off Fixed to On Fixed to Off No knife error Knife error occurred Fixed to On No unrecoverable error Unrecoverable error occurred Thermal printhead temp and power supply voltage are in range Thermal print head temp or power supply voltage are out of range Fixed to Off March 1999 105 Chapter 6 Programm
5. 1 light gray case 2 dark gray case 2 80 0 mm 512K Flash 3 82 5 mm 512K Flash 5 80 0 mm 1MB Flash 6 82 5 mm 1MB Flash Communication Interfaces e RS 232C Serial Interface IEEE 1284 Bi Directional Parallel March 1999 3 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 For more information about See this document Setting up the printer A794 Setup Guide On a Flat Surface On a Wall with optional wall mount kit A794 K260 4 March 1999 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 Features Interfaces RS 232C Parallel Memory Firmware 512K Flash Memory History EEROM 4K Buffer see Options for additional memory Resident Character PC Code Page 437 US PC Code Page 850 Multilingual PC Sets Code Page 852 Code Pages 865 858 860 863 and 866 Integrated Bar Codes Code 39 UPC A UPC E JAN8 EAN JAN13 EAN Interleaved 2 of 5 Codabar Code 128 EAN 128 PDF 417 two dimensional Print Host selectable 44 or 56 columns of print on 80 mm wide thermal paper Print Resolution 8 dots mm Speed Up to 130 mm seco
6. 47 58 32 255 A794 Owner s Guide n Length Fixed Length 11 12 Fixed Length 11 12 Fixed Length 12 13 Fixed Length 7 8 Variable Length Variable Length Even Number Variable Length Variable Length The value of m selects the bar code system as described in the table 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 March 1999 A794 Owners 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 Variable 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 70 Interleaved 2 of 5 ITF 48 57 Variable Even Number 71 CODABAR NW 7 65 68 start code Variable 48 57 36 43 45 46 47 58 73 Code 128 0 105 Variable d1 103 105 must be a Start code d2 0 102 data bytes Stop code is provided by the printer 75 PDF 417 0 255 Variable Length Select Bar Code Width Sets the bar code module to n 1 203 inch n 1 8 mm ASCII GSwn Hexadecimal 1D 77n Decimal 29119 n
7. ASCII FF Hexadecimal 0C Decimal 12 Exceptions This command is enabled only in page mode Cancel Print Data in Page Mode Deletes all the data to be printed in the page area Any data from the previously selected page area that is also part of the current data to be printed is deleted ASCII CAN Hexadecimal 18 Decimal 24 Exceptions This command is only used in page mode March 1999 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 ESC FF Hexadecimal 1B0C Decimal 27 12 Exceptions This command is enabled only in page mode Select Page Mode Switches from standard mode to page mode After printing has been completed either by the Print and Return to Standard Mode FF command or Select Standard Mode ESC S the printer returns to standard mode The developed data is deleted after being printed For more information see Page Mode in this document This command sets the position where data is buffered to the position specified by Select Print Direction in Page Mode ESC T within the printing area defined by Set Print Area in Page Mode ESC W This command switches the settings for the following com
8. Loads active logo to flash memory This is the default condition for logo flash storage A logo defined following this command is stored in flash memory n 50 ASCII n 2 Loads user defined characters to RAM only This is the default condition for user defined character storage Any user defined characters defined following this command are not preserved over a power cycle n 51 ASCII n 3 Loads user defined characters to flash memory An application must use this command to store user defined characters in flash memory Any user defined characters defined following this command are stored in flash memory A user defined character cannot be redefined in flash memory The flash memory page must be erased by an application before redefining user defined characters For more information see the Erase User Flash Sector 1D 40 n Command earlier in this section March 1999 127 Chapter 6 Programming Information A794 Owner s Guide Important 128 Erase User Flash Sector Erases a page of flash memory and sends a carriage return when the operation is complete ASCII GS n Hexadecimal 1D40n Decimal 2964n 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 The page should be erased in two situations when the logo definition areas is full and an application is attempting to define new logos and when an application wants to replace one user
9. Paper exhausted Not used Fixed to off Undefined Undefined Not used Fixed to off Status for ASB Undefined Undefined Undefined Undefined Not used Fixed to off Undefined Undefined Not used Fixed to off March 1999 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 When DTR DSR RS232C communications handshaking control is selected the printer transmits the one byte response only when the host signal DSR indicates it is ready to receive data When XON XOFF RS232C communications handshaking control is selected the printer transmits the one byte response regardless of the host signal DSR When Auto Status Back ASB is enabled using the Enable Disable Automatic Status 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 GSrn Hexadecimal 1D72n Decimal 29114n Value of n 1 49 printer status 2 50 cash drawer status 4 52 Flash memory User Sector status The status bytes to be transmitted are
10. 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 Double wide characters may be used in the same line with single wide characters ASCII DC2 Hexadecimal 12 Decimal 18 Exceptions Double wide characters may not be used in the same line with single or double density graphics Select Single Wide Characters Prints single wide characters Single wide characters may be used in the same line with double wide characters ASCII DC3 Hexadecimal 13 Decimal 19 Exceptions Single wide characters may not be used in the same line with single or double density graphics 68 March 1999 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 ESC DC2 Hexadecimal 1B12 Decimal 27 18 Related Information See Summary of Rotated Printing in this document Select Pitch Column Width Selects the character pitch for a print line ASCII ESC SYN n Hexadecimal 1B16n Decimal 27 22 n Value of n 0 Standard pitch 1 Compressed pitch Default 0 Standard pitch Formulas The following table provides the print
11. l I cr cs M m i U i dH 2 43 29 45 61 77 93 109 125 141 157 173 189 205 221 237 253 OE 1E 2E 3E 4E 5E 6E ZE SE 9E AE BE Ei DE EE FE gt N A n lt A Pt lt Tr l n 14 30 46 62 78 94 110 126 142 158 174 190 206 222 238 254 OF 1F 2F 3F 4F 5F 6F 7F 8F u 9F 3 AF BF CF DF EF FF 2 O EISE O 1 N 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255 March 1999 29 Chapter 4 Print Specifications A794 Owner s Guide Code Page 863 00 10 20 30 40 50 60 70 DO Eo FO NUL s 0 P Ll GQ 0 16 32 48 64 80 96 112 192 208 224 240 01 11 21 31 41 51 61 71 D1 E1 F1 x J A Q a T 1 17 33 49 65 81 97 113 193 209 225 241 02 12 22 32 42 52 62 72 D2 E2 F2 2 B R bir ER RE 2 18 34 50 66 82 98 114 194 210 226 242 03 13 23 33 43 53 63 73 gt D3 E3 F3 xr 3 C S c s m lt 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 04 14 24 34 44 54 64 74 aa oa Ja jB4 C4 D4 E4 F4 1 4 20 36 52 68 84 100 116 132 148 164 180 196 212 228 244 05 15 25 35 45 55 65 75 85 95 A5 B5 CR D5 E5 F5 P S P 2 5 E U eu LURET Flo J 5 21 37 53 69 85 101 117 133 149 165 181 197 213 229 245 06 16 26 36 46 56 66 76 e 96 A6 B6 C6 D6 E6 F6 amp 6 F V f v 5 6 22 38 54 70 86 103 118 134 150 166 182 198 214 230 246 07 17 27 37 47 57 67 77 87 97 AT B7 C7 D7 E7 F7 7 G W w In F GU t 7 23 39 55 71 87 103
12. 139 155 171 187 203 219 235 251 OC 16 2C 3C AC 5C 6C ZC BC 9C AC BC CC DC EC FC i A F ll lt l 1 4 r m ein 12 28 44 60 76 92 108 124 140 156 172 188 204 220 236 252 OD 1D 2D 3D 4D 5D 6D 7D 8D 9D AD BD cD DD ED FD M m i y i 21 2 13 29 45 e zz 93 109 1235 4141 157 173 189 205 221 237 253 0E 1E 2E 3E 4E 5E 6E 7E DE 9E AE BE CE DE EE FE E A n Pal lt 3 T leie 14 30 46 62 78 94 110 126 142 158 174 190 206 222 238 254 OF 1F 2F 3F 4F 5F 6F 7F D I 8F 9F AF BF cF Die EF FF O _ Oo AI a ch BLANK 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255 March 1999 25 Chapter 4 Print Specifications A794 Owner s Guide Code Page 850 0 P E L 6 O 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 A Q a u amp Ko B 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 B R b r l E Tr E O 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 C SI Ic s AaAl6 FHFIE O 3 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 4 D T d t 6 A E 6 4 20 36 52 68 84 100 116 132 148 164 180 196 212 228 244 5 E U e u Oo N 1 O 5 21 37 53 69 85 101 117 133 149 165 181 197 213 229 245 amp 6 F V f v a 4 all 6 22 38 54 70 86 103 118 134 150 166 182 198 214 230 246 7 G W g w uj A f 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 8 H X h x y L b 8
13. 232C interface and suspends processing the data in the buffer until paper is reloaded This is true for all error conditions knife home error thermal printhead overheat etc In addition there is no way to restart the printer after a paper jam or other error The Real Time commands are implemented in two ways to correct these problems Both implementations offer the same functionality which one you choose depends on the current usage of your application Rules for Using Real Time Commands Three situations must be understood when using real time commands First the printer executes the Real Time command upon receiving it and will transmit status regardless of the condition of the DSR signal Second the printer transmits status whenever it recognizes a Real Time Status Transmission command sequence even if that sequence happens to occur naturally within the data of another command such as graphics data In this case the sequence will also be handled correctly as the graphics data it is intended to be when the graphics command is executed from the buffer Third care must be taken not to insert a Real Time command into the data sequence of another command that consists of two or more bytes In this case the printer will use the real time command sequence bytes instead of the other command s parameter bytes when finally executing that other command from the buffer the other command will NOT be executed correctly These three situat
14. 27 12 5 6 36 4 7 2 28 13 5 5 37 5 7 0 29 14 5 3 38 6 6 8 30 15 5 2 39 7 6 5 31 16 5 1 40 8 6 3 32 56 March 1999 A794 Owner s Guide Chapter 6 Programming Information Print Prints one line from the buffer and feeds paper one line ASCII ETB Hexadecimal 17 Decimal 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 ASCII ESC DC4 n Hexadecimal 1B14n Decimal 27 20 n Value of n 1 44 Standard pitch 1 56 Compressed pitch Default of n 1 Exceptions This command cannot be used with Single or Double Density graphics Set Line Spacing to 1 6 Inch Sets the default line spacing to 1 6 of an inch 4 23 mm ASCII ESC 2 Hexadecimal 1B 32 Decimal 27 50 March 1999 57 Chapter 6 Programming Information A794 Owner s Guide 58 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 ASCII ESC 3n Hexadecimal 1B33n Decimal 2751n Value of n n 406 inch Range of n 0 255 Default 0 13 inch 3 37 mm Related Information For more information see
15. 3 Off 00 0 Not Busy at the RS232C interface On 08 8 Printer is Busy at the RS232C interface 4 On 10 16 Not used Fixed to on 5 Off 00 0 Cover closed On 20 32 Cover open 6 Off 00 0 Paper feed button is not pressed On 40 64 Paper feed button is pressed 7 Off 00 0 Not used Fixed to off March 1999 95 Chapter 6 Programming Information 96 A794 Owner s Guide Select or Cancel Automatic Status Back ASB continued Second Byte Error information Bit WINIR O E Third Byte Paper Sensor Information Bit 0 NIAJ amp Fourth Byte Paper Sensor Information Bit NPD OR ol NTR oO Off On Off On Off Off Off On Off Off On Off On Off On Off On Off On Off Off Off On Hex 00 08 00 00 20 00 40 00 Hex 00 01 00 02 00 04 00 08 00 00 Hex 00 00 Decimal olu O sc ce o N 64 Decimal S o O OJN O CH Decimal Status for ASB Undefined Undefined Undefined No knife error Knife error occurred Not used Fixed to off No unrecoverable error Unrecoverable error occurred No recoverable error Recoverable Error Cover open paper out temperature or voltage error is out of range Not used Fixed to off Status for ASB Paper present Paper low if paper low sensor enabled Paper present Paper low if paper low sensor enabled Paper present Paper exhausted Paper present
16. 536 n by 256 n2 Integer after dividing 65 536 n by 256 The values for n1 and n2 are two bytes in low byte high byte word orientation Formulas To move to the left The example shows how to set the relative position 20 dots to the left of the current position 65 536 20 65516 65 516 256 255 remainder of 236 n1 236 n2 255 To move to the right The example shows how to set the relative position 20 dots to the right of the current position 20 256 0 remainder of 20 nl 20 n2 0 Related Information 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 Relative Print Position will be interpreted accordingly For more information see the description of the Set Horizontal and Vertical Minimum Motion Units command 1D 50 in this document March 1999 63 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 This method of processing allows the A794 to backup in the print string and replace characters and their associated attributes when a Set Relative Prin
17. 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 00 0 1 normal 01 1 2 two times height 02 2 3 three times height 03 3 4 four times height 04 4 5 five times height 05 5 6 six times height 06 6 7 seven times height 07 7 8 eight times height 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 In page mode vertical and horizontal direction are based on the character orientation When characters are enlarged with different sizes on one line all the characters on the line are aligned at the baseline The Select Print Mode ESC command can also select or cancel double width and double height modes However the setting
18. 70 86 103 118 134 150 166 182 198 214 230 246 7 G W g w S Z E ts 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 8 H X h x f S It K 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 LLY i e O e qali 2 U 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 lee m f 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 i KI kl Ti i a rE 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 f lt L Tee eh es HE cae ATR 12 28 44 60 76 92 108 124 140 156 172 188 204 220 236 252 b gt g M m Z AE Y r 13 29 45 61 77 93 109 125 141 157 173 189 205 221 237 253 an SD gt N A n lt A x lt Z T U t 14 30 46 62 78 94 110 126 142 158 174 190 206 222 238 254 O _ AC EE RE CO Be 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255 March 1999 27 Chapter 4 Print Specifications A794 Owner s Guide Code Page 858 0 P E L 6 O 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 A Q a u amp Ko B 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 B R b r l E Tr E O 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 C SI Ic s AaAl6 FHFIE O 3 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 4 D T d t 6 A E 6 4 20 36 52 68 84 100 116 132 148 164 180 196 212 228 244 5 E U e u Oo N O 5 21 37 53 69 85 101 117 133 14
19. Auto Paper Feed D1 Data 3 15 FAULT Printer Error D2 Data 4 16 NIT Initialize the Printer D3 Data 5 17 SELECTIN Select Printer D4 Data 6 18 Ground D5 Data 7 19 Ground D6 Data 8 20 Ground D7 Data 9 21 Ground 22 ACK Printer Accepted Data 10 Ground 1 23 Ground BUSY Printer Busy 11 24 Ground PAP_EX Paper Exhaust 12 25 Ground SELECT Printer Selected 13 March 1999 39 Chapter 5 Communication Interface A794 Owner s Guide 40 March 1999 Chapter 6 Programming Information e List of Commands e 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 The operation of various printers may be emulated by the commands including the following e Axiohm A793 Axiohm A794 Native Mode e Axiohm APOS Epson TM T88 Any of the commands may be used in any combination to program a host computer to communicate with the printer unless otherwise noted Some commands listed and described here may not be imp
20. EE 22 Paper Specifications u y nam au S 23 Pint Zeene ee ee E Suha a eeh 23 Print Zones for 80 mm Paper a 23 Print Zones for 82 5 mm Paper a 24 Character Sets su mous Sow S Waaa EE 25 Code age uerpo aT h iere 25 Code Page Battes anun ana n sua 26 Code Page 00025 us ua ai uta u Tea eina aqa as 27 Cod Page 958222 2 m uti Seiten E aS sma 28 Code Pagel860 uuu vous e e ae 29 Code Page 669 gie eege ahua days 30 Code Page 665 m S aa Deen See 31 Code Page 666 2 geed na erie hat nde ante 32 March 1999 Contents iii Contents Chapter 5 Communication Interface 33 Communication OVvervIew 34 rte aww kasuku don ees ee 34 Sending Commande ue 34 RS 232C Interface 2 a u e L ans Tama nus aa 35 Print Speed and Timing 35 XCGONZXOER Prot ocolia y m Sas un ees Susa 36 DTR DSR Preteecoll as rerien pa S eek Sect i 36 RS 232C Technical Specifications 37 Parallel Interfagez suu k spa p n Seed deen 39 Chapter 6 Programming Information 41 List Of Commande 42 EA KEE 45 Command Descriptions aa 46 Command Copnventions aaa 46 Printer Function Commands 47 Vertical Positioning and Print Commands 55 Horizontal Positioning Commandes ue 60 Print Characteristics
21. LF Hexadecimal OA Decimal 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 Some applications expect the command to be ignored while others use it as print command ASCII CR Hexadecimal OD Decimal 13 Related Information See Ignoring Using the Carriage Return in Diagnostics for more information Feed n Print Lines Feeds the paper n lines at the current line height without printing ASCII DC4 n Hexadecimal 14n Decimal 20n Value of n The number of lines to feed at current line height setting Range of n 0 127 March 1999 55 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 NAK n Hexadecimal 15n Decimal 21n 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 ASCII SYN n Hexadecimal 16n Decimal 22n Value of n Number of extra dot rows Range of n 0 16 Default 3 extra dot rows Formulas The following table shows the relationship between the number of lines per inch and each extra dot row added Extra Lines Per Dot Extra Lines Per Dot Rows Inch Rows Rows Inch Rows 0 8 5 24 9 6 1 33 1 8 1 25 10 6 0 34 2 7 8 26 11 5 8 35 3 7 5
22. P E als Lies 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 01 11 21 31 41 51 61 71 81 D1 E1 F4 Ircol1 A Q a ER an 1 17 33 49 65 81 97 113 129 193 209 225 241 02 12 22 32 42 52 62 72 82 D2 E2 F2 SS 2 B R r e T T T gt 2 18 34 50 66 82 98 114 130 194 210 226 242 03 13 23 33 43 53 63 73 83 D3 E3 F3 3 C S c s Line 3 19 35 51 67 83 99 115 131 195 211 227 243 04 14 24 34 44 54 64 74 84 D4 E4 F4 A D T t 3 Si SEA 4 20 36 52 68 84 100 116 132 148 164 180 196 212 228 244 05 15 25 35 45 55 65 75 85 95 AS B5 CS D5 E5 F5 5 E Ul lelul I IA I Hd Fo J 5 21 37 53 69 85 101 117 133 149 165 181 197 213 229 245 06 16 26 36 46 56 66 76 86 96 A6 B6 C6 D6 E6 F6 amp 6 F V va 3 1 F T 6 22 38 54 70 86 103 118 134 150 166 182 198 214 230 246 07 17 27 37 47 57 67 77 87 97 A7 B7 C7 D7 E7 F7 7 G W W l a Eli 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 08 18 28 38 48 58 68 78 88 98 A8 B8 C8 D8 E8 F8 H X h yl a x e F 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 09 19 29 39 49 59 69 S 79 89 99 AQ B9 C9 D9 E9 F9 9 Y i O F O e 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 DA 1A 2A 3A 4A 5A 6A 7A 8A DA AA BA cA L DA EA FA SE D ae ere Z z r Ql 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AB BB CB DB EB FB i fe r B s K k 1 f 5 2 q T 11 27 43 59 75 91 107 123
23. Paper sensor information The bits of n are defined in the table Bit Off On Hex Decimal Status for ASB 0 Off 00 0 Cash drawer status disabled On 01 1 Cash drawer status enabled 1 Off 00 0 RS 232C Busy status disabled On 02 2 RS 232C Busy status enabled 2 Off 00 0 Error status disabled On 04 4 Error status enabled 3 Off 00 0 Receipt paper roll status disabled On 08 8 Receipt paper roll status enabled 4 Undefined 5 Undefined 6 Undefined 7 Undefined March 1999 A794 Owner s Guide Chapter 6 Programming Information Select or Cancel Automatic Status Back ASB continued Default 0 ASB disabled 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 When Auto Status Back ASB is enabled using this command the status transmitted by other commands and the 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 First Byte Printer Information Bit Off On Hex Decimal Status for ASB 0 Off 00 0 Not used Fixed to off 1 Off 00 0 Not used Fixed to off 2 Off 00 0 One or both cash drawers open On 04 4 Both cash drawers closed
24. Value of n 1 2 3 4 5 Default n 2 Formulas n 1 203 inch n 1 8 mm March 1999 111 Chapter 6 Programming Information A794 Owner s Guide Page Mode Commands 112 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 The page is printed using either the FF 0C or the ESC FF 1B 0C command The Select Page Mode command 1B 4C puts the printer into page mode Any commands that are received are interpreted as page mode commands Several commands react differently when in standard mode and page mode The descriptions of these individual commands in this chapter indicate the differences in how they operate in the two modes Print and Return to Standard Mode When printing is completed values for Select Print Direction in Page Mode ESC T and Set Print Area in Page Mode ESC W and the position for buffering character data are set Buffered data is not deleted from the printer The processed data is printed and the printer returns to standard mode The developed data is deleted after being printed For more information see Page Mode in this document
25. and Compressed mode Standard e Characters per Inch 15 6 Characters per Line 44 Cell Size 13 x 24 Dots Compressed e 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 Programming Information A794 Owners 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 90mm 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 Print Zones Print Zones for 80 mm Paper Here are the specifications of the print zone for 80 mm paper e 576 dots addressable 8 dots mm centered on 80 mm Standard mode minimum margins 2 5 mm 098 inches Top margin to manual tearoff 17 8 mm 0 70 inches Top margin to knife cut 19 0 mm 0 75 inches Paper Width 80 mm 3 15 in Printable Zone 576 Dots 72 mm 2 835 in Nominal Margins 4 mm 0 157 in en F Cut Edge Cut Edge Top Margin 17 8 mm 70 in Minimum ABCDE zz sa aaa er a aha 67890 el 67890 ABCDE we eee ees 67890 ABCDE pee Enn E E EE ave eat gas 67890 44 Standard Columns 71 5 mm 2 81
26. any transactions the data may be lost 1 Open the cover 10 March 1999 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 March 1999 11 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 Note In the event of a paper jam remove the roll tear a new clean edge and replace it in the paper bucket Be sure that the paper unrolls from the bottom of the roll For more information about See this section Paper jams Troubleshooting the Printer 12 March 1999 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
27. communications failed or that the write to flash failed The alternatives seem to be to retry the block or halt loading and assume a hardware failure ASCII GS DC1 al ah cl ch d1 dn Hexadecimal 1D 11 al ah cl ch d1 dn Decimal 29 17 al ah cl ch d1 dn Value of al low byte of the address it is sent before the high byte Valueofah high byte of the address it is sent after the low byte Value of cl low byte of the count it is sent before the high byte Value of ch high byte of the count it is sent after the low byte Value of d data bytes from 1 to n Value of n for number of data bytes Range of Address al ah Range of Count cl ch ch 256 cl 0000 FFFF hexadecimal 0001 FFFF hexadecimal Range Addresses run from 0 to 64K Related Information Available only in download mode March 1999 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 GS n Hexadecimal 1D22n Decimal 2934n Value of n 48 51 n 48 ASCII n 0 Loads active logo to RAM only This is used to print a special logo but not have it take up flash memory A logo defined following this command is not preserved over a power cycle n 49 ASCII n 1
28. cord to outlet United States International no plug United Kingdom S E V Australia International with plug March 1999 Number A794 K330 A794 K301 A794 K320 A794 K321 A794 K322 A794 K323 A794 K324 A794 K326 19 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 Lengh Order Number RS 232C 25 pin host to 9 pin 8 meters 9 8 ft A141 0008 RS 232C 9 pin to 9 pin 8 meters 9 8 ft A141 0007 Parallel 25 pin to 25 pin 8 meters 9 8 ft A141 0009 Wall Mount Kit Contact your sales representative to order the wall mount kit Printer wall mount kit A794 K260 20 March 1999 Chapter 4 Print Specifications Characters Print Modes Size e Paper Specifications Print Zones Print Zones for 80 mm Paper Print Zones for 82 5 mm Paper e Character Sets Code Page 437 Code Page 850 Code Page 852 Code Page 858 Code Page 860 Code Page 863 Code Page 865 Code Page 866 Chapter 4 Print Specifications Characters Print Modes Size 22 Here are the available print modes Standard Compressed Double High Double Wide Upside Down Rotated Underlined Bold Reverse Italic Scaled A794 Owner s Guide Here are the sizes of the characters for the Standard
29. defined character set with another In both cases all logos and character set definitions are erased and must be redefined While erasing flash memory the printer disables all interrupts including communications To provide feedback to the application the printer responds to the application when the erase is complete 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 Reset Firmware Reboots the printer ASCII GS SPACE Hexadecimal 1D FF Decimal 29 255 March 1999 A794 Owner s Guide Index 8 80 mm paper print zones 23 82 5 mm paper print zones 24 A Accessories See Supplies B Bar codes 5 BASIC sending commands 34 C Cash drawer connector and pin assignments 38 cash drawer driver 5 Cash drawers ordering 19 Changing paper 10 Character sets 5 code page 437 25 code page 850 26 code page 852 27 code page 858 28 code page 860 29 code page 863 30 code page 865 31 code page 866 32 Code page 437 25 Code page 850 26 Code page 852 27 Code page 858 28 Code page 860 29 Code page 863 30 Code page 865 31 Code page 866 32 Colored stripe indicating paper low 16 Column of print missing
30. described in the following two tables Printer Status n 1 or n 49 Bit Off On Hex Decimal Status for Transmit Status 0 Off 00 0 Paper present On 01 1 Paper exhausted 1 Off 00 0 Cover closed On 02 2 Cover open 2 Off 00 0 Paper present On 04 4 Paper exhausted 3 Undefined 4 Off 00 0 Not used Fixed to off 5 Undefined 6 Undefined 7 Off 00 0 Not used Fixed to off March 1999 97 Chapter 6 Programming Information A794 Owner s Guide Transmit Status continued Cash Drawer Status n 2 or n 50 Bit 0 NED OTP AJON Off On Off On Off Hex 00 01 00 02 00 00 Decimal Status for Transmit Status 0 One or both cash drawers open Both cash drawers closed 1 0 One or both cash drawers open 2 Both cash drawers closed Undefined Undefined 0 Not used Fixed to off Undefined 3 Undefined 0 Not used Fixed to off Flash memory User Sector Status n 4 or n 52 Bit Off On 0 F 1 2 Off 3 Off On 4 Off 5 Off On 6 Off 7 S Exceptions Hex 00 00 08 00 00 20 00 Decimal Status for Transmit Status Undefined x Undefined Not Used Fixed to off Flash Logo area adequate definition stored Flash logo area not adequate 0 0 8 0 Not used Fixed to off 0 3 0 0 No user defined characters written to Flash 2 User defined characters written to Flash Not used Fixed to off Undefined When 1 is out of the specified rang
31. dn Define User Defined Character Set 71 1B 2A m n1 n2 d1 dn Select Bit Image Mode 81 1B2Dn Select or Cancel Underline Mode 72 1B 32 Set Line Spacing to 1 6 Inch 57 1B33n Set Line Spacing 58 1B 3A 30 30 30 Copy Character Set from ROM to RAM 73 1B3Dn Select Peripheral Device for Multi Drop 50 1B 3F 1 Cancel User Defined Character 73 1B 40 Initialize Printer 50 1B 44 n k NUL Set Horizontal Tab Positions 62 1B 45n Select or Cancel Emphasized Mode 74 1B 47 n Select or Cancel Double Strike 74 1B 49 n Select or Cancel Italic Print 75 1B4A n Print and Feed Paper 58 1B 4B n1 n2 d1 dn Select Single Density Graphics 83 1B 4C Select Page Mode 113 1B52n Select International Character Set 76 1B 53 Select Standard Mode 114 1B 54n Select Print Direction in Page Mode 115 1B 56n Select or Cancel 90 Degree Clockwise Rotated Print 76 1B 57 n1 ui up Set Print Area in Page Mode 116 1B 59 n1 n2 d1 dn Select Double Density Graphics 83 1B 5B 7D Switch to Flash Download Mode 123 1B 5C n1 n2 Set Relative Print Position 63 1B61n Select Justification 64 1B6333n Select Paper Sensors to Output Paper End Signals 51 1B6334n Select Sensors to Stop Printing 52 1B 63 35n Enable or Disable Panel Button 52 1B 64n Print and Feed n Lines 59 1B 69 Perform Full Knife Cut 47 1B 6A k Read from Non Volatile Memory 53 1B 6D Perform Partial Knife Cut 48 1B 70 n p1 p2 Generate Pulse to Open Cash Drawer 53 1B73n1n2k Write to Non Volatile Memory NVRAM 54 1B 74n Select Intern
32. firmware part 29 41 Boot firmware part 2A 42 Boot firmware part 2B 43 Boot firmware part 12 digit ASCII 2C 44 Boot firmware CRC 2D 45 Boot firmware CRC 2E 46 Boot firmware CRC 2F 47 Boot firmware CRC 4 digit ASCII 30 48 Flash firmware part n data lt CR gt Function Write to NVRAM Example send 14 bytes to printer GS I 0x20 1234567890 Write to NVRAM and print on receipt to verify Example send 14 bytes to printer GS I 1234567890 This will print on receipt Serial written 1234567890 Not available cannot clear Serial item Return Serial preceded by n to identify Printer returns 12 bytes in above example 1234567890 lt CR gt Write to NVRAM Write to NVRAM and print on receipt to verify Not available cannot clear Class model item Return Class model returns 17 bytes Not available cannot write to ROM Not available cannot write to ROM Not available cannot write to ROM Return Boot firmware part returns 14 bytes Not available cannot write to ROM Not available cannot write to ROM Not available cannot write to ROM Return Boot firmware CRC returns 6 bytes Not available cannot write to ROM March 1999 91 Chapter 6 Programming Information 92 Value of n Hex Dec 31 49 32 50 33 51 34 52 35 53 36 54 37 55 80 128 81 129 82 130 83 131 84 132 85 133 86 134 87 135 90 144 91 145 92 146 93 147 94 148 Remote diagnostic item Flash firmwa
33. 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 The width of the printing area follows the Set Left Margin command 1D 4C See the Set Left Margin command GS L earlier in this document for a description ASCII GS W nL nH Hexadecimal 1D57nLnH Decimal 29 87 nL nH Range ofnL 0 255 Range ofnH 0 255 Default 576 dots the maximum printable area Formulas To set the width of the printing area to one inch at the default horizontal motion unit of 1 203 inches send the four byte string GS W 203 0 Or to set the width of the printing area to two inches at the default horizontal motion unit of 1 203 units per inch send the four byte string GS W 150 1 Where 2 inches 406 203 and 406 1 X 256 150 SS Printable area 576 dote n nH lt eft margin gt eS Printing area width Exceptions This command is effective only at the beginning of a line If the setting exceeds the printable area the maximum value of the printable area is used The maximum printable area is 576 dots See the illustration March 1999 67 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
34. 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 The RS 232C interface offers the standard settings that are selected through the Configuration Menu described on page 10 of the Diagnostics and Configuration chapter in the A794 Service Guide Print Speed and Timing The fast speed of the printer requires the application to send data to the printer at least as fast as it is printed The application must also allow receipt lines to be buffered ahead at the printer so the printer will be able to print each line immediately after the preceding line without stopping to wait for more data Ideally the application will send all the data for an entire receipt without pausing between characters or lines transmitted The table shows that with a pause of 50 milliseconds after each line the transmit time equals or exceeds the print time slowing down the printer regardless of the baud rate 50 Millisecond Pause after Each Line Characters Linesper TransmitTime Transmit Time Transmit Time Process Time per Line Receipt 9600 Baud 19 2 K Baud 115 2 K Baud 20 20 1 4 Sec 1 2 Sec 1 03 Sec 0 5 Sec 20 40 2 8 Sec 2 4 Sec 2 06 Sec 1 0 Sec 44 20 1 88 Sec 1 44 Sec 1
35. printer 13 Thermal paper ordering 18 23 requirements 18 23 suppliers 18 23 Timing 35 Tone 9 indicating error 15 March 1999 A794 Owner s Guide Index two tone beep 15 ordering 20 w aX Wall mount kit XON XOFF protocol 36 March 1999 131 Index A794 Owner s Guide 132 March 1999 Axiohm A794 D100 189 9200223 0399 AXIOHM is the name and mark of AXIOHM 1999 AXIOHM Printed in U S A
36. responses and will arrive in the order in which they were solicited Batch Mode Response Response Recognized By March 1999 ESC u 0 0 0 0 0 0 0 x x Binary ESC v 0 0 0 0 0 X x x Binary GSIn 0 x x 0 X X x x Binary GSrn 0 x x 0 X X x x Binary Real Time Response Response Recognized By GS EOT n 0 x x 1 x X 1 0 Binary DLE EOT n 0 x x 1 x X 1 0 Binary GS ENQ 1 x x X x X x x Binary XON 0 0 0 1 0 0 0 1 Binary XOFF 0 0 0 1 0 0 1 1 Binary Auto Status Back ASB Response Recognized By ASB Byte 1 0 x x 1 x X 0 0 Binary ASB Bytes 2 4 0 x x 0 x X x x Binary 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 GS Sequence DLE Sequence ASCII GS ETX n DLE ENO n Hexadecimal 1D03n 1005n Decimal 2937n 165n Value of n 1 recover and restart 2 recover and clear buffers n 1 Restarts printing from the beginning of the line where an error occurred after recovering from the error Print settings that are normally preserved from line to line such as character height and width are still preserved with this command This sequence is ignored except when the printer is busy due to an error condition This command will attempt recovery from a knife error Other errors associated with the receipt such as p
37. start the test press the Paper Feed Button and Reset Button at the same time The printer begins printing the data and character sets until you stop the test This can be given to a service representative if it appears there is a problem See the sample test printout on the following page Another way to run the test is to press the paper feed button and then open and close the cover 2 To stop the test press the Paper Feed Button March 1999 13 Chapter 2 Using the Printer 14 xxx A794 Diagnostics Form wa Model number Serial number Boot Firmware Revision CRC P N Flash Firmware Revision H W parameters Flash Memory Size Flash Logos Fonts CPU Clock Freq Head Setting Energy Coeff Max Speed Step Paper Width Max Power Knife Partial Cut Paper Low Sensor Comm Interface RX Buffer Size Interface Type Parameters Baud Rate Data Bits Stop Bit s Parity Flow Control A794 3105 A990605546 189 1071374D V2 04 0669 189 1072147A 512 kbytes 64 kbytes Flash User Storage 64 kbytes 50 MHz 140 steps Disabled 4096 R8232 Reception Errors Resident Code Pages For more information about Poorly printed test printout 9600 8 1 NONE DTR DSR Ignore 437 850 852 858 860 863 865 866 See this section March 1999 Troubleshooting the Printer A794 Owner s Guide A794 Owner s Guide Troubleshoot
38. 07 Sec 0 5 Sec 44 40 3 76 Sec 2 88 Sec 2 15 Sec 1 0 Sec Process Time is the time it would take the printer to process the data if all transmitted data were present It is not the time it takes to print the receipt 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 next table shows that with no delay between lines the transmit time is much less than the process time allowing the printer to print at full speed No Delay Between Lines Char per Lines per Transmit Time Transmit Time Transmit Time Process Time Line Receipt 9600 Baud 19 2 K Baud 115 2 K Baud 20 20 0 4 Sec 0 2 Sec 0 035 Sec 0 5 Sec 20 40 0 8 Sec 0 4 Sec 0 07 Sec 1 0 Sec 44 20 0 88 Sec 0 44 Sec 0 075 Sec 0 5 Sec 44 40 1 76 Sec 0 88 Sec 0 15 Sec 1 0 Sec March 1999 35 Chapter 5 Communication Interface A794 Owner s Guide XON XOFF Protocol DTR DSR Protocol 36 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 moni
39. 0n Transmit Printer ID Remote Diagnostics Extension 91 1D 4C nL nH Set Left Margin 65 1D50 xy Set Horizontal and Vertical Minimum Motion Units 66 1D 56 m Select Cut Mode and Cut Paper 54 1D56mn Select Cut Mode and Cut Paper 54 1D 57 nL nH Set Printing Area Width 67 1D 5C nL nH Set Relative Vertical Print Position in Page Mode 119 1D5Ertm Execute Macro 121 1D61n Select or Cancel Automatic Status Back ASB 94 1D62n Select or Cancel Smoothing Mode 77 1D66n Select Pitch of HRI Characters 108 1D 68 n Select Bar Code Height 109 1D 6B d1 dk NUL Print Bar Code 109 1D72n Transmit Status 97 1D77n Select Bar Code Width 111 1D FF Reset Firmware 128 1F 04n Convert 6 Dots mm Bitmap to 8 Dots mm Bitmap 86 1F 05n Select Superscript or Subscript Modes 78 1F 56 Send Printer Software Version 99 1F 74 Print Test Form 99 March 1999 A794 Owner s Guide Comparisons Chapter 6 Programming Information 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 15n Feed n Dot Rows This command will move the paper on the receipt in n 203 inch steps instead of n 152 inch steps 16n Add n Extra Dot Rows The dot rows will be measured in n 203 inches versus n 152 inches 1B 20 n Set Right Side Charac
40. 1 Exceptions Available only in download mode March 1999 123 Chapter 6 Programming Information A794 Owner s Guide 124 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 Sector numbers start at 0 ASCII GS STX nn Hexadecimal 1D 02 nn Decimal 29 2 nn Value of n the flash sector to which the next download operation applies Range of n 0 Exceptions Available only in download mode Get Firmware CRC Causes the printer to calculate the CRC for the currently selected sector and transmits the result This is performed normally after downloading a sector to verify that the downloaded firmware is correct 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 ASCII GS ACK Hexadecimal 1D 06 Decimal 296 Return Boot Sector CRC Returns the CRC calculated over the boot sector code space ASCII GS BEL Hexadecimal 1D 07 Decimal 297 Formulas ACK lt low byte gt lt high byte gt March 1999 A794 Owner s Guide Chapter 6 Programming Information Erase All
41. 1 5 0 8 A 50 60 Hz output rated 24 Vdc 2 3 A Use of this product with a power supply other than the Axiohm power supply will require you to test the power supply and Axiohm printer for FCC and CE mark certification 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 Use of a cable other than described here will require that you test the cable with the Axiohm printer and your system for FCC and CE mark certification Power Cord A UL listed detachable power cord must be used For applications where the power supply module may be mounted on the floor a power cord with Type SJT marking must be used For applications outside the US power cords that meet the particular country s certification and application requirements should be used Use of a power cord other than described here may result in a violation of safety certifications that are in force in the country of use Industry Canada IC Radio Frequency Interference Statement This Class A digital apparatus meets all requirements of the Canadian Interference Causing Equipment Regulations Cet appareil num rique de la classe A respecte toutes les exigences du R glement sur le mat riel brouilleur du Canada March 1999 A794 Owner s Guide Contents Chapter 1 About the Printer
42. 119 135 _151 167 183 199 245 oa 247 08 18 28 38 48 58 68 78 88 98 Ag B8 C8 IL D8 E8 F8 8 H X h x mn ja T 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 09 19 29 39 49 59 69 79 89 99 A9 B9 c9 D9 E9 F9 9 11 Y i e EK F e 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 0A 1A 2A 3A 4A 5A 6A 7A 8A 9A AA BA om DA EA FA LF Kl WER RK eis leh eed EE T O 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AB BB CB DB EB FB esc KJE kit ijela Y H 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 DC 1C 2C 3C 4c 5C 6c ZC DC 9C AC BC cc DC Ec FC el LIN Jr ef on 12 28 44 60 76 92 108 124 140 156 172 188 204 220 236 252 0D 1D 2D 3D 4D 5D 6D 7D 8D 9D AD BD cD 1 ED FD cr os M m Jj IH D gt 2 13 29 45 61 77 93 109 125 141 157 173 189 205 221 237 253 0E 1E 2E 3E 4E 5E 6E 7E 8E G 9E d AE BE Sr DE EE FE J gt N A n lt Te 14 30 46 62 78 94 110 126 142 158 174 190 206 222 238 254 OF 1F 2F 3F 4F 5F 6F 7F 8F 9F AF BF Ee Die EF FF 72 O 1 1 63 5 7 5 4 CH 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255 30 March 1999 A794 Owner s Guide Chapter 4 Print Specifications Code Page 865 0 P Essai seer a 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 ETIA O la lt
43. 128 144 160 176 192 208 224 240 a 5 6 gsm T cie 1 17 33 49 5 1 97 113 129 145 161 177 193 209 225 241 b r B I T 1 78 194 210 226 242 CD D N 98 114 _ D gt 162 m NI O 99 115 N 163 179 195 211 227 243 an N 100 116 N rs 164 180 196 212 228 244 on ow Q 5 101 117 Go a P E 165 181 197 213 229 245 m CH 103 118 E an CG 166 182 198 214 230 246 on a N ai 103 119 a m 167 183 199 215 231 247 T Oln m m o gt N N 8 104 120 o gt a N 168 184 200 216 232 248 go Oo OO N O oO Q N op lt l l U a F LL 9 25 41 57 73 9 105 121 7 153 169 185 201 217 233 249 ES il Lu b K S ll NA 25 10 26 42 58 74 90 106 122 8 154 170 186 202 218 234 250 5 x lt ef kI RS pI bR bE RS pw hX em leben zw lt J E 11 27 43 59 75 91 107 123 9 155 171 187 203 219 235 251 4 L gil eee ES ee atest 1 b M r m b No 12 28 44 60 76 92 108 124 A 156 172 188 204 220 236 252 ET l M m 3 H gt x 13 29 45 61 77 93 109 125 1 157 173 189 205 221 237 253 sie Alb I gt N A n Vom O O qr O EI 14 30 46 62 78 94 110 126 2 158 174 190 206 222 238 254 LL s O _ o A Alm 7 A 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255
44. 16 Commands bar code 108 conventions 46 flash download 122 graphics 79 horizontal positioning 60 macro 120 page mode 112 Index print characteristics 68 printer function 47 printer status 87 real time 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 Communication cables ordering 20 Communication Interface See RS 232C interface Compressed print 22 configuration of printer flat surface 4 vertical 5 wall 4 Connector cash drawer 38 IEEE Bi directional 39 Parallel communication 39 RS 232C power 37 Connectors RS 232C communication 37 Consumables See Paper See Paper Controls LED 8 paper feed button 8 reset button 8 tone 9 D Description of printer 2 DOS sending commands 34 DTR DSR protocol 36 F Features of printer 5 bar codes 5 cash drawer driver 5 character sets 5 interfaces 5 memory 5 print columns 5 print resolution 5 print speed 5 March 1999 129 Index IEEE Bi directional Parallel connector communication connector 39 Interface See RS 232C interface Interfaces 5 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
45. 18 34 50 66 82 98 114 130 146 194 210 226 242 03 13 23 33 43 53 63 73 83 gt 93 D3 E3 F3 xr 3 C S i c s a K lt 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 _ 243 04 14 24 34 44 54 64 74 84 94 A4 B4 C4 D4 E4 F4 4 D T d t 6 Se RRE E 4 20 36 52 68 84 100 116 132 148 164 180 196 212 228 244 05 15 25 35 45 55 65 75 85 95 A5 ato B5 C5 D5 E5 F5 5 E U e u r o 5 21 37 53 69 85 101 117 133 149 165 181 197 213 229 245 06 16 26 36 46 56 66 76 86 u 96 A6 B6 C6 D6 E6 F6 amp 6 F V f v A U al T 6 22 38 54 70 86 103 118 134 150 166 182 198 214 230 246 07 17 27 37 47 57 67 77 87 97 A7 B7 C7 D7 E7 F7 7 G W Ww t Sa be tl atl amp 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 08 18 28 38 48 58 68 78 88 98 S A8 B8 C8 IL D8 E8 F8 8 H X h x 5 S 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 09 19 29 39 49 59 69 79 89 Ge 99 S Ag B9 cg a E9 F9 9 1 Y i E O OA F Oleo 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 0A 1A 2A 3A 4A 5A 6A 7A 8A 9A AA BA CA DA EA FA LF j JIZ z r O l 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 0B 1B 2B 3B 4B 5B 6B 7B 8B d 9B AB BB CB DB EB FB D 1 esc K k 51 1 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 OC 1C 2C 3c 4c BC GC ZC BC OC AG BC CC DC EC FC lt L All F m in 12 28 44 60 76 92 108 124 140 156 172 188 204 220 236 252 OD 1D 2D 3D 4D 5D 6D 7D 8D 9D AD BD cD DD ED FD
46. 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 l Y i T r 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 J Z j z Ul SUE 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 K k f i 5 2 1 T H 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 ECHO NO i wy AE 3 12 28 44 60 76 92 108 124 140 156 172 188 204 220 236 252 M m i j Y 2 13 29 45 61 77 93 109 125 141 157 173 189 205 221 237 253 JL H zs N Al Rn s A Xx lt Y rT 14 30 46 62 78 94 110 126 142 158 174 190 206 222 238 254 Ol o AA y q al 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255 26 March 1999 A794 Owner s Guide Chapter 4 Print Specifications Code Page 852 0 P SE OCH BE e 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 J A Q a L 9P F pp R 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 2 B RI ib r l E rT D O 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 3 C S c s L E N 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 4 D T dit J d nA 4 20 36 52 68 84 100 116 132 148 164 180 196 212 228 244 5 E U e u L a A N n 5 21 37 ER 69 85 101 117 133 149 165 181 197 213 229 245 amp 6 F V f v lt Z A S 6 22 38 54
47. 5 in 56 Compressed Columns 70 mm 2 756 in March 1999 23 Chapter 4 Print Specifications 4mm 0 157 in Paper Width 80 mm 3 15 in Printable Zone 598 Dots 74 75 mm 2 943 in i Top Margin 17 8 mm 0 70 in Minimum Print Zones for 82 5 mm Paper A794 Owner s Guide 1 25 mm 0 049 in When printing graphics or logos converted from 6 dot mm to 8 dot mm the printable zone is expanded to 598 dots Here are the specifications of the print zone for 82 5 mm paper 24 amp lt T Paper Width 82 5 mm 3 25 in 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 Printable Zone 640 Dots 80 mm 3 15 in Nominal Margins 2 1 25 mm 0 05 in Cut Edge Top Margin 17 8 mm 70 in Minimum ER 67890 CEET 67890 ABCDE enee ace Mecca eae etc ea ects Se 67890 ABCGDEQ 2 a eer eee ree 67890 48 Standard Columns 78 0 mm 3 07 in 62 Compressed Columns 77 5 mm 3 05 in March 1999 lt Cut Edge A794 Owner s Guide Chapter 4 Print Specifications Code Page 437 00 10 20 30 40 50 60 lt 70 80 90 A0 BO an co DO E0 FO P 0
48. 9 165 181 197 213 229 245 amp 6 F V f v a 4 all 6 22 38 54 70 86 103 118 134 150 166 182 198 214 230 246 7 G W g w uj A f 7 23 39 55 71 87 103 119 135 151 167 183 199 215 231 247 8 H X h x y L b 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 9 l Y i T r 9 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 J Z j z Ul r U 10 26 42 58 74 90 106 122 138 154 170 186 202 218 234 250 K k f i 5 2 1 T H 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 ECHO NO i wy AE 3 12 28 44 60 76 92 108 124 140 156 172 188 204 220 236 252 M m i j Y 2 13 29 45 61 77 93 109 125 141 157 173 189 205 221 237 253 JL H zs N Al Rn s A Xx lt Y rT 14 30 46 62 78 94 110 126 142 158 174 190 206 222 238 254 Ol o AA y q al 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255 28 March 1999 A794 Owner s Guide Chapter 4 Print Specifications Code Page 860 00 10 20 30 40 50 60 7 70 80 90 iy AO BO co DO E0 Fo NUL sp 0 P E z l d GO 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 01 11 21 31 41 51 61 71 81 91 F D1 EI F1 x J A Q a A F 1 17 33 49 65 81 97 113 129 145 193 209 225 241 02 12 22 32 42 52 62 72 82 92 N D2 E2 F2 2 B R b r T r gt 2
49. 94 Owner s Guide 54 Write to Non Volatile Memory NVRAM Writes two byte word n1 n2 to location k in history EEROM ASCII ESCs nln2k Hexadecimal 1B73 nln2k Decimal 27115 nln2k Valueofn1 1 Byte Value of ni 2 Byte Range of k 0 63 Decimal 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 The format is indicated by the parameter m ASCII GS V m GSVmn Hexadecimal 1D 56 m 1D56mn Decimal 29 86 m 29 86 mn Value of m Selects the mode as shown in the table Value of n Determines cutting position m Feed and Cut Mode 0 48 Full cut no extra feed 1 49 Partial cut no extra feed 65 Feeds paper to cutting position n times vertical motion unit and cuts the paper completely 66 Feeds paper to cutting position n times vertical motion unit and cuts the paper partially Range of m 0 48 1 49 65 66 when used with n Range of n 0 255 Default of m n 0 Formulas n times the vertical motion unit equals the cutting position to which the paper is fed March 1999 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
50. A794 Thermal Receipt Printer Owner s Guide A794 D100 Axiohm 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 Copyright Copyright 1999 by AXIOHM Ithaca New York USA All rights reserved Printed in USA Confidential Unpublished Property of AXIOHM Trademarks AXIOHM is a trademark Other trademarks and registered trademarks are the property of their respective holders Federal Communications Commission FCC Radio Frequency Interference Statement Warning Changes or modifications to this unit not expressly approved by the party responsible for compliance could void the user s authority to operate the equipment Note This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and us
51. 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 gt gt gt Defining the print area Clear Printer Clears the print line buffer without printing and sets the printer to the following condition e Double Wide command 12 is canceled Line Spacing Pitch and User Defined Character Sets are maintained at current selections RAM is not affected Single Wide Single High Non Rotated and Left Aligned characters are set Printer is restarted and error status is cleared in a fault condition Printing position is set to column one Knife is homed gt ASCII DLE Hexadecimal 10 Decimal 16 Exceptions In printers with the Parallel interface this command also returns paper exhaust to the paper status line if an alternate status has been requested Perform Full Knife Cut Cuts the receipt Use either Hex 19 or Hex 1B 69 There are two codes for this command Both codes perform the same function ASCII EM ESC i Hexadecimal 19 1B 69 Decimal 25 27 105 Exceptions The full cut is replaced by a partial cut in the Axiohm A793 emulation March 1999 47 Chapter 6 Programming Information A794 Owner s Guide 48 Perform Partial Knife Cut Partially cuts t
52. Commands 68 Graphics Commands een 79 Printer Status Commande 87 Real Time Commandes T 100 Bar Code Commande 108 Page Mode Commands een 112 Macro Commande 120 Flash Download Commands 122 r m ROCA OR ESET Sa ama EE E 129 March 1999 A794 Owner s Guide Chapter 1 About the Printer Description of Printer e Models Available Model Identification Communication Interfaces Installations On a Flat Surface On a Wall On a Flat Surface Vertically e 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 2 March 1999 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 A794 X X X X 1 no knife 5 knife 0 standard character sets n other expanded language versions
53. Down Then Across Formulas See the above table March 1999 A794 Owner s Guide Select Double Density Graphics Chapter 6 Programming Information 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 ASCII ESC Y n1 n2 d1 dn Hexadecimal 1B 59 n1 n2 d1 dn Decimal 27 89 n1 n2 d1 dn Value of n Value of n 8 Dot Value of n 24 Dot Single Single Density Mode Density Mode n1 256 x n2 3 x n1 256 x n2 Formulas See the above table Value of d Number of Bytes of Data Printed Down Then Across March 1999 83 Chapter 6 Programming Information A794 Owner s Guide 84 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 The inactive definition is not erased from flash and continues to take up space in flash memory Whe
54. 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 GS SO Hexadecimal 1D 0E Decimal 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 lt low byte gt lt high byte gt ASCII GSSI Hexadecimal 1D 0F Decimal 2915 Erase Selected Flash Sector Erases the previously selected sector The printer transmits ACK when the sector has been erased If the previous sector is not successfully erased or if no sector was selected the printer transmits NAK ASCII GS DLE n Hexadecimal 1D10n Decimal 2916n Value and Range ofn 0 2 256k bytes Flash 0 14 1M bytes Flash 0 30 2M bytes Flash Exceptions Available only in download mode March 1999 125 Chapter 6 Programming Information A794 Owner s Guide 126 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 NAK means that for some reason the data was not written correctly This could mean that
55. Go A794 Owner s Guide A794 Owner s Guide A794 Media and Supplies Guide Where to Go A794 Setup Guide A794 Setup Guide Chapter 3 Media and Supplies Guide Ordering Thermal Paper Thermal Paper Specifications Manufacturers How to Order e 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 Manufacturers How to Order 18 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 90mm 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 Axiohm recommends the following paper grades produced by their respective manufacturers There are a number of paper converters qualified to provide this paper provided the POS rolls are from these recommended grades Manufacturers Phone Paper Grade Density Kanzaki Specialty Papers Voice 888 526 9254 P 310 Standard USA Fax 413 731 8864 P 300 Light P 350 Light Appleton Papers Inc USA Voice 800 922 1729 Optima T1012A Standard Fax 800 922 1712 Optima POS and T1030 Light Arjo Wiggins Thermal Papers Voic
56. H x 256 x vertical or horizontal motion unit inches The amount of movement is calculated only for the paper roll When pitch n is specified to the movement downward nL nH x 256 n When pitch n is specified to the movement upward the negative direction use the complement of 65536 When pitch n is specified to the movement upward nL nH x 256 65536 N Exceptions This command is used only in page mode otherwise it is ignored Any setting that exceeds the specified printing area is ignored March 1999 119 Chapter 6 Programming Information A794 Owner s Guide Macro Commands 120 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 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 If the printer receives a second Select or Cancel Macro Definition GS command immediately after previously receiving a Select or Cancel Macro D
57. 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 For more information see the description of the Set Horizontal and Vertical Minimum Motion Units command in this document ASCII ESC n1 n2 Hexadecimal 1B 24 n1 n2 Decimal 27 36 nl n2 Value of n Number of dots to be moved from the beginning of the line Value of n1 Remainder after dividing n by 256 Value of n2 Integer after dividing n by 256 Formulas n n1 256 x n2 x 2 The resulting dot column must be less than 576 March 1999 A794 Owner s Guide Select Bit Image Mode Chapter 6 Programming Information 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 ESC m n1 n2 d1 dn Hexadecimal 1B 2A m n1 n2 41 dn Decimal 27 42 m n1 n2 d1 dn Value of m Value No of ofm Mode No of Dots Vertical No of Dots Horiz
58. Side Character Spacing Sets the right side character spacing to n x horizontal or vertical motion units Values for this command are set independently in standard and page mode The units of horizontal and vertical motion are specified by the Set Horizontal and Vertical Minimum Motion Units GS P command Changes in the horizontal or vertical units do not affect the current right side character spacing When the horizontal or vertical motion unit is changed by the Set Horizontal and Vertical Minimum Motion Units GS P command the value must be in even units and not less than the minimum amount of horizontal movement In standard mode the horizontal motion unit is used In page mode the horizontal or vertical motion unit differs and depends on the starting position of the printable area When the starting printing position is the upper left or lower right of the printable area set by Select Print Direction in Page Mode ESC T the horizontal motion unit x is used When the starting printing position is the upper right or lower left of the printable area set by Select Print Direction in Page Mode ESC T the vertical motion unit y is used ASCII ESC SP n Hexadecimal 1B20n Decimal 27 32 n Range of n 0 32 Default 0 March 1999 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 t
59. aper out or printhead overheating can be recovered from only by clearing the specific condition such as loading paper or letting the printhead cool down n 2 Recovers from an error after clearing the receive and print buffers Print settings that are normally preserved from line to line such as character height and width are still preserved with this command This sequence is ignored except when the printer is busy due to an error condition The same error recovery possibilities exist as for n 1 Exceptions The command is ignored if n is out of range March 1999 103 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 ASCII Hexadecimal Decimal Value of n Exceptions GS Sequence GS EOT n 1D 04 n 294n GS Sequence DLE Sequence DLE EOT n 1004 n ERT 1 Transmit printer status 2 Transmit RS 232C busy status 3 Transmit error status 4 Transmit receipt paper status DLE Sequence 1 Transmit printer status 2 Transmit RS 232C busy status 3 Transmit error status 4 Transmit receipt paper status The command is ignored if n is out of range Related Information 1 Transmit Printer Status Bit Status Hex 0 Off On 2 Off On 3 Off On 4 On 5 6 7 Off 104 00 02 00 04
60. atic Status Back command 1D 61 the status transmitted by this command Transmit Printer ID 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 GSIn Hexadecimal 1D49n Decimal 2973 n Value of n 1 49 Printer model ID 2 50 Type ID 3 51 ROM version ID n Printer ID Specification ID Hexadecimal 1 49 Printer model ID Axiohm A794 0x24 2 50 Type ID Installed options Refer to next table 3 51 ROM version ID ROM version 0x00 Type ID n 2 Bit Off On Hex Decimal Function O Off 00 O Notwo byte character code installed On 01 1 Two byte character code installed 1 Off 00 0 No knife installed On 02 2 Knife installed 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 90 March 1999 A794 Owner s Guide Chapter 6 Programming Information Transmit Printer ID Remote Diagnostics Extension Performs the remote diagnostic functions specified by n Each returned message is defined as ASCII GSI n Hexadecimal 1D 4940n Decimal 29 73 64n Values of n Refer to table Value of n Remote diagnostic item Hex Dec 20 32 Serial 10 digit ASCII 21 33 Serial 22 34 Serial 23 35 Serial 24 36 Class model 15 digit ASCII 25 37 Class model 26 38 Class model 27 39 Class model 28 40 Boot
61. ational Character Set 76 1B75n Request Alternate Status 88 1B 750 Transmit Peripheral Device Status 88 1B 76 Transmit Paper Sensor Status 89 1B 7Bn Select or Cancel Upside Down Print Mode 76 1D 00 Return Boot Sector Firmware Part Number 123 1D 01 Return Segment Number Status of Flash Memory 123 March 1999 43 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 04n 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 OF Return Main Program Flash CRC 125 1D10n Erase Selected Flash Sector 125 1D 11 al ah cl ch d1 dn Download to Active Flash Sector 126 1D21n Select Character Size 117 1D 22n Select Memory Type SRAM Flash 127 1D 23 n Select the Current Logo 84 1D 24 nL nH Set Absolute Vertical Print Position in Page Mode 119 1D 2A n1 n2 d1 dn Define Downloaded Bit Image 85 1D 2F m Print Downloaded Bit Image 86 1D 3A Select or Cancel Macro Definition 123 1D 40 n Erase User Flash Sector 128 1D 42 n Select or Cancel White Black Reverse Print Mode 77 1D 48 n Select Printing Position of HRI Characters 108 1D 49 n Transmit Printer ID 90 1D 49 4
62. bled 2 4 Undefined 6 Undefined Bits 5 and 7 are not used Default 0 Enable or Disable Panel Button Enables or disables the paper feed button by toggling the paper feed button on and off Only the lowest bit is used to toggle the paper feed button If the last bit is 0 the paper feed button is enabled If the last bit is 1 the paper feed button is disabled ASCII ESC c5n Hexadecimal 1B6335n Decimal 2799 53n Value of n 0 Enable 1 Disable Default 0 Enable Exceptions Functions that require the panel button cannot be used when it has been disabled with this command 52 March 1999 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 ESC jk Hexadecimal 1B6Ak Decimal 27 106 k Range of k 0 63 Decimal Generate Pulse to Open Cash Drawer Sends a pulse to open the cash drawer ASCII ESC p npl p2 Hexadecimal 1B70 npl p2 Decimal 27112 npl p2 Value of n 00 48 Decimal Drawer 1 01 49 Decimal Drawer 2 Value of p1 On time Value of p2 Off time Formulas The value for either p1 or p2 is the hexadecimal number multiplied by 2 ms to equal the total time e pl Hex x2 ms p2 Hex x2 ms Related Information The off time is the delay before the printer performs the next operation March 1999 53 Chapter 6 Programming Information A7
63. characteristics for both pitches on the receipt station Pitch Receipt Columns Receipt CH Standard 44 15 6 Compressed 56 20 3 Related Information See Print Specifications for a description of both pitches March 1999 69 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 ASCII ESC n Hexadecimal 1B25n Decimal 27 37 n Value of n 0 Code Page 437 1 User Defined RAM 2 Code Page 850 Range of n 0 2 Default 0 Code Page 437 70 March 1999 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 ESC amp s c1 c2 n1 d1 nn dn Hexadecimal 1B 26 s c1 c2 n1 dl nn dn Decimal 27 38 s c1 c2 n1 d1 nn dn Values and Ranges s 3 the number of bytes vertically in the character cell c the ASCII codes of the first c1 and last c2 characters respectively c1 Hex 20 FF 20 is always printed as a space c2 Hex 20 FF 20 is always printed as a space To define only one cha
64. d Commands One way of getting commands to the printer is to send them directly from DOS For example the command COPY CON COMI sets the computer up such that the hexadecimal code corresponding to any key that was pressed would be sent to the communication port COM1 when the COPY mode is exited If the printer is connected to COM1 then the data will go to the printer Exit the COPY mode by typing CTRL Z and then pressing the ENTER key Once the computer knows to direct data from any print command to the proper port commands can be sent from any software program Using BASIC to Send Commands In BASIC printer commands are sent as a string of characters that are preceded by the LPRINT command For example LPRINT CHR amp HOA sends the hexadecimal number 0A to the printer which causes the printer to print the contents of its print buffer Previously sent commands tell the printer exactly how this data should appear on the paper For example LPRINT CHRS amp H12 ABC CHRS amp HOA 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 OA Again the communication link that the BASIC program outputs to must be matched to that of the printer March 1999 A794 Owners Guide Chapter 5 Communication Interface RS 232C Interface The RS 232C interface uses either XON XOFF software
65. e 441222 422 422 Sensa 522 60 Standard Ltd UK Fax 441222 422 402 Sensa 662 60 Light Kanzan SpezialpapiereGMBH Voice 49 2421 59240 KF60 Standard Germany Fax 49 2421 5924 29 KF50 Light Nippon Paper Co Ltd Voice 81 3 3218 8000 TP50 KS Standard Business Communications Paper Div Japan Oji Paper Co Ltd Japan Voice 81 3 5467 1086 KF60 Standard Fax 81 3 5467 6678 KF50 Light Additional grades are qualified and available for special media requirements To order paper rolls contact your converter of choice Axiohm can provide the following paper in small lots to facilitate product evaluation and testing To order directly from Axiohm use the following part numbers Standard Density 50 Rolls Axiohm A152 002 Light Density 50 Rolls Axiohm A152 003 March 1999 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 Suppliers may use other numbers Item Type Power supply with attached cable to printer and U S power supply cord Power supply attached cable Power supply
66. e the command is ignored 98 March 1999 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 AX V Hexadecimal 1F56 Decimal 31 86 Print Test Form Prints the current printer configuration settings on the receipt ASCII AXt Hexadecimal 1F 74 Decimal 31 116 March 1999 99 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 1B 76 ASCII ESC v and 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
67. e of the Rotated Print commands copy to RAM then use the Define User Defined Character Set command 1B 26 Cancel User Defined Character Cancels the pattern defined for the character code specified by n After the user defined character is canceled the corresponding pattern from current active ROM Code Page is printed ASCII ESC n Hexadecimal 1B3Fn Decimal 2763n Range of n 32 255 Exceptions This command is ignored if n is out of range or if the user defined character is not defined March 1999 73 Chapter 6 Programming Information A794 Owner s Guide 74 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 ESC En Hexadecimal 1B45n Decimal 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 Related Information This command and the Select Print Mode s command 1B 21 function identically They should have the same setting when used together Select or Cancel Double Strike Turns double strike mode on or off Identical to Emphasized mode The printer is reset to the standard print mode after a Clear Printer 10 command is received ASCII ESC Gn Hexadecimal 1B47n Decimal 2771n Value of n 0 Off 1 On Whe
68. ed in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense Information to the User This equipment must be installed and used in strict accordance with the manufacturer s instructions However there is no guarantee that interference to radio communications will not occur in a particular commercial installation If this equipment does cause interference which can be determined by turning the equipment off and on the user is encouraged to contact Axiohm immediately Axiohm is not responsible for any radio or television interference caused by unauthorized modification of this equipment or the substitution or attachment of connecting cables and equipment other than those specified by Axiohm The correction of interferences caused by such unauthorized modification substitution or attachment will be the responsibility of the user March 1999 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
69. efinition GS the printer remains in the macro undefined state ASCII GS Hexadecimal 1D3A Decimal 29 58 Formulas The contents of the macro can be defined up to 2048 bytes Exceptions If the macro definition exceeds 2048 bytes excess data is not stored March 1999 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 ASCII GS rtm Hexadecimal 1D5Ertm Decimal 2994rtm Value of r The number of times to execute the macro Value of t The waiting time for executing the macro Formulas The waiting time is t x 100 ms for every macro execution m specifies macro executing mode when the LSB Least significant bit m 0 The macro executes r times continuously at the interval specified by t when the LSB Least significant bit of m 1 Exceptions If this command is received while a macro is being defined the macro definition is aborted and the definition is cleared If the macro is not defined or if r is 0 nothing is executed March 1999 121 Chapter 6 Programming Information A794 Owner s Guide Flash Download Commands 122 The
70. ettings The printer supports the standard RS 232C settings Baud Rate 1200 2400 4800 9600 19 2K 38 4K 57 6K 115 2K Parity Parity Enabled Parity Disabled Even Parity Odd Parity Flow Control Method XON XOFF DTR DSR Data Reception Errors Print for Data Errors Ignore Data Errors Generally the printer is shipped with all the RS 232C parameters pre set at the factory 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 For more information about See this section Changing the RS 232C settings Diagnostics and Configuration through the configuration menu in the A794 Service Guide 38 March 1999 A794 Owners Guide Chapter 5 Communication Interface Parallel Interface The printer is also available with an IEEF 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 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 Function Pin Numbers Function STROBE 1 DO Data 2 14 AUTOFD
71. he line The print starting position is reset to the first column 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 Print Position will be interpreted accordingly and varies according to printer emulation ASCII ESC n1 n2 Hexadecimal 1B 24n1 n2 Decimal 27 36 n1 n2 Value of n n Number of dots to be moved from the beginning of the line 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 Formulas The example shows how to calculate 280 dots as the absolute starting position 280 256 1 remainder of 24 ni 24 n2 1 Related Information This command is also used in graphics mode See Graphics Commands in this document for more information For more information see the description of the Set Horizontal and Vertical Minimum Motion Units command 1D 50 in this document March 1999 61 Chapter 6 Programming Information A794 Owner s Guide 62 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 al
72. he maximum value of the printable area is used The maximum printable area is 576 dots See the illustration ASCII GS LnL nH Hexadecimal 1D4C nL nH Decimal 29 76 nL nH Range ofnL 0 255 Range of nH 0 255 Default 576 dots the maximum printable area Formulas To set the left margin to one inch at the default horizontal motion unit of 1 203 inches send the four byte string GS L 203 0 Or to set the left margin to two inches at the default horizontal motion unit of 1 203 units per inch send the four byte string GS L 150 1 Where 2 inches 406 203 and 406 1 X 256 150 amp Printable area 576 dots lt Left margin gt Printing area width _ gt March 1999 65 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 ASCII GSPxy Hexadecimal 1D50xy Decimal 29 80 x y Value of x Horizontal Value of y Vertical Range of x 0 255 Range of y 0 255 Default of x 203 Default of y 203 66 March 1999 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
73. he 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 SUB ESC m Hexadecimal 1A 1B 6D Decimal 26 27 109 Formulas The cut edge is 144 dot rows or 71 inch 18 mm above the print station Exceptions The command is valid only at the beginning of a line Generate Tone Generates an audible tone ASCII ESC BEL Hexadecimal 1B07 Decimal 277 March 1999 A794 Owner s Guide Select Print Mode Selects the print mode standard compressed emphasized underlined double high or double wide ASCII ESC 1 Hexadecimal 1B21n Decimal 27 33 n Value of n See table Value of n Bit Function 0 Bit 0 Pitch Standard Pitch 44 Col Line 15 CPI Bit 3 Emphasized Mode Canceled Bit 4 Double High Canceled Bit 5 Double Wide Canceled Bit 7 Underlined Mode Canceled Bits 1 2 and 6 are not used Default 0 for bits 0 3 4 5 7 Exceptions Refer to the above table for exceptions Related Information Chapter 6 Programming Information 1 Compressed Pitch 56 Col Line 20 CPI Set Set Set Set See the Print Specifications Guide for a description of standard and compressed character pitches March 1999 49 Chapter 6 Programming Information A794 Owner s Guide Select Peripheral Device fo
74. ibed 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 GS Hn Hexadecimal 1D48n Decimal 2972n Value of n Printing position 0 Not printed 1 Above the bar code 2 Below the bar code 3 Both above and below the bar code Default 0 Not printed Select Pitch of HRI Characters Select font used to print HRI characters ASCII GS fn Hexadecimal 1D66n Decimal 29 102 n Value of n 0 Standard Pitch at 15 CPI 1 Compressed Pitch at 20 CPI Default 0 Standard Pitch at 15 CPI 108 March 1999 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 GShn Hexadecimal 1D68n Decimal 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 The first variation uses a NULL character to terminate the string the second uses a length byte at the beginning of the string to compensate for the Code 128 bar code that can accept a NULL character as part of the data With the second variation the length of byte is specified at the beginning of the string Bar codes can be aligned left center or right using
75. ing Information A794 Owner s Guide Real Time Status Transmission continued 4 Transmit Receipt Paper Status Bit Status Hex Decimal Function 0 Off 00 0 Fixed to Off On 02 2 Fixed to On 2 Off 00 0 Paper adequate On 04 4 Paper low if paper low sensor enabled 3 Off 00 0 Paper adequate On 08 8 Paper low if paper low sensor enabled On 10 16 Fixed to On 5 Off 00 0 Paper present On 20 32 Paper exhausted 6 Off 00 0 Paper present On 40 64 Paper exhausted Z Off 00 0 Fixed to Off 106 March 1999 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 Value of Byte Bit 0 Status Off On Off On GS ENQ 1D 05 295 Hex 00 01 00 02 00 04 00 08 00 10 00 00 40 80 Decimal 0 1 N o g eS CO O gt O N CO Function Paper adequate Paper low if paper low sensor enabled Paper adequate Paper low if paper low sensor enabled Cover closed Cover open Not busy at the RS 232C interface Printer is busy at the RS 232C interface One or both cash drawers open Both cash drawers closed Fixed to Off No error condition Error condition exists in the printer Fixed to On March 1999 107 Chapter 6 Programming Information A794 Owner s Guide Bar Code Commands These commands format and print bar codes and are descr
76. ing the Printer Chapter 2 Using 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 For more information about Detailed and technical troubleshooting Printer Tone and Green LED Problem Green LED quick continuous flashing Green LED slow continuous flashing Printer beeps two tone low frequency high frequency Printer beeps and flashes green LED in various combinations Possible Causes Paper out Cover off Knife unable to home Paper is low if Paper Low Sensor is installed Other problems may be indicated Printer has been turned on and is ready to operate These all indicate serious problems See this section Service Level Troubleshooting in the A794 Service Guide What to Do Put in a new paper roll Put the cover on Contact your authorized service representative Put in a new paper roll Contact your authorized service representative No action is required Contact your authorized service representative March 1999 Where to Go A794 Owner s Guide Contact your authorized service representative A794 Owner s Guide 15 Chapter 2 Using the Printer Printing Problems Problem Possible Cause
77. inter and are specified as male DB9 9 pin D shell and female DB25 25 pin with RTS and CTS pins connected 9 pin DB 9 Connector 25 pin DB 25 Connector Function Pin Numbers Function Function Pin Numbers Function 1 Not Used Frame Ground amp Shield 1 DSR 6 f 14 Not Used 2 RXD Transmit Data 2 RTS 7 15 Not Used 3 TXD Receive Data 3 a N CTS 8 A mm RTS 4 S Ge SC Not Used 9 ot Use 5 Logic Ground CTS 5 TS gr SE 19 d U S t Shell Frame Ground Logic Ground 7 ot Use GI ENG 20 DTR t e SC g 21 Not Used t Si SC e 22 Not Used t Si RE i 23 Not Used t SS Se e 24 Not Used ot usea 25 Not Used Not Used 13 Power Connector With RS 232C the printer is always remotely powered The following illustration shows the power cable connector and pin assignments The power cable connector is a 3 pin mini DIN plug and is located at the rear of the printer Function Pin Numbers Function Ground 2 3 Not Used 1 24 Volts Shell Shield 1 March 1999 37 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 Pin Number Cash Drawer Connector Frame Ground Drawer 1 Driver Status Switch 24 VDC Drawer 2 Driver Status Switch SGN OO N RS 232C S
78. ions generally preclude use of standard DOS drivers for the serial communication ports when using real time commands 100 March 1999 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 nor DLE EOT n Although the printer responds to Real Time commands when it is busy it will place them into the buffer behind any other data there and flush them out in the order in which they were received 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 When the printer is busy due to an error condition then data stops being processed of the buffer until the condition clears one way or another In either case but more quickly in the case of an error condition the buffer can fill with Real Time commands When the DLE sequences are being used the last byte stored when the buffer fills up could be the DLE code with no room for the subsequent EOT or ENQ When this lone DLE byte is finally
79. ite Black Reverse Print Mode does not affect bit image downloaded bit image bar code HRI characters and spacing skipped by Horizontal Tab HT Set Absolute Starting Position ESC and Set Relative Print Position ESC ASCII GSBn Hexadecimal 1D42n Decimal 29 66 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 or Cancel Smoothing Mode This command is ignored ASCII GSbn Hexadecimal 1D62n Decimal 29 98 n March 1999 71 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 AX ENO n Hexadecimal 1F05n Decimal 3105 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 Summary of Rotated Printing The table shows the combinations of upside down print 90 degree clockwise rotated print and 90 degree counterclockwise rotated print 90 degree clockwise rotated and 90 degree counterclockwise rotated print commands are mutually exclusive The setting of the last received command is effective The samples of the print show only the normal size characters Double wide and doub
80. l tabs ASCII ESC D n k NUL Hexadecimal 1B 44 n 4 NUL Decimal 27 68 n k 0 Value of n Column number for tab minus one n is always less than or equal to the current selected column width Value of k 0 32 Default Every 8 characters from column 1 9 17 25 etc for normal print Formulas Set the tab positions in ascending order and put Hex 00 at the end Hex 1B 44 00 number of tabs not specified clears all tab positions Exceptions The tabs cannot be set higher than the column width of the current pitch Standard pitch 44 columns Compressed pitch 56 columns March 1999 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 ASCII ESC N n1 n2 Hexadecimal 1B5C n1 n2 Decimal 27 92 n1 n2 Value of n To Move the Relative Starting Position Right of the Current Position n Number of dots to be moved right of the current position n1 Remainder after dividing n by 256 n2 Integer after dividing n by 256 The values for n1 and n2 are two bytes in low byte high byte word orientation To Move the Relative Starting Position Left of the Current Position n Number of dots to be moved left of the current position n1 Remainder after dividing 65
81. le high characters are printed in the same orientation They may also be mixed on the same line Upside Down Rotated CW Rotated CCW Resulting Output 1B 7B n 1B 56 n 1B 12 Canceled Canceled Canceled 1 See Below Canceled Set Canceled 2 See Below Set Canceled Canceled 3 See Below Set Set Canceled 4 See Below Canceled Canceled Set 5 See Below Set Canceled Set 6 See Below 1 ABC 2 SCH 3 ogv 4 OM 5 LMV 6 OWS Note Right side up and upside down print modes cannot be mixed on the same line 78 March 1999 A794 Owners 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 DC1 n1 nl Hexadecimal 11 n1 n72 Decimal 17 n1 al Value of n n1 n72 Data bytes Range 0 255 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 ESC BMP file Hexadecimal 1B Decimal 27 Value Maximum width 576 Maximum height 512 Exceptions BMP file images that are not monochrome are ignored Related Information Microsoft BMP bitmap file format March 1999 79 Chapter 6 Programming Information A794 Owner s Guide 80
82. lemented They will be identified as not implemented If received they are ignored and not sent to the print buffer as data Any non legal commands are sent to the print buffer as data List of Commands 42 Code Hexadecimal Command Page 09 Horizontal Tab 60 OA Print and Feed One Line 55 UC Print and Return to Standard Mode 112 0D Activate Carriage Return 55 10 Clear Printer 47 10 04 n Real Time Status Transmission 104 10 05 n Real Time Request to Printer 103 11 n1 n72 Print Raster Graphics 79 12 Select Double Wide Characters 68 13 Select Single Wide Characters 68 14n Feed n Print Lines 55 15n Feed n Dot Rows 56 16n Add n Extra Dot Rows 56 17 Print 57 18 Cancel Print Data in Page Mode 112 19 Perform Full Knife Cut 47 1A Perform Partial Knife Cut 48 1B Download BMP Logo 79 1B 07 Generate Tone 48 1B 0C Print Data in Page Mode 113 1B 12 Select 90 Degree Counter Clockwise Rotated Print 69 1B 14n Set Column 57 1B 16n Select Pitch Column Width 69 1B 20 n Set Right Side Character Spacing 60 1B21n Select Print Mode 49 1B 24 n1 n2 Set Absolute Starting Position 61 80 March 1999 A794 Owner s Guide Chapter 6 Programming Information Code Hexadecimal Command Page 1B 25n Select Character Set 70 1B 26 s c1 c2 n1 d1 nn
83. mands which values can be set independently in standard mode and page mode to those for page mode Set Right Side Character Spacing ESC SP Select 1 6 Inch Line Spacing ESC 2 Set Line Spacing ESC 3 It is possible only to set values for the following commands in page mode These commands are not executed Select or Cancel 90 Degree Clockwise Rotation ESC V Set Counter Clockwise Rotation ESC DC2 Select Justification ESC a Select or Cancel Upside Down Printing 1B 7B Set Left Margin GS L Set Print Area Width GS W ASCII ESC L Hexadecimal 1B 4C Decimal 27 76 Exceptions The command is enabled only when input at the beginning of a line The command has no effect if page mode has previously been selected March 1999 113 Chapter 6 Programming Information A794 Owner s Guide 114 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 This command switches the settings for the following commands the values for these commands can be set independently in standard mode and page mode to those for standard mode 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
84. mation 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 Top of Graphic Column 72 x 8 Max Column MSB LSB ASCII GS n1 n2 1 dn Hexadecimal 1D 2A n1 n2 d1 dn Decimal 29 42 n1 n2 d1 dn Value of n Value of n1 Value of n2 Value of d 1 72 8 x n1 Number of 1 64 Number of Bytes of Data Printed Horizontal Dot Columns Vertical Bytes Down Then Across The number of bytes sent is represented by the following formula n 8 x n1 x n2 n1 x n2 must be less than or equal to 4608 Ranges See table Exceptions See the illustration for the Print Downloaded Bit Image command 1D 2F for a representation of the bit image March 1999 85 Chapter 6 Programming Information Print Downloaded Bit Image A794 Owner s Guide 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 ASCII GS m Hexadecimal 1D2Fm Decimal 29 47 m Value and Range of m Valueofm Print Mode 0 Normal 1 Do
85. n 0 and 1 are the Least Significant Bit LSB Default 0 Off Exceptions Only the lowest bit of n is effective Double strike printing cannot be used with bit images or downloaded bit images March 1999 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 ESC In Hexadecimal 1B49n Decimal 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 See Print Specifications for the character sets There are two codes for this command Both codes perform the same function ASCII ESC RnESC tn Hexadecimal 1B52n 1B 74n Decimal 2782n 27116 n Value of n 0 Code Page 437 1 Code Page 850 2 Code Page 852 3 Code Page 860 4 Code Page 863 5 Code Page 865 6 Code Page 858 7 Code Page 866 Default 0 Code Page 437 Related Information This command may also be known as Select International Character Set March 1999 75 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 remai
86. n be developed in the printer s page buffer before being printed using the Print Page Mode commands FF or ESC FF ASCII ESC W 11 n2 n8 Hexadecimal 1B 57 n1 n2 n8 Decimal 27 87 n1 n2 n8 Range of n 0 255 Default n1 4 0 n5 64 n6 2 n7 64 H8 2 Formulas The starting position of the print area is the upper left of the area to be printed x0 y0 The length of the area to be printed in the y direction is set to dy inches The length of the area to be printed in the x direction is set to dx inches Use the equations to determine the Value of x0 y0 dx and dy See the illustration for a graphic representation of the printing area For more information about the fundamental calculation pitch see the Set Horizontal and Vertical Motion Units command 1D 50 zs n1 n2 x 256 x horizontal direction of the fundamental calculation pitch y0 n3 n4 x 256 x vertical direction of the fundamental calculation pitch dx n5 n6 x 256 dy n7 n8 x 256 x vertical direction of the fundamental calculation pitch x horizontal direction of the fundamental calculation pitch Keep the following notes in mind for this command The fundamental calculation pitch depends on the vertical or horizontal direction The maximum printable area in the x direction is 576 203 inches The maximum printable area in the y direction is 576 203 inches 116 March 1999 A794 Owners Guide Chapter
87. n this command precedes a logo print command and n is different from the previously active logo selected the printer retrieves the logo definition for n from flash memory and prints it If there is no definition for logo n then no logo is printed 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 If the flash memory space available for logos fills up with inactive logo 0 definitions the firmware erases the old definitions at the next power cycle This is the only case in which the printer erases flash memory without an application command In the case of a new application using multiple logos the Select Current Logo 1D 23 n command is used After that the printer no longer automatically erases the logo definition flash memory page when it fills with multiple definitions A new application using multiple logos writing a user defined character set into flash memory or both is responsible for erasing the logo and user defined character set flash memory page when the logo area is full or before a new character set is defined ASCII GS n Hexadecimal 1D23n Decimal 29 35 n Range of n 0 255 March 1999 A794 Owner s Guide Chapter 6 Programming Infor
88. nd throughput Human Interface Speaker for software generated tone drop in paper loading configuration menu for easy configuration Cash Drawer Driver Connector for one or two cash drawers use Y cord for two drawers March 1999 5 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 80mm Interface Boards e RS 232C IEEE Bi Directional Parallel March 1999 A794 Owner s Guide Chapter 2 Using the Printer e Printer Controls e Changing Paper Testing the Printer Chapter 2 Using the Printer A794 Owner s Guide Printer Controls LED Green Paper Feed 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 To configure the printer set DIP switch 1 in the down On position and use the Reset Button with the Paper Feed Button Make sure to reset DIP switch 1 to the up Off position when you are done configuring the printer LED The green LED shows the printer status by shining or flashing Status LED Paper Is Low Flashes Slowly Paper I
89. ns 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 ASCII ESC V n Hexadecimal 1B56n Decimal 27 86 n Value of n 0 Cancel 1 Set Default 0 Cancel Select or Cancel Upside Down Print Mode Prints upside down characters The command may be combined with Clock Wise Rotated print 1B 56 or Counter Clock Wise Rotated print 1B 12 The character order is inverted in the buffer so text is readable Only bit 0 is used Bits 1 7 are not used See Summary of Rotated Printing in this document for more information ASCII ESC Hexadecimal 1B7Bun Decimal 27 123 n Value of n 0 Cancel 1 Set Default 0 Cancel Exceptions The command is valid only at the beginning of a line It cannot be used with right side up characters on the same line March 1999 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 This command can be used with built in characters and user defined characters but does not affect the space between lines Wh
90. nt amount and it must be in even units of the minimum horizontal movement amount ASCII GS nL nH Hexadecimal 1D 24 nL nH Decimal 29 36 nL nH Formulas nL nH X 256 x vertical or horizontal motion unit inches Exceptions 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 March 1999 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 When the starting position is set to the upper left or lower left of the printing area the vertical motion unit y is used 2 When the starting position is set to the upper right or lower left of the printing area the horizontal motion unit x is used ASCII GS nL nH Hexadecimal 1D5CnLnH Decimal 29 92 nL nH Value The value for the horizontal and vertical movement cannot be less than the minimum horizontal movement amount and must be in even units of the minimum horizontal movement amount Formulas The distance from the current position is set to nL n
91. of the last received command is effective ASCII GS n Hexadecimal 1D21n Decimal 29 33 n March 1999 117 Chapter 6 Programming Information A794 Owner s Guide 118 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 The absolute print position is set to nL nH X 256 x vertical or horizontal motion unit inches The vertical or horizontal motion unit for the paper roll is used and the horizontal starting buffer position does not move The reference starting position is set by Select Print Direction in Page Mode ESC T and operates setting the absolute position in the vertical direction when the starting position is set to the upper left or lower right and sets the absolute position in the horizontal when the starting position is set to the upper rights or lower left The horizontal and vertical motion unit are specified by the Set Horizontal and Vertical Minimum Motion Units GS P command The Set Horizontal and Vertical Minimum Motion Units GS P command can be used to change the horizontal and vertical motion unit However the value cannot be less than the minimum horizontal moveme
92. ommand is executed a sensor is switched The paper end signal switching is delayed depending on the receive buffer state ASCII ESC c3n Hexadecimal 1B 63331 Decimal 279951 n Value of n If either bit 0 or bit 1 is on the paper roll near end sensor is selected as the paper sensor outputting paper end signals If either bit 2 or bit 3 is on the paper roll end sensor is selected as the paper sensor outputting paper end signals Bit Position Hex Decimal Function 0 Off 00 0 Paper roll near end sensor disabled On 01 1 Paper roll near end sensor enable 1 Off 00 0 Paper roll near end sensor disabled On 02 2 Paper roll near end sensor enabled 2 Off 00 0 Paper roll end sensor disabled On 04 4 Paper roll end sensor enabled 3 Off 00 0 Paper roll end sensor disable On 08 8 Paper roll end sensor enabled Undefined 4 5 6 7 Range of n 1 255 Defaultofn 12 Exceptions This command can only be used with a parallel interface The command is ignored if it used with a serial interface March 1999 51 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 ESC c4n Hexadecimal 1B 6334n Decimal 2799 52 n Value of n Sensor status Sensor Status Bit Sensor 0 1 0 Receipt Paper Near End Disabled Enabled 1 Receipt Paper Near End Disabled Ena
93. ontal Dots Line 0 8 Dot Single Density 8 68 DPI 0 288 101 DPI 8 x 288 1 8 Dot Double Density 8 68 DPI 0 576 203 DPI 8x 576 32 24 Dot Single Density 24 203 DPI 0 288 101 DPI 24 x 288 33 24 Dot Double Density 24 203 DPI 0 576 203 DPI 24 x 576 Value of n Value of n 8 Dot Single Value of n 24 Dot Single Density Mode Density Mode n1 256 x n2 3 x n1 256 x n2 Related Information Value of d Number of Bytes of Data Printed Down Then Across 8 Dot Single Density Mode Receipt I MSB Top of Bit Image d1 d2 d3 d4 dn dn LSB March 1999 81 Chapter 6 Programming Information A794 Owner s Guide 82 Select Bit Image Mode continued 24 Dot Single Density Mode Top of Bit Image MSB 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 Each bit corresponds to two horizontal dots Compare to Set Bit Image Mode 1B 2A m 0 earlier in this document ASCII ESC Kn1n2d1 dn Hexadecimal 1B4Bu1n2d1 dn Decimal 2775 n1 n2 d1 dn Value of n Value of n 8 Dot Value of n 24 Dot Single Single Density Mode Density Mode Value of d n1 256 x n2 3x n1 256 x n2 Number of Bytes of Data Printed
94. ous products character width in dots 10 versus the current product 13 1B61n Select Justification This command does true dot resolution alignment for centering versus character aligned centering 1D 2A n1 n2 d1 dn Define Downloaded Bit IN emulation mode this command scales the Image incoming data to provide a best match to the size of the image as it printed on the previous product 1D 2F m Print Downloaded Bit Same as above Image March 1999 45 Chapter 6 Programming Information A794 Owner s Guide Command Descriptions Command Conventions 46 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 ASCII the ASCII control code Hexadecimal the Hexadecimal control code Decimal the Decimal control code Value or Values a description of the command operand values Range the upper and lower limits of the command operand Default the command operand default after printer reset Formulas any formulas used for this command Exceptions Describes any exceptions to this command for example other commands that the command cannot be used with Related Information This section describes any related information for this command and provides references to other sections for additional information March 1999 A794 Owner s Guide
95. paper 18 power supply 19 supplies 18 wall mount kit 20 Ordering paper 23 P Paper changing 10 ordering 18 23 requirements 18 23 suppliers 18 23 Paper feed button 8 Paper jam 16 Parallel connector IEEE Bi directional 39 Parallel interface technical specifications 39 Power supply ordering 19 Print light or spotty 16 one side missing 16 vertical column missing 16 Print columns 5 Print modes 22 compressed 22 standard 22 Print resolution 5 Print speed 5 35 Print timing 35 Print zones 68 mm paper 23 82 5 mm paper 24 printer 130 A794 Owner s Guide configuration 4 description 2 features 5 model identification 3 Printer controls 8 not functioning 16 options 6 testing 13 Printer stops printing 16 Protocol See RS 232C interface R Receipt not cut 16 Reset button 8 Rotated printing 78 RS 232C interface 35 cash drawer connector 38 communication connectors 37 parameters 38 power connector 37 print speed 35 print timing 35 technical specifications 37 XON XOFF protocol 36 S Setting switches RS 232C parameters 38 Specifications Parallel interface 39 RS 232C interface 37 Speed 35 Standard print 22 Supplies cash drawers 19 communication cables 20 ordering 18 paper 18 23 power supply 19 wall mount kit 20 Switch settings RS 232C parameters 38 Technical specifications Parallel interface 39 RS 232C interface 37 Testing
96. processed out of the buffer it will be interpreted as a Clear Printer command Similarly when the GS sequences are being used the last byte stored when the buffer fills up could be the GS code with no room for the subsequent EOT or ETX or ENQ When this lone GS byte is finally processed out of the buffer it will use the next byte whatever it is as the second byte in its GS sequence To guard against this situation the application must determine the cause of a busy condition and take appropriate action or pace the Real Time commands to avoid filling the buffer There is a minimum of 256 bytes available in the printer s buffer when it goes busy Busy Line and Fault Conditions If the printer is in error condition cover is open paper is exhausted the printer will still accept data respond to the batch mode status commands ESC v and ESC u handle the cash drawer commands and not go busy until it actually tries to execute a print command Then it will stay busy and stop processing data out of the receive buffer until the condition clears It will respond to the Real Time commands as described below March 1999 101 Chapter 6 Programming Information 102 Recognizing Data from the Printer A794 Owner s Guide 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
97. r 2 Open Bits 2 7 are not used 88 March 1999 A794 Owner s Guide Transmit Paper Sensor Status Chapter 6 Programming Information 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 Values Status Byte RS 232 Bit 0 NEO OP RP oO LNnyr ESC v 1B 76 27 118 Function Receipt Paper Receipt Cover Receipt Paper Knife Position Not Used Temperature Voltage Not Used Related Information 0 Signifies Present Closed Present Home Position Fixed to Zero In valid range In valid range Fixed to Zero 1 Signifies Low only if paper low sensor is enabled Open Out Not Home Position Fixed to Zero Too hot or too cold Too high or too low Fixed to Zero See Busy Line and Fault Conditions in the Real Time Commands section of this document for details about fault condition reporting March 1999 89 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 When Auto Status Back ASB is enabled using the Enable Disable Autom
98. r Multi Drop Selects the device to which the host computer sends data ASCII ESC n Hexadecimal 1B3Dn Decimal 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 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 ASCII ESC Hexadecimal 1B 40 Decimal 27 64 Default Character Pitch 15 6 CPI Column Width 44 characters Extra Dot Rows 3 Character Set Code Page 437 Printing Position Column One Exceptions In printers with the Parallel interface this command also returns paper exhaust to the paper status line if an alternate status has been requested 50 March 1999 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 c
99. racter use the same code for both c1 and c2 n the number of dot columns for the nth character as specified by n1 nn n 1 16 d the column data for the nth character as specified by 41 dn The number of bytes for a character cell is s x n1 The bytes are printed down and across each cell See the illustration Top of Character MSB March 1999 71 Chapter 6 Programming Information A794 Owner s Guide 72 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 ASCII ESC n Hexadecimal 1B2Dn Decimal 27 45 n Value of n 0 48 Cancel underline mode 1 49 Select underline mode 2 50 Select double thickness underline mode Default 0 Cancel underline mode Exceptions This command is ignored if n is out of the specified range March 1999 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 ASCII ESC 000 Hexadecimal 1B 3A 30 30 30 Decimal 27 58000 Default current active ROM Code Page Related Information To modify characters in one of the character set variations such as Rotated Print Select on
100. re part Flash firmware part Flash firmware part 12 digit ASCII Flash firmware CRC Flash firmware CRC Flash firmware CRC Flash firmware CRC 4 digit ASCII Receipt lines tally 8 digit ASCII numeric max 99 999 999 Receipt lines tally Receipt lines tally Receipt lines tally Knife cut tally 8 digit ASCII numeric max 99 999 999 Knife cut tally Knife cut tally Knife cut tally Hours on tally 8 digit ASCII numeric max 99 999 999 Hours on tally Hours on tally Hours on tally Boot firmware version A794 Owner s Guide Function Not available cannot write to ROM Not available cannot write to ROM Return Flash firmware part returns 14 bytes Not available cannot write to ROM Not available cannot write to ROM Not available cannot write to ROM Return Flash firmware CRC returns 6 bytes Write to NVRAM Example send 12 bytes to printer GS I 00010000 To set receipt lines tally to 10 000 Write to NVRAM and print on receipt to verify Example send 12 bytes to printer GS I 100010000 This will print on receipt Receipt tally written 10 000 Clear receipt lines tally to 0 Return receipt lines tally preceded by n to identify Printer returns 10 bytes in above example 400010000 lt CR gt Write to NVRAM Write to NVRAM and print on receipt to verify Clear knife cut tally to 0 Return knife cut tally returns 10 bytes Write to NVRAM Write to NVRAM and prin
101. rint on receipt to verify Clear Knife jams tally to 0 Return Knife jams tally returns 10 bytes Write to NVRAM Write to NVRAM and print on receipt to verify Clear Cover openings tally to 0 Return Cover openings tally returns 10 bytes Not available Not available Set Max temp tally to 273 Return Cover openings tally returns 10 bytes March 1999 93 Chapter 6 Programming Information A794 Owner s Guide 94 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 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 All four status bytes are transmitted without checking DSR If the error status is enabled a change in the following conditions will trigger the ASB Receipt Cover Knife Error Out of Range Printhead Temperature Out of Range Voltage Paper Exhaust ASCII GS an Hexadecimal 1D61n Decimal 2997 n Value of n Status of ASB Byte 1 printer information Byte 2 error information Byte 3 paper sensor information Byte 4
102. s Colored stripe on the Paper is low receipt Receipt does not come out all the way Paper is jammed Printer starts to print but stops while the receipt is being printed Paper is jammed Receipt is not cut Paper is jammed The printer is not configured for a knife Print is light or spotty Paper roll loaded incorrectly Thermal printhead is dirty This indicates a serious problem with the printer electronics Vertical column of print is missing One side of receipt is This indicates a serious missing problem with the printer electronics Printer Does Not Work Problem Possible Causes Printer Does Not Printer not plugged in Function When Turned On Receipt cover not fully closed 16 What to Do Change the paper Open the receipt cover inspect the knife and clear any jammed paper Open the receipt cover inspect the knife and clear any jammed paper Open the receipt cover inspect the knife and clear any jammed paper Contact your authorized service representative Check that the paper is loaded properly Use recommended thermal receipt paper Contact your authorized service representative Contact your authorized service representative What to Do Check that printer cables are properly connected on both ends Check that the host or power supply is getting power Close and latch the receipt cover March 1999 A794 Owner s Guide Where to
103. s Out Flashes Quickly Knife Jam Flashes Quickly then Slowly 8 March 1999 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 For more information about See these sections Paper Feed Button Testing the Printer Configuring the Printer Reset Button Troubleshooting the Printer Testing the Printer Configuring the Printer LED Troubleshooting the Printer Tone Troubleshooting the Printer March 1999 9 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 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 Because the printer cannot print
104. se commands March 1999 87 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 Status information is limited to what can be sent by the dedicated lines BUSY ACK PAPER EXHAUST and FAULT ASCII ESC un Hexadecimal 1B75n Decimal 27 117 n Value and Range of n Value of n Function Description 00 Drawer 1 High Open Low Closed or Not Present 01 Drawer 2 High Open Low Closed or Not Present 02 Paper Low Not Implemented High Paper Out Interpreted as Paper Out Low Paper Present 03 Paper Out Default High Paper Out Low Paper Present gt 03 Ignored No Change Printer Does Not Stay BUSY PAPER EXHAUST LINE is valid to indicate previously requested status Transmit Peripheral Device Status RS 232C printers only Transmits current status of the cash drawers on one byte If a drawer is not connected the status will indicate it is closed ASCII ESC u 0 Hexadecimal 1B750 Decimal 27 117 0 Value of returned byte Bit 1 Signifies 0 Signifies 0 Drawer 1 amp 2 Closed Drawer 1 or 2 Open 1 Drawer 1 amp 2 Closed Drawer 1 o
105. se 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 Ifthe Flash if found corrupted during Level 0 diagnostics the download mode is automatically entered after the printer has reset 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 DIP Switch 1 must in UP position during reboot to return to normal printer operation When each flash download command is received the printer returns either ACK or NAK to the host computer when each command is received ACK hexadecimal 06 Sent when the printer has received a host transmission and has completed the request successfully NAK hexadecimal 15 Sent when a request is unsuccessful The commands are listed in numerical order according to their hexadecimal codes Each command is described and the hexadecimal decimal and ASCII codes are listed Communicates to the printer information downloaded from applications Data is downloaded to flash memory to query the state of the firmware calculate the firmware CRC and o
106. t 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 This behavior can be used to an application s advantage to provide the ability to create compound characters on the receipt station Select Justification Specifies the alignment of characters graphics logos and bar codes see the value of n table ASCII ESC an Hexadecimal 1B61n Decimal 2797 n Value of n 0 48 Left aligned 1 49 Center aligned 2 50 Right aligned Range of n 0 2 48 50 Default 0 Left aligned Exceptions The command is valid only at the beginning of a line 64 March 1999 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 See the Set Printing Area Width command 1D 57 in this document for a description of that command If the setting exceeds the printable area t
107. t on receipt to verify Clear Hours on tally to 0 Return Hours on tally returns 10 bytes Not available March 1999 A794 Owner s Guide Value of n Hex Dec 95 149 96 150 97 151 AO 160 Al 161 A2 162 A3 163 A4 164 A5 165 A6 166 A7 167 A8 168 A9 169 AA 170 AB 171 AC 172 AD 173 AE 174 AF 175 BO 176 B1 177 B2 178 B3 179 Remote diagnostic item Boot firmware version Boot firmware version Boot firmware version Flash firmware version Flash firmware version Flash firmware version Flash firmware version Flash cycles tally 8 digit ASCII numeric max 99 999 999 Flash cycles tally Flash cycles tally Flash cycles tally Knife jams tally 8 digit ASCII numeric max 99 999 999 Knife jams tally Knife jams tally Knife jams tally Cover openings tally 8 digit ASCII numeric max 99 999 999 Cover openings tally Cover openings tally Cover openings tally Max Temperature tally 8 digit ASCII numeric max 99 999 999 Max Temperature tally Max Temperature tally Max Temperature tally Chapter 6 Programming Information Function Not available Not available Return Boot firmware version returns 6 bytes Not available Not available Not available Return Flash firmware version returns 6 bytes Write to NVRAM Write to NVRAM and print on receipt to verify Clear Flash cycles cut tally to 0 Return Flash cycles cut tally returns 10 bytes Write to NVRAM Write to NVRAM and p
108. ter This command sets the right side spacing to n Spacing horizontal motion units By default these units are in terms of 1 203 inches versus 1 152 inches 1B 24 n1 n2 Set Absolute Starting For graphics commands the position is scaled to Position best match the previous product In text mode the equivalent character position is calculated 1B 26 s c1 c2 n1 d1 nn dn Define User Defined Character Set Since the dots on the new printhead are smaller user defined characters that were used on the previous printers will appear smaller on the new printer 1B 2A m n1 n2 d1 dn Select Bit Image Mode In emulation mode graphics are scaled to best match the size of the graphic in the previous printer 1B 33 n Set Line Spacing This command uses n in terms of n 360 inches Since the previous product had a fundamental step of 1 180 inch and the new product has a fundamental step of 1 203 inch the actual line spacing will not exactly match the requested spacing 1B 4A n Print and Feed Paper Same as above 1B 59 n1 n2 d1 dn Select Double Density Graphics In emulation mode the printer scales the graphics to provide the best match 1B 5C n1 n2 Set Relative Print Position The parameter to this command is in units of dots However the command moves and aligns to character positions In emulation mode this command calculates how many character positions to move based on the previ
109. the Align Positions command 1B 61 The check digit is calculated for UPC and JAN EAN codes if it is not sent from the host computer Six character zero suppressed UPC E tags are generated from full 11 or 12 characters sent from the host computer according to standard UPC E rules Start Stop characters are added for Code 39 if they are not included Rotated barcodes set with small modules select bar code width command 1D 77 n with n 1 or 2 and PDF417 barcodes in any orientation are printed at low speed for better readability First Variation Second Variation ASCII GS k m d1 dk NUL GS k m n d1 dn Hexadecimal 1D 6B m d1 dk NUL 1D 6B m n d1 dn Decimal 29 107 m d1 dk NUL 29 107 m n d1 dn 0 End of command Exceptions The command is only valid at the beginning of a line Illegal data cancels the command March 1999 109 Chapter 6 Programming Information 110 o 10 Print Bar Code continued Values First Variation String terminated with NULL Character Bar Code UPC A UPC E JAN13 EAN JAN8 EAN Code 39 Interleaved 2 of 5 Codabar PDF417 Second Variation Length of Byte Specified at Beginning of String D 48 57 ASCII numerals 48 57 48 57 48 57 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 48 57 65 68 start code 48 57 36 43 45 46
110. the description of the Set Horizontal and Vertical Minimum Motion Units command in this document Print and Feed Paper Prints one line from the buffer and feeds the paper n 203 inch n 8 mm The line height 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 units the parameters of this command Print and Feed Paper will be interpreted accordingly ASCII ESC n Hexadecimal 1B4An Decimal 2774n Value of n n 203 inch Range of n 0 255 Related Information For more information see the description of the Set Horizontal and Vertical Minimum Motion Units command in this document March 1999 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 ASCII ESC dn Hexadecimal 1B64n Decimal 27 100 n Range of n 1 255 0 is interpreted as 1 March 1999 59 Chapter 6 Programming Information A794 Owner s Guide Horizontal Positioning Commands 60 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 HT Hexadecimal 09 Decimal 9 Set Right
111. ther functions March 1999 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 Once the printer is in flash download mode this command is no longer available ASCII ESC Hexadecimal 1B5B7D Decimal 27 91 125 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 Ex 189 1234567A ASCII GS NULL Hexadecimal 1D00 Decimal 29 0 Exceptions Available only in download mode Return Segment Number Status of Flash Memory Returns the size of the flash used There may be 4 8 or 16 sectors 64K each in flash memory This command assures that the firmware to be downloaded is the appropriate size for flash memory The value returned is the maximum sector number that can be accepted by the Select Sector to Download 1D 02 nn command ASCII GS SOH Hexadecimal 1D 01 Decimal 29
112. tor the communication link as shown in the following flowchart in order to send data at the appropriate times If XON XOFF has been selected the printer also toggles the DTR signal as described in the next section but it does not look at the DSR signal to transmit data Was an XON or XOFF charactor last received Wait for XON character XON character hexadecimal 11 XOFF character hexadecimal 13 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 Is DTR High or Low Wait for DTR to Go Low Send Data March 1999 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 For more information about See these sections or documents Configuration menu feature A794 Owner s Guide RS 232C settings RS 232C Serial Interface Settings in the A794 Service Guide Communication Connectors The following illustration shows the RS 232C communication connectors and pin assignments The connectors are located at the rear of the pr
113. uble Wide 2 Double High 3 Quadruple Vertical DPI 203 203 101 101 Dot density measured in dots per inch Horizontal DPI 203 101 203 101 Convert 6 Dots mm Bitmap to 8 Dots mm Bitmap 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 ASCII AX EOT n Hexadecimal 1F04n Decimal 3104 n Value 0 Off 1 On When 0 and 1 are the LSB Default 0 Off 86 March 1999 A794 Owners 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 If the fault causing the busy condition can be cleared such as by loading paper or letting the thermal printhead cool down the printer will resume processing the data in its receive buffer Real Time commands allow the printer to function when it is busy at the RS 232C interface See the following section Real Time Commands for details about the
114. when power is turned on the printer is reset or the Initialize Printer command ESC is used ASCII ESC S Hexadecimal 1B 53 Decimal 27 83 Exceptions This command is effective only in page mode March 1999 A794 Owners 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 ASCII ESC Tn Hexadecimal 1B54n Decimal 27 84n Value of n Start position 0 Upper left corner proceeding across page to the right A 1 Lower left corner proceeding up the page B 2 Lower right corner proceeding across page to the left upside down C 3 Upper right corner proceeding down page D A gt gt gt gt gt gt rf M Y Y i v A m Ke lege Default 0 Exceptions The command is valid only in page mode The command is ignored if the value of n is out of the specified range March 1999 115 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 ca
Download Pdf Manuals
Related Search
Related Contents
Aerosol Photometer Models 2H and 2HN 取扱説明書 - TASCAM StarTech.com COMPHQ35 Brodit ProClip 512280 30を手軽に大画面で見たい人へ 仕様書 Midelet julia UPI Lycée Clément Ader Bernay (27300) Sommaire 2013 Spanish RP Filter System_With GFCI V1/0212 Alcatel-Lucent RAP109 Copyright © All rights reserved.
Failed to retrieve file