Page 1
CONFIDENTIAL Hybrid printer TM-H5000II II II II series Specification STANDARD Rev. No. Notes Copied Date Copied by SEIKO EPSON CORPORATION MATSUMOTO MINAMI PLANT 2070 KOTOBUKI KOAKA, MATSUMOTO-SHI, NAGANO, 399-8702 JAPAN PHONE(0263)86-5353 FAX(0263)86-9923...
Page 2
CONFIDENTIAL REVISION SHEET Sheet 1 of 5 The table below indicates which pages in this specification have been revised. Before reading this specification, be sure you have the correct version of each page. Revisions Design Section Sheet Rev. No. Rev. Document Sheet Rev.
Page 3
CONFIDENTIAL REVISION SHEET Sheet 2 of 5 The table below indicates which pages in this specification have been revised. Before reading this specification, be sure you have the correct version of each page. Revisions Design Section Sheet Rev. No. Rev. Document Sheet Rev.
Page 4
CONFIDENTIAL REVISION SHEET Sheet 3 of 5 The table below indicates which pages in this specification have been revised. Before reading this specification, be sure you have the correct version of each page. Revisions Design Section Sheet Rev. No. Rev. Document Sheet Rev.
Page 5
CONFIDENTIAL REVISION SHEET Sheet 4 of 5 The table below indicates which pages in this specification have been revised. Before reading this specification, be sure you have the correct version of each page. Revisions Design Section Sheet Rev. No. Rev. Document Sheet Rev.
Page 7
2. On the earlier of (a) termination of your relationship with Seiko Epson, or (b) Seiko Epson’s request, you must stop using the confidential information. You must then return or destroy the information, as directed by Seiko Epson.
Page 8
· New paper handling enables easy paper roll setting. <Both Receipt and Slip> · EPSON customer display series connection (DM-D). (Available only for serial interface model) · Selectable receive buffer size (45 bytes or 4K bytes). · Command protocol based on the ESC/POS® standard.
CONFIDENTIAL TABLE OF CONTENTS 1. GENERAL SPECIFICATIONS 1.1 Slip Section ........................... 1 1.1.1 Printing Specifications......................1 1.1.2 Character Specifications ....................... 1 1.1.3 Ribbon........................... 3 1.1.4 Paper Feed and Paper Specification ..................3 1.1.5 Printable Area ........................6 1.1.6 MICR Reader (when the printer is used with the MICR reader) ........... 7 1.2 Receipt Section ...........................
Page 10
CONFIDENTIAL 3.2.9 Page 8 (One-pass printing Kanji characters ............... 53 3.2.10 Page 20 (Thai character code 42) ..................54 3.2.11 Page 21 (Thai character code 11) ..................55 3.2.12 Page 22 (Thai character code 13) ..................56 3.2.13 Page 23 (Thai character code 14) ..................57 3.2.14 Page 24 (Thai character code 16) ..................
Page 12
CONFIDENTIAL ESC V n ............................. 125 ESC W xL xH yL yH dxL dxH dyL dyH ..................126 ESC ¥ nL nH ..........................128 ESC a n ............................129 ESC c 0 n ........................... 130 ESC c 1 n ........................... 131 ESC c 3 n ...........................
Page 13
CONFIDENTIAL FS & ............................186 FS - n ............................186 FS ............................. 187 FS 2 c1 c2 d1...dk ........................188 FS C n ............................191 FS S n1 n2 ..........................192 FS W n............................193 6.6 MICR Control Commands (only for printers with MICR) ............194 DLE EOT BS n ...........................
CONFIDENTIAL 1. GENERAL SPECIFICATIONS 1.1 Slip Section 1.1.1 Printing Specifications 1) Printing method: Serial impact dot matrix 2) Head wire configuration: 9-pin vertical line, wire pitch 1/72 inch 3) Head wire diameter: 0.29 mm (.01") 4) Printing direction: Bidirectional, minimum distance printing 5) Printing speed: Refer to Table 1.1.1 6) Characters per line:...
Page 15
CONFIDENTIAL Table 1.1.1 Characters Per Inch, Characters Per Second, Characters Per Line, Character Size Character Characters Per Characters Characters Characters Size Character Font Structure Second (CPS) interval Per Line (units: mm) Spacing type (Horizontal dots (Carriage moving Width ´ ´ ´ ´ Height (half dots) (mm) (CPL)
[ Units: mm (All the numeric values are typical.) ] Figure 1.1.1 Ribbon Cassette Overall Dimensions NOTE: If ribbon cassettes other than those specified is used, damage may occur. Seiko Epson will not be held responsible for problems arising from the above.
Page 17
CONFIDENTIAL 4) Paper size: a) Paper type: • Normal paper • Carbon copy paper • Pressure sensitive paper b) Total thickness: 0.09 to 0.36 mm (.0035 to .0141") (Refer to e)) c) Size (W ´ L): 70 mm ´ 70 mm to 210 mm ´ 297 mm (A4) (2.76"...
Page 18
CONFIDENTIAL NOTE: · When using multi-ply paper that consists of an original and three copies, be sure to print with a 9 ´ 9 font. If a 7 ´ 9 font is used, some characters on some of the copies may not be readable.
CONFIDENTIAL 1.1.5 Printable Area Top margin Top margin 18.9 18.9+1/-3 135.6 Bottom margin Bottom margin 18.4±2 18.4 [ Units: mm (All the numeric values are typical.)] Figure 1.1.3 Slip Paper Printable Area The top margin can be set to a minimum of 5 mm (0.19”) by using a command to feed the paper backward.
Recognition rating (%) ´ 100 Total number of checks · Check paper used for test is Epson standard check paper. · Checks must be flat, without curls, folds, or wrinkles. · The magnet bias method is used for reading. TITLE...
Page 21
CONFIDENTIAL 3) Inserting direction and endorsement printing Insert the check with the surface printed with the magnetic ink downward, following the slip side guide. Endorsement printing can be performed. In this case, the print starting position is point A in the illustration shown below.
Page 22
CONFIDENTIAL Figure 1.1.7 MICR Character Recognition Impossible Area of Personal Check NOTES: 1. Do not install the printer near any magnetic fields because this may cause MICR reading errors. 2. The MICR characters may not be recognized when impact or vibration is applied to the printer.
CONFIDENTIAL 1.2 Receipt Section 1.2.1 Printing Specifications 1) Printing method: Thermal line printing 180 dpi ´ 180 dpi. The number of dots per 25.4 mm (1") 2) Dot density: 3) Printing direction: Unidirectional with friction feed 4) Printing width: 72 mm (2.83"), 512 dot positions 5) Characters per line (default): Font A: 42 Font B: 56 6) Character spacing (default):...
CONFIDENTIAL 1.2.2 Character Specifications 1) Number of characters: Alphanumeric characters: 128 ´ 7 pages Extended graphics: (including one space page) International characters: Multilingual character model supports printing with one of the following characters: À Japanese Kanji JIS (JIS X0208-1990) Level 1: 3489 Level 2: 3388 Á...
CONFIDENTIAL 1.2.3 Auto Cutter Partial cut: Cutting with one point left uncut NOTE: To prevent dot displacement, after cutting, paper must be fed approximately 1 mm (14/360 inches) or more before printing. 1.2.4 Paper Roll Supply Device Section 1) Supply method: Drop-in paper roll 2) Near-end sensor a) Detection method:...
CONFIDENTIAL 1.2.6 Printable Area 1) Paper roll The printable area of a paper with width of 79.5 ± 0.5 mm (3.13" ± 0.02") is 72.2 ± 0.2 mm (2.84" ± 0.008") (512 dots) and the space on the right and left sides are approximately 3.7 ±2 mm (0.15"...
CONFIDENTIAL 1.2.7 Printing and Cutting Positions Manual-cutter position Approx. 29 26.3 14.8 Approx. 15 Auto-cutter blade position Paper feed direction Center of the print dotline [ Units: mm (All the numeric values are typical.) ] Figure 1.2.3 Printing and Cutting Positions NOTE: Numeric values used here are typical values;...
Low power consumption mode: Mean: Approximately 1.2A (Character font A a-N all columns printing) Peak: Approximately 6.6A Standby: Mean: Approximately 0.3A 1.3.3 EMI and Safety Standards Applied (EMC is tested using the EPSON PS-170 power supply) Europe: CE marking EN55022 EN50082-1 EN45501 Safety Standard: TÜV (EN 60950)
CONFIDENTIAL 1.3.4 Reliability Slip 1) Life (when printing alphanumeric characters) Mechanism: 12,000,000 lines Print head: 200 million characters (when printing with font B) MICR reader mechanism (only when the printer is used with the MICR reader): 240,000 passes The MICR reader is defined to have reached the end of its life when it reaches the beginning of the Wearout Period.
No external or internal damage should be found after the vibration test, and the unit should operate normally. 4) Impact resistance: When Packed: Package: EPSON standard package Height: 50 cm (19.69") Directions: 1 corner, 3 edges, and 6 surfaces No external or internal damage should be found after the drop test, and the unit should operate normally.
CONFIDENTIAL Acoustic noise(Operating): Receipt: When using auto cutter: Approximately 52 dB (Bystander position) When not using auto cutter: Approximately 45 dB (Bystander position) Slip: Approximately 65 dB (Bystander position) 1.3.6 Installation The TM-H5000I I series printer must be installed horizontally. TITLE SHEET TM-H5000 II II II II series...
CONFIDENTIAL 2. CONFIGURATION 2.1 Interface 2.1.1 RS-232 serial interface 2.1.1.1 Specifications Data transmission: Serial Synchronization: Asynchronous Handshaking: DTR/DSR or XON/XOFF control Signal levels: MARK = -3 to -15 V: Logic "1" SPACE = +3 to +15 V: Logic "0" Stop bits: 1 or more Connector (printer side): Female DSUB-25 pin connector...
Page 33
CONFIDENTIAL 2.1.1.3 Interface connector terminal assignments and signal functions Interface connector terminal assignments and signal functions are described in Table 2.1.1. Table 2.1.1 TM-H5000II II II II series Printer Status and Signals Pin No. Signal name Signal direction Function — Frame ground Output Transmit data...
Page 34
CONFIDENTIAL Table 2.1.1 TM-H5000II II II II series Printer Status and Signals (Continued) Pin number Signal name Signal direction Function 2) When XON/XOFF control is selected: The signal indicates whether the printer is correctly connected and is ready to receive data. SPACE indicates that the printer is ready to receive data.
Page 35
CONFIDENTIAL · When the DIP SW 2-1 is set to OFF, XON is not transmitted if the printer is in off-line state in case 2.1.1.5 Notes on setting DIP switch 2-1 to ON 1) The printer mechanism stops but does not become busy when: an error has occurred, the cover is open, printing stops due to a paper-end, or paper is fed using the paper feed button.
Page 36
CONFIDENTIAL · DC characteristics: Table 2.1.4 Reset DC Characteristics Pin 6 (DSR) Pin 25 (INIT) Input HIGH voltage +3 to +15 V +2 to +15 V Input LOW voltage -15 to + -3 V -15 to + 0.8 V Input HIGH current: 5 mA (maximum) 1 mA (maximum) Input LOW current:...
CONFIDENTIAL 2.1.2 IEEE 1284 Bidirectional Parallel Interface(Parallel Interface Specifications) Copyright (C) 1993 by the Institute of Electrical and Electronic Engineers, Inc. 2.1.2.1 Compatibility Mode (Data Transmission from Host to Printer: Centronics compatible) (1) Specifications Data transmission: 8-bit Parallel Synchronization: Externally supplied nStrobe signals Handshaking: nAck and Busy signals Signal levels:...
Page 39
CONFIDENTIAL NOTE: 1. A prefix “n” to signal names refers to “L” active signals. To the host provided with none of the signal lines listed above, both-way communication fails. 2. For interfacing, signal lines shall use twisted pair cables with the return sides connected to signal ground level.
Page 40
CONFIDENTIAL 2.1.2.4 Electrical Characteristics DC Characteristics (Except Logic-H, +5 V signals) Specifications Characteristics Symbol Conditions Output HIGH voltage *2.4 V 5.5 V =0.32mA Output LOW voltage -0.5 V *0.4 V =-12mA Output HIGH current 0.32 V =0.32V Output LOW current -12 V =0.4V Input HIGH voltage...
Page 41
CONFIDENTIAL DATA Data n Data n+1 tHold-1 nStrobe tSetup tSTB tHold-2 Busy Peripheral Busy tReady tBUSY nAck tReply tACK tnBUSY tNext 2.1.2.5 Data Receiving Timing (Compatibility Mode) Specifications Characteristics Symbol Min[ns] Max[ns] Data Hold Time (host) tHold-1 Data Hold Time (printer) tHold-2 Data Setup Time tSetup...
Page 42
CONFIDENTIAL 2.1.2.6 Notes on resetting the printer through the interface The printer reset is available through the interface nInit signal (#31 pin) by changing the DIP switch setting. (Refer to Table 3.3.5 DIP Switch 2.) Table 2.1.5 DIP Switch Setting for Printer Reset Signal Line DIP Switch Reset Condition...
Page 43
CONFIDENTIAL 2.1.2.7 Reception of status from the printer through the bidirectional parallel interface In the bidirectional parallel interface specifications, the printer status transmission is available by using the both-way communication facility in the Nibble/Byte Modes in accordance with the IEEE 1284.
Page 44
CONFIDENTIAL 2.1.2.8 Notes on setting DIP switch 2-1 to ON (1) The printer mechanism stops but does not become BUSY in the following cases: · When an error occurs. · When the cover is open. · When the printer stops printing due to a paper end. ·...
CONFIDENTIAL 2.1.3 RS-485 Serial Interface (RS-485 serial interface specification is a dealer option.) 2.1.3.1 Specifications (RS-485 compatible) Data transmission: Serial Synchronization: Asynchronous Handshaking: Depend on the DIP switch settings (DTR/DSR or XON/XOFF control) Signal levels: 2.0 V to 5.0 V: Logic 1 0.0 V to 0.8 V: Logic 0...
Page 46
· The printer ignores the data received when the remaining space in the receive buffer is 0 bytes. Refer to 2.1.1 RS-232 Serial interface for notes on setting DIP switch 2-1 to ON. 2.1.3.3 Interface pin assignments Table 2.1.8 TM-H5000II series Printer Status and Signals Pin Number Signal name Signal direction...
Page 47
CONFIDENTIAL Table 2.1.8 TM-H5000II II II II series Printer Status and Signals (Continued) Pin Number Signal name Signal direction Function Output When DTR/DRS is selected, this signal indicates whether the host computer is BUSY or READY. Output 1)DR1>DR2 indicates that the printer is READY and DR1<DR2 indicates that the printer is BUSY.
Page 48
CONFIDENTIAL Table 2.1.8 TM-H5000II II II II series Printer Status and Signals (Continued) Pin Number Signal name Signal direction Function Input 1)When DTR>DSR is selected: The signal is checked and data is transmitted only when the host is ready to receive data (READY) (except for transmitted by DLE EOT or GS a).
Page 49
CONFIDENTIAL Table 2.1.11 Printer Reception Data Level Read data Receiving data line is low level Receiving data line is high level Table 2.1.12 Printer Transmission Data Level Send data Sending data line is low level Sending data line is high level TITLE SHEET TM-H5000 II II II II series...
CONFIDENTIAL 2.2 Connectors Interface connector Customer display(DM-D) Drawer kick-out Power supply connector connector connector Figure 2.2.1 Serial Interface Connector Panel External Appearance (Prohibit to use) Figure 2.2.2 Parallel Interface Connector Panel External Appearance 2.2.1 Interface Connectors Refer to Section 2.1, Interface. 2.2.2 Power Supply Connector This connector is used to connect the printer to an external power source.
CONFIDENTIAL 2.2.3 Drawer Kick-out Connector (Modular Connector) The pulse specified by ESC p or DLE DC4 is output to this connector. The host can confirm the status of the input signal by using the DLE EOT, GS r, or GS a (ASB) commands. 1) Pin assignments: Refer to Table 2.2.2 2) Connector model:...
Page 52
CONFIDENTIAL t 1x 2 msec t 1x 2 msec t2 x 2 msec t1 x 2 msec Figure 2.2.5 Drawer Kick-out Drive Signal Output Waveform 4) Drawer open/close signal Input signal level (connector pin 3): "L" = 0 to 0.8 V "H"...
— — — +24 V is always output through pin 7. The driving capability is 350 mA or less. Be sure not to use customer displays other than Seiko Epson DM-D series. Figure 2.2.7 DM-D Connector TITLE SHEET TM-H5000 II II II II series...
CONFIDENTIAL 3. FUNCTIONS 3.1 Command List The executing command which is executed when a paper roll is selected as the print sheet by ESC c 0 or the setting command which affects printing or operating a paper roll. The executing command which is executed when a slip is selected as the print sheet by ESC c 0 or the setting command which affects printing or operating a slip.
CONFIDENTIAL Command Classification Command Name Executing Setting ¡ ESC C Set slip paper eject length ¡ ¡ ESC D Set horizontal tab positions ¡ ¡ ESC E Turn emphasized mode on/off ¡ ESC F Set/cancel slip paper reverse eject ¡ ¡...
Page 56
CONFIDENTIAL Command Classification Command Name Executing Setting ¡ ¡ ¡ FS q Define NV bit image ¡ ¡ GS ! Select character size ¡ GS $ Set absolute vertical print position in page mode ¡ ¡ ¡ GS * Define user-defined bit image ¡...
Page 57
CONFIDENTIAL Kanji command list (when the TM-H5000IIM/TM-H5000IIPM is used) Command Classification Command Name Executing Setting ¡ ¡ FS ! Set print mode(s) for Kanji characters ¡ ¡ FS & Select Kanji character mode ¡ ¡ FS - Turn underline mode on/off for Kanji characters ¡...
Page 58
CONFIDENTIAL 3.2 Character Code Tables 3.2.1 Page 0 (PC437: USA, Standard Europe) (International Character Set: U.S.A.) NOTE: The character code tables show only character configurations. They do not show the actual print pattern. BS and FS codes are effective only when the printer is used with the MICR reader.
CONFIDENTIAL 3.2.7 Page 6 (Hiragana) (Available on TM-H5000II II II IIM/TM-H5000II II II IIPM) TITLE SHEET TM-H5000 II II II II series REVISION Specification SHEET NEXT (STANDARD)
CONFIDENTIAL 3.2.8 Page 7 (One-pass printing Kanji characters) (Available on TM-H5000II II II IIM/TM-H5000II II II IIPM) TITLE SHEET TM-H5000 II II II II series REVISION Specification SHEET NEXT (STANDARD)
Page 66
CONFIDENTIAL 3.2.9 Page 8 (One-pass printing Kanji characters) (Available on TM-H5000II II II IIM/TM-H5000II II II IIPM) TITLE SHEET TM-H5000 II II II II series REVISION Specification SHEET NEXT (STANDARD)
CONFIDENTIAL 3.2.18 Page 255 (Space Page) In the space page (page 255), the following font is defined as the default. 7 ´ 7 font (only when font 7 ´ 9 is selected. When 9 ´ 9 font is selected, character codes 80H to FFH are all spaces.) TITLE SHEET...
CONFIDENTIAL 3.2.19 International Character Set ASCII code (Hex) Country 5B 5C 5D 5E 7B 7C 7D 7E U.S.A France à ° ç § é ù è ¨ Germany § Ä Ö Ü ä ö ü ß U.K. £ Denmark I Æ...
CONFIDENTIAL 3.3 Switches and Buttons 3.3.1 Power Button The power button (a rocker switch) located on the lower left front of the printer turns the power on or off. NOTE: Turn on the power only after connecting the power supply. 3.3.2 Panel Buttons There are panel buttons on both the slip and receipt sections.
CONFIDENTIAL 3.4 Panel LED Indicators 3.4.1 Slip 1) Power supply (POWER) LED: Green Power is stable. Off: Power is not stable. 2) Error (ERROR) LED: Off-line (except during paper feeding using the FORWARD and the REVERSE buttons and during self test printing) Off: Normal condition Blinking:...
CONFIDENTIAL Blinking: Slip removal waiting state / Personal check removal waiting state (when the printer is used with the MICR reader) Approximately 160 Approximately 2080 [Unit: msec] Figure 3.4.3 Blinking: Personal check insertion waiting state (when the printer is used with the MICR reader) Approximately 160 Approximately 1760...
CONFIDENTIAL 3.5 Self-test 1) The printer has a self-test function that checks the following: · Control circuit functions · Printer mechanisms · Print quality · Control software version · DIP switch settings 2) Starting the self-test a) Self-test on paper roll To start the self-test on a paper roll, hold down the FEED button and turn on the printer with the cover closed.
CONFIDENTIAL 3.6 Hexadecimal Dumping 1) Hexadecimal dumping function This function prints the data transmitted from the host computer in hexadecimal numbers and in its corresponding characters. 2) Starting hexadecimal dumping Open the cover and turn the power on while pressing the FEED button or executing GS ( A command, then close the cover.
CONFIDENTIAL 3.7 Error Processing 3.7.1 Error Types 1) Errors that automatically recover Table 3.7.1 Errors That Automatically Recover ERROR LED Blinking Pattern Error Description Receipt Slip Recovery 160 msec ¡ ¡ Print head The temperature Recovers temperatur of the print head automatically e error is extremely high.
Page 86
CONFIDENTIAL 2) Errors that have the possibility of recovery Table 3.7.2 Errors That Can Possibly Recover ERROR LED Blinking Pattern Error Description Receipt Slip Recovery 160 msec ¡ Auto cutter The auto Recovers by error cutter does not DLE ENQ 1 or work correctly.
CONFIDENTIAL 3) Errors that are impossible to recover Table 3.7.3 Unrecoverable Errors ERROR LED Blinking Pattern Error Description Recovery Receipt Slip 160 msec ¡ ¡ R/W error in After R/W Impossible memory or checking, the to recover. gate array printer does not (*2) work correctly.
CONFIDENTIAL 3.7.3 Data Receive Error If one of the following errors occurs during serial interface communication, the printer prints "?" or ignores the data, depending on the setting of DIP switch 1-1. · Parity error · Framing error · Overrun error 3.8 Paper Sensors The printer has 4 paper sensors as follows: Slip:...
CONFIDENTIAL 3.8.2 Sensors and Printing When the printer detects a paper near-end, it either stops or continues printing depending on the ESC c 4 setting. The corresponding sensors are as follows: · Paper roll near-end sensor · Slip BOF sensor ·...
CONFIDENTIAL 3.9.2 Opening/Closing the Front Cover of the Slip Section · The cover can be opened by pulling a hook on the left of the cover toward you. When you close the cover, push the cover backward. · When the cover open is detected by the cover open sensor, the printer releases the print platen and stops carriage movements.
CONFIDENTIAL 3.12 Page Mode 3.12.1 General Description The printer operates in two print modes only when the paper roll is selected as the print sheet: standard mode and page mode. In standard mode, the printer prints and feeds paper each time it receives print data or paper feed commands.
CONFIDENTIAL 3.12.3 Formatting of Print Data in the Printable Area Formatting of print data in the printable area is performed as follows: 1) The printable area is set using ESC W. If all printing and feeding are complete before the printer receives the ESC W command, the left side (as you face the printer) is taken as the origin (x0, y0) of the printable area.
Page 93
CONFIDENTIAL Example When printing a downloaded bit image of six bytes in the vertical direction, use the following formula: {number of vertical dots (8 ´ 6) - number of dots for feeding at the beginning of the printable area (21)} ´ vertical motion unit conversions (360/180) = 54 Therefore, 27 dots (54 pitch) are required for feeding.
Page 94
CONFIDENTIAL x x 8 Bar Code (GPS k m) User-defined 24 x 2 - 6 = 42 bit image (GS* xy) GS h n 6 x 8 = 48 nH x 256 + nL 24 - 3 Bit image (ECS - m nL nH) Baseline (HRI characters) Point B...
CONFIDENTIAL 3.13 Reading MICR Characters and Printing Endorsements (when the printer is used with the MICR reader) Use the following procedure to read MICR characters. User Operation Printer Operation Transmit FS a 0 <00> H. Mechanically switches to MICR mode and waits for a personal check to be loaded.
Depth: 331 mm (13.03") (except for the protrusion) Weight: Approximately 6.5 kg (14.3 lbs) (All the numeric values are typical.) 4.2 Color EPSON standard color (ECW) 4.3 External Appearance [Unit: mm] Materials for the external: 94V-0 Figure 4.3.1 External Appearance...
· Ribbon Cassette ERC-31(P) ERC-31(B) (Line: 4,500,000 charaters) In Japan: EPSON HANBAI Co., LTD. In U.S.A.: EPSON America Inc. In Europe: EPSON Europe B.V. TITLE SHEET TM-H5000 II II II II series REVISION Specification SHEET NEXT...
CONFIDENTIAL 6. Commands 6.1 Command Notation [Name] The name of the command. [Format] The code sequence. ASCII indicates the ASCII equivalents. Hex indicates the hexadecimal equivalents. Decimal indicates the decimal equivalents. [ ] k indicates the contents of the [ ] should be repeated k times. [Range] Gives the allowable ranges for the arguments.
CONFIDENTIAL 6.2 Explanation of Terms (1) Reception buffer The reception buffer is a buffer that stores, as is, the data received from the host (the reception data). The reception data is stored in the reception buffer temporarily, and is then processed sequentially.
Page 100
CONFIDENTIAL (11) Line Spacing Setting Line spacing of the receipt and slip is different. A: First line printing B: Second line printing [Example 1] When n = 5 for ESC 3 n Slip: Slip: Approcimately 8.82 mm (5/144 inches) 9 dots Receipt (When front A (12´24 dots) is selected): Receipt: Approcimately 3.53 mm (5/360 inches)
Page 101
CONFIDENTIAL (12) Base line Standard position when character data is stored in the print buffer. Receipt: Normal character in standard mode and page mode: *1.When font A (12´24 dots) is selected, this height is for 24 dots. When font B (9´17 dots) is selected, this 21 dots Base line height is for 16 dots.
CONFIDENTIAL 6.3 Exception Processing 6.3.1 Undefined codes This term refers to the codes ranging from <00>H to <1F>H in the character code table. If a code in this range that is not defined as a command is input, that code (one byte) is read in and discarded, and subsequent data is processed as normal data.
CONFIDENTIAL 6.4 Control Commands [Name] Horizontal tab [Format] ASCII Decimal [Description] Moves the print position to the next horizontal tab position. [Notes] • This command is ignored unless the next horizontal tab position has been set. • If the next horizontal tab position exceeds the printing area, the printer sets the printing position to [Printing area width + 1].
Page 104
CONFIDENTIAL [Name] Print and eject slip paper (enable only when slip is selected) Print and return to standard mode in page mode (enable only when paper roll is selected) [Format] ASCII Decimal [Description] Prints the data in print buffer and ejects the slip paper. ·...
CONFIDENTIAL [Name] Print and carriage return [Format] ASCII Decimal [Description] Paper Automatic line feed enabled Automatic line feed disabled Paper roll Functions as same as LF Ignored Slip paper Functions as same as LF Prints the data in the print buffer and does not feed the paper.
CONFIDENTIAL DLE EOT n [Name] Real-time status transmission [Format] ASCII Decimal 1 £ n £ 5 [Range] [Description] Transmits the selected printer status specified by n in real time, according to the following parameters: n = 1: Transmit printer status n = 2: Transmit off-line status n = 3:...
Page 107
CONFIDENTIAL n = 1: Printer status Off/On Decimal Function Not used. Fixed to Off. Not used. Fixed to On. Drawer open/close signal is LOW (connector pin 3). Drawer open/close signal is HIGH (connector pin 3). On-line. Off-line. Not used. Fixed to On. Undefined.
Page 108
CONFIDENTIAL n = 3: Error status Off/On Decimal Function Not used. Fixed to Off. Not used. Fixed to On. No mechanical error. Mechanical error occurs. No auto-cutter error. Auto-cutter error occurs. Not used. Fixed to On. No unrecoverable error. Unrecoverable error occurs. No auto-recoverable error.
Page 109
CONFIDENTIAL n = 4: Continuous paper sensor status Off/On Decimal Function Not used. Fixed to Off. Not used. Fixed to On. Paper roll near-end sensor: paper adequate. Paper near-end is detected by the paper roll near-end sensor. Paper roll near-end sensor: paper adequate. Paper near-end is detected by the paper roll near-end sensor.
Page 110
CONFIDENTIAL n = 5: Slip paper status Off/On Decimal Function Not used. Fixed to Off. Not used. Fixed to On. Slip paper selected. Slip paper not selected. Does not wait for slip paper insertion. Waits for slip paper insertion. Not used. Fixed to On. TOF sensor: paper present.
CONFIDENTIAL DLE ENQ n [Name] Real-time request to printer [Format] ASCII Decimal 1 £ n £ 3 [Range] [Description] Responds to a request from the host computer. n specifies the requests as follows: Request Recover from an error and restart printing from the line where the error occurred Recover from an error aft clearing the receive and print buffers Cancel the slip waiting status ·...
Page 112
CONFIDENTIAL · DLE ENQ 2 enables the printer to recover from an error after clearing the data in the receive buffer and the print buffer. The printer retains the settings (by ESC !, ESC 3, etc.) that were in effect when the error occurred. The printer can be initialized completely by using this command and ESC @.
CONFIDENTIAL DLE DC4 n m t [Name] Generate pulse at real time [Format] ASCII Decimal [Range] n = 1 m = 0, 1 1 £ t £ 8 [Description] Outputs the pulse specified by t to connector pin m as follows: Connector pin Drawer kick-out connector pin 2.
CONFIDENTIAL ESC FF [Name] Print data in page mode [Format] ASCII Decimal [Description] In page mode, prints all buffered data in the printing area collectively. · This command is enabled only in page mode. [Notes] · After printing, the printer does not clear the buffered data, setting values for ESC T and ESC W, and the position for buffering character data.
CONFIDENTIAL ESC ! n [Name] Select print mode(s) [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Selects print mode(s) using n as follows: Off/On Decimal Function Character font A (12 ´ 24) for the paper roll and 9 ´ 9 for the slip paper selected.
CONFIDENTIAL · When some characters in a line are double or more height, all the characters on the line are aligned at the baseline. · ESC E can also turn on or off emphasized mode. However, the setting of the last received command is effective.
CONFIDENTIAL ESC % n [Name] Select/cancel user-defined character set [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Selects or cancels the user-defined character set. · When the LSB of n is 0, the user-defined character set is cancelled. ·...
Page 119
CONFIDENTIAL · If the slip paper is selected: The dots adjoining each other horizontally cannot be printed. Only the most upper bit can be printed in the second byte for the vertical direction. [Default] The internal character set [Reference] ESC %, ESC ? [Example] ·...
CONFIDENTIAL ESC * * * * m n d1 ... dk [Name] Select bit-image mode [Format] ASCII d1 ... dk d1 ... dk Decimal d1 ... dk [Range] m = 0, 1, 32, 33 (for the paper roll) m = 0, 1 (for the slip paper) 0 £...
Page 121
CONFIDENTIAL · If the width of the printing area set by GS L and GS W less than the width required by the data sent with the ESC * * * * command, the following will be executed on the line in question (but the printing cannot exceed the maximum printable area): The width of the printing area is extended to the right to accommodate the amount of data.
Page 122
CONFIDENTIAL · 24-dot bit image for the receipt paper Bit-image data d1 d2 d3 d4 d5 d6 d7 d8 d9 d4 d7 Bit-image data d2 d5 d8 d3 d6 d Print data Print data 1 dot Single density Double density ·...
CONFIDENTIAL [Name] Turn underline mode on/off [Format] ASCII Decimal 0 £ n £ 2, 48 £ n £ 50 [Range] [Description] Turns underline mode on or off, based on the following values of n : Function 0, 48 Turns off underline mode 1, 49 Turns on underline mode (1-dot thick) 2, 50...
CONFIDENTIAL ESC 3 n [Name] Set line spacing [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Sets the line spacing to [ n ´ vertical or horizontal motion unit] inches. · The line spacing is set to the paper selected by ESC c 1. [Notes] ·...
CONFIDENTIAL ESC = n [Name] Set peripheral device [Format] ASCII Decimal 1 £ n £ 3 [Range] [Description] Selects device to which host computer sends data, using n as follows: Off/On Decimal Function Printer disabled. Printer enabled Customer display disabled. Customer display enabled.
CONFIDENTIAL ESC ? n [Name] Cancel user-defined characters [Format] ASCII Decimal 32 £ n £ 126 [Range] [Description] Cancels user-defined characters. · This command cancels the pattern defined for the character code specified by [Notes] n . After the user-defined characters is canceled, the corresponding pattern for the internal character is printed.
CONFIDENTIAL ESC C n [Name] Set slip paper eject length [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Sets the eject length setting for slip paper to n lines. · When n = 0, the eject length setting for slip paper is cancelled. The printer [Notes] continues feeding the paper until the printer gets to the position where the slip can be ejected.
CONFIDENTIAL ESC E n [Name] Turn emphasized mode on/off [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Turns emphasized mode on or off When the LSB of n is 0, emphasized mode is turned off. When the LSB of n is 1, emphasized mode is turned on. ·...
CONFIDENTIAL ESC G n [Name] Turn on/off double-strike mode [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Turns double-strike mode on or off. · When the LSB of n is 0, double-strike mode is turned off. · When the LSB of n is 1, double-strike mode is turned on. ·...
CONFIDENTIAL ESC J n [Name] Print and feed paper [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Prints the data in the print buffer and feeds the paper [ n ´ vertical or horizontal motion unit] inches. · After printing is completed, this command sets the print starting position to the [Notes] beginning of the line.
CONFIDENTIAL ESC K n [Name] Print and reverse feed [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Prints the data in the print buffer and feeds the paper n ´ vertical motion unit inches in the reverse direction ·...
CONFIDENTIAL ESC L [Name] Select page mode [Format] ASCII Decimal [Description] Switches from standard mode to page mode. · This command is enabled only when processed at the beginning of a line. [Notes] · This command has no effect in page mode. ·...
CONFIDENTIAL ESC M n [Name] Select character font [Format] ASCII Decimal [Range] n = 0, 1, 48, 49 [Description] Selects character fonts. Function 0, 48 Character font A selected. 12 ´ 24 for the paper roll. 9 ´ 9 for the slip paper 1, 49 Character font B selected.
CONFIDENTIAL ESC R n [Name] Select an international character set [Format] ASCII Decimal 0 £ n £ 13 [Range] [Description] Selects an international character set n from the following table: Character set U.S.A. France Germany U.K. Denmark I Sweden Italy Spain I Japan Norway...
CONFIDENTIAL ESC S [Name] Select standard mode [Format] ASCII Decimal [Description] Switches from page mode to standard mode. · This command is effective only in page mode. [Notes] · Data buffered in page mode are cleared. · This command sets the print position to the beginning of the line. ·...
CONFIDENTIAL ESC T n [Name] Select print direction in page mode [Format] ASCII Decimal 0 £ n £ 3 [Range] 48 £ n £ 51 [Description] Selects the print direction and starting position in page mode. n specifies the print direction and starting position as follows: Print Direction Starting Position 0, 48...
CONFIDENTIAL ESC U n [Name] Turn on/off unidirectional printing mode [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Turns unidirectional printing mode on or off When the LSB of n is 0, turns on unidirectional printing mode. When the LSB of n is 1, turns off unidirectional printing mode and turns on bidirectional printing mode.
CONFIDENTIAL ESC W x [Name] Set printing area in page mode [Format] ASC II Decimal 0 £ x £ 255 (except dx [Range] , dx , dx , dy , dy = dx =0 or dy = dy [Description] · The horizontal starting position, vertical starting position, printing area width, and printing area height are defined as x 0, y 0, dx (inch), dy (inch), respectively.
Page 140
CONFIDENTIAL Paper (X, Y) Print area (X + Dx-1, Y + Dy-1) · This printable area for this printer is approximately 72.249 mm {512/180 inches} in the horizontal direction and approximately 117.263 mm {1662/360 inches} in the vertical direction. · This command is available only when slip paper is selected in page mode. [Default] = 0, dx = 2, dy...
CONFIDENTIAL ESC \ n [Name] Set relative print position [Format] ASCII Decimal 0 £ n £ 255 [Range] 0 £ n £ 255 [Description] Sets the print starting position based on the current position by using the horizontal or vertical motion unit. ·...
CONFIDENTIAL ESC a n [Name] Select justification [Format] ASCII Decimal 0 £ n £ 2, 48 £ n £ 50 [Range] [Description] Aligns all the data in one line to the specified position n selects the justification as follows: Justification 0,48 Left justification 1, 49...
CONFIDENTIAL ESC c 0 n [Name] Select paper type(s) for printing [Format] ASCII Decimal 1 £ n £ 4 [Range] [Description] Selects the type of paper for printing, using n as follows: Off/On Decimal Function Paper roll disabled. Paper roll enabled. Paper roll disabled.
CONFIDENTIAL ESC c 1 n [Name] Select paper type(s) for command settings [Format] ASCII Decimal 1 £ n £ 4 [Range] Off/On Decimal Function Paper roll disabled. Paper roll enabled. Paper roll disabled. Paper roll enabled. Slip paper disabled. Slip paper enabled. Undefined.
CONFIDENTIAL ESC c 3 n [Name] Select paper sensor(s) to output paper end signals [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Selects the paper sensor(s) to output paper end signals · Each bit of n is used as follows: Off/On Decimal Function...
CONFIDENTIAL ESC c 4 n [Name] Select paper sensor(s) to stop printing [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Selects the paper sensor(s) used to stop printing when a paper-end is detected, using n as follows: Off/On Decimal Function Paper roll near end sensor disabled.
CONFIDENTIAL ESC c 5 n [Name] Enable/disable panel buttons [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Enables or disables the panel buttons. · When the LSB of n is 0, the panel buttons are enabled. · When the LSB of n is 1, the panel buttons are disabled. ·...
CONFIDENTIAL ESC e n Print and reverse feed n lines [Name] [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Prints the data in the print buffer and feeds n lines in the reverse direction. · This command is ignored when paper roll is selected as the print sheet by ESC [Notes] c 0.
CONFIDENTIAL ESC f t1 t2 [Name] Set slip paper waiting time [Format] ASCII Decimal 0 £ t1 £ 15 [Range] 0 £ t2 £ 64 [Description] Sets the time that the printer waits for slip paper to be inserted and the time from insertion of the slip to the start of printing.
CONFIDENTIAL ESC t n [Name] Select character code table [Format] ASCII Decimal 0 £ n £ 8, 20 £ n £ 26, n = 255 [Range] [Description] Selects a page n from the character code table. Page PC437 [U.S.A., Standard Europe] Katakana PC850 [Multilingual] PC860 [Portuguese]...
CONFIDENTIAL ESC { n [Name] Turns on/off upside-down printing mode [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Turns upside-down printing mode on or off. · When the LSB of n is 0, upside-down printing mode is turned off. ·...
CONFIDENTIAL FS g 1 m a1 a2 a3 a4 n d1...dk [Name] Write to user NV memory [Format] ASCII m a1 a2 a3 a4 n d1...dk m a1 a2 a3 a4 n d1...dk m a1 a2 a3 a4 n d1...dk Decimal m = 0 [Range]...
CONFIDENTIAL FS g 2 m a1 a2 a3 a4 n [Name] Read from user NV memory [Format] ASCII m a1 a2 a3 a4 n m a1 a2 a3 a4 n m a1 a2 a3 a4 n Decimal m = 0 [Range] 0 £...
Page 155
CONFIDENTIAL · With the parallel interface mode, the data buffer capacity (which is the memory area to store all transmitted data except ASB status) is 99 bytes. Data which exceeds 99 bytes are ignored. · Data which is stored in the user NV memory can be written by FS g 1. ·...
CONFIDENTIAL FS p n m [Name] Print NV bit image [Format] ASCII Decimal 1 £ n £ 255 [Range] 0 £ m £ 3 , 48 £ m £ 51 [Description] Prints a NV bit image n using the mode specified by m . Mode Vertical Dot Density (DPI) Horizontal Dot Density (DPI)
CONFIDENTIAL · This command feeds dots (for the height n of the NV bit image) in normal and double-width modes, and (for the height n ´ 2 of the VN bit image) in double- height and quadruple modes, regardless of the line spacing specified by ESC 2 or ESC 3.
Page 158
CONFIDENTIAL · NV bit image means a bit image which is defined in a non-volatile memory by FS q and printed by FS p. · In standard mode, this command is effective only when processed at the beginning of the line. ·...
Page 159
CONFIDENTIAL [Example] When x = 64, x = 0, y = 96, y ´ 256) ´ 8 dots = 512 dots d49057 d49152 TITLE SHEET TM-H5000 II II II II series REVISION Specification SHEET NEXT (STANDARD)
CONFIDENTIAL GS ! n [Name] Select character size [Format] ASCII Decimal 0 £ n £ 255 [Range] (1 £ vertical number of times £ 8, 1 £ horizontal number of times £ 8) [Description] Selects the character height using bits 0 to 2 and selects the character width using bits 4 to 7, as follows: Off/On Decimal...
Page 161
CONFIDENTIAL · When character width or height is set to 3 or more in slip mode, the printer [Notes] executes the internal flag operation but the actual width or height to be printed is 2 (double-width or double-height). · If n is outside of the defined range, this command is ignored. ·...
CONFIDENTIAL GS $ n [Name] Set absolute vertical print position in page mode [Format] ASCII Decimal 0 £ n £ 255, 0 £ n £ 255 [Range] [Description] · Sets the absolute vertical print starting position for buffer character data in page mode.
CONFIDENTIAL GS * * * * x y d1 ... d(x ´ ´ ´ ´ y ´ ´ ´ ´ 8) [Name] Define user-defined bit image d1 ... d(x ´ y ´ 8) [Format] ASCII d1 ... d(x ´ y ´ 8) d1 ...
Page 164
CONFIDENTIAL GS ( A p [Name] Execute test print [Format] ASCII Decimal ´256))=2 [Range] +( p (where p =2, p 0 £ n £ 4, 48 £ n £ 52 1 £ m £ 3, 49 £ m £ 51 [Description] ·...
CONFIDENTIAL GS / m [Name] Print downloaded bit image [Format] ASCII Decimal 0 £ m £ 3, 48 £ m £ 51 [Range] [Description] Prints a downloaded bit image using the mode specified by m . m selects a mode from the table below: <...
Page 166
CONFIDENTIAL GS : [Name] Start/end macro definition [Format] ASCII Decimal [Description] Starts or ends macro definition. · Macro definition starts when this command is received during normal operation. [Notes] Macro definition ends when this command is received during macro definition. ·...
CONFIDENTIAL GS B n [Name] Turn white/black reverse printing mode [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Turns on or off white/black reverse printing mode. · When the LSB of n i s 0, white/black reverse mode is turned off. ·...
CONFIDENTIAL GS H n [Name] Select printing position for HRI characters [Format] ASCII Decimal 0 £ n £ 3, 48 £ n £ 51 [Range] [Description] Selects the printing position of HRI characters when printing a bar code. n selects the printing position as follows: Printing position 0, 48 Not printed...
[Range] [Description] Transmits the printer ID specified by n as follows: Printer ID Specification ID (hexadecimal) 1, 49 Printer model ID TM-H5000II series 2, 50 Type ID See table below. 3, 51 ROM version ID Depends on ROM version. Firmware version Depends on Firmware version.
Page 170
CONFIDENTIAL · When DTR/DSR control is selected in the serial interface model, the printer [Notes] transmits only 1 byte after confirming that the host is ready to receive data (DSR signal is SPACE). If the host computer is not ready to receive data (DSR signal is MARK), the printer waits until the host is ready.
CONFIDENTIAL GS L n [Name] Set left margin [Format] ASCII Decimal 0 £ n £ 255 [Range] 0 £ n £ 255 [Description] Sets the left margin using n and n · The left margin is set to [( n ´...
CONFIDENTIAL GS P x y [Name] Set horizontal and vertical motion units [Format] ASCII Decimal 0 £ x £ 255 [Range] 0 £ y £ 255 [Description] Sets the horizontal and vertical motion units to approximately 25.4/ x mm { 1/ x inches} and approximately 25.4/ y mm {1/ y inches}, respectively.
CONFIDENTIAL GS V m GS V m n [Name] Select cut mode and cut paper [Format] ASCII Decimal ASCII Decimal m = 1, 49 [Range] m = 66, 0 £ n £ 255 [Description] Selects a mode for cutting paper and executes paper cutting. The value of m selects the mode as follows: Print mode 0, 1, 49...
CONFIDENTIAL GS W n [Name] Set printing area width [Format] ASCII Decimal 0 £ n £ 255 [Range] 0 £ n £ 255 [Description] Sets the printing area width to the area specified by n and n · The printing area width is set to [( n ´...
Page 175
CONFIDENTIAL · If the width set for the printing area is less than the width of one character, when the character data is developed, the following processing is executed: The printing area width is extended to the right to accommodate one character.
CONFIDENTIAL GS \ n [Name] Set relative vertical print position in page mode [Format] ASCII Decimal 0 £ n £ 255 [Range] 0 £ n £ 255 [Description] Sets the relative vertical print starting position from the current position in page mode.
CONFIDENTIAL GS ^ r t m [Name] Execute macro [Format] ASCII Decimal 0 £ r £ 255 [Range] 0 £ t £ 255 m = 0, 1 [Description] Executes a macro. · r specifies the number of times to execute the macro. ·...
CONFIDENTIAL GS a n [Name] Enable/Disable Automatic Status Back (ASB) [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Enables or disables ASB and specifies the status items to include, using n as follows: Off/On Decimal Status for ASB Drawer kick-out connector pin 3 status disabled.
Page 179
CONFIDENTIAL · When the printer is disabled by ESC = (Select peripheral device), the four status bytes are transmitted whenever the status changes. · When using DLE EOT, GS I I I I , or GS r, the status transmitted by these commands and ASB status must be differentiated, according to the procedure in Appendix E, Transmission Status Identification .
Page 180
CONFIDENTIAL Second byte (printer information) Off/On Decimal Status for ASB Undefined. Undefined. No mechanical error. Mechanical error occurred. No auto cutter error. Auto cutter error occurred. Not used. Fixed to Off. No unrecoverable error. Unrecoverable error occurred. No automatically recoverable error. Automatically recoverable error occurred.
Page 181
CONFIDENTIAL Third byte (paper sensor information) Off/On Decimal Status for ASB Paper roll near-end sensor: paper adequate. Paper roll near-end sensor: paper near end. Paper roll near-end sensor: paper adequate. Paper roll near-end sensor: paper near end. Paper roll end sensor: paper present. Paper roll end sensor: paper not present.
Page 182
CONFIDENTIAL Fourth byte (paper sensor information) Off/On Decimal Status for ASB Slip is selected. Slip is not selected. Can print on slip. Cannot print on slip. 2, 3 Undefined. Not used. Fixed to Off. 5, 6 Undefined. Not used. Fixed to Off. Bit 0: Bit 0 is 1 (slip is not selected) when selecting a MICR function.
CONFIDENTIAL GS b n [Name] Turns smoothing mode on/off [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Turns smoothing mode on or off. When the LSB of n is 0, smoothing mode is turned off. When the LSB of n is 1, smoothing mode is turned on. ·...
CONFIDENTIAL GS g 0 m n [Name] Initialize maintenance counter [Format] ASCII Decimal m = 0 [Range] 0 £ ( n ´256)) £ 65535 [Description] Set the specified resettable maintenance counter to 0. · m is always set to 0. ·...
CONFIDENTIAL GS g 2 m n [Name] Transmit maintenance counter [Format] ASCII Decimal m = 0 [Range] 0 £ ( n ´256)) £ 65535 [Description] Transmits the specified maintenance counter. · m is always set to 0. · n ´256)). specify the maintenance counter number to ( n +( n Counter number...
Page 186
CONFIDENTIAL · When the counter values are transmitted, the printer converts them to the character codes corresponding those decimal value, and transmits from the most significant column. The range of transmitted data is [Hex: 30H to 39H / Decimal: 48 to 57]. (Example 1) When the counter value is 78H, the transmitted data are (31H, 32H, 30H) corresponding to “120”.
CONFIDENTIAL · The resettable maintenance counter is initialized by GS g 0. · Depending on the status of the receive buffer, there can be a time difference between the receiving of this command and the storing of data. GS g 0 [Reference] GS h n [Name]...
Page 188
CONFIDENTIAL [Description] Selects a bar code system and prints the bar code. m selects a bar code system as follows: Bar Code System Number of Characters Remarks 11 £ k £ 12 48 £ d £ 57 UPC-A 11 £ k £ 12 48 £...
Page 189
CONFIDENTIAL [Notes for · This command ends with a NUL code. · When the bar code system used is UPC-A or UPC-E, the printer prints the bar code data after receiving 12 bytes bar code data and processes the following data as normal data.
Page 190
CONFIDENTIAL · The printer prints HRI characters ( + an alphabetic character) as a control character (<00>H to <1F>H and <7F>H): Control character Control character ASCII Decimal HRI character ASCII Decimal HRI character [Example] Printing GS k 72 7 67 111 100 101 13 57 51 When CODE128 ( m = 73) is used: ·...
Page 191
CONFIDENTIAL Special characters are defined by combining two characters "{" and one character. The ASCII character "{" is defined by transmitting "{" twice consecutively. Transmit data Specific character ASCII Decimal SHIFT 7B, 53 123,83 CODE A 7B, 41 123, 65 CODE B 7B, 42 123, 66...
CONFIDENTIAL GS r n [Name] Transmit status [Format] ASCII Decimal 1 £ n £ 3, 49 £ n £ 51 [Range] [Description] Transmits the status specified by n as follows: Function 1, 49 Transmits paper sensor status 2, 50 Transmits drawer kick-out connector status 3, 51 Transmits slip status ·...
Page 193
CONFIDENTIAL Paper sensor status ( n = 1, 49): Off/On Decimal Status for ASB Paper roll near-end sensor: paper adequate. Paper roll near-end sensor: paper near end. Paper roll near-end sensor: paper present. Paper roll near-end sensor: paper not present. Paper roll end sensor: paper adequate.
Page 194
CONFIDENTIAL Drawer kick-out connector status ( n = 2, 50): Off/On Decimal Function Drawer kick-out connector pin 3 is LOW. Drawer kick-out connector pin 3 is HIGH. Undefined. Not used. Fixed to Off. 5, 6 Undefined. Not used. Fixed to Off. Slip Status ( n = 3, 51) The remaining print area (times of the number of dots in vertical for one character) is transmitted as values from <00>H to <06>H.
Page 195
CONFIDENTIAL GS v 0 m x d1..dk [Name] Print raster bit image [Format] ASCII d1...dk d1...dk Decimal 29 d1...dk 0 £ m £ 3, 48 £ m £ 51 [Range] 0 £ x £ 255 0 £ x £ 255 0 £...
Page 196
CONFIDENTIAL · d indicates the bit image data. Set time a bit to 1 prints a dot and setting it to 0 does not print a dot. H ´ [Example] When x 256=64 ´ 256) ´ 8dots = 512 dots ŸŸŸ...
CONFIDENTIAL GS w n [Name] Set bar code width [Format] ASCII Decimal 2 £ n £ 6 [Range] [Description] Set the horizontal size of the bar code. n specifies the bar code width as follows: Module Width (mm) for Binary-level Bar Code Multi-level Bar Code Thin element width (mm) Thick element width (mm)
CONFIDENTIAL 6.5 Kanji Control Commands (only for TM-H5000II II II IIM/TM-H5000II II II IIPM) FS ! n [Name] Set print mode(s) for Kanji characters [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Sets the print mode for Kanji characters, using n as follows: Off/On Hex Decimal Function...
CONFIDENTIAL FS & [Name] Select Kanji character mode [Format] ASCII & Decimal [Description] Selects Kanji character mode. [Notes] For Japanese Kanji model: · This command is effective only when the JIS code system is selected. · When the Kanji character mode is selected, the printer processes all Kanji code for each two bytes.
Page 200
CONFIDENTIAL · The specified line thickness does not change even when the character size changes. · It is possible to turn underline mode on or off using FS !, and the last received command is effective. · When the slip paper is selected, the underline thickness is 1 dot even if n is 2 or [Default] n = 0 [Reference] FS !
CONFIDENTIAL FS 2 c1 c2 d1...dk [Name] Define user-defined Kanji characters [Format] ASCII d1...dk d1...dk Decimal d1...dk [Range] c1 and c2 indicate character codes for the defined characters. The range of values for c1 and c2 differ depending on the character code system used. Model type 21H £...
CONFIDENTIAL FS C n [Name] Select Kanji character code system [Format] ASCII Decimal [Range] n = 0, 1, 48, 49 [Description] Selects a Kanji character code system, based on the following values of n : Kanji System 0, 48 JIS code 1, 49 SHIFT JIS code ·...
CONFIDENTIAL FS S n1 n2 [Name] Set left- and right-side Kanji character spacing [Format] ASCII Decimal 0 £ n1 £ 255 [Range] 0 £ n2 £ 255 [Description] Sets left- and right-side Kanji character spacing n1 and n2 , respectively. ·...
CONFIDENTIAL FS W n [Name] Turn quadruple-size mode on/off for Kanji characters [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Turns quadruple-size mode on or off for Kanji characters. · When the LSB of n is 0, quadruple-size mode for Kanji characters is turned off. ·...
CONFIDENTIAL 6.6 MICR Control Commands (only for printers with MICR) DLE EOT BS n [Name] Transmit real-time MICR status [Format] ASCII Decimal n = 1 [Range] [Description] Transmits the selected MICR status specified by n in real time as follows: Function Transmit MICR status ·...
Page 208
CONFIDENTIAL n = 1: MICR status Off/On Hex Decimal Status Not used. Fixed to Off. Not used. Fixed to On. MICR function selected. MICR function not selected. Does not wait for check paper or cleaning sheet to be inserted. Waits for check paper or cleaning sheet to be inserted. Not used.
CONFIDENTIAL FS a 0 n [Name] Read check paper [Format] ASCII Decimal 0 £ n £ 255 [Range] [Description] Selects MICR function and reads MICR characters specified by n as follows: Off/On Hex Decimal Function Readable fonts. See the table below. Undefined Undefined Undefined...
Page 210
CONFIDENTIAL · The check waiting status continues until: a check is inserted, the waiting state is cancelled, the waiting time t1 set by ESC f elapses, or the power is turned off. When check waiting state is cancelled, or when the wait time elapses, the printer ends reading abnormally.
Page 211
CONFIDENTIAL Bit 5: Under the following conditions, the printer sets bit 5=1 (abnormal end). À If the personal check waiting is canceled. Á If the waiting time ( t1 ) set by ESC f elapses during the personal check waiting. Â...
Page 212
CONFIDENTIAL · If an error occurs before transmitting the identification result, the printer does not transmit the identified result. · When DTR/DSR control is selected, the printer transmits data consecutively after confirming whether the host computer is ready to receive data. When the host is not ready to receive data, the printer waits until the host is ready.
CONFIDENTIAL FS a 1 [Name] Load check paper to print starting position [Format] ASCII Decimal [Description] Loads check paper to the print starting position · Since this command is executed after being buffered in the receive buffer, there [Notes] may be a time lag between receiving this command starting MICR reading. ·...
CONFIDENTIAL FS b [Name] Request retransmission of check paper reading result [Format] ASCII Decimal [Description] Retransmits the previous check paper (MICR character) reading results. · The printer transmits all data collectively without confirming whether the host [Notes] computer is ready to receive data after transmitting header. To receive all data correctly, 67 bytes or more space is required in the receive buffer.
CONFIDENTIAL FS c [Name] MICR mechanism cleaning [Format] ASCII Decimal [Description] Cleans the MICR mechanism. · This command is available only when input at the beginning of the line. [Notes] · This command is executed after being buffered in the receive buffer. Therefore, there may be a time lag between sending this command and starting head cleaning.
CONFIDENTIAL APPENDIX A: MISCELLANEOUS NOTES A.1 Notes on Printing and Paper Feeding 1) Print duty · When printing exceeds the allowable print duty cycle, the printer automatically senses the status and controls printing (both for receipt and slip). In this case, the printing speed may slow temporarily.
Page 217
CONFIDENTIAL 4) Because the TM-H5000II is a line printer, it automatically feeds paper after printing the data. Therefore, when the line spacing for one line is set to a smaller value than the print data, paper may be fed more than the set amount just to print the data. For example, when the line spacing for one line is set to 10 dots (10/180 inches) and only paper feeding is executed, paper is fed for 10 dots;...
CONFIDENTIAL A.2 Notes on Printer Installation · When transporting the TM-H5000, the dampers are in the left side of the slip section and in the bottom of the paper roll section. Therefore, remove the dampers before using the printer. · Connect the external power supply to the power supply connector of the printer. Then plug in the external power supply and turn it on if necessary.
Page 219
CONFIDENTIAL 2) Thermal paper handling Notes on using thermal paper Chemicals and oil on thermal paper may cause discoloration and faded printing. Therefore, pay attention to the following: a) Use water paste, starch paste, polyvinyl paste, or CMC paste when gluing thermal paper.
CONFIDENTIAL APPENDIX B: PAPER ROLL SETUP B.1 Replacing the Ribbon Cassette in the Slip Section 1) Turn off the power. 2) Pull the front cover toward you and lift it up. 3) Remove the ribbon cassette. 4) Make sure that the print head is on the right side and turn the feed knob to take up any slack in the ribbon.
CONFIDENTIAL APPENDIX C: RECOVERY FROM THE AUTO CUTTER ERROR If a foreign object such as a push pin or paper clip drops in the auto cutter and causes the auto cutter to lock up, the printer enters an error state and begins the recovery operation automatically.
CONFIDENTIAL APPENDIX D: ADJUSTING THE PAPER ROLL NEAR-END SENSOR LOCATION The remaining detectable amount of paper on the paper roll varies with the inside and outside diameters of the paper core. The minimum detectable amount of paper on the paper roll can be set using the following method: 1) The inside diameter of the paper spool should be 12mm (.47") and the outside diameter of the paper spool should be 18mm (.71").
CONFIDENTIAL APPENDIX E: TRANSMISSION STATUS IDENTIFICATION Because the specified status bits transmitted from the TM-H5000 are fixed, the user can confirm the command to which the status belongs, as shown in the following table. Command & Function Status Reply GS I I I I <0**0****>B GS r <0**0****>B...
CONFIDENTIAL APPENDIX F: CONFIGURING THE SPACE PAGE F.1 Slip Section The space page is the character code table where character codes 80H to FFH are all undefined. This character code table is selected when n is set to 255 using the character code table selection command ESC t n .
Page 225
CONFIDENTIAL 3) Example configuring the font data · 7 ´ 9 font (in case of character code 90H on page 255) FD7A16 - 3EH 41H 80H 00H 80H 41H 3EH 00H 00H - FD7A26 Character code90H Character data top address 5600H+(90H-80H)×18=5720H Address data Address data...
Page 226
CONFIDENTIAL · 9 ´ 9 font (in case of character code F0H on page 255) FD6CF6 - 60H 81H 02H 80H 04H 80H 08H 80H 70H 00H 00H 00H - FD778C Character code F0H Character data top address FD6CF6+(F0H-80H)×24=FD7776 Address data Address data 0: FD7776 60H 1: FD7777 80H...
Page 227
CONFIDENTIAL 4) Notes Do not use character patterns in which dots are horizontally adjacent. The pattern shown above, in which ¥ and adjoin horizontally, is prohibited. Figure F.3 Prohibited Dot Patterns TITLE SHEET TM-H5000 II II II II series REVISION Specification SHEET NEXT...
CONFIDENTIAL F.2 Receipt Section The space page is the character code table where character codes 80H to FFH are all spaces. This character code table is selected when n is set to 255 using the character code table selection command ESC t n . 1) Space page top address Space page top address 12 ´...
Page 229
CONFIDENTIAL · 9 ´ 17 font (in case of character code F0H on page 255) Character data top address FCBC80H + (F0H-80H) ´ 34 = FCCB60H Address data d1:FCCB60H 00H d2:FCCB61H 00H d3:FCCB62H 38H d4:FCCB63H 00H d5:FCCB64H 7CH d19:FCCB72H 0CH d20:FCCB73H 00H d21:FCCB74H 1CH d33:FCCB80H 00H...
Page 230
CONFIDENTIAL APPENDIX G: EXAMPLE PRINTING IN PAGE MODE Example use of page mode is described in this appendix. A typical procedure for transmitting commands in page mode is as follows: Transmit ESC L to enter page mode. Specify the printable area using ESC W. Specify the printing direction using ESC T.
Page 231
CONFIDENTIAL Note that a line feed was inserted between "lesson" and "TEST 1" in Figure G.1. This line feed was inserted automatically because there was no room for the blank " " following the word "lesson" within the horizontal range of the 200 ´ 400 printable area. The feed amount here is that specified by ESC 3.
Page 232
CONFIDENTIAL If the program lines listed below are included before the FF is transmitted, a portion of the data will be deleted: 170 PRINT #1,CHR$(&H1B);"W";CHR$(72);CHR$(0);CHR$(96);CHR$(0); 180 PRINT #1,CHR$(51);CHR$(0);CHR$(81);CHR$(0); 190 PRINT #1,CHR$(&H18); 200 PRINT #1,CHR$(&HC); If the above program is included, character string "GHI" is deleted, resulting in the printout shown in Figure G.3.
CONFIDENTIAL APPENDIX H: CODE128 BAR CODE H.1 Description of the CODE128 Bar Code In CODE128 bar code system, it is possible to represent 128 ASCII characters and 2-digit numerals using one bar code character that is defined by combining one of the 103 bar code characters and 3 code sets.
CONFIDENTIAL H.2 Code Tables Printable characters in code set A Transmit Data Transmit Data Transmit Data Character Decimal Character Decimal Character Decimal FNC1 7B,31 123,49 FNC2 7B,32 123,50 FNC3 7B,33 123,51 FNC4 7B,34 123,52 < SHIFT 7B,53 123,83 CODEB 7B,42 123,66 >...
Page 235
CONFIDENTIAL Printable characters in code set B Transmit Data Transmit Data Transmit Data Character Decimal Character Decimal Character Decimal " & 7B,7B 123,123 — FNC1 7B,31 123,49 FNC2 7B,32 123,50 FNC3 7B,33 123,51 FNC4 7B,34 123,52 SHIFT 7B,53 123,83 CODEA 7B,41 123,66 CODEC...
Page 236
CONFIDENTIAL Printable characters in code set C Transmit Data Transmit Data Transmit Data Character Decimal Character Decimal Character Decimal FNC1 7B,31 123,49 CODEA 7B,41 123,65 CODEB 7B,42 123,66 TITLE SHEET TM-H5000 II II II II series REVISION Specification SHEET NEXT (STANDARD) App.
CONFIDENTIAL APPENDIX I: PRINT HEAD CLEANING Paper dust on the heating elements may lower the print quality. In this case, clean the print head as follows: 1) Open the printer cover. 2) Clean the thermal elements of the print head using a cotton swab moistened with alcohol solvent (ethanol, methanol, IPA).
CONFIDENTIAL APPENDIX J: NOTES ON USING THE DRAWER KICK-OUT CONNECTOR 1) Drawer kick-out connector use conditions (refer to Section 2.2.3, Drawer kick-out connector) Because drawer specifications differ depending the manufacturer and the part number, make sure that the specifications of the drawer to be used meet the following conditions before connecting it to the drawer kick-out connector.
Page 239
TM-H5000. of print density is set.) 7. Adaptability to high speed Possible with a combination of Epson Impossible parallel interface board original parallel interface board DLE DC4: Generate pulse at real time 8.
Need help?
Do you have a question about the TM-H5000II Series and is the answer not in the manual?
Questions and answers