Star Micronics TSP200 Series Programmer's Manual
Star Micronics TSP200 Series Programmer's Manual

Star Micronics TSP200 Series Programmer's Manual

Star micronics tsp200: reference guide
Hide thumbs Also See for TSP200 Series:

Advertisement

Thermal Printer
TSP200 Series
Programmer's Manual

Advertisement

Table of Contents
loading

Summary of Contents for Star Micronics TSP200 Series

  • Page 1 Thermal Printer TSP200 Series Programmer’s Manual...
  • Page 3: Table Of Contents

    TABLE OF CONTENTS 1. OUTLINE ... 1 2. MEMORY SWITCH AND DIP SWITCH ... 2 2-1. Memory Switch ... 2 2-2. DIP Switch ... 2 3. DISPLAY PANEL AND FUNCTIONS ... 4 3-1. LED ... 4 3-2. Switches ... 4 3-3.
  • Page 5: Outline

    The TSP200 series is ideal for printing text, bar code and graphics. The TSP200 series has the following features: 1. extremely quiet and fast printing (maximum 50 mm/sec.) using the direct line thermal printing method 2. support many bar code types...
  • Page 6: Memory Switch And Dip Switch

    The factory settings are shown in the table below. Memory switch TSP212 2-2. DIP Switch Be sure to turn off the power of the printer before changing the setting of the DIP switches. Power off DIP switch DIP switch 1...
  • Page 7 DIP switch #1 The factory settings of DIP switch 1 are all on. Switch Data Length Parity Check Parity Selection Handshake Operating Mode Interface Baud Rate 2400BPS 4800BPS 9600BPS 19200BPS DIP Switch #2 Factory settings: 2-1 and 2-2 are on; 2-3 and 2-4 are off. Switch Contents Print Density...
  • Page 8: Display Panel And Functions

    Each of the signals sent from the computer to the printer will be printed out in hexadecimal code. This function allows you to check if a control code sent to the printer by the program being used is correct or not. The last line is not printed if its data is less than one full line.
  • Page 9: Serial Interface

    4. SERIAL INTERFACE 4-1. Interface Specifications Transmission type ... Asynchronous serial interface Baud rate (bps) ... 2400, 4800, 9600, or 19200 Word format Start bit: ...1 Data bits: ...7 or 8 (Selected by DIP switch) Parity: ... Odd, Even, or None Stop bit: ...1 Signal polarities RS-232C ...
  • Page 10: Interface Circuit

    4-2. Interface Circuit 4-2-1. RS-232C Interface Input (RXD, DSR) Printer Output (DTR, FAULT, TXD, RTS) Printer 75188 or equivalent Host computer Host computer – 6 –...
  • Page 11: Connectors And Signal Names

    Function Frame ground Receiving data Transmission data ESC/POS mode 1) DTR/DSR communication mode Indicates if printer is busy or not. Space: Printer ready Mark: Printer busy The conditions for busy will vary according to the memory switch settings. Printer Status 1.
  • Page 12 DIP switches. A pulse width of 1 ms or more space state activates reset. In the Star mode, the printer will enter the mark state during the following errors: no paper, head up, cutter error. In ESC/POS mode, this is normally space.
  • Page 13: Interface Connections

    4-4. Interface Connections Refer to the host computer’s interface specifications for details of how to connect the interface. The following illustrations show typical connection configura- tions. [RS-232C] Printer side F-GND S-GND INIT FAULT Printer side F-GND S-GND INIT FAULT IBM PC side (25 pin)
  • Page 14: Data Protocol

    Available buffer space increases as the printer prints the buffered data. When the printer has cleared all but the last *256 bytes of data, it sets DTR back to “SPACE” to indicate that it is ready to receive more data.
  • Page 15: Error Condition

    Error Condition Upon detecting an error, the printer immediately sets DTR to “MARK” and goes offline. If the error was caused by a paper-out condition, you can clear it by loading new paper and then pressing the ON LINE switch (Star mode) or closing the cover (ESC/POS mode).
  • Page 16: X-On/X-Off Mode

    Available buffer space increases as the printer prints the buffered data. When the printer has cleared all but the last *256 bytes of data, it again outputs the X-ON signal. Data buffer full Nearly full...
  • Page 17: Parallel Interface

    5. PARALLEL INTERFACE 5-1. Interface Specifications Interface: Data transfer speed: Synchronization: Handshaking: Logic level: 5-2. Interface Timing A C K DATA STROBE BUSY Conforms with Centronics parallel interface standard 1000 ~ 5000 CPS External strobe pulse Using ACK and BUSY TTL-level compatible Approx.
  • Page 18: Connectors And Signal Names

    Signal Name DATA 1 DATA 8 STROBE BUSY 5-3. Connectors and Signal Names (18) (36) (Printer Side) Figure 5-1. Parallel Interface Connector Sample Circuit 4.7k 74LS-equivalent 74LS-equivalent 100W 1000pF 1.8kW 74LS-equivalent Conforms to Amphenol connector 57-30360 (19) – 14 –...
  • Page 19 LOW level causes printer to reset its control circuitry and return to its initial state. Goes LOW to indicate that printer is unable to print. Ground terminal for external connection Not used –...
  • Page 20: Peripheral Unit Drive Circuit

    1. Use the modular plug as shown in Figure 6-1. 2. Separate ground wire is required for Europe only. 3. If the printer is to be used in Europe, the noise filter should be attached to the cable, as shown in Figure 6-2.
  • Page 21 Fastener One loop Ferrite core Screw M3 4 Separate ground wire Peripheral unit drive circuit connector Figure 6-2. Separate ground wire and noise filter are required for Europe. – 17 –...
  • Page 22 Drive circuit The recommended drive circuit is shown. +24V M-GND M-GND NOTES: 1. Peripheral units #1 and #2 cannot be driven simultaneously. When driving a device continuously, do not use drive duty above 20%. 2. Compulsion switch status is available as status data. 3.
  • Page 23: Errors

    The various types of errors can be identified by the buzzer’s sound and the lit LEDs. Buzzer: The circled numbers refer to “7-4. Type of buzzer sound”. 7-1. Automatic Recovery (Power Lamp: Flashing; On-Line Lamp: On) Error Description Abnormal head Approx.
  • Page 24: Fatal Error (Power Lamp: Flashing; On-Line Lamp: Flashing)

    7-3. Fatal Error (Power Lamp: Flashing; On-Line Lamp: Flashing) The unit will have to be repaired. 7-4. Type of buzzer sound (only Star mode) P: 50ms Pi: 100ms 1 Online, Offline 2 No Paper 3 Head Up 4 Near End 5 Cover Open 6 Cutter Error 7 Buzzer by command...
  • Page 25: Control Codes/Star Mode

    8. CONTROL CODES/STAR MODE 8-1. Star Mode Command Summary The details of each command are shown in the following sections. Commands to Select Characters Hexadecimal Control codes codes <ESC> “R” n 1B 52 n <ESC> “/” “1” 1B 2F 31 <ESC>...
  • Page 26 Hexadecimal Control codes codes <ESC> “4” 1B 34 <ESC> “5” 1B 35 <SI> <DC2> <ESC> “ E ” 1B 45 <ESC> “ G ” 1B 47 <ESC> “ F ” 1B 46 <ESC> “ H ” 1B 48 Commands to Set the Page Format Hexadecimal Control codes codes...
  • Page 27 Commands to Print Dot Graphics Hexadecimal Control codes codes <ESC> “K” n <0> 1B 4B n 00 m1 m2 m1 m2 ... <ESC> “L” n1 n2 1B 4C n1 n2 m1 m2 m1 m2 ... <ESC> “k” n <0> d1 ... 1B 6B n 00 d1 ...
  • Page 28: Other Commands

    <LF> <NUL> 0A 00 <ESC> “@” 1B 40 <ENQ> <ESC> “?” <LF> <NUL> 1B 3F 0A 00 Function Cancel last line & Initialize printer Deselect printer Set select mode Beep the buzzer Set memory switch Initialize printer Enquiry Reset printer hardware –...
  • Page 29: Command Specification

    8-2. Command Specification Commands to Select Characters Select international character set FUNCTION CODE <ESC> “R” Selects an international character set according to the value of n, REMARKS as shown below: When the value of n is 0 to 9, 0(00H) to 9(09H) or “0”(30H) to “9”(39H) can be set.
  • Page 30 Select bar code printing FUNCTION CODE <ESC> “b” Prints bar code according to the value of n1, as shown below: REMARKS n1: Type of bar code UPC-E UPC-A JAN/EAN-8 JAN/EAN-13 CODE 39 CODE 128 CODE 93 NW-7 The value of n1 can be set to 0(00H) or 8(08H) or “0”(30H) to “8”(38H).
  • Page 31 CODE 39, NW-7, ITF Narrow : wide Narrow : wide Narrow : wide Narrow : wide Narrow : wide Narrow : wide Narrow : wide Narrow : wide Narrow : wide When the value of n3 is UPC-E, UPC-A, JAN/EAN-8, JAN/EAN- 13, CODE128 or CODE93, 1(01H) to 3(03H) or “1”(31H) to “3”(33H) can be set.
  • Page 32 ITF: The value of k is optional, and the maximum value also differs according to the modes (40 digits maximum in mode 4). If the data is number of an odd digits, 0 is automatically added at the beginning of the data. CODE 128: The value of k is optional, and the maximum value also differs according to the modes and the types of character number (51 digits maximum in...
  • Page 33 3) 2-character codes Control codes CODE FORMAT %@ 25H 40H %A 25H 41H %B 25H 42H %C 25H 43H %D 25H 44H %E 25H 45H ACK 06H %F 25H 46H %G 25H 47H %H 25H 48H 25H 49H %J 25H 4AH %K 25H 4BH %L 25H 4CH %M 25H 4DH...
  • Page 34 Select 12-dot pitch printing FUNCTION CODE <ESC> “M” Prints 12-dot pitch characters without an extra space. REMARKS Select 14-dot pitch printing FUNCTION CODE <ESC> “p” Prints 12-dot pitch characters with 2-dot spacing between charac- REMARKS ters. Select 15-dot pitch printing FUNCTION CODE <ESC>...
  • Page 35 Sets the printing magnified double in character width. FUNCTION CODE <SO> Prints the subsequent data including a character spacing set by REMARKS <ESC><SP> n, magnified double in character width. Resets the printing magnified in character width. FUNCTION CODE <DC4> Resets the printing magnified in character width set by <SO>, REMARKS <ESC>“W”n and <ESC>“i”n1n2.
  • Page 36 Sets the magnification rate in character height. FUNCTION CODE <ESC> “h” Prints the subsequent data magnified in character height by a rate REMARKS specified by the value of n. Character height Unmagnify Double Triple The value of n can be set to 0(00H) to 5(05H) or “0”(30H) to “5”(35H).
  • Page 37 Upperlining FUNCTION CODE <ESC> “_” When the value of n is 1, overlines the subsequent data including REMARKS a character spacing set by <ESC><SP> n. The part to be skipped by the horizontal tab setting and the block graphic characters are not upperlined. Resets the upperline mode when the value of n is 0.
  • Page 38 Select emphasized printing FUNCTION CODE <ESC> “E” CODE <ESC> “G” Causes subsequent characters to be emphasized. REMARKS Cancel emphasized printing FUNCTION CODE <ESC> “F” CODE <ESC> “H” Cancels emphasized printing. REMARKS – 34 –...
  • Page 39 Commands to Set the Page Format Set page length in lines FUNCTION CODE <ESC> “C” Sets the page length using the current line spacing, where n is REMARKS between 1 and 127. Changing the line spacing later does not alter the physical page length.
  • Page 40 Set left margin FUNCTION CODE <ESC> “l” Sets the left margin at column n (where n is between 0 and 255) at REMARKS the current character pitch. The left margin does not move if the character pitch is changed later. Setting is invalid if the printing area for one line would be 36mm or less.
  • Page 41 Commands to Move the Print Position Line feed FUNCTION CODE <LF> Prints the current line and feeds the paper to the next line. REMARKS Carriage return FUNCTION <CR> CODE Prints the current line and feeds the paper to the next line. REMARKS This command is ignored when CR code is invalid.
  • Page 42 Vertical tab FUNCTION CODE <VT> Prints the current line and feeds the paper to the next vertical tab REMARKS stop and moves the print position to the left margin. Performs paper feed if no vertical tabs are set or if the current line is at or below the last vertical tab stop.
  • Page 43 One time n/4 mm backfeed FUNCTION CODE <ESC> “j” Feeds the paper back n/4mm once only. REMARKS The value of n is 1 to 255. Space setting for one line is not changed. This command can also feed the paper back to the page before the current page.
  • Page 44 Set horizontal tab stops FUNCTION CODE <ESC> “D” Cancels all current horizontal tab stops and sets new tab stops at REMARKS columns n1, n2, etc. at the current character pitch, where n1, n2, etc. are numbers between 1 and 255. A maximum of 16 horizontal tab stops can be set.
  • Page 45 Commands to Print Dot Graphics Print normal density graphics FUNCTION CODE <ESC> “K” Prints normal density dot graphics. The graphics image is 24 dots REMARKS high and n m1, m2, ... are the dot data, each a 1-byte value from 0 to 255 representing 24 vertical dots, with the most significant bit repre- senting the top three and the least significant bit representing the bottom three.
  • Page 46 We will create the design below using a bit image. EXAMPLE m1 m2 m3 m4 m5 First, since the volume of data is 30, n1 = (1E) m30 is converted to hexadecimal, it appears as shown below. Data Binary m1 00000001 01 m2 00011110 1E m3 00111110 3E m4 01011111 5F...
  • Page 47 Print high density graphics FUNCTION CODE <ESC> “L” Prints high density dot graphics. The graphics image is 24 dots REMARKS high and n1 + n2 m1, m2, ... are the dot data, each a 1-byte value from 0 to 255 representing 24 vertical dots, with the most significant bit repre- senting the top three and the least significant bit representing the bottom three.
  • Page 48 We will create the design below using a bit image. EXAMPLE m1 m2 m3 m4 m5 First, since the volume of data is 30, n1 = (1E) m30 is converted to hexadecimal, it appears as shown below. Data Binary m1 00000001 01 m2 00011110 1E m3 00111110 3E m4 01011111 5F...
  • Page 49 Relationship between image data and print dots Dot position 2n+1 3n+1 4n+1 5n+1 6n+1 7n+1 8n+1 9n+1 10n+1 11n+1 12n+1 13n+1 14n+1 15n+1 16n+1 17n+1 18n+1 19n+1 20n+1 21n+1 22n+1 23n+1 2n+2 3n+2 4n+2 5n+2 6n+2 7n+2 8n+2 9n+2 10n+2 11n+2 12n+2 13n+2...
  • Page 50 EXAMPLE LSB MSB Hexa- Data Binary decimal 00000000 00011111 00111111 01110111 11111000 11111000 11111000 00001111 00011111 00011111 00111110 00111000 011111001 01110011 01110011 11111001 11111000 11111110 11111111 11111111 00000000 00000000 00000000 00000000 Printing Sample Hexa- Data Binary decimal 00000000 11111000 11111100 01110111 00011111 00011111...
  • Page 51 Print fine density graphics FUNCTION CODE <ESC> “X” Prints a bit image of the input data using horizontal and vertical REMARKS resolutions of 8 dots/mm. Data extending past the right margin is ignored. The relationship between the input data and the actual printing is shown below.
  • Page 52 Commands to Print Download Characters Define download character FUNCTION CODE <ESC> “&” <1> <1> CODE <ESC> “&” Defines one new character and stores it in RAM for later use. REMARKS n is the character code of the character defined and must be between 32 and 127.
  • Page 53 Data Binary 00011000 00111000 01111000 00011000 00011000 00011000 00011000 00011001 00011011 00000110 00001100 00011011 00110111 01100110 00000000 00000000 00000001 00000011 00000111 00000111 00000000 00000000 00000000 00000000 Delete a download character FUNCTION <ESC> “&” <1> <0> CODE <ESC> “&” CODE Deletes the download character which was assigned the value n. REMARKS Enable download character set FUNCTION...
  • Page 54 Disable download character set FUNCTION CODE <ESC> “%” Disables the selected download character set and returns to the REMARKS built-in ROM character set. “0” or <ESC> “%” <0> – 50 –...
  • Page 55 Commands to Control Peripheral Devices Define drive pulse width for peripheral device #1 FUNCTION CODE <ESC><BEL> n1 Defines the drive pulse width for peripheral devices requiring REMARKS other than standard 200 ms pulse time and delay time. n1 indicates the energizing time and n2 indicates the delay time, using 10ms units.
  • Page 56 Commands to Control Auto Cutter Full-cut command to the auto cutter FUNCTION CODE <ESC> “d” Cuts the paper fully when memory switch 2-C is set to 0. If memory REMARKS switch 2-C is set to 1, the paper is fed to 18 mm and cut fully. When auto cutter is invalid, this command is not valid.
  • Page 57 <DC1>, which activates the printer. Set select mode FUNCTION <DC1> CODE (11)H When the printer receives a <DC1> code, the deselect mode is REMARKS canceled and data following this code is input to the buffer. Beep the buzzer FUNCTION <RS>...
  • Page 58 Set the memory switch. In order to enable changed memory switch REMARKS setting, turn the printer OFF and ON again or send printer reset command (<ESC> “?”) to the printer. Changed memory switch settings are stored in EEPROM and these setting will be stored as long as the time when they are changed again.
  • Page 59: Initialize Printer

    Busy conditions Data receive error Initialize printer FUNCTION <ESC> “@” CODE Reinitializes the printer. Clears the print buffer and returns settings REMARKS to their power-up values. Does not clear the input buffer, downloaded characters, or condi- tions for peripheral devices. Enquiry FUNCTION <ENQ>...
  • Page 60 Status byte Constantly set at “0” Reset the printer hardware. FUNCTION <ESC> “?” <LF><NUL> CODE Resets the printer hardware. REMARKS – 56 – Vertical Parity error 1 : error Framing error 1 : error Mechanical error 1 : error Paper empty...
  • Page 61: Control Codes/Esc/Pos Mode

    Horizontal tab Print line feed Page mode print and return Real time transmission of status Real time request to printer Cancel print data in page mode Print page mode data Set right space amount of character Universal print mode designation...
  • Page 62 Define download bit image Print download bit image Start/finish macro definition Designate/cancel reverse printing Select print position of HRI characters Printer ID transmission Set left margin Set basic calculated pitch Paper cut Set print range Designate the relative position of vertical characters when...
  • Page 63: Character Code Tables

    10. CHARACTER CODE TABLES Star Mode Hexa- decimal <NUL> <DC1> <DC2> <DC3> <DC4> <ENQ> <BEL> <CAN> <HT> <EM> <LF> <SUB> <VT> <ESC> <FF> <FS> <CR> <SO> <RS> <SI> ” & ’ < – > – 59 –...
  • Page 64: Star Mode

    Star Mode (Character table: Normal) Hexa- decimal é ù Ä è Ö û Ü ß ê ç § ï ¿ í ª ì º ¢ î ö ó Å ò ¥ ô ä ü á ë ú à – 60 – â...
  • Page 65 Star Mode (Character table: katakana) – 61 –...
  • Page 66 Star Mode (Character table: IBM) Hexa- decimal É Ç ü æ Æ é â ô ö ä ò à û å ç ù ê ÿ ë Ö è Ü ï î £ ¥ Ì Ä ƒ Å á í ó ú...
  • Page 67 Star Mode International Character Set 35 36 64 91 92 93 94 96 123 124 125 126 # $ @ [ U. S. A. # $ à France # $ § Ä Ö Ü ˆ Germany £ $ @ [ England # $ @ Æ...
  • Page 68 ESC/POS Mode Hexa- decimal <NUL> <DLE> <XON> <XOFF> <EOT> <ENQ> <CAN> <HT> <LF> <ESC> <FF> <GS> ” & ’ < – > – 64 –...
  • Page 69 ESC/POS Mode Page 0 (PC437: USA, Standard Europe) Hexa- decimal Ç É ü æ Æ é â ô ö ä ò à û å ç ù ê ÿ ë Ö è Ü ï î £ ¥ Ì Ä ƒ Å á...
  • Page 70 ESC/POS Mode Page 1(Katakana) – 66 –...
  • Page 71 ESC/POS Mode Page 2 (PC850: Multilingual) – 67 –...
  • Page 72 ESC/POS Mode Page 3 (PC860: Portuguese) Hexa- decimal Ç É ü À é È â ô õ ã ò à Ú Á ç ù ê Ê Õ è Ü £ Ô Ù Ì Ã Â Ó á í ó ú ñ...
  • Page 73 ESC/POS Mode Page 4 (PC863: Canadian-French) – 69 –...
  • Page 74 ESC/POS Mode Page 5 (PC865: Nordic) Hexa- decimal Ç É ü æ Æ é â ô ö ä ò à û å ç ù ê ÿ ë Ö è Ü ï ø î £ Ø Ì Ä ƒ Å á í...
  • Page 75 ESC/POS Mode Page 255 (Space Page) Hexa- decimal – 71 –...
  • Page 76 ESC/POS Mode International Character Set 35 36 64 91 92 93 94 96 123 124 125 126 # $ @ [ U. S. A. # $ à France # $ § Ä Ö Ü ˆ Germany £ $ @ [ England # $ @ Æ...
  • Page 77: Automatic Cutter

    2 NEVER place fingers or metal objects in the cutter area. 3 If a jam occurs in the cutter area, switch off the power, use tweezers to remove the jammed paper, then switch the power back on. The printer will return the blade to the home position.
  • Page 78 MEMO P1996.11...
  • Page 80 ELECTRONIC PRODUCTS DIVISION STAR MICRONICS CO., LTD. 536 Nanatsushinnya, Shimizu, Shizuoka, 424 Japan Tel: 0543-47-0112, Fax: 0543-48-5271 OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 70-D Ethel Road West, Piscataway, NJ 08854 U.S.A Tel: 908-572-9512, Fax: 908-572-5095 STAR MICRONICS DEUTSCHLAND GMBH Westerbachstraße 59, D-60489 Frankfurt, Germany...

Table of Contents