Star Micronics TSP400 Series Programmer's Manual
Star Micronics TSP400 Series Programmer's Manual

Star Micronics TSP400 Series Programmer's Manual

Star micronics tsp400: reference guide
Hide thumbs Also See for TSP400 Series:

Advertisement

Thermal Printer
TSP400
Series
TUP400
Programmer's Manual

Advertisement

Table of Contents
loading

Summary of Contents for Star Micronics TSP400 Series

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

    TABLE OF CONTENTS 1. OUTLINE ... 1 2. Memory Switch and DIP Switch ... 3 2-1. Memory Switch ... 3 3. Display panel and functions ... 4 3-1. LED ... 4 3-2. Switches ... 4 3-3. Power switch and ON LINE/FEED switch combinations ... 4 3-4.
  • Page 4: Outline

    The TSP400 series is ideal for printing text, bar code and graphics. The TSP400 series has the following features: 1. extremely quiet and fast printing (50 mm/sec.) using the direct line thermal printing method 2. a straight paper path, which prevents paper jams and is ideal for label printing 3.
  • Page 5 Line Mode: Code <ESC> “#0,0001” <LF> <NUL> 23 30 2C 30 30 30 31 0A This mode is compatible with Star Receipt printers, such as the SP300 and SP200 series. For improvement purposes, the descriptions and specifications in this manual are subject to change without notice.
  • Page 6: Memory Switch And Dip Switch

    2-1. Memory Switch Each memory switch is a 16-bit word stored in EEPROM. The printer is shipped with the factory setting which is made in accordance with its product type. For the detailed functions and the settings of the Memory switches, please refer to "Chapter 7 and 8".
  • Page 7: Display Panel And Functions

    Lights up when the printer is turned on HEAD UP NO PAPER ERROR ON LINE Lights up when the printer is on line; goes off when the printer is off line; lights up when the head temperature is too high 3-2. Switches Switch ON LINE...
  • Page 8: Sensor Adjustment Mode

    Pause at c: command mode selection Press ON LINE Press FEED 3) Power + ON LINE + FEED switches Approx. 2 sec. 1 short beep … 2 short beeps … 3 short beeps … 1 long beep … HEAD UP NO PAPER lights up lights up...
  • 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, CTS) Printer Output (DTR, FAULT, TXD, RCH, RTS) Printer 75188 or equivalent 4-2-2. RS-422A Interface Input (RD, RS) Printer Output (SD, CS) Printer Host computer Host computer Host computer Host computer – 7 –...
  • Page 11: Connectors And Signal Names

    Request To Send: The printer sets this signal to “SPACE” when it is ready to send. The host sets this signal to “SPACE” when it is ready to send. NOTE: The printer does not monitor this signal. Not used –...
  • Page 12: Rs-422A Interface

    The host sets this signal to “SPACE” when it is ready to receive. NOTE: The printer does not monitor this signal. The printer sets this signal to “SPACE” when it is ready to receive. The printer sets this signal to “SPACE” when it is ready to receive.
  • 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 FAULT [RS-422A] Printer side Printer #n Printer #n+1 Host side Twisted pair cable –...
  • 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.
  • 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: Stx-Etx Mode

    The host computer sends an ENQ code to the printer and acknowledges the printer status. Then, the host computer checks if the printer buffer is empty. After the host computer detects that the buffer is empty, a STX code and data are transmitted.
  • Page 18 Check byte = test byte? Sends ETX (Printing) Ends the STX-ETX mode. Is there a data block in the STX-ETX mode? Check byte: Horizotal parity of the printer. Test byte: Horrizontal parity of the host computer. – 15 – Sends CAN...
  • Page 19: Error Status

    <SOH> <STX> “E” “2” <ETX> <EOT> <CR> <LF> <SOH> <STX> “E” “3” <ETX> <EOT> <CR> <LF> The printer outputs the “Printing in progress” status only upon receipt of a status request command. The printer issues the “Printing finished” status when printing finishes, but never in response to a status request command.
  • Page 20: Line Mode

    Line Mode Constantly set at “0” Compulsion switch When pin 6 of the peripheral unit drive circuit connector is set “high”, status bit 7 becomes “1”. TUP400 Only Constantly set at “0” – 17 – Vertical Parity error 1 : error Framing error 1 : error Mechanical error...
  • Page 21: Parallel Interface

    5. PARALLEL INTERFACE 5-1. Interface Specifications 1 Interface: 2 Data transfer speed: 1000 ~ 6000 CPS 3 Synchronization: 4 Handshaking: 5 Logic level: 5-2. Interface Timing A C K DATA STROBE BUSY Conforms with Centronics parallel interface standard External strobe pulse Using ACK and BUSY TTL-level compatible Approx.
  • Page 22: 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) – 19 –...
  • Page 23 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 24: Peripheral Unit Drive Circuit

    1. Use the modular plug as shown in Figure 1. 2. Separate ground wire is required for Europe only. 3. Use if the printer is to be used in Europe, the noise filter and the cable should be separate, as shown in Figure 2.
  • Page 25 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 26: Errors

    LED: The circle ( ) indicates that the LED is lit up. a) Recoverable errors The printer goes off line (ON LINE LED goes off) when these errors occur. After the cause of the error is removed, operation of the printer should return after the ON LINE switch is pressed. Error Head up error The head is up.
  • Page 27: Control Codes

    7. CONTROL CODES/PAGE MODE 7-1. General Flow for Programming the Page Mode ... 25 7-2. Command Summary ... 26 7-3. Command Specification ... 28 7-4. Appendix: How to set various bar codes ... 50 7-5. Sample Program ... 58 – 24 –...
  • Page 28: General Flow For Programming The

    7-1. General Flow for Programming the Page Mode Change character and/or bar code data and print? START Set Memory Switches (if necessary) Clear Format (if necessary) Define Print Area (page length) Define Ruled Line Format Define Character String Format Define Bar Code Format Enable Cutter (if installed) Set Character String Data Set Bar Code Data...
  • Page 29: Command Summary

    7-2. Command Summary The printer has the following control commands. Each control code starts with <ESC> code and ends with <LF> <NUL> codes, except for the Request status command <ENQ> and the Call Download Character command <ESC> “G”. Format Definition Control codes <ESC>...
  • Page 30: Other Commands

    1B 42 d n1n2 0A Enable cutter 1B 23 N 2C n1n2n3n4 0A Set Memory Switch 1B 3F 0A 00 Reset printer Request status 1B 4E n1n2 0A 00 Select international character set 1B 46 n1n2 3B d1.…d48 Register download character...
  • Page 31: Command Specification

    7-3. Command Specification Format Definition Clear format FUNCTION <ESC> “C” <LF><NUL> CODE When the printer receives this command, all defined format and REMARKS image data are cleared. The format defined by the following commands will be cleared by <ESC> “C”. <ESC> “D”...
  • Page 32 Note : When a value greater than the size of the label is set, two or more labels are assumed to be one label. For example, when 50 mm is set for a label whose pitch is 40 mm, one print pattern is printed using two labels.
  • Page 33 Define ruled line format FUNCTION CODE <ESC> “L n1n2 ; y5y6y7y8 , d , w” <LF> <NUL> 4C n1n2 3B x1x2x3x4 2C y1y2y3y4 2C x5x6x7x8 2C y5y6y7y82C d 2C w This command defines ruled line format. REMARKS n1n2 : Line number(00 to 63) x1x2x3x4 : Position of the starting point in the X direction (0000 y1y2y3y4 : Position of the starting point in the Y direction (0000 x5x6x7x8 : Position of the ending point in the X direction (0000...
  • Page 34 Cancel ruled line format FUNCTION CODE <ESC> “E n1n2” <LF><NUL> This command cancels the line previously defined by<ESC> “L REMARKS n1n2”. n1n2 : Line number (00 to 63) Cancel the line 00 which is previously defined. EXAMPLE LPRINT CHR$(&H1B);“E00”;CHR$(&H0A);CHR$(&H00); n1n2 0A –...
  • Page 35 Note: a) “d1d2” can be left out. When “d1d2” is left out, a b) Up to 100 character strings can be defined. c) If “;” or “,” is missing, printer goes into an error n1n2 ; x1x2x3x4 , y1y2y3y4 n1n2 3B x1x2x3x4 2C y1y2y3y4 0.1 mm)
  • Page 36 Character rotation and character string rotation 1) Charcter rotation only(no character string rotaion) A B C r1=0(0˚) r2=0(0˚) 2) Charcter string rotation only(no character rotaion) A B C Start position r1=0(0˚) r2=0(0˚) 3) Charcter string rotation and character rotation A B C Start position r1=0(0˚) r2=0(0˚)
  • Page 37 : Bar code height (0000 to 2999 Note: a) When a bar code is rotated, its dimensions may not b) Up to 32 bar codes can be defined. c) If “;” or “,” is missing, printer goes into an error n1n2 n1n2 3B x1x2x3x4 2C 0.1 mm)
  • Page 38: Bar Code Rotation

    Bar code rotation Start position LPRINT CHR$(&H1B);“PB00;0100,0150,2,1,0,0100”; EXAMPLE CHR$(&H0A);CHR$(&H00); 10 mm 1 mm 15 mm 10 mm 90˚ 180˚ 0˚ Bar code string number : 00 Print start position (X,Y)= 10 mm, 15 mm Mode: 2 Bar code type : CODE 39 Bar code rotation : 0 degree Bar code height : 10 mm –...
  • Page 39 Define character pitch FUNCTION CODE <ESC> “Y d1d2” <LF><NUL> This command defines dot space between characters. REMARKS d1d2 : Indicates dot space (00 to 63) Note: a) The command is used to define dot space between b) When changing the inter character space, a new value c) Default value is 00.
  • Page 40 If “;” is missing, printer goes into an error condition. (1) Defined character string number : 03, Print data is “STAR EXAMPLE MICRONICS” LPRINT CHR$(&H1B);“RC03;STAR MICRONICS”;CHR$(&H0A);CHR$(&H00); (2) Change data of character string number 03 to“TSP400 Ther- mal” and reprint. LPRINT CHR$(&H1B);“RC03;TSP400 Thermal”; CHR$(&H0A);CHR$(&H00); LPRINT CHR$(&H1B);“l”;CHR$(&H0A);CHR$(&H00); n1n2 ;...
  • Page 41 Start and stop characters of Interleaved 2 of 5 are g) When the number of digits of lnterleaved 2 of 5 is an h) If “;” is missing, printer goes into an error condition. Defined bar code number: 00, print data: 12345678901 EXAMPLE LPRINT CHR$(&H1B);“RB00;12345678901”;CHR$(&H0A);...
  • Page 42 Size of graphic data is set in 1 mm units (byte units c) <ESC> “X” cancels data that was set using the d) If “;” or “,” is missing, printer goes into an error Position of starting point (X,Y) direction : (30,40) mm...
  • Page 43 “H (BMP file data) (BMP file data) This command copies BMP file to the printer(Image buffer). BMP REMARKS file can be scanned by scanner and edited by a program such as the PAINT BRUSH in the WINDOWS. The printer can accept non- compressed monochrome BMP file only.
  • Page 44 Contents of BMP file Please refer the following as contents of standard BMP graphic file. Pleas note that only some of data apply to the Printer. All other data will be ignored. The printer can accept non-compressed, monochrome BMP file only.
  • Page 45 LPRINT CHR$(&H1B);“RC00;ABC”;CHR$(&H1B); “G00,01”;CHR$(&H1B);“0”;“DEF”;CHR$(&H0A);CHR$(&H00); Clear image data FUNCTION CODE <ESC> “X” <LF><NUL> When the printer receives this command, the defined image data REMARKS are cleared. The following commands will be cleared by<ESC> “X” <ESC> “RC”<ESC> “RB”<ESC> “Q”<ESC> “H”<ESC> “G” Note: a) Image print area specified by <ESC>...
  • Page 46 <ESC> “T This command sets paper feed length after printing. Paper feed is REMARKS executed only the printer receives<ESC> “I” command. This command is designed to adjust distance between print head and paper tear off bar(applicable only for TSP412) Feed paper will be feed back again for same length right before next printing starts.
  • Page 47 Set the memory switch. In order to enable changed memory switch REMARKS settings, 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 48 France Germany n4 Country C Latin America 2) Use N=2 to set option-related settings. Parameters are as follows. n1 : Always “0” (TSP400) n2 : Cutter installed status n3 : Always “0” n4 : Printing speed Setting Cutter Printing speed EXAMPLE 1 LPRINT CHR$(&H1B);“#1,010A”;CHR$(&H0A);...
  • Page 49 LPRINT CHR$(&H1B);“#2,0001”;CHR$(&H0A);CHR$(&H00); LPRINT CHR$(&H1B);“?”;CHR$(&H0A);CHR$(&H00); Cutter : Printing speed : Note: In order to enable the changed memory switch setting, turn the printer OFF and ON again or send the printer reset command (<ESC>“?”) to the printer. Reset printer FUNCTION CODE <ESC>...
  • Page 50 <SOH> <STX> “FI” <ETX> <EOT> <CR> <LF> 01 02 46 49 03 04 0D 0A Printing fin- <SOH> <STX> “OF” <ETX> <EOT> <CR> <LF> 01 02 4F 46 03 04 0D 0A Printer off-line <SOH> <STX> “PR” <ETX> <EOT> <CR> <LF> 01 02 50 52 03 04 0D 0A Printing <SOH>...
  • Page 51 : Character bit map data. Note: a) Only standard size character (16 (W) b) Data consists of 48 bytes (2 bytes 24) and defined c) If “;” is missing, printer goes into an error condition. In this example data d1,d2,d3,.… EXAMPLE LPRINT CHR$(&H1B);“F00”;CHR$(&H21);CHR$(&HC0);CHR$(&H32);...
  • Page 52 “NA”,“NB” <ETX> <EOT> <CR> <LF> LPRINT CHR$(&H04); EXAMPLE If the printer is in a condition of “Inside near-end, Outside near- end” then the printer returns the following codes to the host. CODE <SOH> <STX> “NA” “NB” <ETX> <EOT> <CR> <LF>...
  • Page 53: Appendix How To Set Various Bar Codes

    7-4. Appendix How to set various bar codes Refer to the industry standards reference material for the features and applica- tions of each bar code symbology. This section of this document covers the proper commands to select the bar code symbology required.
  • Page 54 2) REQUIREMENTS a) The Start code and the Stop code of CODE 39 are automatically added. b) The position defined by the control command locates the bar code symbols. It is necessary to provide space for a quiet zone for bar code symbol. 3) ANSI and AIM specifications (for reference only) a) Width of narrow elements: Minimum 0.0075 inch (0.191 mm)
  • Page 55 When this code is used, the start and stop patterns are automatically inserted. b) When the number of digits for bar code data is an odd number, the printer automatically adds “0” in the highest digit position. c) Details conform to the AIM, USS-12/5, ANSI, and JIS X 0502 specifica-...
  • Page 56 (3) CODE 93 1) Each mode and module width a) Horizontal printing Item Mode 1 Mode 2 Mode 3 Module width 2 dots 3 dots 4 dots Width of one 2.25 character (mm) Note: The start and stop bars are not included. b) Vertical printing Item Mode 1 Mode 2 Mode 3...
  • Page 57 (4) UPC (5) JAN/EAN-8 These codes are common commodity codes, mainly used for miscellaneous goods or groceries sold at supermarkets. 1) Each mode and bar code width a) Horizontal printing Item Mode 1 Module width Bar code width JAN/EAN-8 16.75 mm JAN/EAN-13, UPC 23.75 mm Note: Right and left guard bars are included, white spaces are not included.
  • Page 58 4 (31H to 34H). The start code is sent as data % followed by 6 to 8(36H to 38H). Although CODE 128 data requires START CODE, the printer automatically adds START CODE. Please omit START CODE when sending data to the printer. Mode 2...
  • Page 59 3) 2-character set codes Control codes Code Format EXAMPLE Bar code string number 00, starting position of bar code (X, Y) = 15 mm, 5 mm, use Mode 1 of CODE128, Bar code height 15 mm, data: 1213477657, and CR (carriage return) LPRINT CHR$(&H1B);“PB00;0150,0050,1,7,0150”;...
  • Page 60 (8) NW-7 NW-7 bar code can represent numeric characters 0 to 9 and special characters such as - , $ , : , / , . , + with one of character from A to D as Start or Stop code in NW-7.
  • Page 61: Sample Program

    7-5. Sample Program ==SAMPLE PROGRAM== ’This sample program (SAMPLE1.BAS) is included in a floppy disk comes with the TSP400 printer. ’——<< SAMPLE1.BAS >>—— E$=CHR$(27): LN$ = CHR$(10) + CHR$(0): A$ = DATE$ OPEN “COM1:9600,N,8,1,CS0,DS0”FOR RANDOM AS #1 ’OPEN “COM2:9600,N,8,1,CS0,DS0”FOR RANDOM AS #1 ’OPEN “LPT1:”FOR RANDOM AS #1: WIDTH “LPT1:”, 255...
  • Page 62 PRINT #1, E$; “RC08;COMMENT”; LN$; PRINT #1, E$; “RC09;054-263-1115”; LN$; PRINT #1, E$; “RC10;CUSTOMER”; LN$; PRINT #1, E$; “RC11;STAR MICRONICS CO.,LTD”; LN$; PRINT #1, E$; “RC12;ADDRESS”; LN$; PRINT #1, E$; “RC13;20-10 NAKAYOSHIDA, JAPAN”; LN$; PRINT #1, E$; “RB00;ABC0123456789”; LN$; :’Define bar code data PRINT #1, E$;...
  • Page 63 ==SAMPLE PROGRAM== ’This sample program (SAMPLE2.BAS) is included in a floppy disk with the TSP400 printer. ’——<< SAMPLE2.BAS >>—— E$ = CHR$(27): LN$ = CHR$(10) + CHR$(0) OPEN “COM1:9600,N,8,1,CS0,DS0” FOR RANDOM AS #1 ’OPEN “COM2:9600,N,8,1,CS0,DS0” FOR RANDOM AS #1 ’OPEN “LPT1:”FOR RANDOM AS #1: WIDTH “LPT1:”, 255 ’——<<...
  • Page 64: Control Codes/Line Mode

    8. CONTROL CODES/LINE MODE 8-1. Line 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 65 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 66 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 Print high density graphics m1 m2 ... <ESC> “k” n <0> d1 ... 1B 6B n 00 d1 ...
  • Page 67 <ESC> “?” <LF> <NUL> 1B 3F 0A 00 Commands to Control Auto Cutter Hexadecimal Control codes codes <EOT> Function Cancel last line & Initialize printer Deselect printer Set select mode Beep the buzzer Set memory switch Initialize printer Enquiry Enter STX-ETX mode...
  • Page 68: 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 69 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-A JAN/EAN-8 JAN/EAN-13 CODE 39 CODE 128 CODE 93 NW-7 The value of n1 can be set to 1(01H) or 8(08H) or “1”(31H) to “8”(38H).
  • Page 70 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-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 71 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 72 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 73 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 74 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 75 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 76 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 77 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 – 74 –...
  • Page 78 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 79 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 80 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 81 Vertical tab FUNCTION CODE <VT> When start position detect is invalid, feeds the paper to the next REMARKS vertical tab stop and moves the print position to the left margin. Performs a line feed if no vertical tabs are set or if the current line is at or below the last vertical tab stop.
  • Page 82 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 83 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 84 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 85 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 86 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 87 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 88 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 89 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 90 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 91 Commands to Print Download Characters Define download character FUNCTION CODE <ESC> “&” <1> <1> 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. The character matrix is 12 dots wide and 24 dots high.
  • Page 92 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 Deletes the download character which was assigned the value n. REMARKS Enable download character set FUNCTION...
  • Page 93 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 94 Commands to Control Auto Cutter Full-cut command to the auto cutter FUNCTION CODE <ESC> “d” CODE <ESC> “d” Cuts the paper fully when start position detect is invalid. REMARKS Feeds the paper to the top of the next page, then cuts it fully when start position detect is valid.
  • Page 95 STX and ETX and the line buffer data, for which the command is not initialized. (Line buffer means the print data expansion area.) Deselect printer FUNCTION <DC3> CODE Deselects the printer. The printer disregards all subsequent char- REMARKS acters and commands except <DC1>, which activates the printer. – 92 –...
  • Page 96 4. a) When the DC1, DC3 invalid mode is set (DIP switches 2- 1 to 2-4 are all set to ON), the printer ignores this code. b) In the DC1, DC3 valid mode (with DIP switches 4-1 to 4- 4 set to OFF), when the printer receives a <DC1>...
  • Page 97 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 98 3) Use N=3 for folloing settings n1 :Always “0” n2 :Character table n3 :Print column n4 :Line feed, CR code Setting Character table Print colum Line feed (mm) CR code EXAMPLE 1 LPRINT CHR$(&H1B);“#1,010A”;CHR$(&H0A); CHR$(&H00); LPRINT CHR$(&H1B);“#2,0100”;CHR$(&H0A); CHR$(&H00); LPRINT CHR$(&H1B);“?”;CHR$(&H0A); CHR$(&H00); Sensor: Start position detect: Zero style:...
  • Page 99 LPRINT CHR$(&H1B);“#2,0001”;CHR$(&H0A); CHR$(&H00); LPRINT CHR$(&H1B);“?”;CHR$(&H0A); CHR$(&H00); Cutter: Printing speed: Note: In order to enable the changed memory switch setting, turn the printer OFF and ON again or send the printer reset command (<ESC>“?”) to the printer. Initialize printer FUNCTION CODE <ESC>...
  • Page 100 Status byte Constantly set at “0” Enter STX-ETX mode FUNCTION CODE <STX> Causes the printer to select STX-ETX mode. REMARKS Terminate STX-ETX mode FUNCTION <ETX> CODE Terminates STX-ETX mode, and prints out the text data. REMARKS Reset the printer hardware.
  • Page 101 TUP400 Only Request Status FUNCTION CODE <EOT> Causes the printer to transmit a status byte. REMARKS Status byte Constantly set at “0” – 98 – Constantly set at “1” Constantly set at “0” Inside near-end sensor 1: Near-end Paper empty...
  • Page 102: Character Code Tables

    9. CHARACTER CODE TABLES Character code table Differs according to the memory switch settings. Page Mode – 99 –...
  • Page 103: Page Mode

    Page Mode (Character type: Small size or standard) – 100 –...
  • Page 104 Page Mode (Character type: Boldface) – 101 –...
  • Page 105 Page Mode International Character Set – 102 –...
  • Page 106 Line Mode – 103 –...
  • Page 107 Line Mode (Character table: Normal) – 104 –...
  • Page 108 Line Mode (Character table: katakana) – 105 –...
  • Page 109 Line Mode (Character table: IBM) – 106 –...
  • Page 110 Line Mode International Character Set – 107 –...
  • Page 111: Automatic Cutter

    Residual adhesive can stick to the cutter area and cause problems. 4 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 112: Presenter's Memory Switch Settings

    11. PRESENTER’S MEMORY SWITCH SETTINGS Memory switch 2 n1: Always 0 n2: Always 1 n3: Always 0 n4: Printing speed 50 mm/sec. (Default) 25 mm/sec. Memory switch B n1: Always 0 n2: Presenter Not Installed (TUP452) Installed n3: Always 0 n4: Always 1 (TUP482) –...
  • Page 113: Tsp Label

    A LOOK AT THE MENU ... 122 ... 122 File ... 125 Edit Menu ... 128 Status ... 129 Printer Settings ... 130 Settings ... 131 Preferences NOTE: It is recommended that Generic/Text Only driver should be used when TSPLABEL program is running. 12. TSP LABEL...
  • Page 114: Installation

    INSTALLATION Go into Windows Program Manager and Press RUN. At the prompt type A:SETUP: This will automatically place the program on your hard disk and pressing the icon will start the program. – 111 –...
  • Page 115: Tools For Creating A Label

    TOOLS FOR CREATING A LABEL The following tools are explained later in detail: In addition to these tools, a printer-port status display indicates when the printer is ready to accept data: . Label Size: Set the size of the new label from this icon.
  • Page 116 Draw Vertical Lines: Draw Boxes: Click and move the mouse in the vertical and horizontal directions until the box is the size required. Entering Text: Operate the same procedure used for drawing of the lines above. Choose the ‘ABC’ icon and click the mouse where you want the text to appear.
  • Page 117 You have three different kinds of text: You can type in the Alpha-Numeric text in the window where the letters ABC are shown in the above sample. You can choose to input only numbers by clicking on the option. This will show two additional options: is used to increase the number printed with each label printed;...
  • Page 118 is a convenient way how to print labels using data comming from other programs, spreadsheets or databases. Clicking on File Merge, this program asks you to specify the file name and location of the file to be used for such input: This program is using an intelligent way to select the data in the file you choose.
  • Page 119 Character Styles From the top sub-menu you can specify options which will enhance the readabil- ity of the labels: Type will change the boldness of the characters: Width expands the character horizontally: Height increases the point size: – 116 –...
  • Page 120 Direction allows you to change the orientation of the text. Entering Bar Codes First you must specify the bar-code type required: The available options will change in accordance to the bar-code type chosen. – 117 –...
  • Page 121 The Height indicates the size of the bar code. The Corresponding size is reflected on the screen: Choosing will print the human readable code below the bar code. This option leads you to another menu where you can position and alter the character- istics of the text.
  • Page 122 The Direction shows the direction of the bar code: The Bar Code graphic presentation shows a red line. This indicates the top of the bar code so that when rotation is performed you can follow the direction on screen. If the bar-code chosen is displays only numbers then the is displayed.
  • Page 123 Time & Date function This prints the date and/or time automatically when you print labels. This is blocked at the time the printer starts to print. Check your computer time and date before printing such labels. From the left side select Date or Time. If you want to print both, you can do one selection now and then do the other selection next to it later.
  • Page 124 Selecting Time will give you options similar to the ones described above in the Date function. A new feature of Version 2 is the Forward date. By pressing the mouse on the ‘up arrow’ the date is advanced by the number of days inserted. This is used to insert expiry-dates.
  • Page 125: A Look At The Menu

    A LOOK AT THE MENU File Open Label will enable you to call a label which was previously designed and saved. After ‘Opening’ you will be able to edit, print and save the new label. New Label will discard the modifications done on screen and the user can start designing a new label.
  • Page 126 Save Label: after designing your label be sure to save your work before you exit. for later modification or printing. The difference between Save Label and Save Label As. Save Label will save the label with the same name it had before you started to modify it. That means that if you have an old version of that label and you use Save Label, the old label will be overwritten by the new version.
  • Page 127 Print Label will print the label already designed. Refresh will re-draw the screen to remove unwanted drafting signs which may be left during designing. Exit from the label program. – 124 –...
  • Page 128: Edit Menu

    Edit Menu allows you to change the various settings and sizes of items drawn on screen. Label Size: change the label size The arrow signs designate the move to the new size; High Speed will move the position faster. X-Lines: change the Line Width, the length and position of the horizontal lines. –...
  • Page 129 Removing the X from the High speed icon will move the line in smaller steps allowing a more accurate positioning. If there is more than one line drawn, the lines will be numbered. For easier operation the line being edited turns red (on most monitors). Pressing the Mbutton will move the controls to the next line.
  • Page 130 This will bring up the text menu with the text already written in the edit window: Edit Bar-Codes: Likewise, to edit bar-codes you can click the mouse on the bar- code you need to change: Edit Dot-Graphics calls the graphic editor. –...
  • Page 131: Status

    Status The maximum number of which can be used in any one label is the following: X-Lines: 20 Y-Lines: 20 Boxes: 5 Texts: 90 Bar-Codes: 30 BMP Graphic files: 5 Pressing the Status and scrolling down, each item will display how many more you can use of that item.
  • Page 132: Printer Settings

    Printer Settings Cutter : Specify if the paper cutter is installed or not. Sensor : This must match the paper/labels you are using. Cut Position : Detects the start position of the label. Print Speed : you can choose high or slow printing speed.
  • Page 133: Settings

    Parellel Port: If you want to use the parallel port, setup the windows ‘GENERIC TEXT PRINTER’ Driver and set this as the default printer. Serial Port: The software checks automatically for the first available serial port but this can be over-ridden by the user by pressing the appropriate setting button –...
  • Page 134: Preferences

    Preferences Default settings for the width of boxes, horizontal and vertical lines can be set through this option. After the lines are drawn the thickness and size can be modified through the EDIT menu. This menu also give yout the option to choose between various shapes of the cursor.
  • Page 136 HEAD OFFICE STAR MICRONICS CO., LTD. 20-10 Nakayoshida, Shizuoka, 422 Japan Tel: (054) 263-1115, Telefax: (054) 263-8714 OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 70-D Ethel Road West, Piscataway, NJ 08854 U.S.A Tel: (908) 572-9512, Telefax: (908) 572-5095, Telex: 299766 STAR UR STAR MICRONICS DEUTSCHLAND GMBH Westerbachstraße 59, D-60489 Frankfurt/Main 90, Germany...

This manual is also suitable for:

Tup400 series

Table of Contents