Star Micronics TSP2000 Programmer's Manual
Star Micronics TSP2000 Programmer's Manual

Star Micronics TSP2000 Programmer's Manual

Star micronics tsp2000: user guide
Hide thumbs Also See for TSP2000:

Advertisement

THERMAL PRINTER
TSP552
TSP552II
TSP2000
PROGRAMMER'S MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Star Micronics TSP2000

  • Page 1 THERMAL PRINTER TSP552 TSP552II TSP2000 PROGRAMMER'S MANUAL...
  • Page 2 Trademark acknowledgments TSP552, TSP552II, TSP2000: Star Micronics Co., Ltd. ESC/POS: Seiko Epson Corporation Notice All rights reserved. Reproduction of any part of this manual in any form whatsoever, without STAR’s express permission is forbidden. The contents of this manual are subject to change without notice.
  • Page 3: Table Of Contents

    1. Dip Switch Setting (TSP552 / 552II) ... 1 1-1. Serial Interface Type ... 1 1-2. Parallel Interface Type ... 2 2. Dip Switch Setting (TSP2000) ... 3 2-1. Serial Interface Type ... 3 2-2. Parallel Interface Type ... 4 3.
  • Page 4: Dip Switch Setting (Tsp552 / 552Ii)

    1. Dip Switch Setting (TSP552 / 552II) 1-1. Serial Interface Type Switch Function Data receive error Receive buffer size Handshaking Data bit Parity check Parity Baud rate Switch Function Handshaking conditions (conditions for BUSY) <FF> Code (Star mode) Graphic Adjustment (ESC/POS mode) Print density Command Should not be changed (should be set to on).
  • Page 5: Parallel Interface Type

    1-2. Parallel Interface Type Switch Function Auto CR Receive buffer size Do not change. (Should be set to OFF) Cut position adjust (ESC/POS mode only) *1: Approximately 9mm of paper is fed before cutting. Switch Function Handshaking conditions (conditions for BUSY) <FF>...
  • Page 6: Dip Switch Setting (Tsp2000)

    2. Dip Switch Setting (TSP2000) 2-1. Serial Interface Type Switch Function Data receive error Receive buffer size Handshaking Data bit Parity check Parity Baud rate Automatic Status Back function Switch Function Handshaking conditions (conditions for BUSY) <FF> Code (Star mode)
  • Page 7: Parallel Interface Type

    2-2. Parallel Interface Type Switch Function Auto CR Receive buffer size Should not be changed (should be set to off). Device ID reply Automatic Status Back function Negotiation Status Back function Treatment of missing data during reverse Cut position adjust *1 Switch Function Handshaking conditions...
  • Page 8: Control Codes

    3-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> <GS> t n 1B 1D 74 n <ESC> "/" "1" 1B 2F 31 <ESC>...
  • Page 9 Hexadecimal Control codes codes <ESC> " _ " "1" 1B 5F 31 <ESC> " _ " <1> 1B 5F 01 <ESC> "4" 1B 34 <ESC> "5" 1B 35 <SI> <DC2> <ESC> " E " 1B 45 <ESC> " F " 1B 46 Commands to Set the Page Format Hexadecimal...
  • Page 10 Hexadecimal Control codes codes <ESC> "J" n 1B 4A n <ESC> "I" n 1B 49 n <ESC> "B" n1 n2 ... <0> 1B 42 n1 n2 ... 00 <ESC> "D" n1 n2 ... <0> 1B 44 n1 n2 ... 00 <ESC>...
  • Page 11 Cancel last line & Initialize printer immediately Deselect printer Set select mode Beep the buzzer Initialize printer Enquiry (Status inquiry) Near end status inquiry Reset printer hardware (Perform test print) Registers a logo pattern Prints a logo pattern – 8 – Page Page Page...
  • Page 12: Star Mode Command Specifications

    3-2. Star Mode Command Specifications Commands to Select Characters Function Select international character set Code <ESC> Initial Value n = 0 Remarks Selects an international character set according to the value of n , as shown below. When the value of n is 0 to 9, 0 (00H) to 9 (09H) or "0" (30H) to "9"...
  • Page 13 Select character table Function <ESC> <GS> t n Code 1B 1D 74 n n = 0 Initial Value Selects page n from the character code table shown Remarks below. 10 PC866 (Russian) When the value of n is 0 to 9, 0 (00H) to 9 (09H) or "0" (30H) to "9"...
  • Page 14 Select normal zero Function <ESC> "/" "0" Code 1B 2F 30 Selects a normal 0. Remarks Function Select bar code printing Code <ESC> "b" n1 n2 n3 n4 d1 ... dk <RS> 1B 62 n1 n2 n3 n4 d1 ... dk 1E Remarks Prints bar codes according to the value of n1.
  • Page 15 n2: Designates printing characters below bar code or a line feed. Action Does not print characters below the bar code. Line feed occurs after execution of the command. Prints characters below the bar code. Line feed occurs after execution of the command. Does not print characters below the bar code.
  • Page 16 n4: Designates the height of the bar code. If the bar code is higher than the amount for the line feed, the amount of the line feed will automatically be ad- justed. Precautions 1. The starting position of the bar code is above the current line.
  • Page 17 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 a number of an odd digit, 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 char-...
  • Page 18: Character Codes

    Character Codes Control Codes CODE FORMAT NUL 00H SOH 01H STX 02H ETX 03H BOT 04H ENQ 05H ACK 06H BEL 07H 0CH %L 0DH %M DLE 10H DC1 11H DC2 12H DC3 13H DC4 14H NAK 15H SYN 16H ETB 17H CAN 18H SUB 1AH...
  • Page 19 Select 12-dot pitch printing Function <ESC> "M" Code 1B 4D Prints 12 x 24 dot font characters without spaces. Remarks Function Select 14-dot pitch printing Code <ESC> "p" 1B 70 Remarks Prints 12 x 24 dot font characters with 2 dot spaces. Function Select 15-dot pitch printing Code...
  • Page 20 Function Set character spacing <ESC> <SP> n Code 1B 20 n n =0 Initial Value Remarks Sets the amount of space between characters where n is amount set. Spaces are added to the right of the characters. When the value of n is 1 to 9, 1 (01H) to 9 (09H) or "1" (31H) to "9 (39H) can be set.
  • Page 21 Sets the magnification rate in character width. Function <ESC> "W" n Code 1B 57 n n = 0 Initial Value Prints subsequent data expanded in width by the value Remarks set by n . The value of n can be set to 0 (00H) to 5 (05H) or "0" (30H) to "5"...
  • Page 22 Sets the magnification rate in character height. Function <ESC> "h" n Code 1B 68 n n = 0 Initial Value Remarks The value of n can be set to 0 (00H) to 5 (05H) or "0" (30H) to "5" (35H). Function Underlining Code...
  • Page 23 1. Underlining is not executed for the following. a. The area skipped when moving the printing position b. Block graphics of the IBM character set. (B0H, to 2. 23, 24 dot lines are used for underlining 24 dot fonts. Function Select overlining Code <ESC>...
  • Page 24 Select highlight printing Function <ESC> "4" Code 1B 34 Highlights or reverses the print of black and white to print Remarks the subsequent data including character pitch. 1. Line spaces are not highlighted. 2. Underlines and overlines are white. Function Cancel highlight printing <ESC>...
  • Page 25 Cancel inverted printing Function <DC2> Code Cancels the printing of inverted characters. Remarks 1. Input this code at the beginning of the line. Function Select emphasized printing Code <ESC> "E" 1B 45 Remarks Causes subsequent characters to be emphasized. Function Cancel emphasized printing Code <ESC>...
  • Page 26 Commands to Set the Page Format Set page length in lines Function <ESC> "C" n Code 1B 43 n Sets the length of one page using the current line spacing Remarks where n is the line pitch. 1. When n = 0, the length of the page is set to 24 mm 2.
  • Page 27 Set bottom margin Function <ESC> "N" n Code 1B 4E n n = 0 Initial Value Remarks Sets the bottom margin to n lines at the current line pitch. 1. Settings for printing 36 lines or less on one page are 2.
  • Page 28 Function Set left margin <ESC> "l" n Code 1B 6C n Remarks Sets the left margin as a non-printing area using the current character pitch up to digit n based on the left edge. 1. Character pitches include spaces between characters, 2.
  • Page 29 Set right margin Function <ESC> "Q" n Code 1B 51 n Remarks Sets the right margin as a non-printing area using the current character pitch up to digit n based on the right edge. 1. Character pitches include spaces between characters, 2.
  • Page 30 Commands to Move the Print Position Line feed Function <LF> Code Prints the data in the line buffer and feeds paper one line. Remarks 1. If there is no data prior to this code, only one line of 2. Printing position is the left margin position. Function Feed paper n lines Code...
  • Page 31 Horizontal tab Function <HT> Code Moves the print position to the next preset horizontal tab Remarks position. 1. If there is no tab setting on the right side of the current 2. If there is not tab position inside the left and right Vertical tab Function <VT>...
  • Page 32 Set line spacing to 4 mm Function <ESC> "z" "1" Code 1B 7A 31 Sets the distance of subsequent paper feeds to 4 mm. Remarks Function Set line spacing to 3 mm <ESC> "0" Code 1B 30 Remarks Sets the distance of subsequent paper feeds to 3 mm. Function One time n/4 mm feed <ESC>...
  • Page 33 Set vertical tab stops Function <ESC> "B" n1 n2 ... <0> Code 1B 42 n1 n2 ... 00 Clear Initial Value Cancels preset vertical tabs and sets new vertical tab Remarks stops at lines n 1 to n k using the current line pitch based on the top of the page.
  • Page 34 A maximum of 16 horizontal stops can be set. ESC D NULL rests all horizontal tab positions. 1. When the tab position setting nk is equivalent to the 2. Tab positions are set and do not move even if the 3.
  • Page 35 1. Ignores settings that exceed the printing area. 2. When set in the right direction from the current position with regard to the character direction, this specifies positive integers and when set in the left direction, this specifies negative integers. 3.
  • Page 36 1. Enabled only when input at the beginning of the line. 2. Aligns positions in the set printing width. 3. Position alignment occurs for the data that is skipped using the following commands. a. Horizontal tab (HT) b. Absolute position (ESC GS A) c.
  • Page 37 Commands to Print Dot Graphics Print normal density graphics Function <ESC> "K" n <0> m1 , m2 ... Code 1B 4B n 00 m1 m2 ... 1. Prints bit images using 3 dots horizontally and 3 dots Remarks 2. Bit images are 24 dots vertically and n x 3 dots 3.
  • Page 38 Example We will create the design below using a bit image. m1 m2 m3 m4 m5 First, since the volume of data is 30, n1 = (1E)H. If the data m1 ~ m30 is converted to hexadecimal, it appears as shown below. Data Binary m1 00000001 01 m2 00011110 1E...
  • Page 39 Print high density graphics Function <ESC> "L" n1 n2 m1 m2 ... Code 1B 4C n1 n2 m1 m2 ... 1. Prints bit images using 1 dot horizontally and 3 dots Remarks 2. Bit images are 24 dots vertically and n1 + n2 x 256 3.
  • Page 40 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)H. If the data m1 ~ m30 is converted to hexadecimal, it appears as shown below. Data Binary m1 00000001 01 m2 00011110 1E...
  • Page 41 Print fine density graphics Function <ESC> "k" n <0> d1 ... dk [k = n * 24] Code 1B 6B n 00 d1 ... dk [k = n * 24] 1. Prints bit images using 1 horizontal dot and 1 vertical Remarks 2.
  • Page 42: Image Data

    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 – 39 – Image data b7 b6 b5 b4 b3 b2 b1 b0 2n+2 3n+2 4n+2...
  • Page 43 EXAMPLE Printing Sample 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 – 40 – Hexa- Data Binary decimal 00000000 11111000 11111100...
  • Page 44 Print fine density graphics Function <ESC> “X” n 1 n 2 d1...d [(n1+n2*256)*3] Code 1B 58 n 1 n 2 d1...d [(n1+n2*256)*3] 1. Prints a bit image of the input data using horizontal Remarks 2. Data extending past the right margin is ignored. 3.
  • Page 45 Function Print NV bit image Code <ESC> <FS> "p" n m 1B 1C 70 n m Remarks 1) Prints NV bit image n using the m mode. 0, 48 1, 49 2, 50 3, 51 2) n specifies the NV bit image number. 3) m specifies the bit image mode.
  • Page 46 1B 1C 7 1 n [xL xH yL yH d1 to dk]1 to [xL xH yL yH d1 to dk]n Definition range k = (xL + xH All definition ranges = 1M bit (128 KB)--- TSP2000 Remarks 1) Defines specified NV bit image. 2) n specifies the number of NV bit images to define.
  • Page 47 NV bit image print command (ESC FS p). 11) Defined data of one NV bit image is configured by [xL, xH, yL, yH d1 ... dk]. 12) TSP2000: The maximum 1M bit of the definition range on this printer is 128KB.
  • Page 48 2 5 6 ) 8 d o t s 1 9 2 (Example: xL=64, xH=0, yL=96, yH=0) 16) TSP2000: Executing this command will initialize the system. (Ini- tialized to the state when the power is turned ON.) TSP552/552II: Executing this command will not be initialize the system.
  • Page 49 Commands to Print Download Characters Function Define download character Code <ESC> "&" <1> <1> n m1 m2 ... m48 1B 26 01 01 n Code <ESC> "&" "1" "1" 1B 26 31 31 n Remarks Defines one new character and stores it in RAM for later use. n is the character code of the character defined and must be between 32 and 127.
  • Page 50 Hexa- Data Binary decimal 00011000 00111000 01111000 00011000 00011000 00011000 00011000 00011001 00011011 00000110 00001100 00011011 00110111 01100110 00000000 00000000 00000001 00000011 00000111 00000111 00000000 00000000 00000000 00000000 – 47 – Hexa- Data Binary decimal 00000000 00000000 00000000 00000000 00000000 01100000 11000000 10000000...
  • Page 51 Delete a download character Function <ESC> "&" "1" "0" n Code 1B 26 31 30 n Remarks Function Enable download character set <ESC> "%" "1" Code 1B 25 31 Remarks Function Disable download character set Code <ESC> "%" "0" 1B 25 30 Remarks Disables the selected download character set and returns to the built-in ROM character set.
  • Page 52 4. The defined download characters are cleared under the following conditions. a. The printer initialization (ESC @). b. The printer data is cancelled and the command is initialized (CAN). c. The printer is reset (ESC ? LF NULL). d. The printer is reset (ESC ? @ LF NULL).
  • Page 53 Printing of download bit image Function <ESC> <GS> "/" m Code 1B 1D 2F 6D Remarks 1. This command is ignored if the download bit image 2. This is valid only if there is data in the print buffer. 3. Print modes other than upside down printing (bold 4.
  • Page 54 Commands to Control Peripheral Devices Function Define drive pulse width for peripheral device #1 Code <ESC> <BEL> n1 n2 1B 07 n1 n2 Remarks 1. Sets the energizing time for drive of the peripheral 2. Energizing time is n1 x 10 (ms); Delay time is n2 x 10 3.
  • Page 55 1 (ESC BEL n1 n2 ). peripheral device #1 (BEL). a. The printer will execute this command when it has been received, while the Control peripheral device #1 (BEL) stores the command in the data buffer just as it does with other control codes and executes them in the order they were received.
  • Page 56 Function Control peripheral device #2 immediately Code <SUB> Remarks 1. Drives peripheral device 2. 2. Energizing time is 200 (ms); Delay time is 200 (ms). 3. This command is executed as soon as it is received. 4. This is not executed until the drive for peripheral Commands to Control Auto Cutter Function Partial-cut command to the auto cutter.
  • Page 57: Other Commands

    5. If this command is received while printing, the data 6. Setting values for enabling and disabling the Panel 7. If the printer has been deselected by DC3, it will not 8. Data received after the CAN code is not cleared.
  • Page 58 This code selects the printer. Function Beep the printer Code <RS> Remarks This makes a short warning beep from the printer. There is not buzzer on this printer so this code is ignored. Function Initialize printer Code <ESC> "@" 1B 40 Remarks 1.
  • Page 59 3. The printer is initialized after printing the data in the Function Enquiry (Status inquiry) Code <ENQ> Remarks 1. When On-line, the printer sends the status information 2. When Off-line, only the following status information is 3. The following shows the types of status errors.
  • Page 60 1. This code is processed in real-time upon its reception 2. The following are causes of mechanical errors. 3. The buffer is empty when there is no data to be printed Function Near end status inquiry Code <EOT> Remarks 1. The following shows the status information. 2.
  • Page 61 Reset printer hardware (Perform test print) Code <ESC> "?" <LF> <NUL> 1B 3F 0A 00 Remarks 1. This resets the printer and executes a test print. 2. After the test print, the position where the print Function Registers a logo pattern Code <ESC>...
  • Page 62 5. When the starting block (n1) > stopping block (n2), this ignored. follow any particular order. a. Printer initialization (ESC @). b. Print data cancel and command initialization (CAN). c. Printer reset (ESC ? LF NULL). Block No. 1 Block No. N-1 Block No. N command is ignored.
  • Page 63: Esc/Pos Mode Command Summary

    Print line feed Carriage return 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 64 Print download bit image Start/finish macro definition Designate/cancel reverse printing Select print speed and head energizing time 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 65: Character Code Tables

    4. Character Code Tables Star Mode Page 0 ( Normal ) – 62 –...
  • Page 66: Star Mode

    Star Mode Page 0 ( Normal ) – 63 –...
  • Page 67 Star Mode Page 1 ( PC437 ) and Page 3 ( PC437 ) Note: Other characters are the same as those for Character table: Page 0 (Normal). – 64 –...
  • Page 68 Star Mode Page 2 ( Katakana ) Note: Other characters are the same as those for Character table: Page 0 (Normal). – 65 –...
  • Page 69 Star Mode Page 4 ( PC858 ) Multi-lingual Page 6 ( PC860 ) Portuguese Note: Other characters are the same as those for Character table: Page 0 (Normal). Page 5 ( PC852 ) Latin-2 Page 7 ( PC861 ) Icelandic –...
  • Page 70 Page 8 ( PC863 ) Canadian French Page 10 ( PC866 ) Russian Note: Other characters are the same as those for Character table: Page 0 (Normal). Page 9 ( PC865 ) Nordic – 67 –...
  • Page 71 Star Mode International Character Set – 68 –...
  • Page 72 ESC/POS Mode Page 0 ( PC437 ) – 69 –...
  • Page 73 ESC/POS Mode Page 0 ( PC437 ) – 70 –...
  • Page 74 ESC/POS Mode Page 1 ( Katakana ) Note: Other characters are the same as those for Page 0. – 71 –...
  • Page 75 ESC/POS Mode Page 2 ( PC850: Multilingual ) Note: Other characters are the same as those for Page 0. – 72 –...
  • Page 76 ESC/POS Mode Page 3 ( PC860: Portuguese ) Note: Other characters are the same as those for Page 0. – 73 –...
  • Page 77 ESC/POS Mode Page 4 ( PC863: Canadian-French ) Note: Other characters are the same as those for Page 0. – 74 –...
  • Page 78 ESC/POS Mode Page 5 ( PC865: Nordic ) Note: Other characters are the same as those for Page 0. – 75 –...
  • Page 79 ESC/POS Mode Page 255 ( Space Page ) Note: Other characters are the same as those for Page 0. – 76 –...
  • Page 80 ESC/POS Mode International Character Set – 77 –...
  • Page 81: Please Access The Following Url Http://Www.star-Micronics.co.jp/Service/Sp_Sup_E.htm

    HEAD OFFICE STAR MICRONICS CO., LTD. 536 Nanatsushinnya, Shimizu, Shizuoka 424-0066 Japan Tel: 0543-47-0112, Fax: 0543-48-5271 Please access the following URL http://www.star-micronics.co.jp/service/sp_sup_e.htm for the lastest revision of the manual. OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 1150 King Georges Post Road Edison, New Jersey 08837-3729 U.S.A...

This manual is also suitable for:

Tsp552Tsp552ii

Table of Contents