Home
COMPACT BOARD FOR MCTP/MHTP User Manual
Contents
1. COMPACT BOARD MCTP MHTP Printer Page 40 86 Reference FDE 3107770 Issue Z Axiohm SELECT CHARACTER CODE TABLE OR ACTIVE USER DEFINED FONT SELECTION Selects the character set to be used ASCII ESCtn Hexadecimal 1B 74n Decimal 27 116n Operand mode selection Limits ESC R OPERAND DEFINITION N Decimal Hex Code Page 0 00 437 US 6 06 858 Multilingual with Euro 48 30 EasyFont Storage n 00 49 31 EasyFont Storage n 01 50 32 EasyFont Storage n 02 51 33 EasyFont Storage n 03 Default 6 Code Page 858 selectable through configuration command READ FONT INFORMATION If selected font exists this command returns ACK followed by font information Else it returns NAK ASCII FS F t Hexadecimal 1C 46 t Decimal 28 70 t Operand t Font Id Value of t 48 0x30 ASCII n 0 EasyFont n 00 49 0x31 ASCII n 1 EasyFont n 01 50 0x32 ASCII n 2 EasyFont n 02 51 0x33 ASCII n 3 EasyFont n 03 Returns OK ACK Hex 06 1 byte Font Id 1 byte Font Name 8 bytes Font width 1 byte Font Height 1 byte Number of characters 2 bytes lt LSB MSB gt Checksum Hex 2 bytes lt LSB MSB gt COMPACT BOARD MCTP MHTP Printer Page 41 86 Reference FDE 3107770 Issue Z Axiohm Fault NAK Hex 15 1 Byte COMPACT BOARD MCTP MHTP Printer Page 42 86 Reference FDE 3107770 Issue Z
2. 11 MM TT IE aiii 11 6 4 Other information eee ee ee tees eene eene tentent enata seta setas sonst ns en seen neun 11 CONNECTORS DESCRIPTION 12 PRINT SPECIFICATION 13 8 1 UT TITU2 g H P sisi 13 Print Modes P 13 S26 eletti osa 13 8 2 TA T 14 6 3 Print density and density of receipt print lines 15 6 4 Duty cycle restrictions printing solid blocks 15 8 5 Character SELS 17 Code Pages suu ui eee eer ESI MN M RIMIS 17 Code Page 43 Tic Geen temen centenes 18 9 PRINTER CONFIGURATIONN 19 9 1 List of parameters that can be changed 19 10 SELF TEST TICKET DESCRIPTION 21 11 LIST OF CONTROL CODES 23 COMPACT BOARD MCTP MHTP Printer Page 2 86 Reference FDE 3107770 Issue Z Axiohm 12 COMMAND DESCRIPTION 26 12 1 Command conventions mesamenamona mona m
3. Axiohm 12 12 Bar code commands These commands format and print bar codes and are described in order of their hexadecimal codes SELECT PRINTING POSITION OF HRI CHARACTERS Prints HRI Human Readable Interface characters above or below the bar code ASCII GSHn Hexadecimal 1D 48 n Decimal 2972 n 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 BAR CODE HEIGHT Sets the bar code height to n dots or n 203 inch 1 8 mm ASCII GShn Hexadecimal 1D 68 n Decimal 29 104 n Operand n Number of dots Limits IEnx255 Default 216 dots COMPACT BOARD MCTP MHTP Printer Page 62 86 Reference FDE 3107770 Issue Z Axiohm PRINT BAR CODE FIRST amp SECOND VARIATION 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 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 f
4. Axiohm CHECK EASYFONT COMPATIBILITY This command asks the printer whether it supports or not Font download If it does it also returns the list of available font Ids single byte double byte that can be used to download a font ASCII FS H Hexadecimal 1C 48 Decimal 28 72 Returns ASCII OK ACK list of available font Ids 00 Fault NAK Returns Hex OK 06 list of available font Ids 00 Fault 15 COMPACT BOARD MCTP MHTP Printer Page 43 86 Reference FDE 3107770 Issue Z Axiohm DOWNLOAD SINGLE BYTE FONT This command will download a single byte font code page to the printer If the download is successful an ACK will be returned If unsuccessful a NAK will be returned A font must always be downloaded completely which corresponds to 224 characters The font name is used to identify the font It will be printed on the diagnostics or configuration form When a downloaded font is to be deleted the font name is used to identify the font Two fonts cannot have the same name Each character is downloaded as raster from top to bottom and for each raster from leftmost byte to rightmost byte Two fonts cannot have the same storage Id ASCII FS L f8 t w h d Hexadecimal 1C 4C F8 t w h td Decimal 28 76 F6 t w h d Operands f8 8 character font name t Font storage Id w Font character width in dots including inter character space H Font character height in dot
5. Selects the print mode standard compressed underlined double high or double wide ASCII ESCIn Hexadecimal IB21n Decimal 2733 n Value of n See table Value of n Bit Function 0 1 Double High Canceled Set Double Wide Canceled Set Underlined Mode Canceled Set bar thickness 2 Bits 0 1 2 3 and 6 are not used Default 0 for bits 4 5 7 COMPACT BOARD MCTP MHTP Printer Page 38 86 Reference FDE 3107770 Issue Z Axiohm 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 Set Relative Print Position commands or in white black reverse print mode Underline mode may also be turned ON and OFF with the Select Print Mode s command 1B 21 ASCII ESC n Hexadecimal 1B 2D Decimal 27 45 Value of n 0 48 Cancel underline mode 1 49 2 50 Select underline mode and bar thickness 2 Default 0 48 SELECT OR CANCEL WHITE BLACK REVERSE PRINT 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 White Black Reve
6. Axiohm 12 11 Real time commands The Real Time commands provide an application interface to the printer even when the printer is not handling other commands Real Time Status Transmission DLE Hex 10 Sequence Real Time Request to Printer DLE Hex 10 Sequence Real Time Printer Status Transmission The original Printer Status commands Transmit Printer Status Hex 1B 76 ASCII ESC v 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 communication interface and suspends processing the data in the buffer until paper is reloaded This is true for all error conditions knife home error thermal print head overheating etc In addition there is no way to restart the printer after a paper jam or other error The Real Time commands are provided to overcome these restrictions RULES FOR USING REAL TIME COMMANDS Three situations must be understood when using real time commands 1 The printer executes the Real Time command upon receiving it and will transmit status regardless of the condition of the host being ready to receive or not 2 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 g
7. Indicates which action is to be done when a wrong data is received Indicates TOF is managed by the controller board Indicates distances between TOF sensor and cut line Indicates the distance between TOF marks Additional distance for Research Distance between Knife and TOF mark TOF sensor detection level Current status Yes if at least one logo is defined Current status Yes if at least one font is defined Indicates default internal code page selected upon reset For further information please contact your distributor or Axiohm Technical Support Team at www axiohm com COMPACT BOARD MCTP MHTP Printer Page 22 86 Reference FDE 3107770 Issue Z Axiohm 11 LIST OF CONTROL CODES Code Hexadecimal Command Page 09 Horizontal Tab 33 0A Print and Feed One Line 30 0C Form Feed 30 0D Activate Carriage Return 30 10 04 n Real Time Status Transmission 58 1005n Real Time Recovery from Fault 61 11 n1 n48 Print Raster Graphics 45 14 n Feed n Print Lines 30 15n Feed n Dot Rows 31 1B20n Set Right Side Character Spacing 33 IB21n Select Print Mode 38 IB 24 nL nH Set Absolute Starting Position 34 1B2Dn Select or Cancel Underline Mode 39 1B 32 Set Line Spacing to 1 6 Inch 31 1B 33 n Set Line Spacing 31 1B 40 Initialize Printer 27 1B 44 n 4 NUL Set Horizontal Tab Positions
8. Limit Dec n l n 2 Hex n 01 n 02 Note Only one user section 48K bytes n 1 n 2 Returns the number of bytes available as a zero terminated ASCII string Each digit is coded in decimal COMPACT BOARD MCTP MHTP Printer Page 70 86 Reference FDE 3107770 Issue Z Axiohm 12 15 Peripheral control commands GENERATE PULSE FOR CDKO Generates a pulse Ton Toff on pin m of the drawer kick out connector in accordance with the table below ASCII ESC p m ni n2 Hexadecimal 1B 70 m ni n2 Decimal 27 112 m nl n2 Operands m Selected connector pin nl Ton nl 2ms Is the on time of the pulse n2 Toff n2 2ms Is the off time of the pulse Limits m 0 1 48 49 see table below 0 lt nl lt n2 lt 255 Ifn2 nl gt Toff nl 2ms m decimal nc ls ooras 2 1 or 49 J7 2 PRINT TEST FORM Prints the current configuration settings on the receipt ASCII USt Hexadecimal 1F 74 Decimal 31 116 Note This command is effective only at the beginning of a line COMPACT BOARD MCTP MHTP Printer Page 71 86 Reference FDE 3107770 Issue Z Axiohm 12 16 Configuration commands STORE SELECTED SENSOR THRESHOLD This command will store the sensor detection threshold in non volatile memory NVRAM ASCII GS S m Hexadecimal 1D 73 m n Decimal 29 115 m N Operands m Sensor select n Threshold value Limit Dec 0 lt m lt 7 Hex 00 lt m lt 07 See Table
9. E x05 Baud rate 38400 x x06 Baud rate 57400 x07 Baud rate 115200 Bit 4 x00 Number of stop bits 1 u x08 Number of stop bits gt 2 Bit 5 x00 Number of Data bits gt 8 x00 Parity gt Odd x01 Parity Even x00 Parity Mode gt No parity x01 Parity Mode Enable parity x00 Handshaking gt Xon Xoff x01 Handshaking Dtr Dsr x00 Error processing Ignore x00 Error processing gt Print P Parity Error F Framing Error O Over run Error This command will be ignored if one of the parameter is incorrect 1 This command is processed only in boot mode If the printer is running in normal mode send first command switch to Boot Mode 1B 5B 7D 2 This command must be followed by Printer Reset command 1D FF COMPACT BOARD MCTP MHTP Printer Page 73 86 Reference FDE 3107770 Issue Z Axiohm SET KNIFE OPTION This command will store the knife option in non volatile memory ASCII US Hexadecimal 1F Decimal 31 Operand n Value Decimal 0 1 2 ETX STX 03 02 3 2 mode selection Disabled Standard mode Low noise Mode lower speed Default 0 Limit Dec 0 lt n lt 2 Hex 00 lt n lt 02 Note This command must be followed by a reset PAPER LOW SENSOR OPTION This command will store the paper low sensor option in non volatile memory NVRAM ASCII US ETX ETX Hexadecimal
10. 02 04 00 08 10 40 00 00 Decimal Co o ICS 32 2 Transmit communication interface Busy Status Bit Status 0 Off 1 On 2 Off On 3 Off On 4 On Off On 6 Off On 7 Off Hex 00 02 00 04 00 08 10 00 20 00 40 00 Decimal o 32 64 Function Fixed to Off Fixed to On Fixed to On Not busy at the communication interface Printer is Busy at the communication interface Fixed to On Data received in buffer Buffer empty Undefined Fixed to Off 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 COMPACT BOARD MCTP MHTP Printer Page 59 86 Reference FDE 3107770 Issue Z Axiohm 3 Transmit Error Status Bit Status 0 Off 1 On 2 Off 3 Off On 4 On 5 Off On 6 Off On 7 Off 4 Transmit Receipt Paper Status Bit Status 0 Off 1 On 2 Off On 3 Off On 4 On Off On 6 Off On 7 Off Hex 00 02 00 00 08 10 00 20 00 40 00 Hex 00 02 00 04 00 08 10 00 20 00 40 00 Decimal 0 2 0 0 8 16 0 32 0 64 Decimal cooc 2oj rn o 32 64 Function Fixed to Off Fixed to On Fixed to Off No knife
11. Last NVRAM program bit 0 Reset each write NVRAM command Power fail bit 7 after first read go to zero Purge data USB bit 6 after read go to zero COMPACT BOARD MCTP MHTP Printer Page 50 86 Reference FDE 3107770 Issue Z Axiohm TRANSMIT PRINTER ID Transmits the printer model type of version as defined below This command is processed as normal printer data ASCII GS In Hexadecimal 1D 49 n Decimal 2973n Operand n printer ID select Limit Decimal 1 lt n lt 2 49 lt n lt 50 n 66 67 68 Hex 01 lt n lt 02 31 lt n lt 32 n 42 43 44 GS I OPERAND AND RETURNED STATUS DEFINITION n Value Decim Hex Printer ID Function Decimal Hex al 1 49 01 31 Model COMPACT 50 32 Bit Function Value 0 1 0 2 byte character code Not installed Installed 1 Knife No knife Installed 2 50 02 32 Type 2 Undefined 3 Undefined 4 Fixed Always 0 5 Undefined 6 Undefined 7 Fixed Always 0 66 42 Manufacturer _AXIOHM 67 43 Printer name _ COMPACT 68 44 Serial number Depends on actual S N Note For n 66 67 68 the printer response is sent back in the following format Header SF hex Data ASCII string NULL 00 hex COMPACT BOARD MCTP MHTP Printer Page 51 86 Reference FDE 3107770 Issue Z Axiohm TRANSMIT PRINTER ID REMOTE DIAGNOSTICS EXTENSION Performs functions specified by n Refer to ta
12. Resident User Defined Default Code Page 858 437 Set Communication Options Interface Type RS232 USB RS232 Baud Rate 115200 57600 38400 19200 9600 RS232 Data Bits 8 7 RS232 Stop Bit s 1 2 RS232 Parity No Parity Even Parity Odd Parity RS232 Flow Control DTR DSR XON XOFF COMPACT BOARD MCTP MHTP Printer Page 19 86 Reference FDE 3107770 Issue Z Axiohm Standard factory default settings or further information please contact your distributor or Axiohm Technical Support Team at www axiohm com COMPACT BOARD MCTP MHTP Printer Page 20 86 Reference FDE 3107770 Issue Z Axiohm 10 SELF TEST TICKET DESCRIPTION The self test ticket can be printed by pressing both Reset and Paper feed button and realising the Reset button Here is the description of all the lines that you can read when you print a self test Model Number Serial Number HARDWARE Flash Memory Size External Flash Flash Size User SRAM Size CPU Clock Freq MECHANISM Type Voltage Paper Width Paper Entry Print Density Knife Partial Cut Cover Sensor Paper Low Sensor Opto Threshold Pre Heating Max Speed This is a 15 digit number fixed by Axiohm This is a 10 digits number fixed by Axiohm First letter always D Next two digits year of production Next two digits week of production Next 5 digits increment
13. 34 IB4A n Print and Feed Paper 32 IB52n Select International Character Set 40 IB 5B 7D Switch to Flash Download Mode 66 1B 5C nL nH Set Relative Print Position 35 1B 61n Select Justification 36 IB 64n Print and Feed n Lines 32 1B 69 Perform Full Knife Cut 28 1B 6D Perform Partial Knife Cut 28 1B 70 m t1 t2 Generate Pulse For CDKO 71 1B74n Select Character Code Table or Active User defined Font 41 Selection 1B 76 Transmit Paper Sensor Status 49 IC 46 t Read Font Information 41 1C 48 Check Easy font Compatibility 43 IC 4C F8 t w h dn Download Single Byte Font 44 1D 01 Request Flash Memory Size 66 1D02nn Select Flash Memory Sector to Download 66 1D 06 Get Flash Firmware CRC Status 67 1D 07 Return Boot Sector CRC 67 1D 08 Return SRAM Size 50 1D OA Return Hardware Information 50 1D OE Erase All Flash Contents Except Boot Sector 67 COMPACT BOARD MCTP MHTP Printer Page 23 86 Reference FDE 3107770 Issue Z Axiohm Code Hexadecimal Command Page 1D 0F Return Main Program Flash CRC 68 ID 10n Erase Selected Flash Sector 68 1D 11 al ah cl ch dl dn BP Download to Active Flash Sector 69 ID23n Select the Current Logo 46 1D 2A nl n2 dl dn Define Downloaded Bit Image in Flash Memory 46 1D 2F m Print Downloaded Bit Image 47 1D 40n Erase User Flash Sector 70 ID 42n Select or Cancel White Black Reverse Print Mod
14. Axiohm THERMAL PRINTING SOLUTIONS COMPACT BOARD FOR MCTP MHTP User Manual Reference 3107770 AXIOHM 1 rue d Arcueil BP 820 92542 MONTROUGE CEDEX FRANCE Tel 33 1 58 07 17 17 Fax 33 1 58 07 17 18 www axiohm com Axiohm EVOLUTIONS Date Issue Modifications 10 03 Preliminary Creation 02 05 COMPACT BOARD MCTP MHTP Printer Page 1 86 Reference FDE 3107770 Issue Z Axiohm CONTENTS 1 OVERVIEW aa 4 2 GENERAL SPECIFICATIONS 4 Dl _ UU E 4 2 2 Compliance to legal approval 4 2 3 Operating requirements 4 BOARD MH MCTP DESCRIPTION 6 POWER SUPPE Y 8 RS232 PARAMETERS 9 5 1 XON XOFF Protocol eee ee sms 9 5 2 DTR DSR Protocol III UU a TJ setas ssssssssessessssssssss 9 3 3 Connect rs MED 10 6 USB PARAMETERS 11 SEEKS DI m M 11 6 2 Connector TI
15. Load 27mm Hex 1B lt d lt FF Note This command must be followed by a reset See Command 1F 03 A2 n for Paper Entry i Inter Mark Distance d SET CUT DISTANCE FOR TOF This order enables us to define the distance between the line of cut and the black mark selection in non volatile memory ASCII US ETX d Hexadecimal 1F 03 99 d Decimal 31 3 153 d Operand d Value mm lt Inter Mark Distance Limit Dec 0 lt d lt 255 Hex 00 lt d lt FF Note This command must be followed by a reset Cut Distance d mm Cut Distance d 0 CUT CUT COMPACT BOARD MCTP MHTP Printer Page 79 86 Reference FDE 3107770 Issue Z Axiohm SET VOLTAGE MECHANISM This command will store the Voltage Mechanism parameter setting in non volatile memory ASCII US ETX i n Hexadecimal 1F 03 Al n Decimal 31 3 161 n Operand n Mode selection Value Decimal 0 12 Volts 1 24 Volts Default 1 Limit Dec O lt n lt l Hex 00 lt n lt 01 Note Voltage range components tolerance not taken into consideration This command must be followed by a reset Page 80 86 Reference FDE 3107770 Issue Z COMPACT BOARD MCTP MHTP Printer Axiohm SET PAPER INTRODUCTION TYPE This command will store the set paper introduction type selection in non volatile memory ASCII US ETX n Hexadecimal 1F 03 A2 n Decimal 31 3 162 n Operand n Mode selection Value Decimal 0 Clamshell 1 Auto Lo
16. Wide Underlined Reverse Size Standard Available print modes Characters per Inch 16 9 Characters per Line 48 for 80 mm Paper Characters per Line 53 for 82 5 mm Paper Cell Size 12 x 24 Dots COMPACT BOARD MCTP MHTP Printer Page 13 86 Reference FDE 3107770 Issue Z Axiohm 8 2 Print zone Print Zones for 80 mm 3 15 inches paper 576 dots addressable 8 dots mm centered on 80 mm Standard Mode minimum margins 4 0 mm 157 inches Top margin to knife cut 12 5 mm 0 49 inches Paper Width 80 mm Printable Zone 576 dots 72 mm Nominal Margins 2 4 0 mm Top Margin 12 5 mm Print zone for 82 5 mm 3 25 inches paper 640 dots addressable 8 dots mm centered on 82 5 mm Standard mode minimum margins 1 25 mm 0 05 inches Top margin to knife cut 12 5 mm 0 49 inches Paper Width 82 5 mm Printable Zone 640 dots 80 mm Nominal Margins 2 1 25 mm Top Margin 12 5 mm COMPACT BOARD MCTP MHTP Printer Page 14 86 Reference FDE 3107770 Issue Z Axiohm 8 3 Print density and density of receipt print lines This function makes it possible to adjust the energy level of the printhead to darken the printout An adjustment should only be made when necessary The factory setting is 100 Warning Choose an energy level no higher than necessary to achieve a dark printout Failure to observe this rule
17. below Note This command must be followed by a reset m Sensor n Decimal Decimal Hex Sensor Mechanism Limit Default 0 00 Paper Low MC MHTP 0 lt n lt 255 102 5 05 Top Of Form MC MHTP 51 lt n lt 204 102 TOF SENSOR AUTOCALIBRATION This command will calibrate the TOF Top Of Form sensor When this command is received the paper will advance until the next three TOF marks are detected The sensor threshold will then be automatically calibrated to the average value for the three TOF marks Once the calibration is complete the paper will be cut ASCII GS t Hexadecimal 1D 74 Decimal 29 116 Note This sequence is ignored when TOF mode not activated 1F 03 87 n If calibration is not possible cut sequences will be ignored and error flag will be raised see code 1F 76 02 bit 5 Sensor Threshold value in Diagnostic Form will be equal to zero COMPACT BOARD MCTP MHTP Printer Page 72 86 Reference FDE 3107770 Issue Z Axiohm SET COMMUNICATION INTERFACE PARAMETERS This command will store the communication options in non volatile memory NVRAM ASCII Hexadecimal Decimal Operands Default Values Hex ni n2 Notes US STX nl n2 n3 n4 n5 n 1F 02 ni n2 n3 n4 n5 n6 31 2 nl n2 n3 n4 n5 n nl Interface selection n2 n6 Parameters RS232 115200 n 8 1 x00 Interface RS232 Bit 0 2 x03 Baud rate 9600 us x04 Baud rate gt 19200
18. reset WARNINGS Choose a print density setting no higher than necessary to achieve acceptable print density Failure to observe this rule may result in a printer service call Failure to observe this rule may void the printer warranty Consult your Axiohm technical support specialist if you have questions RESET NVRAM PARAMETERS This command will reset the non volatile memory configuration items to their default values Followed by reboot printer ASCII US CR C L E n Hexadecimal 1F 0D 43 4C 45 Decimal 31 13 67 76 69 Operand n Security byte Limit Dec n 0 Hex n 00 Note This command is processed only in boot mode If the printer is running in normal mode send first command switch to Boot Mode 1B 5B 7D COMPACT BOARD MCTP MHTP Printer Page 83 86 Reference FDE 3107770 Issue Z Axiohm SET PARTIAL CUT BI STATION MODE This command will store the Value in non volatile memory NVRAM ASCII US SO SOH nL Hexadecimal 1F OE 01 nL Decimal 31 14 1 nL Operand n nH 256 nL nH nH nH Distance partial cut motor steps Limit Dec 100 n lt 1240 Hex 64 lt n 04D8 Default n 676 Paper Width 80mm Default n 02A4 Limit Dec 100 lt n lt 1256 Default n 684 Paper Width 82 5mm Hex 64 lt n lt 04E8 Default n 2AC Note This command must be followed by a reset COMPACT BOARD MCTP MHTP Printer Page 84 86 Reference FDE 3107770 Issu
19. u A A I F 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 EE E8 F8 z 8 H X h x Ep b 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 ES C9 D9 E9 F9 9 Y i IO r U 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 M AA BA CA DA EA FA eZ Zine E S D 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 E FB x T 1 E 1 K k l TS T U 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 oc 1C 2C 3C 4C 5C 6C 7C 8C 9C AC BC CC DC EC FC NENES m MEME AL E 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 DD ED FD M Lr I 2 3 IM m E j C Y I 13 29 45 61 7T 93 109 125 141 157 173 189 205 221 237 253 QE 1E 2E 3E 4E 5E 6E 7E BE 9E AE BE EN DE EE FE gt IN An A x lt Y w I 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 CF DF EF FF s O lo AA e a 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255 COMPACT BOARD MCTP MHTP Printer Page 17 86 Reference FDE 3107770 Issue Z Axiohm Code Page 437 00 10 20 30 40 50 60 m 70 80 L DO EO FO SPIO P JH ee 0 16 32 48 64 80 96 112 128 192 208 2
20. 0mm A Width 80mm A Thickness 1 6 mm Height above PCB level max 35 mm Height bottom PCB level max 4 mm Four fixing holes diameter 3 5 mm Length position B 59 5 mm Length position C 4 5 mm Length position D 75 5 mm COMPACT BOARD MCTP MHTP Printer Page 7 86 Reference FDE 3107770 Issue Z Axiohm 4 POWER SUPPLY The following illustration shows the power cable connector J3 and pin assignments The power cable connector is a 3 pin mini DIN plug and is located at the rear of the board or optional 4 pins straight connector J4 J4 Optional power supply connector 1 GND 2 GND 3 VCH 4 VCC Function Pin Numbers Function The connector is a shielded 3 pin female mini Din plug 24V 2 r 3 Not Used 1 GND Shell Shield Remote Power Supply Voltage 24 Vdc 10 Amps With 75 W Power supply Short Term under 1ms 13 A Peak COMPACT BOARD MCTP MHTP Printer Page 8 86 Reference FDE 3107770 Issue Z Axiohm 5 RS232 PARAMETERS The RS 232C interface uses either XON XOFF software or DTR DSR hardware protocol to control the flow of information between the computer and the printer In XON XOFF mode a particular character is sent back and forth between the host and the printer to regulate the communication In DTR DSR mode changes in the DTR DSR signal on the RS 232C interface controls the information flow 5 1 XON XOFF Protocol The XON X
21. 1F 03 03 Decimal 31 3 3 Operand n mode Selection Value Decimal 0 Disabled 1 Enabled Sensor 2 Enabled switch Default 0 Limit Dec 0 lt n lt 2 Hex 00 lt n lt 02 Note This command must be followed by a reset COMPACT BOARD MCTP MHTP Printer Page 74 86 Reference FDE 3107770 Issue Z Axiohm SET PAPER WIDTH PARAMETER This command will store the paper width setting in non volatile memory NVRAM ASCII US ETX BS Hexadecimal 1F 03 08 Decimal 31 3 Operand n width selection Value Decimal 0 80 0 mm 1 82 5 mm Default 0 Limit Dec O lt n lt l Hex 00xnx01 Note This command must be followed by a reset SET PARTIAL CUT DISTANCE FOR MH MCTP MECHANISM This command will store the cut distance setting in non volatile memory NVRAM ASCII US ETX LF Hexadecimal 1F 03 0A Decimal 31 3 10 Operand n Value Value Decimal 0 0 steps 1 8 steps 2 16 steps Default 3 24 steps 4 32 steps Note This command must be followed by a reset COMPACT BOARD MCTP MHTP Printer Page 75 86 Reference FDE 3107770 Issue Z Axiohm SET PRE HEATING MODE This command will store the print head pre heating option in non volatile memory NVRAM ASCII US ETX VT Hexadecimal 1F 03 0B Decimal 31 3 11 Operand n Mode selection Value Decimal 0 Disabled 1 Enabled Default 0 Limit Dec O lt n lt l Hex 00 lt n lt 0l Note When this mode is enabled the controlle
22. 24 240 01 11 21 31 41 51 61 71 81 D1 E1 F1 IT r A Q a T 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 2 B R b r ES 2 18 34 50 66 82 98 114 130 194 210 226 242 03 13 23 33 43 53 63 73 83 D3 LL E3 F3 RSC SI Ciis a m lt 3 19 35 51 67 83 99 115 131 147 163 179 195 211 227 243 04 14 24 34 44 54 d 74 84 94 A4 B4 C4 D4 E4 F4 4 D T Eladi ele eal 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 C5 D5 ES F5 HISIElUlel ul o o J 0 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 2 96 A6 B6 C6 D6 E6 F6 amp 6 F V v a u a Ir 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 I x 7 G W w mL m t 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 IL D8 E8 F8 8 H X xe y aA 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 25 41 57 73 89 105 121 137 153 169 185 201 217 233 249 0A 1A 2A 3A 4A 5A 6A TA 8A 9A AA BA S L DA EA FA J Z Z e U E 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 M 1 m A y F K k l 1 2 A 11 27 43 59 75 91 107 123 139 155 171 187 203 219 235 251 0C 1C 2C 3C 4C 5C 6C 7C 8C 9C AC BC CC L DC EC FC 1 dj E SR UNE EA r m of
23. 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 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 DCI al ah cl ch dl dn Hexadecimal 1D 11 al ah cl ch d1 dn Decimal 29 17 al ah cl ch dl dn Value of al Low byte of address ah High byte of address el Low byte of the count ch high byte of the count d Data bytes from 1 to n Formulas Address start ah 256 al Count n ch 256 cl Limits Address start Count lt 10000 Hex n number of data bytes Range of address al ah Range of Count cl ch ch 256 cl 0000 FFFF Hex 0001 FFFF Hex Notes Available only in download mode ERASE BOOT SECTOR DOWNLOAD NEW CODE Wait for new boot code to be downloaded then check CRC on this new boot code and if valid boot code sector is erased and reprogrammed with new code Printer automatically reboots after program sequence is complete ASCII US SOH dl d8192 Hexadecimal 1F 01 d1 d8192 Decimal 31 1 dl d8192 This command is available only in download mode COMPACT BOARD MCTP MHTP Printer Page 69 86 Reference FDE 3107770 Issue Z Axiohm 12 14 User flash memory commands ERASE USER FLASH SECTOR Erases a section of
24. ASCII string for the flash version ASCII USV Hexadecimal 1F 56 Decimal 31 86 Return 8 bytes ASCII Example the printer returns 1 07 1 15 This means the boot version is 1 07 and the flash version is 1 15 COMPACT BOARD MCTP MHTP Printer Page 55 86 Reference FDE 3107770 Issue Z Axiohm BUFFERED STATUS TRANSMISSION ERROR STATUS SENSOR STATUS Returns the selected status when this command is processed as normal printer data ASCII US V n Hexadecimal 1F 76 n Decimal 31 118 Operand n Status select 2 Error Status 4 Sensor Status Limit Dec n 2 n 4 Hex n 02 n 04 Return 1 Byte See Table below Note 1 n 2 Error Status bit 5 is set when black mark is not detected when TOF mode is activated Bit is reset at each TOF new search 2 n 4 Sensor Status gt Bit 5 is set when TOF mode is activated paper end senor is used as TOF sensor US v RETURNED STATUS DEFINITION Function Reserved Reserved Reserved 1 Reserved Fixed Always 0 Top Of Form search Black Mark OK Failure Detected Reserved Fixed Always 0 n 4 SENSOR STATUS Bit Function 0 Reserved Sensor see Black Mark Reserved Reserved Fixed Always 0 Mode TOF in progress 2 No Reserved Fixed Always 0 SN Na BL ID IR COMPACT BOARD MCTP MHTP Printer Page 56 86 Reference FDE 3107770 Issue Z
25. B 61 n 2797n 0 48 Left aligned 1 49 Center aligned 2 50 Right aligned 0 2 48 50 0 Left aligned The command is valid only at the beginning of a line SET LEFT MARGIN Sets the left margin of the printing area The left margin is set to nH X 256 nL dots The Set Printing Area Width command 1D 57 sets the width of the printing area See the Set Printing Area Width command 1D 57 in this document for a description of that command ASCII Hexadecimal Decimal Range of nL Range of nH Default Note Formulas GSL nL nH 1D 4C nL nH 29 76 nL nH 0 255 0 255 576 80mm mode 640 82 5mm mode If the setting exceeds the printable area the maximum value of the printable area is used The maximum printable area is 576 or 640 See the illustration The command is ignored if it is not at the beginning of the line Where nL is a multiple of 4 To set the left margin to one inch send the four byte string GS L 203 0 Or to set the left margin to two inches send the four byte string GS L 150 1 Where 2 inches 406 203 and 406 1 X 256 150 4 Printable area 576 or 640 dots lt Left margin 4 Printing area width COMPACT BOARD MCTP MHTP Printer Page 36 86 Reference FDE 3107770 Issue Z Axiohm SET PRINTING AREA WIDTH The width of the printing area is set to n dot
26. Cover Receipt Paper Knife Position Not Used Temperature Voltage Not Used 0 Present Closed Present Home Position Fixed to Zero In valid range In valid range Fixed to Zero 1 Out Open Out Not Home Position Fixed to Zero Too hot or too cold Too high or too low Fixed to Zero If Paper Low sensor Option disabled gt Paper low Sensor Paper empty sensor See Busy Line and Fault Conditions in the Real Time Commands section of this document for details about fault condition reporting COMPACT BOARD MCTP MHTP Printer Page 49 86 Reference FDE 3107770 Issue Z Axiohm RETURN SRAM SIZE Returns the size of SRAM on board on one byte as number of 64 Kbytes sectors ASCII GS BS Hexadecimal 1D 08 Decimal 29 08 Return 1 byte SRAM sizes Values Dec 6 kb internal RAM only 0 128 kb w extension 2 RETURN HARDWARE 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 ASCII GS Hexadecimal 1D 0A Decimal 27 118 Returns 1 byte Status Byte reply Values Status Byte Bit Function 0 1 0 Last NVRAM program OK Failure 1 Head connector s OK Failure 2 Not Used Fixed to Zero Fixed to Zero 3 Not Used Fixed to Zero Fixed to Zero 4 Not Used Fixed to Zero Fixed to Zero 5 Not Used Fixed to Zero Fixed to Zero 6 Not Used Fixed to Zero Fixed to Zero 7 Power fail No Yes Note
27. H 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 Return value OK Fault ASCII ACK NAK Hexadecimal 06 15 Decimal 6 21 Note Available only in download mode COMPACT BOARD MCTP MHTP Printer Page 67 86 Reference FDE 3107770 Issue Z Axiohm RETURN MAIN PROGRAM FLASH CRC Returns the CRC calculated over the flash firmware code space ASCII GS SI Hexadecimal 1D 0F Decimal 29 15 Returns 3 bytes Values ACR lt low byte high byte gt 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 1D 10 Decimal 29 16 valugand E 8 64 Kbytes Internal Flash range 1 72 Kbytes Internal Flash Notes Available only in download mode COMPACT BOARD MCTP MHTP Printer Page 68 86 Reference FDE 3107770 Issue Z Axiohm 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 xxK The printer may return one of several responses
28. Hexadecimal 0A Decimal 10 FORM FEED Feeds paper until a mark is detected Maximum search distance see code 1F 03 97 n Reply Status see code 1F 76 02 ASCII FF Hexadecimal 0C Decimal 12 Exceptions The command is valid only on Top Of Form mode 1F 03 87 n else is ignored Notes about TOF The TOF detection algorithm utilizes the paper out sensor to detect black marks To perform the two functions with the same sensor requires a specific management ACTIVATE CARRIAGE RETURN Prints one line from the buffer and feeds paper one line Some applications expect the command to be ignored while others use it as print command ASCII CR Hexadecimal 0D Decimal 13 FEED n PRINT LINES Feeds the paper n lines at the current line height without printing ignored if not at start of line ASCII DC4 n Hexadecimal 14 n Decimal 20n Value of n The number of lines to feed at current line height setting Range of n 1 255 COMPACT BOARD MCTP MHTP Printer Page 30 86 Reference FDE 3107770 Issue Z Axiohm FEED n DOT ROWS Feeds the paper n dot rows n 203 inch n 8 mm without printing ASCII NAKn Hexadecimal 15n Decimal 21n Value of n n 203 inch Range of n 1 255 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 SET LINE SPACING Sets the line spacing to 7 406 inch 7 16 mm The m
29. OFF characters controls the information transfer between the printer and the host computer The printer sends an XON character when it is ready to receive data and it sends an XOFF character when it cannot accept any more data The software on the host computer must monitor the communication link as shown in the following flowchart in order to send data at the appropriate times 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 character last received Wait for XON character XON character hexadecimal 11 XOFF character hexadecimal 13 5 2 DTR DSR Protocol The DTR signal is used to control data transmission to the printer It is driven lovv vvhen the printer is ready to receive data and driven high when it cannot accept any more data Is DTR HIGH or LOVV VVait for DTR To go LOW COMPACT BOARD MCTP MHTP Printer Page 9 86 Reference FDE 3107770 Issue Z Axiohm 5 3 Connectors JII The following illustration shows the RS 232C communication connector and pin assignment The connector is located at the rear of the printer and is specified as male DB9 9 pin D shell with RTS and CTS pins connected together 9 pin DB 9 Connector Function Fin Numbers Function 1 Not Used DSR 6 RTS 7 ids 3 THD CTS 8 4 DTR Mot Used 9 5 Logic Gro
30. Second Variation Length of Byte Specified at Beginning of String Description 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 Exceptions 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 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 Fixed Length 12 13 68 JAN8 EAN 48 57 Fixed Length 7 8 69 CODE39 48 57 65 90 ASCII alphabet Variable 32 36 37 43 45 46 47 ASCII special characters dl dk 42 start stop code is supplied by printer if necessary 70 Interleaved 2 of 5 48 57 Variable Even Number ITF 73 Code 128 0 105 di 103 105 must be a Start code d2 0 102 data bytes Stop code is provided by the printer SELECT BAR CODE WIDTH Variable Sets the bar code module to 7 203 inch 7 8 mm ASCII GS wn Hexadecimal 1D 77n Decimal 29 119n Operand n Range 1 2 3 4 5 6 Default 3 Formulas n 203 inch n 8 mm COMPACT BOARD MCTP MHTP Printer Page 64 86 Reference FDE 3107770 Issue Z Axiohm 12 13 Flash firmware download commands These commands are used to load firmware into the printer There are two ways to enter the dow
31. ad Default 0 See figure below Limit Dec O lt n lt 1 Hex 00 lt n lt 01 Note This command must be followed by a reset 3542 l 6 o DE SIN ul PAPER ENTRY CLAMSHELL AUTOLOAD COMPACT BOARD MCTP MHTP Printer Page 81 86 Reference FDE 3107770 Issue Z Axiohm SET 2 PAPER OUT SENSOR Synopsis ASCII Hexadecimal Decimal Operand Value Decimal Default Limit Description Note 27d Paper out sensor option NVRAM US ETX n 1F 03 A9 n 31 3 169 n n mode Selection 0 Disabled Enabled Paper out sensor Dec O lt n lt 1 Hex 00 lt n lt 01 This command will store the paper out sensor option in non volatile memory NVRAM Only with TOF mode disabled Code 1F 03 87 n This command must be followed by a reset Two sensors are provided with double station two paper rolls See 1F 03 8B n Optional 2nd Paper Out Sensor COMPACT BOARD MCTP MHTP Printer Page 82 86 Reference FDE 3107770 Issue Z Axiohm SET PRINT DENSITY Set the print density energy applied to paper in percent relative to nominal energy This command will store the Value in non volatile memory NVRAM ASCII US VT N R J n Hexadecimal 1F 0B 4E 52 4A n Decimal 31 11 78 82 74 n Operand n Percentage of the nominal heating time value Default 100 Limit Dec 80 lt n lt 120 Hex 50 lt n lt 78 Note This command must be followed by a
32. al 0 Disabled 1 Enabled Default 0 Limits Dec 0 lt n lt 1 Hex 00 lt n lt 01 Note This command must be followed by a reset COMPACT BOARD MCTP MHTP Printer Page 77 86 Reference FDE 3107770 Issue Z Axiohm SET MECHANISM TYPE This command will store the Mechanism option in non volatile memory NVRAM ASCII US ETX i n Hexadecimal 1F 03 8B n Decimal 31 3 139 N Operand n Mechanism selection Value Decimal 7 MC MHTP Standard 8 MC MHTP Bi Station Default 7 Limit Dec n 7 or n 8 Hex n 07 or n 08 Note This command must be followed by a reset SET ADDITIONAL DISTANCE SEARCH TO FIND ONE TOF This command will store the additional distance research TOF option in non volatile memory ASCII US ETX d Hexadecimal 1F 03 97 d Decimal 31 3 151 d Operand d Additional distance search value mm Limit Dec 10 lt d lt 255 Hex OF lt d lt FF Formulas Maximum Search Mark mm Inter Mark Distance d Note This command must be followed by a reset COMPACT BOARD MCTP MHTP Printer Page 78 86 Reference FDE 3107770 Issue Z Axiohm SET INTER MARK DISTANCE This order enables us to define the distance between two black marks selection in non volatile ASCII US ETX y d Hexadecimal 1F 03 98 d Decimal 31 3 152 d Operand d Value mm Limit Dec 25 lt d lt 255 Paper Entry Clamshell 25mm Hex 19 lt d lt FF Limit Dec 27 lt d lt 255 Paper Entry Auto
33. al number that is reset every Monday morning Total size of the flash memory main code External flash present option Hardware 2MBytes Flash memory allocated for logos or user defined fonts Total size of the RAM Memory Microprocessor Clock frequency Mechanism series Printhead Voltage Paper width used Select which paper entry used Percentage of the nominal heating time value for specified paper Enable Knife Operation Indicate the number of motor steps to perform a partial cut Enable Cover sensor management Enable Paper Low sensor management Set Paper low threshold This mode is used to maintain print head temperature above minimum value Printer top speed limit COMPACT BOARD MCTP MHTP Printer Page 21 86 Reference FDE 3107770 Issue Z Axiohm COMMUNICATION RX Buffer Size Interface Type Baud rate Data Bits Stop Bit s Parity Flow Control Reception Errors PRINT OPTIONS Mode Top Of Form Paper Path Mark Distance Search Distance Cut Distance Sensor Threshold User Logo defined User Char defined Code Page 437 858 This indicates the size of the data Input buffer Bytes Indicates 1f RS232 or USB interface is used Automatic detection of USB interface Baud rate Value Number of data bits Number of stop bit s Type of parity to control frame validity Hardware or software handshaking
34. and provides references to other sections for additional information COMPACT BOARD MCTP MHTP Printer Page 26 86 Reference FDE 3107770 Issue Z Axiohm 12 2 Reset commands INITIALIZE PRINTER Clears the print line buffer and resets the printer to the default settings for the startup configuration refer to Default settings below ASCII ESC Hexadecimal 1B 40 Decimal 27 64 Default Single Wide Single High and Left Aligned characters and reset active logo Default bar code settings 80mm 82 5mm Character Pitch 16 9 CPI 16 9 CPI Number of Columns Width 48 characters 53 characters Extra Dot Rows 3 3 Character Set Default Default Printing Position RESET FIRMWARE Column One Column One Reboots the printer ASCII GS SPACE Hexadecimal 1D FF Decimal 29 255 COMPACT BOARD MCTP MHTP Printer Page 27 86 Reference FDE 3107770 Issue Z Axiohm 12 3 Paper cut commands PERFORM FULL KNIFE CUT Cuts the receipt ASCII ESC i Hexadecimal 1B 69 Decimal 27 105 Exception The sequence will be ignored if paper length less than 13mm 104 dot lines PERFORM PARTIAL KNIFE CUT Partially cuts the receipt See Setting Partial Cut Distance in Diagnostics See command 1F 03 0A n or IF OE 01 nL nH ASCII ESC m Hexadecimal 1B 6D Decimal 27 109 Exceptions The command is valid only at the beginning of a line The sequence will be ignored if paper length le
35. ate 280 dots as the absolute starting position 280 256 1 remainder of 24 nL 24 nH 1 SET HORIZONTAL TAB POSITIONS Sets up to 32 horizontal tab position n columns from column one but does not move the print position See the Horizontal Tab command 09 The tab positions remain unchanged if the character widths are changed after the tabs are set The command ends with hexadecimal 00 hexadecimal 1B 44 00 clears all tabs The tabs cannot be set higher than the column width of the current pitch 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 9 17 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 Example 1B 44 03 04 07 0A OD 18 00 09 41 09 42 09 43 09 44 09 45 09 46 0A To obtain in standard pitch A B C D EF COMPACT BOARD MCTP MHTP Printer Page 34 86 Reference FDE 3107770 Issue Z Axiohm 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 A
36. ble ASCII GSI n Hexadecimal 1D 49 40 n Decimal 29 73 64 n Operand n mode selection Values of n Refer to table below Return format n data lt CR gt Value of n Remote diagnostic item Function Hex Dec 20 32 Serial Write to NVRAM 10 digit ASCII Example send 14 bytes to printer GS I 0x20 1234567890 23 35 Serial Return Serial preceded by n to identify Printer returns 12 bytes in above example 1234567890 lt CR gt 24 36 Class model Write to NVRAM 15 digit ASCII 27 39 Class model Return Class model returns 17 bytes 2F 47 Boot firmware CRC Return Boot firmware CRC returns 6 bytes 4 digit ASCII 37 55 Flash firmware CRC Return Flash firmware CRC returns 6 bytes 4 digit ASCII 97 151 Boot firmware version Return Boot firmware version returns 6 bytes A3 163 Flash firmware version Return Flash firmware version returns 6 bytes 0x20 lt digit lt 0x79 Exception If any digit is out of the defined range Write to NVRAM is ignored COMPACT BOARD MCTP MHTP Printer Page 52 86 Reference FDE 3107770 Issue Z Axiohm VOLTAGE AND TEMPERATURE MONITORING Returns the result of latest voltage and temperature measurement ASCII GS 1 m Hexadecimal 1D 6C m Decimal 29 108 m Operand m Selected channel Value of m 0x08 Read Voltage 0x09 Read Temperature Returns 1 Byte see below m 0x08 Returns raw A D conversion on 1 byte Actual voltage is defined with formula Formulas V
37. ce For TOF 79 IF 03 Al n Set Voltage Mechanism 80 1F 03 A2n Set Paper Introduction Type 81 IF 03 A9 n Set 2 Paper Out Sensor Option IF 0B 4E 52 4A n Set Print Density 82 IF 0D 43 4C 45 n Reset NVRAM Parameters 83 1F OE 01 nL nH Set Partial Cut Bi Station Mode 84 IF 4D nL nH Reverse Paper Feed 32 IF 56 Send Printer Software Version 55 IF 65 n Return Logo Checksum 48 1F 74 Print Test Form 71 1F76n Buffered Status transmission Error status Sensor status 56 IF 77n Return User Flash Memory Allocation Status 70 COMPACT BOARD MCTP MHTP Printer Page 25 86 Reference FDE 3107770 Issue Z Axiohm 12 COMMAND DESCRIPTION 12 1 Command conventions The following information describes how each command is organized Command Name A designation not the ASCII code used to identify the command Description A brief summary of the command followed by 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 formula 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
38. cordance with EN 55022 class B in accordance with EN 61000 4 2 level 4 current discharge 8 KV air discharge 15 kV Radiated susceptibility Modulated susceptibility Fast transient in accordance with EN 61000 4 3 and EN 61000 4 6 with 10 V m in accordance with EN 50204 with 10 V m in accordance with EN 61000 4 4 Contact AXIOHM for recommendations regarding integration of COMPAxxx to meet those EMC ESD requirements COMPACT BOARD MCTP MHTP Printer Page 4 86 Reference FDE 3107770 Issue Z Axiohm Environmental operating requirements Standard Operating Temperature range 0 C to 50 C Operating Humidity range 5 to 90 relative humidity non condensing Storage transportation temperature range 40 C to 85 C Reliability The board is designed for a MTBF of 240 000 hours Environmental operating requirements Standard Operating Temperature range 0 C to 50 C Operating Humidity range 5 to 90 relative humidity non condensing Storage transportation temperature range 20 C to 85 C COMPACT BOARD MCTP MHTP Printer Page 5 86 Reference FDE 3107770 Issue Z Axiohm 3 BOARD MH MCTP DESCRIPTION J6 J13 J3 or J4 JA is an option J14 J15 J7 J1 LED J9 J11 COMPACT BOARD MCTP MHTP Printer Page 6 86 Reference FDE 3107770 Issue Z PCB DIMENSIONS FIXING HOLES Length 8
39. e 39 1D 48 n Select Printing Position of HRI Characters 62 ID 49 n Transmit Printer ID 51 ID 49 40n Transmit Printer ID Remote Diagnostics Extension 52 ID 4C nL nH Set Left Margin 36 ID 56m Select Cut Mode 29 ID 56mn Select Cut Mode and Cut Paper 29 ID57nLnH Set Printing Area Width 37 1D 68 n Select Bar Code Height 62 1D 6B m n dl dn Print Bar Code First Variation 63 1D 6B m d1 dk NUL Print Bar Code Second Variation 63 ID 6C m Transmit Selected A D Channel 53 ID 72n Transmit Status Paper sensor status Drawer kick out status 54 Flash memory user sector status ID 73nm Store Selected Sensor Threshold 72 1D 74 Automatically Calibrate TOF sensor 72 ID77n Select Bar Code VVidth 64 ID FF Reset Firmware 27 1F 01 d1 dn Erase Boot Sector Download New Code 69 1F 02 nl n2 n3 n4 n5 n6 Set Communication Interface Parameters 73 IF 0302n Set Knife Option 74 IF 03 03 n Paper Low Sensor Option 74 1F 03 08 n Set Paper VVidth Parameter 75 1F 03 0A n Set Partial Cut Distance for MH MCTP mechanism 75 IF 03 OB n Set Preheating Mode 76 IF 03 80 n Default Code Page Resident Font 76 1F 03 87n Set Top Of Form Mode TI 1F 03 89 n Set Cover Sensor Option 77 IF 03 8B n Set Mechanism Type 78 1F 03 97 n Set Additional Distance Search to Find one TOF 78 1F 03 98 n Set Inter Mark Distance 79 COMPACT BOARD MCTP MHTP Printer Page 24 86 Reference FDE 3107770 Issue Z Axiohm IF 03 99 n Set Cut Distan
40. e Z
41. e returned value corresponds to the highest sector number that can be accepted by the Select Sector to Download 1D 02 nn command 1 128 Kbytes Flash 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 Valucana dl E 64 Kbytes Internal Flash range 1 72 Kbytes Internal Flash Exceptions Available only in download mode COMPACT BOARD MCTP MHTP Printer Page 66 86 Reference FDE 3107770 Issue Z Axiohm GET FLASH FIRMWARE CRC STATUS Causes the printer to calculate the CRC for the Flash firmware code space and transmits the result This is performed normally after downloading completely a new firmware to verify that the downloaded firmware is valid The printer transmits ACR if the calculated CRC is correct NAK if the CRC is incorrect ASCII GS ACK Hexadecimal 1D 06 Decimal 296 Returns OK Fault ASCII ACK NAK Hexadecimal 06 15 Decimal 6 21 RETURN BOOT SECTOR CRC Returns the CRC calculated over the boot sector code space ASCII GS BEL Hexadecimal 1D 07 Decimal 297 Returns 3 byte Values ACK lt low byte gt lt high byte gt ERASE ALL FLAS
42. ely 25 dot coverage Graphics are approximately 40 dot coverage Barcodes are approximately 50 dot coverage A solid black line is 100 dot coverage COMPACT BOARD MCTP MHTP Printer Page 16 86 Reference FDE 3107770 Issue Z Axiohm 6 5 Character sets Code Page 858 00 10 20 30 40 50 60 70 80 90 AO BQ co DO EO FO 0 0 P CCE RAR s RECIO 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 A1 B1 C1 D1 E1 F1 Ill A Qi a ule E b D Ri 1 17 33 49 65 81 97 113 129 145 161 177 193 209 225 241 02 12 22 32 42 52 62 72 82 92 A2 B2 C2 D2 P E2 amp F2 ES S 2 B R b r E O 2 18 34 50 66 82 98 114 130 146 162 178 194 210 226 242 03 13 23 33 43 53 63 73 83 93 A3 B3 C3 D3 E3 F3 lt B E E s a ol mi HIE 3 4 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 Es F4 4 D FT dot raus ni ET 6 7 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 a B5 m C5 D5 ES F5 i SEO eu lo NA 0 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 ns C6 D6 E6 F6 amp 6 FIV f v a No Alal 6 22 38 54 70 86 103 118 134 150 166 182 198 214 230 246 07 17 27 37 47 57 67 TZ 87 97 AT B7 x C7 ES BA E7 F7 I 7 G W w
43. error Knife error occurred Fixed to On No unrecoverable error Unrecoverable error occurred Thermal print head temp and power supply voltage are in range Thermal print head temp or power supply voltage are out of range Fixed to Off Function Fixed to Off Fixed to On Paper adequate Paper low if paper low sensor enabled Paper adequate Paper low if paper low sensor enabled Fixed to On Paper present Paper exhausted Paper present optional 2 paper out sensor Paper exhausted Fixed to Off COMPACT BOARD MCTP MHTP Printer Page 60 86 Reference FDE 3107770 Issue Z Axiohm REAL TIME RECOVERY FROM FAULT When the printer is an error status this command clearing the data in the receive buffer and print buffer ASCII DLE ENQ n Hexadecimal 10 05 Decimal 16 5 Operand n Recovery mode Limit Dec n 2 Hex n 02 Notes This command will attempt recovery from any fault that prevents printing including jams and paper out Recovering from a print head over temperature condition is only accomplished by waiting until the print head has returned to its operating temperature range This command will be ignored until manual intervention has occurred to clear the fault condition The indication of manual intervention for clearing paper out paper Jams cutter fault consists of opening and closing the clamshell COMPACT BOARD MCTP MHTP Printer Page 61 86 Reference FDE 3107770 Issue Z
44. f a typical Firmware download sequence Only the main steps are mentioned Error checking and error recovery is not described 1 Switch to Flash Download Mode 2 Check Flash Memory Size 3 Erase all Flash Memory sectors except Boot Sector 4 Download Code to Active Flash Sector 4 1 Select Flash memory sector n each sector contains 64kbytes 4 1 1 Program segment of N bytes 4 1 2 if more segments loop back to 4 1 1 4 2 if more sectors to program loop back to 4 1 5 Check Flash CRC 6 Reboot Printer COMPACT BOARD MCTP MHTP Printer Page 65 86 Reference FDE 3107770 Issue Z Axiohm 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 ASCII ESC Hexadecimal 1B 5B 7D Decimal 27 91 125 Note This command does not affect the current communication parameters Once the printer is in flash download mode this command is no longer available REQUEST FLASH MEMORY SIZE Returns the size of the flash used There may be 2 sectors 64K each in flash memory This command assures that the firmware to be downloaded is the appropriate size for flash memory ASCII GS SOH Hexadecimal 1D 01 Decimal 291 Th
45. ff 00 On 01 1 Off 00 On 02 2 Off 00 On 04 3 n z 4 Off 00 5 a 6 7 Off 00 Decimal OJN Oj Status for Transmit Status Paper Low Paper Present Paper Low Paper exhausted Cover Closed Cover Open Paper End Paper Present Paper End Paper exhausted Undefined Not used Fixed to off Undefined Undefined Not used Fixed to off COMPACT BOARD MCTP MHTP Printer Page 54 86 Reference FDE 3107770 Issue Z Axiohm Drawer Kick out Status n 20r n 50 Bit Off On Hex Decimal 0 Off 00 0 On 01 1 1 E 2 A 3 3 s 4 Off 00 0 5 e 6 y E E 7 Off 00 0 Status for Transmit Status Pin Low Pin High Undefined Undefined Undefined Not used Fixed to off Undefined Undefined Not used Fixed to off Flash memory User Sector Status n 4 or n 52 Bit Off On Hex Decimal 0 i a 1 i E 2 Off 00 0 3 Off 00 0 On 08 8 4 Off 00 0 5 Off 00 0 On 20 32 6 Off 00 0 7 z E SEND PRINTER SOFTWARE VERSION Status for Transmit Status Undefined Undefined Not Used Fixed to off Logo s defined No logo defined Not used Fixed to off No user defined characters written to flash User defined characters written to flash Not used Fixed to off Undefined 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
46. h 4 GND 5 Led number 2 6 GND J14 Print head MCTP MHTP Mechanism gt COMPACT BOARD Notes Mechanism pin 1 pin 28 Board 1 VCH IN 11 GND 21 GND 2 VCH IN 12 Clock 22 GND 3 Data In 13 OE1 23 VCH IN 4 GND 14 GND 24 VCH IN 5 THI 15 GND 25 VCH IN 6 GND 16 OE2 26 VCH IN 7 OEI 17 OE2 27 VCH IN 8 OEI 18 GND 28 VCH IN 9 VCC 19 GND 10 Strobe 20 GND J5 Cutter motor 1 Cutter motor AO 2 Cutter motor BO MA 3 Cutter motor Al 4 Cutter motor Bl MA 5 Collector Sensor Cutter 6 GND J13 Opto and switch 1 Switch Door 2 GND 3 Anode sensor paper 4 GND 5 Collector Sensor paper 6 Anode 2 sensor 7 GND 8 Collector 2 sensor J6 Paper Feed Paper Feed A1 2 Paper Feed B1 AP 3 Paper Feed BO AP 4 Paper Feed A0 J7 Cash Drawer Kick Out 1 VCH IN 2 Control 3 Switch CDKO 4 GND J15 Sensor 1 Collector Sensor 2 Anode Sensor 3 GND VCH IN 24V JJ Connector type JST B6B PH K S J5 Connector type JST B6B PH K S J13 Connector type JST B8B PH K S J7 Connector type JST B4B PH K S J6 Connector type JST B4B PH K S J15 Connector type JST B3B PH K S J14 Connector type Molex 52808 2890 or 52808 2891 For optional power supply J4 see 4 POWER SUPPLY COMPACT BOARD MCTP MHTP Printer Page 12 86 Reference FDE 3107770 Issue Z Axiohm 8 PRINT SPECIFICATION 8 1 Characters Print Modes Standard Double High Double
47. he 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 When no tabs are defined to the right of the current position or if the next tab is past the right margin Line Feed is executed Print initialization sets 32 tabs at column 9 17 25 ASCII HT Hexadecimal 09 Decimal 9 SET RIGHT SIDE CHARACTER SPACING Sets the right side character spacing to n ASCII ESCSPn Hexadecimal 1B 20 n Decimal 2732 n Range of n 0 32 Default 0 Note where n is a multiple of 4 COMPACT BOARD MCTP MHTP Printer Page 33 86 Reference FDE 3107770 Issue Z Axiohm SET ABSOLUTE STARTING POSITION Sets the print starting position to the specified number of dots up to the right margin from the beginning of the line The print starting position is reset to the first column after each line ASCII ESC nL nH Hexadecimal 1B 24 nL nH Decimal 27 36 nL nH Value ofn n Number of dots to be moved from the beginning of the line nL Remainder after dividing n by 256 nH Integer after dividing n by 256 The values for nL and nH are two bytes in low byte high byte word orientation nH 256 nL Note Where nL is a multiple of 4 Formulas The example shows how to calcul
48. hen 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 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 go busy immediately 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 REAL TIME STATUS TRANSMISSION Transmits the selected one byte printer status specified by n in Real Time according to the following parameters DLE Sequence ASCII DLE EOT n Hexadecimal 10 04 n Decimal 164n DLE Sequence Value of n 1 Transmit printer status 2 Transmit communication interface busy status 3 Transmit error status 4 Transmit receipt paper status Exceptions The command is ignored if n is out of range COMPACT BOARD MCTP MHTP Printer Page 58 86 Reference FDE 3107770 Issue Z Axiohm Related Information 1 Transmit Printer Status Bit Status 0 Off 1 On 2 On 3 Off On 4 On On Off 6 7 Off Hex 00
49. inimum line spacing is 8 5 lines per inch The line spacing equals the character height when n is too small ASCII ESC 3n Hexadecimal 1B 33 n Decimal 2751n Value of n n 406 inch Range of n 0 255 Default 0 13 inch 3 37 mm Exception The command is valid only at the beginning of a line COMPACT BOARD MCTP MHTP Printer Page 31 86 Reference FDE 3107770 Issue Z Axiohm PRINT AND FEED PAPER Prints one line from the buffer and feeds the paper 1 203 inch 7 8 mm The line height equals the character height when 7 is too small Sets the print starting position to the beginning of the line after printing is completed ASCII ESCJn Hexadecimal 1B4A n Decimal 27 74 n Value of n n 203 inch Range of n 0 255 PRINT AND FEED N LINES Prints one line from the buffer and feeds paper n lines at the current line height ASCII ESCdn Hexadecimal 1B 64 n Decimal 27 100 n Range of n 0 255 REVERSE PAPER FEED Execute a reverse paper feed ASCII US M nL nH Hexadecimal 1F 4D nL nH Decimal 31 TT nL nH Operand n nH 256 nL Distance number of dot line 1 8 mm Limit Dec 0 lt n lt 32768 Hex 00 lt n lt 8000 Note Beware when using this sequence to be sure that the paper will still be inside the printer mechanism COMPACT BOARD MCTP MHTP Printer Page 32 86 Reference FDE 3107770 Issue Z Axiohm 12 5 Horizontal positioning commands T
50. ion commands 72 COMPACT BOARD MCTP MHTP Printer Page 3 86 Reference FDE 3107770 Issue Z Axiohm 1 OVERVIEW This controller board has been designed to drive MHTP MCTP printer mechanisms with integrated cutter through standard serial communication interface RS232C or USB 2 GENERAL SPECIFICATIONS 2 1 Features Communication Interfaces RS232 USB 1kb reception buffer Flash Memory Size 128kb 2Mb Amount of Flash Memory accessible for user storage 48 kb on Compact Board standard 2 Mb external Flash memory Resident character set PC Code Pages 858 and 437 Bar code support Code 39 UPC A UPC E JAN8 EAN JAN13 EAN Interleaved 2 of 55 ITF Codabar Code 128 Print resolution 8 dots mm Speed Up to 100 mm second throughput See Note 1 Drivers available Windows 98 2000 XP Human Interface Configuration software commands for easy setup Note 1 Reaching and maintaining this print speed requires that data throughput of communication with host matches or exceeds print throughput With paper quality adapted 2 2 Compliance to legal approval EN 60950 CE symbol class B UL standard 2 3 Operating requirements General operating requirements Conducted emission Radiated emission Electrostatic discharge in accordance with EN 55022 class B in ac
51. may result in a printer service call or voiding of the printer warranty Consult your Axiohm technical support specialist if you have any questions 8 4 Duty cycle restrictions printing solid blocks There are restrictions on the duty cycle because of the heat generated by the receipt thermal print head when printing solid blocks regardless of the length of the block in relation to the print line The restrictions are ambient temperature the percentage of time measured against one minute of continuous solid printing and the amount of coverage Caution When the duty cycle approaches the limits shown in the table the receipt print head will heat up If print head temperature exceeds 65 C a safety feature will shut down the print head to prevent damage COMPACT BOARD MCTP MHTP Printer Page 15 86 Reference FDE 3107770 Issue Z Axiohm Another cause for du cycle restriction is paper feed motor temperature increase due to continuous printing Allowable Duty Cycle measured over one minute of continuous printin Amount of Solid Ambient Temperature Coverage 25 C 35 C 50 C 20 100 during first 3 minutes of continuous 50 20 printing 50 after the 3 minutes 40 50 25 10 100 20 10 4 For reference A typical receipt with text contains some blank spaces is approximately 12 dot coverage A full line of text characters every cell on the line has a character in it is approximat
52. n Selected logo 0 n 63 0 lt n lt 3F Bytes 65 Hex Command ID 01 Hex Logo present 00 Hex Logo absent Checksum LSB 00 Hex Checksum MSB 00 Hex If n is out of range no reply command Checksum 0x1D 0x2A For the Define Downloaded Bit Image command COMPACT BOARD MCTP MHTP Printer Page 48 86 Reference FDE 3107770 Issue Z Axiohm 12 10 Printer status commands These commands enable the printer to communicate with the host computer 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 communication 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 print head cool down the printer will resume processing the data in its receive buffer Real Time commands allow the printer to respond immediately even though it is busy at the communication interface See the following section Real Time Commands for details about these commands TRANSMIT PAPER SENSOR STATUS The printer sends one byte to the host computer when it is not busy or in a fault condition Status Byte Bit ASCII Hexadecimal Decimal Values 0 1 2 3 4 5 6 7 Related Information Function Receipt Paper Receipt
53. n 12 28 44 60 76 92 108 124 140 156 172 188 204 220 236 252 0D 1D 2D 3D 4D 2 6D a 8D 9D AD BD CD DD ED FD M m Xi 1 2 13 29 45 61 7T 93 109 125 141 157 173 189 205 221 237 253 CE 1E 2E 3E 4E 5E 6E TE SE 9E AE BE CE DE EE FE E A n A Pt lt T els 14 30 46 62 78 94 110 126 142 158 174 190 206 222 238 254 OF 1F 2F 3F 4F 5F 6F 7F DEL ar 9F AF BF CF DF EF FF m o sia i EAM 15 31 47 63 79 95 111 127 143 159 175 191 207 223 239 255 COMPACT BOARD MCTP MHTP Printer Page 18 86 Reference FDE 3107770 Issue Z Axiohm 9 PRINTER CONFIGURATION Printers are generally shipped with all the functions and parameters pre set at the factory The configuration can be changed by using software commands as described in the Configuration Commands chapter 9 1 List of parameters that can be changed Set Print Options Set Mechanism Options Type Standard Bi station Voltage 12V 24V Paper Width 80mm 82 5mm Paper Entry Clamshell Autoload Print density 80 120 default 100 Knife Option Disabled Standard Mode Low noise Mode Partial Cut Distance 0 Steps 8 Steps 16 Steps 24 Steps 32 Steps Cover Sensor Option Enabled Disabled Optional Sensor Disabled 2 Paper Out Pre Heating Enabled Disabled Paper Low Sensor Disabled Enabled Mode Top Of Form Enabled Disabled TOF Sensor Threshold 0 255 Default Font
54. nload mode 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 If the 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 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 other functions Firmware Download Sequence By providing a set of low level commands great freedom of implementation is given to customer application to customize the sequence to match its specific requirements Following is the description o
55. ny setting that exceeds the printable area is ignored ASCII ESC nl nH Hexadecimal 1B 5C nL nH Decimal 2792 nL nH 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 nL Remainder after dividing n by 256 nH Integer after dividing n by 256 The values for nL and nH are two bytes in low byte high byte word orientation To Move the Relative Starting Position Left of the Current Position n Number of dots to be moved left of the current position nL Remainder after dividing 65536 n by 256 nH Integer after dividing 65536 n by 256 The values for nL and nH are two bytes in low byte high byte word orientation Note where nL is a multiple of 4 Formulas To move to the left The example shows how to set the relative position 20 dots to the left of the current position 65536 20 65516 65516 256 255 remainder of 236 nL 236 nH 255 To move to the right The example shows how to set the relative position 260 dots to the right of the current position 260 256 1 remainder of 4 nL 04 nH 01 COMPACT BOARD MCTP MHTP Printer Page 35 86 Reference FDE 3107770 Issue Z Axiohm SELECT JUSTIFICATION Specifies the alignment of characters logos and bar codes see the value of n table ASCII Hexadecimal Decimal Value of n Range of n Default Exceptions ESCan 1
56. ogo 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 When 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 memory and prints it If there is no definition for logo n then no logo is printed ASCII GS n Hexadecimal 1D23n Decimal 2935n Operand n mode selection Range of n 0 63 Note An application using multiple logos into flash memory is responsible for erasing the flash memory page when the logo area is full DEFINE DOWNLOADED BIT IMAGE IN FLASH MEMORY Enters a downloaded bit image such as a logo into Flash with the number of dots specified by n1 and n2 The downloaded bit image is available until another bit image 1s defined or either Initialize Printer 1B 40 or 1D 40 n command is received ASCII GS nl n2 dl dn Hexadecimal 1D 2A ni n2 d1 dn Decimal 29 42 nl n2 dl dn Operands Value of n1 Value of n2 Value of d 1 80 8 x n1 Number of 1 255 Number of Vertical Bytes of Data Printed Down Horizontal Dot Columns Bytes Then Across The number of bytes sent is represented by the following formula n 8 x nl x n2 nl x n2 must be less than or equal to 49138 lt Size User Flash memory See the illustration below for a graphic representation of the downloaded bit image Return OK Fa
57. oltage V 0 11274 x reading Example reading 2 3 gt Voltage 24 01V reading 186 gt Voltage 21 00V m 0x09 Returns raw A D conversion on 1 byte Actual temperature is defined with formulas Formulas Rthermistor kOhm 100 255 reading 1 Temp C 3950 In Rthermistor 30 13 255 273 Example reading 60 gt RTH 30 769ko gt Temperature 24 43 C reading 27 RTH 11 842ko Temperature 47 47 C COMPACT BOARD MCTP MHTP Printer Page 53 86 Reference FDE 3107770 Issue Z Axiohm TRANSMIT STATUS PAPER SENSOR STATUS DRAWER KICK OUT STATUS FLASH MEMORY USER SECTOR 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 ASCII GS 1 n Hexadecimal 1D 72 n Decimal 29 114 Operand n Mode selection Value of n 1 49 Paper sensor Status 2 50 Drawer Kick out Status 4 52 Flash memory User Sector status Returns 1 Byte The status bytes to be transmitted are described in the following tables Note If Paper Low sensor Option disabled Paper low Sensor Paper empty sensor When n is out of the specified range the command is ignored Paper sensor Status n 1 or n 49 Bit Off On Hex 0 O
58. ooamoommonmnonmnnmsonmosanonononenanonnonnonanonanona 26 12 2 Res t C0WIBGBdS 27 12 3 Paper cut commuands eee ee ee eee eee entente natn atta aetas ta soins s sensns sense tune 28 12 4 Vertical positioning and print commands 30 12 5 Horizontal positioning commands 33 12 6 Print characteristics commands 38 12 7 QUTD 40 12 8 Graphics commandes ee ee ee eee eee einen J aT seta sens sensns saneta nein 45 12 9 Logo command eee e ee eee eee einen tente natn natns tasa setate s sensns tnnt en neun 46 12 10 Printer status commands 49 12 11 Real time commands e ee e eee eee eene tenete nooo neenon aetates sensns sense en neun 57 12 12 Bar code commands 62 12 13 Flash firmware download commands 65 12 14 User flash memory commaneds 70 12 15 Peripheral control commands 71 12 16 Configurat
59. r monitors the print head temperature and keeps it above 19 24 C Furthermore if the temperature is around and the pre heating disabled an automatic wake up of the pre heating functionality will permit to have the temperature around 19 24 C This command must be followed by a reset DEFAULT CODE PAGE This command will store the default code page in non volatile memory NVRAM ASCII US ETX Hexadecimal 1F 03 80 Decimal 31 3 128 Operand n code page selection Value Decimal 0 437 US 6 858 default Value Hex 00 437 US 06 858 default Note The default code page selects which code page will be initially used by the printer until it is changed using the ESC t command This command must be followed by a reset COMPACT BOARD MCTP MHTP Printer Page 76 86 Reference FDE 3107770 Issue Z Axiohm SET TOP OF FORM MODE This command will store the Top of Form option in non volatile memory NVRAM ASCII US ETX n Hexadecimal 1F 03 87 n Decimal 31 3 135 n Operand n Mode selection Value Decimal 0 Disabled 1 Enabled Default 0 Limits Dec O lt n lt l Hex 00 lt n lt 0l Note This command must be followed by a reset SET COVER SENSOR OPTION This command will store the Cover option in non volatile memory NVRAM Only with paper Entry auto load mode Code 1F 03 A2 n ASCII US ETX n Hexadecimal 1F 03 89 n Decimal 31 3 137 N Operand n Mode selection Value Decim
60. raphics data In this case the sequence will be processed both ways as a real time command and as the graphics data it is intended to be when the graphics command is executed from the buffer The result is that the host might receive status messages it has not requested 3 If the printer is in error condition meaning that the communication interface is likely to be busy the host must be able to send the real time commands regardless of this busy state at the interface Otherwise those commands wouldn t be received and processed COMPACT BOARD MCTP MHTP Printer Page 57 86 Reference FDE 3107770 Issue Z Axiohm MOVING DATA THROUGH THE BUFFER Applications should not let the buffer fill up with Real Time commands when the printer is busy at the communication interface A busy condition can be determined by bit 3 of the response to DLE EOT 1 Other responses to DLE EOT n can determine the reason for a particular busy condition 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 t
61. rse Print Mode does not affect graphics logos bar code HRI characters and spacing skipped by Horizontal Tab HT Set Absolute Starting Position ESC and Set Relative Print Position ESC ASCII GS Bn Hexadecimal 1D 42 n Decimal 29 66 n Operand n mode selection Value of n 0 Off 1 On Default 0 Off Exceptions Only the lowest bit of n is valid COMPACT BOARD MCTP MHTP Printer Page 39 86 Reference FDE 3107770 Issue Z Axiohm 12 7 Font commands SELECT INTERNATIONAL CHARACTER SET Selects the character set mapping to be used or selected the flash user single bytes fonts See Table below ASCII ESCR n Hexadecimal 1B 52 n Decimal 2782 n Operand N MODE SELECTION Limits 0 10 Default n 0 n Country 0 USA 1 France 2 Germany 3 UK 4 Denmark I 5 Sweden 6 Italy 7 Spain 8 Japan 9 Norway 10 Denmark II Additional codes n 35 36p 64p 91p 92p 93p 94p 96p 123p 124p 125p 126p 234 244 404 5By 5Cy 5D4 5Eq 604 7By 7Cy 7D4 7En U S A 0 I France 1 9 Germany 2 B U K 3 A Denmark I 4 e Sweden 5 n Italy 6 S i Spain 7 Pe i N i A Japan 8 y a Norway 9 a d Denmark II 10 E g
62. s If the setting exceeds the printable area the maximum value of the printable area is used 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 1D 57 nL nH Decimal 29 87 nL nH Operand n nH 256 nL dots Range of nL 0 255 Range of nH 0 255 Limits Default 80 0mm mechanism 576 dots the maximum printable area Default 82 5mm mechanism 640 dots the maximum printable area Notes The command is ignored if it is not at the beginning of the line If the setting exceeds the printable area the maximum value of the printable area is used Where nL is a multiple of 4 Minimum print area width 4 Formulas To set the width of the printing area to one inch send the four byte string GS W 203 0 Or to set the width of the printing area to two inches send the four byte string GS W 150 1 Where 2 inches 406 203 and 406 1 X 256 150 lt Printable area 576 or 640 dots gt lt Left margin gt lt Printing area width COMPACT BOARD MCTP MHTP Printer Page 37 86 Reference FDE 3107770 Issue Z Axiohm 12 6 Print characteristics commands These commands control what the printed information looks like selection of character sets and setting of margins The commands are described in order of their hexadecimal codes SELECT PRINT MODE
63. s not including inter line space e d downloaded data bytes Limit Hex e 0x20 f8 lt Ox7F Returns OK 0x30 lt t lt 0x33 ASCII ACK 0x01 lt w h lt 0x20 Hexadecimal 06 0x00 lt d lt 0xFF Decimal 6 Notes See commands 1Bh 74h n Fault NAK 15 21 COMPACT BOARD MCTP MHTP Printer Page 44 86 Reference FDE 3107770 Issue Z Axiohm 12 8 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 n72 bytes describing the line to print nX 72 80 0mm Prints one row of data n1 180 bytes describing the line to print nX 80 gt 82 5mm ASCII DCI n nX Hexadecimal 11 n nX Decimal 17 nl nX Value of n nl n72 Data bytes 80 0mm nl n80 Data bytes 82 5mm Range 0 255 Note See command 1F 03 08 n Set Paper Width or diagnostic form Option Paper Width COMPACT BOARD MCTP MHTP Printer Page 45 86 Reference FDE 3107770 Issue Z Axiohm 12 9 Logo commands 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 or command 1B40 is sent or printer reboots 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 l
64. ss than 13mm 104 dot lines COMPACT BOARD MCTP MHTP Printer Page 28 86 Reference FDE 3107770 Issue Z Axiohm 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 Vm GS Vmn Hexadecimal 1D 56m 1D 56m n Decimal 29 86 m 29 86m n Operand m cut mode n additional distance to feed prior to cut beyond the cut position Value of m Selects the mode as shown in the table Value of n Determines the cutting position Limit OPTION 1 OPTION 2 Decimal 0 lt m lt 1 48 lt m lt 49 65 lt m lt 66 0 lt n lt 255 Hex 00 lt m lt 1 30 lt m lt 31 41 lt m lt 42 00 lt n lt FF Exception The sequence will be ignored if paper length less than 13mm 104 dot lines GS V OPERAND DEFINITION Full cut Partial cut Feeds paper n steps beyond the cut position then executes a full cut Feeds paper n steps beyond the cut position then executes a partial cut COMPACT BOARD MCTP MHTP Printer Page 29 86 Reference FDE 3107770 Issue Z Axiohm 12 4 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 LF
65. ull 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 First Variation ASCII GS k m dl dk NUL GS Hexadecimal 1D 6B m dl dk 00 1D Decimal 29 107 m dl dk 0 29 0 End of command Operands See tables below Exceptions The command is only valid at the beginning of a line Illegal data cancels the command Second Variation k m n dl dk 6B m n d1 dk 107 m n dl dk If the width of the bar code exceeds one line the bar code is not printed First Variation Data string terminated with NULL Character Description 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 Exceptions 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 0 UPC A 57 ASCII numerals Fixed Length 11 12 4 4 8 8 57 48 57 Fixed Length 12 13 2 4 Code 39 48 57 65 90 ASCII alphabet 32 36 37 43 45 46 47 ASCII special characters dl dk 42 start stop code is supplied by printer if necessary 5 Interleaved 2 of 5 48 57 Variable Length Variable Length Even Number COMPACT BOARD MCTP MHTP Printer Page 63 86 Reference FDE 3107770 Issue Z Axiohm
66. ult ASCII ACR NAK Hexadecimal 06 15 Decimal 6 21 Note See the illustration for the Print Downloaded Bit Image command 1D 2F for a representation of the bit image COMPACT BOARD MCTP MHTP Printer Page 46 86 Reference FDE 3107770 Issue Z Axiohm 80 mm paper 82 5 mm paper Top of Graphic Column Top of Graphic Column 72 x 8 Max Glum 80 x 8 Max Column MSB PRINT DOWNLOADED BIT IMAGE Prints the downloaded bit image at a density specified by m It is ignored if any data is in the print buffer if the downloaded bit image is undefined ASCII GS m Hexadecimal 1D 2F m Decimal 29 47 m Value and Range of m Value of Print Mode Vertical Horizontal DPI DPI 0 Normal 203 203 1 Double Wide 203 101 2 Double High 101 203 3 Quadruple 101 101 Dot density measured in dots per inch Note See the illustration on the previous page for a representation of the bit image 1D 2A COMPACT BOARD MCTP MHTP Printer Page 47 86 Reference FDE 3107770 Issue Z Axiohm RETURN LOGO CHECKSUM Returns the checksum of a logo downloaded in flash memory see command 1D 2A Reply 4 bytes Command ID Flag checksum of the logo specified by n Checksum is two s complement of sum of all bytes in the download sequence ASCII Hexadecimal Decimal Operand Limit Return Format Note Example US 1F 31 4 Byte 1 Byte 2 Byte 3 Byte 4 V n 65 n 101
67. und ShellF rame Ground COMPACT BOARD MCTP MHTP Printer Page 10 86 Reference FDE 3107770 Issue Z Axiohm 6 USB PARAMETERS Axiohm s implementation of USB complies with Universal Serial Bus Specification revision 1 1 6 1 Capabilities Compact Board is a device only and doesn t provide hub capabilities The maximum recommended cable length is 3 meters Full speed communications 12Mbits sec are supported 6 2 Connector J9 The connector is located at the rear of the board and is of B type Refer to USB specification rev 1 1 chapter 6 for more information 6 3 Interface The data are exchanged between host and printer via four endpoints Endpoint 0x00 CONTROL Default endpoint Endpoint 0x02 BULK OUT For transmission of all printable data and commands from host to printer Endpoint 0x82 BULK IN For return of all synchronous data status or other types of information except unsolicited status mode messages from printer to host Endpoint 0x01 INTERRUPT OUT For transmission of real time commands from host to printer 6 4 Other information Vendor Id Axiohm USB Vendor Id 0x05D9 Product Id Compact Board Product Id 0xA000 Note The USB interface is automatically detected COMPACT BOARD MCTP MHTP Printer Page 11 86 Reference FDE 3107770 Issue Z Axiohm 7 CONNECTORS DESCRIPTION J1 User s Control 1 Paper Feed Switch 2 GND 3 Reset Switc
68. user flash memory and sends a carriage return when the operation is complete ASCII GS n Hexadecimal 1D 40 n Decimal 29 64 n Operand n mode selection Value of n 49 n 49 ASCH n 1 Erase User flash Memory 51 n 51 ASCII n 3 Erase User flash Easy Font Returns Operation completed ASCII CR Hexadecimal 0D Decimal 13 This command erases all 48K Flash memory sectors allocated to logos storage and fonts storage Those sectors should be erased when the logo definition area is full and an application is attempting to define new logos All logo definitions are erased and must be redefined Important While erasing flash memory all communication is disabled 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 RETURN USER FLASH MEMORY ALLOCATION STATUS Returns the amount of Flash memory available in user sections ASCII US v n Hexadecimal 1F 77 n Decimal 31 119 n Operand n Status select Reply the amount of Flash memory available in user section 2 Reply the amount of Flash memory available in User Download font section Easy Font
Download Pdf Manuals
Related Search
Related Contents
REVERDISSANT - La Pause Jardin SERVICE MANUAL /Elefant 650 USA Manuel d`utilisation MANUAL SW 602 AT L A S N A V I G AT O R User Manual 安全上のご注意 Frymaster FBR18 User's Manual Philips DPTV3052015-05-09 01:0911.1 MB - Wiki Karat Thomson Personal digital player PDP 2325 Samsung Mini Audio System F870 Manual de Usuario Copyright © All rights reserved.