Star Micronics TSP700 Series Programmer's Manual

Star Micronics TSP700 Series Programmer's Manual

Hide thumbs Also See for TSP700 Series:

Advertisement

Thermal Printer
TSP700 Series
TSP800 Series
Programmer's Manual

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TSP700 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Star Micronics TSP700 Series

  • Page 1 Thermal Printer TSP700 Series TSP800 Series Programmer’s Manual...
  • Page 2 However, should any errors be detected, STAR would greatly appreciate being informed of them. • The above notwithstanding, STAR can assume no responsibility for any errors in this manual. © Copyright 2000 Star Micronics Co., LTD.
  • Page 3: Table Of Contents

    TABLE OF CONTENTS 1. OUTLINE .................... 1 2. STAR LINE MODE ................2 2-1. Command Summary ..............2 2-2. Command Specification ............... 6 3. STAR PAGE MODE (TSP800 Only) ..........45 3-1. Command Summary ..............45 3-2. Command Specification ............. 47 4.
  • Page 4: Outline

    1. OUTLINE 1-1. TSP700 Series The details of each command are shown in the following sections. The printer has two different software modes (STAR Line mode and ESC/POS mode ) which can be selected using the DIP switch. (Factory setting: STAR Line mode)
  • Page 5: Star Line Mode

    2. STAR LINE MODE 2-1. Command Summary The details of each command are shown in the following sections. Commands to Select Characters Hexadecimal Control codes Function Page codes <ESC> “R” n 1B 52 n Select international character set <ESC> “/” “1” 1B 2F 31 Select slash zero <ESC>...
  • Page 6 Hexadecimal Control codes Function Page codes <ESC> “4” 1B 34 Select highlight printing <ESC> “5” 1B 35 Cancel highlight printing <SI> Inverted printing <DC2> Cancel inverted printing <ESC> “E” 1B 45 Select emphasized printing <ESC> “F” 1B 46 Cancel emphasized printing <ESC><GS>...
  • Page 7 Commands to Print Dot Graphics Hexadecimal Control codes Function Page codes <ESC> “K” n <0> 1B 4B n 00 m1 m2 Print normal density graphics m1 m2 ... <ESC> “L” n1 n2 1B 4C n1 n2 m1 m2 Print high density graphics m1 m2 ...
  • Page 8 Other Commands Hexadecimal Control codes Function Page codes <CAN> Cancel last line & Initialize printer <ESC> “#N, n1 n2 n3 n4” 1B 23 N 2C n1 n2 n3 n4 Set memory switch <LF> <NUL> 0A 00 <ESC> “@” 1B 40 Initialize printer <ENQ>...
  • Page 9: Command Specification

    2-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: Character set Character set U.S.A. Japan France Norway Germany Denmark II England Spain II Denmark I...
  • Page 10 Select bar code printing FUNCTION CODE <ESC> “b” dk <RS> dk 1E 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 1(00H) or 8(08H) or “1”(30H) to “8”(38H).
  • Page 11 CODE 39, NW-7, ITF CODE 39, NW-7 Narrow : wide 2:6 dots 2:5 dots Narrow : wide 3:9 dots 4:10 dots Narrow : wide 4:12 dots 6:15 dots Narrow : wide 2:5 dots 2:4 dots Narrow : wide 3:8 dots 4:8 dots Narrow : wide 4:10 dots...
  • Page 12 CODE39: The value of k is optional, and the maximum value also differs according to the modes (21 digits maximum in mode 7). The start/stop code (“ ”) is automatically added. ITF: The value of k is optional, and the maximum value also differs according to the modes (40 digits maximum in mode 4).
  • Page 13 Express “% (25H)” as “%0 (25H30H)”. Add “40H - 5FH” after “%” for the control codes (00H - 1FH). Express the control code (7FH) as “%5(25H35H)”. Add “1 - 4 (31H - 34H)” after “%” for the function code. Add “6 - 8 (36H - 38H)” after “%” for the start code. 3) 2-character codes Control codes Special code...
  • Page 14 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 15 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 16 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 Character height Unmagnify Quadruple Double Quintuple Triple Sextuple The value of n can be set to 0(00H) to 5(05H) or “0”(30H) to “5”(35H).
  • Page 17: Select Highlight Printing

    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 18: Select Emphasized Printing

    Select emphasized printing FUNCTION <ESC> “E” CODE Causes subsequent characters to be emphasized. REMARKS Cancel emphasized printing FUNCTION CODE <ESC> “F” Cancels emphasized printing. REMARKS Select character code table FUNCTION CODE <ESC> <GS> “t” n 1D 74 n Selects code page according to the value of n, as shown below: REMARKS n (Hex) Character Table...
  • Page 19: Set Page Length In Lines

    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 20: Cancel Bottom Margin

    Cancel bottom margin FUNCTION <ESC> “O” CODE Cancels the bottom margin. REMARKS Invalid when start position detect is ON. 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.
  • Page 21: Line Feed

    Commands to Move the Print Position Line feed FUNCTION CODE <LF> Prints the current line and feeds the paper to the next line. REMARKS If there is no data to print, only line feed is performed. Carriage return FUNCTION CODE <CR>...
  • Page 22: Vertical Tab

    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. If no vertical tabs are set, this command is ignored. Performs a line feed if the current line is at or below the last vertical tab stop.
  • Page 23: One Time N/8 Mm Feed

    One time n/8 mm feed FUNCTION CODE <ESC> “I” Performs a line feed n/8mm once only. REMARKS The value of n is 1 to 255. Space setting for lines is not changed. Set vertical tab stops FUNCTION CODE <ESC> “B” <0>...
  • Page 24: Absolute Position Setting

    Absolute position setting FUNCTION CODE <ESC> <GS> “A” Sets the absolute position based on the left margin position for REMARKS starting the next printing. 0 n1, n2 The start of the next printing is the (n1 + n2 × 256 dot) position from the left margin position.
  • Page 25: Alignment

    Alignment FUNCTION CODE <ESC> <GS> “a” n = 0 Initial Value Lines up all print data in one line to the specified position. REMARKS Alignment positions are shown below. Alignment Position Left Center Right The value of n can be set to 0 (00H) to 2 (02H) or "0" (30H) to "2"(32H).
  • Page 26 Commands to Print Dot Graphics Print normal density graphics FUNCTION <ESC> “K” <0> CODE Prints normal density dot graphics. The graphics image is 24 dots high and n × 3 dots wide. 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 27 We will create the design below using a bit image. EXAMPLE m1 m2 m3 m4 m5 m6 m7 m8 m9 m10 m11 m12 m13 m14 m15 m16 m17 m18 m19 m20 m21 m22 m23 m24 m25 m26 m27 m28 m29 m30 First, since the volume of data is 30, n1 = (1E) .
  • Page 28 Print high density graphics FUNCTION CODE <ESC> “L” Prints high density dot graphics. The graphics image is 24 dots REMARKS high and n1 + n2 × 256 dots wide. 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 29 We will create the design below using a bit image. EXAMPLE m1 m2 m3 m4 m5 m6 m7 m8 m9 m10 m11 m12 m13 m14 m15 m16 m17 m18 m19 m20 m21 m22 m23 m24 m25 m26 m27 m28 m29 m30 First, since the volume of data is 30, n1 = (1E) .
  • Page 30 Relationship between image data and print dots Image data b7 b6 b5 b4 b3 b2 b1 b0 Dot position • • • • • • • • • 2n+1 2n+2 • • • 3n+1 3n+2 • • • 4n+1 4n+2 •...
  • Page 31 Printing Sample EXAMPLE LSB MSB Hexa- Hexa- Data Binary Data Binary decimal decimal 00000000 00000000 11111000 00011111 11111100 00111111 01110111 01110111 11111000 00011111 11111000 00011111 11111000 00011111 00001111 11110000 00011111 11111000 11111000 00011111 01111100 00111110 00011100 00111000 011111001 10011110 01110011 11001110 01110011 11001110...
  • Page 32 Print fine density graphics FUNCTION CODE <ESC> “X” d1...d [(n1+n2×256)×3] d1...d [(n1+n2×256)×3] 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 33 Define logo data FUNCTION CODE <ESC> <FS> “q” n [x11 x12 y11 y12 d [k1]] 1... [xn1 xn2 yn1 yn2 d[kn]]n n [x11 x12 y11 y12 d [k1]] 1... [xn1 xn2 yn1 yn2 d[kn]]n Define the logo data specified by n. REMARKS 1 n 255 The number of logo images to define is specified.
  • Page 34 xn = xn1 + xn2 × 256, yn = yn1 + yn2 × 256 (xn1 + xn2 × 256) × 8dot Data d [11] d [21] d [n1] (yn1 + yn2 × 256) bytes d [12] d [22] d [n2] (yn1 + yn2 ×...
  • Page 35 Print logo image FUNCTION <ESC> <FS> “p” CODE Prints the logo image n using the mode specified by m. REMARKS 1 n 255 Logo image number defined by the command <ESC> <FS> “q” is specified. 3 or “0” m “3” m = 0 or “0”...
  • Page 36 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 37 Hexa- Hexa- Data Binary Data Binary decimal decimal 00011000 00000000 00111000 00000000 01111000 00000000 00011000 00000000 00011000 00000000 01100000 00011000 11000000 00011000 00011001 10000000 00011011 00000000 00000110 00000000 00001100 00000000 00011011 11000000 00110111 11100000 01100110 01100000 01100000 00000000 11000000 00000000 00000001 10000000 00000011...
  • Page 38 Commands to Control Peripheral Devices Define drive pulse width for peripheral device 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 39 Commands to Control Auto Cutter Cut command to the auto cutter FUNCTION CODE <ESC> “d” n = “0” or <0> : Cuts the paper fully immediately. REMARKS n = “1” or <1> : Cuts the paper leaving one point uncut immedi- ately.
  • Page 40 Other Commands Cancel last line & Initialize printer FUNCTION CODE <CAN> Clears the line buffer, and initializes the commands set already. REMARKS Does not affect the external equipment drive conditions set by the code <ESC> <BEL> n1 n2. (This is the same during a mechanical error.) Set memory switch FUNCTION...
  • Page 41 2) Use N=3 for folloing settings n1 :Character table n2 :Character table n3 :Print column n4 :Line feed, CR code Setting Character table See the table 1 (Nest page) Print colum 69 (TSP800) 55 (TSP800) – – 33/35/48/53 27/28/38/42 (TSP700) (TSP700) Line feed (mm) CR code...
  • Page 42 Table 1 MSW3-E MSW3-D MSW3-C MSW3-B MSW3-A MSW3-9 MSW3-8 Character Table Normal* CodePage 437 (USA, Std.Europe) Katakana CodePage 437 (USA, Std. Europe) Codepage 858 (Multilingual) Codepage 852 (Latin-2) Codepage 860 (Portuguese) Codepage 861 (Icelandic) Codepage 863 (Canadian French) Codepage 865 (Nordic) Codepage 866 (Cyrillic Russian) Codepage 855 (Cyrillic Bulgarian) Codepage 857 (Turkish)
  • Page 43: Initialize Printer

    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. Request status FUNCTION CODE <ENQ> Causes the printer to transmit a status byte.
  • Page 44 Request Status FUNCTION CODE <EOT> Causes the printer to transmit a status byte. REMARKS Status byte Constantly set at 0 Constantly set at 1 Constantly set at 0 Near-end sensor 1: Near-end Paper empty 1 : empty Near-end sensor 1: Near-end Constantly set at 0 Constantly...
  • Page 45 Number of transmit byte n Header #1 00001111B (0F Hex) 00100001B (21 Hex) 00100011B (23 Hex) 00100101B (25 Hex) 00100111B (27 Hex) 00101001B (29 Hex) 00101011B (2B Hex) 00101101B (2D Hex) 00101111B (2F Hex) Header #2 (2nd byte ) Contents Always“0”...
  • Page 46 Printer status #1 (3rd byte ) Contents Always“0” <ETB> command Unexecuted Executed Compulsion switch Open Close ON Line / OFF Line ON Line OFF Line Always“0” Cover open Close Open Invalid Always“0” Printer status #2 (4th byte ) Contents Always“0” Invalid Mechanical error No error...
  • Page 47 Printer status #4 (6th byte ) Contents Always“0” Invalid Near-end Near-end Paper empty Empty Always“0” Invalid Invalid Always“0” Printer status #5 (7th byte ) Contents Always“0” Invalid Invalid Invalid Always“0” Invalid Invalid Always“0” Set status transmission condition FUNCTION <ESC> <RS> “a” CODE Status transmission condition is set according to the value of n.
  • Page 48: Star Page Mode (Tsp800 Only)

    3. STAR PAGE MODE (TSP800 ONLY) 3-1. 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 Hexadecimal codes...
  • Page 49 Other commands Control codes Hexadecimal codes Function Pages <ESC> “I” <LF> <NUL> 1B 49 0A 00 Print Label <ESC> “W s1s2s3s4, 1B 57 s1s2s3s4 2C Print Label h1h2h3h4” <LF> <NUL> h1h2h3h4 0A 00 <ESC> “B d n1n2” <LF> 1B 42 d n1n2 0A Enable cutter <NUL>...
  • Page 50: Command Specification

    3-2. Command Specification Format Definition Clear format FUNCTION CODE <ESC> “C” <LF><NUL> 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. <ESC> “D” <ESC> “E” <ESC>...
  • Page 51 Define ruled line format FUNCTION CODE <ESC> “L n1n2 ; x1x2x3x4 , y1y2y3y4 , x5x6x7x8 , 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)
  • Page 52 Define character string format FUNCTION CODE <ESC> “P n1n2 ; x1x2x3x4 , y1y2y3y4 r1r2 d1d2” <LF> <NUL> n1n2 3B x1x2x3x4 2C y1y2y3y4 r1r2 2C d1d2 This command defines start position and type of character string. REMARKS n1n2 : Character string number(00 to 99) x1x2x3x4 : Print start position in the X direction (0000 to 1040 ×...
  • Page 53 Character rotation and character string rotation 1) Charcter rotation only(no character string rotaion) r1=2(180°) r1=3(270°) Start position r2=0( 0°) r2=0( 0°) A B C r1=0(0°) r1=1(90°) r2=0(0°) r2=0( 0°) Start position 2) Charcter string rotation only(no character rotaion) A B C C B A r1=0( 0°)
  • Page 54 Define bar code format FUNCTION CODE <ESC> “P n1n2 x1x2x3x4 y1y2y3y4 , h1h2h3h4”<LF><NUL> n1n2 3B x1x2x3x4 2C y1y2y3y4 2C h1h2h3h4 0A This command defines start position and type of bar code string. REMARKS n1n2 : Bar code string number (00 to 31) x1x2x3x4 : Print start position in the X direction (0000 to 1040 ×...
  • Page 55 Bar code rotation Start position Start position 90° 180° 270° 0° Define character pitch FUNCTION CODE <ESC> “Y d1d2” <LF><NUL> d1d2 0A 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 characters.
  • Page 56 Print Data Settings Set character string data FUNCTION <ESC> “R n1n2 ;a1a2.…an” <LF><NUL> CODE n1n2 3Ba1a2.…an This command sets character strings defined by the <ESC> REMARKS “PC”. n1n2 : Two digit reference number of character string whose print position and type are previously defined with <ESC>...
  • Page 57 Set bar code data FUNCTION CODE <ESC> “R n1n2 ; a1a2.…an”<LF> <NUL> n1n2 3B a1a2.…an 0A This command defines the bar code data to be printed. REMARKS n1n2 : Two digits reference number of defined bar code whose print position and type are previously defined with <ESC>“PB”.
  • Page 58 Store dot graphic data into image memory FUNCTION CODE <ESC> “Q x1x2x3x4 y1y2y3y4 h1h2h3h4 , w1w2w3 ,n11n12n13n.…n1k <LF>.…nm1nm2.…nmk” <LF> <NUL> x1x2x3x4 2C y1y2y3y4 2C h1h2h3h4 2C w1w2w3 2Cn11n12n13n.…n1k <LF>.…nm1nm2.…nmk” This command stores graphic data into image memory. REMARKS : “;” : OR mode “:”...
  • Page 59 Copy BMP file to printer FUNCTION CODE <ESC> “H x1x2x3x4 y1y2y3y4 (BMP file data) ,” <LF> <NUL> x1x2x3x4 2C y1y2y3y4 2C (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.
  • Page 60 Call download character FUNCTION CODE <ESC> “G n1n2 n3n4 ” <ESC> “0” n1n2 2C n3n4 This command calls download character. REMARKS n1n2,n3n4 : Reference numbers of defined download characters(00 to 31). Only standard size characters (16 (W) × 24 (H) dots) can Note : be defined as download characters.
  • Page 61 Other commands Print Label FUNCTION <ESC> “I” <LF><NUL> CODE This command prints out one label according to the previously REMARKS defined format and data. When print start position detect is ON, the paper will be fed to the next print start position after printing. If unrecoverable error occurs during printing, a series of these operation will be repeated after the printer recovers from the error condition.
  • Page 62 Enable cutter FUNCTION CODE <ESC> “B n1n2” <LF><NUL> n1n2 0A This command defines cut position and enables cutter. This REMARKS command does not energize cutter. Cutter will be operated only when receiving<ESC> “I” com- mand. : “+” or “-” indicates the direction of the cut position from the normal position.
  • Page 63 (Default) Parameter Setting Always “0” Start-position detect Normal zero Slashed zero Zero style See below International character set n4 Country n4 Country n4 Country n4 Country Itary Norway France Denmark #1 Spain #1 A Denmark #2 Germany Sweden Japan B Spain #2 n4 Country C Latin America Reset printer...
  • Page 64 Request status FUNCTION CODE <ENQ> When the printer receives this command, the printer sends back a REMARKS status byte for the current printer condition immediately to the host. Note: Printer conditions are reported by the following status bytes: Status byte Constantly set at 0 Vertical Parity error...
  • Page 65 Request status FUNCTION CODE <EOT> When the printer receives this command, the printer sends back a REMARKS status byte for the current printer condition immediately to the host. Note: Printer conditions are reported by the following status bytes: Status byte Constantly set at 0 Constantly...
  • Page 66 Header #1 (1st byte ) Contents Always“1” Number of printer status byte Always“0” Number of printer status byte Always“0” Always“0” Number of transmit byte n Header #1 00001111B (0F Hex) 00100001B (21 Hex) 00100011B (23 Hex) 00100101B (25 Hex) 00100111B (27 Hex) 00101001B (29 Hex) 00101011B (2B Hex) 00101101B (2D Hex)
  • Page 67 Header #2 Version No. n 00000010B (02 Hex) 00000100B (04 Hex) 00000110B (06 Hex) 00001000B (08 Hex) 00001010B (0A Hex) 00001100B (0C Hex) 00001110B (0E Hex) 00100000B (20 Hex) 00100010B (22 Hex) 00100100B (24 Hex) 01000000B (40 Hex) 01101100B (6C Hex) 01101110B (6E Hex) Printer status #1 (3rd byte )
  • Page 68 Printer status #3 (5th byte ) Contents Always“0” Invalid Invalid Invalid Always“0” Invalid Buffer overflow Overflow Always“0” Printer status #4 (6th byte ) Contents Always“0” Invalid Near-end Near-end Paper empty Empty Always“0” Invalid Invalid Always“0” Printer status #5 (7th byte ) Contents Always“0”...
  • Page 69 Set status transmission condition FUNCTION CODE <ESC> <RS> “a” This command sets the status transmission condition. REMARKS n = “0” or <0> : ASB is invalid n = “1” or <1> : ASB is valid Select international character set FUNCTION CODE <ESC>...
  • Page 70 Register download character FUNCTION CODE <ESC> “F n1n2 ; d1.…d48” <LF><NUL> n1n2 3B d1.…d48 This command defines one download character. REMARKS n1n2 : Download character reference number.(00 to 31). d1.…d48 : Character bit map data. Only standard size character (16 (W) × 24 (H) dots) Note: can be defined as download characters.
  • Page 71: Dp8340 Mode (Tsp800 Only)

    4. DP8340 MODE (TSP800 ONLY) 4-1. Command Summary Hexadecimal Control codes Function Page codes <LF> Print and line feed instruction <CR> Print and line feed instruction (Same as LF) <SO> Expanded character instruction <DC4> Expanded character release <ESC> “ – ” “1” 1B 2D 31 Underline isrtruction <ESC>...
  • Page 72: Command Specification

    4-2. Command Specification CODE (0A) Print and line feed instruction FUNCTION The LF code causes the data in the line buffer to be printed, OUTLINE followed by a single line feed. When the line buffer is empty, only the feed takes place. CODE (0D) Print and line feed instruction...
  • Page 73 CODE (0F) FUNCTION Inverted print instruction This function causes the printing to be inverted. This code OUTLINE must be received at the beginning of a line. If this code is received anywhere other than at the beginning of a line, it is disregarded.
  • Page 74 ESC R n CODE (1B) (52) International character set selection FUNCTION Selects an international character set according to the value of OUTLINE n, as shown bolow: n : Character set Character set 0 : U.S.A. Japan 1 : France Norway 2 : Germany 10 : Denmark II 3 : England...
  • Page 75 ESC N n CODE (1B) (4E) Sets bottom margin in lines FUNCTION Upon receiving this code, the bottom margin is set to n lines. OUTLINE 255; Default Value n = 0 ESC O CODE (1B) (4F) Cancels bottom margin. FUNCTION Upon input of this code, bottom margin setting is cleared.
  • Page 76 Executed by BEL code and FS code after printing. CODE (07) FUNCTION Trigger peripheral unit drive #1 Causes a peripheral drive pulse to be generated. This code is OUTLINE normally stored in the buffer and is performed as it is received from the data queue.
  • Page 77: Esc/Pos Mode Command Summary (Tsp700 Only)

    5 : ESC/POS Mode Command Summary (TSP700 ONLY) Control Code Hexadecimal Code Function Horizontal tab Print line feed Carriage return Page mode print and return DLE EOT Real time transmission of status DLE ENQ Real time request to printer DLE DC4 Generate pulse at real time Cancel print data in page mode ESC FF...
  • Page 78 Control Code Hexadecimal Code Function ESC p Designate pulse generation ESC t Select character code table ESC { Designate/cancel inverted printing FS g 1 Write to user NV memory FS g 2 Read from user NV memory FS p 1C Print NV bit image FS q n Define NV bit image...
  • Page 79: Appendix 1 : How To Set Various Bar Codes

    Appendix 1 : 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 80 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 81 (2) Interleaved 2 of 5 (ITF) This code can represent numeric characters from 0 to 9. This code can be used for an application that requires higher character density. JIS and EAN specify that this code be used for printing on corrugated boxes. 1) Width of narrow elements and length of two characters a) Horizontal printing Item...
  • Page 82 (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 3.375 character (mm) Note: The start and stop bars are not included. b) Vertical printing Item Mode 1 Mode 2 Mode 3...
  • Page 83 (4) UPC (5) JAN/EAN-8 (6) JAN/EAN-13 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 Mode 2 Mode 3 Module width 2 dots 3 dots 4 dots...
  • Page 84 EXAMPLE Bar code string number 10, starting position of bar code (X, Y) = 5 mm, 10 mm, use Mode 1 of EAN-13, Bar code height 10 mm data:246801357956, bar code rotation direction 0 degree LPRINT CHR$(&H1B);“PB10;0050,0100,1,6,0,0100”; CHR$(&H0A);CHR$(&H00); LPRINT CHR$(&H1B);“RB10;246801357956”; CHR$(&H0A);CHR$(&H00);...
  • Page 85 3) 2-character set codes Control codes Special code Code Format Code Format 25H 40H 25H 30H 25H 41H 25H 42H Function codes 25H 43H Code Format 25H 44H FNC1 25H 31H 25H 45H FNC2 25H 32H 25H 46H FNC3 25H 33H 25H 47H FNC4 25H 34H...
  • Page 86 (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 87: Appendix 2 : Sensor Adjustment Mode

    Appendix 2 : Sensor adjustment mode (1) No paper / Black mark sensor adjustment Operation procedure 1) Select sensor adjustment mode with DIP switch setting. 2) Turn the power ON. 3) With the paper roll installed, turn and adjust VR2 until both POWER / ERROR LED light.
  • Page 88: Appendix 3 : Character Code Tables

    Appendix 3 : Character code tables A3-1. STAR Line Mode (Character table: Normal) Note: The (7F)H code is a space when neither normal nor katakana. – 85 –...
  • Page 89 STAR Line Mode (Character table: Normal) – 86 –...
  • Page 90 STAR Line Mode (Character table: Code page 437 ) Note: Other characters are the same as those for Character table: Normal. – 87 –...
  • Page 91 STAR Line Mode (Character table: Katakana) Note: Other characters are the same as those for Character table: Normal. – 88 –...
  • Page 92 STAR Line Mode Code Page #858 Code Page #852 Multi-lingual Latin-2 Code Page #860 Code Page #861 Portuguese Icelandic Note: Other characters are the same as those for Character table: Normal. – 89 –...
  • Page 93 STAR Line Mode Code Page #863 Code Page #865 Canadian French Nordic Code Page #866 Cyrillic Russian Note: Other characters are the same as those for Character table: Normal. – 90 –...
  • Page 94 STAR Line Mode Code Page #855 Code Page #857 Cyrillic Bulgarian Turkish 8 9 A B C D E F 8 9 A B C D E F Code Page #862 Code Page #864 Hebrew Arabic 8 9 A B C D E F 8 9 A B C D E F Note: Other characters are the same as those for Character table: Normal.
  • Page 95 STAR Line Mode Code Page #737 Code Page #851 Greek Greek Code Page #869 Code Page #928 Greek Greek Note: Other characters are the same as those for Character table: Normal. – 92 –...
  • Page 96 STAR Line Mode Code Page #772 Code Page #774 Lithuanian Lithuanian Note: Other characters are the same as those for Character table: Normal. – 93 –...
  • Page 97: Windows Cyrillic

    STAR Line Mode Code Page #874 Code Page #1250 Thai Windows Latin-2 8 9 A B C D E F 8 9 A B C D E F Code Page #1251 Code Page #1252 Windows Cyrillic Windows Latin-1 8 9 A B C D E F 8 9 A B C D E F Note: Other characters are the same as those for Character table: Normal.
  • Page 98 STAR Line Mode Code Page #3840 Code Page #3841 IBM-Russian Gost Code Page #3843 Code Page #3844 Polish Note: Other characters are the same as those for Character table: Normal. – 95 –...
  • Page 99 STAR Line Mode Code Page #3845 Code Page #3846 Hungarian Turkish Code Page #3847 Code Page #3848 Brazil-ABNT Brazil-ABICOMP Note: Other characters are the same as those for Character table: Normal. – 96 –...
  • Page 100 STAR Line Mode Code Page #1001 Code Page #2001 Arabic Lithuanian-KBL Code Page #3001 Code Page #3002 Estonian-1 Estonian-2 Note: Other characters are the same as those for Character table: Normal. – 97 –...
  • Page 101 STAR Line Mode Code Page #3011 Code Page #3012 Latvian-1 Latvian-2 Note: Other characters are the same as those for Character table: Normal. Code Page #3021 Code Page #3041 Bulgarian Maltese Note: Other characters are the same as Note: Other characters are the same as those for Character table: Nor- those for Code Page #437.
  • Page 102 STAR Line Mode International Character Set The character codes shown in the table are hexadecimal. – 99 –...
  • Page 103: A3-2. Star Page Mode (Tsp800 Only)

    A3-2. STAR Page Mode – 100 –...
  • Page 104 STAR Page Mode (Character type: Small size or standard) – 101 –...
  • Page 105 STAR Page Mode (Character type: Boldface) – 102 –...
  • Page 106 STAR Page Mode International Character Set – 103 –...
  • Page 107: A3-3. Dp8340 Mode (Tsp800 Only)

    A3-3. DP8340 Mode (U.S.A. & Europe) – 104 –...
  • Page 108 – 105 –...
  • Page 109 DP8340 Mode (IBM Character Set #1) – 106 –...
  • Page 110 – 107 –...
  • Page 111 DP8340 Mode (IBM Character Set #2) – 108 –...
  • Page 112 – 109 –...
  • Page 113 DP8340 Mode (JAPAN) – 110 –...
  • Page 114 – 111 –...
  • Page 115 DP8340 Mode International Character Set – 112 –...
  • Page 116 OVERSEAS SUBSIDIARY COMPANIES ELECTRONIC PRODUCTS DIVISION STAR MICRONICS AMERICA, INC. STAR MICRONICS CO., LTD. 1150 King Georges Post Road, Edison, NJ 08837-3729 U.S.A. Nanatsushinnya, Shimizu, Shizuoka, Tel: 732-623-5555, Fax: 732-623-5590 424-0066 Japan Tel: 0543-47-0112, Fax: 0543-48-5013 STAR MICRONICS U.K. LTD.

This manual is also suitable for:

Tsp800 series

Table of Contents