Line Thermal Printer

Command Emulator STAR Line Mode Command Specifications
Revision 0.01

Star Micronics Co., Ltd.

Special Products Division

1. Command Emulator 1-1) 1-2) 1-3) 2-1) 2-2) Table of Contents 2. STAR Line Mode Command List Command Details List of Compatible Models Command List List of Compatible Models 2 6 13 6 2 3 5 .

< Applicable Models> • TSP00 • TSP700II  .This is the Command Emulator Command Specifications Manual created based on Command Emulator dedicated commands and the Star Line Mode Command Specifications Manual. Information contained herein applies to the following models.

1. 1-1) Command List Name Set print region with in mm units Switch to country of destination Specify delimiter Commands ESC US A ESC US f ESC US p 2 . Command Emulator The commands outlined below are dedicated to the Command Emulator.

1-2) Command Details ESC US A [Name] [Code] Set print region with in mm units ASCII ESC : US A Hexadecimal B F 4 Decimal 27 31 65 n n n [Defined Area] [Initial Value] [Function] 0 ≤ n ≤ 255 Depends on Config setting Sets the printer region width to n mm. This sets the print region width when processing this command. (Returns to the Config set ting) Country of Destination SBCS Japan China Taiwan Korea n 0 ‚“0” 1 ‚“1” 2 ‚“2” 3 ‚“3” 4 ‚ “4” 3 . The print region width is set by left side alignment. (Returns to the Config setting) ESC US f [Name] [Code] Switch to country of destination ASCII ESC : US Hexadecimal B F ecimal 27 3 f 66 02 n n n [Defined Area] [Initial Value] [Function] 0≤n≤4 48 ≤ n ≤ 52 (“0” ≤ n ≤ “4”) Depends on Config setting Specifies country of destination. and unprinted data remaining in the expanded buffer is printed. ESC @ initialize this command setting. The left and right margin settings are initialized. ESC @. The print region width is set by left alignment so the horizontal tab positions are not initialized. and CAN initialize this command setting.

The default ANK pitch is switched by the memory switch writing command <ESC> <GS> #. See the specifications below. The plug-in finds these delimiters and executes a process. If the command emulator plug-in is not registered. these delimiters are ignored. Default ANK Pitch SBCS Japan China Taiwan Korea 12/15 dots 12/15 dots 13/15 dots 13/15 dots 13/15 dots International Characters De<ESC> “R” n fault USA Command Enabled Command Disabled Japan (Ignores 3 Bytes) USA USA Korea Command Enabled Command Enabled Command Disabled (Ignores 3 Bytes) Code Page Default Normal Normal (Katakana) Normal (Katakana) Normal (Katakana) Normal (Katakana) <ESC><GS> “t” n Command Enabled Command Disabled (Ignores 4 Bytes) Command Disabled (Ignores 4 Bytes) Command Disabled (Ignores 4 Bytes) Command Disabled (Ignores 4 Bytes) ESC US p [Name] [Code] Specify delimiter ASCII ESC : Hexadecimal B Decimal 27 0≤n≤3 48 ≤ n ≤ 51 (“0” ≤ n ≤ “3”) ――― Specifies delimiter. Content Top of document Top of page Bottom of page Bottom of document US F 31 p 70 112 n n n [Defined Area] [Initial Value] [Function] n 0 ‚“0” 1 ‚“1” 2 ‚“2” 3 ‚“3” This command determines the printing job data boundary for the command emulator plug-in. 4 .Only in STAR Line Mode.

1-3) List of Compatible Models Class Commands TSP100 TSP700II ○ ○ ○ Model Name Command Emulator Special Commands ESC US A ESC US f ESC US p ○ ○ ○ 5 .

• Font Style and Character Set Commands ESC RS F ESC GS t ESC GS = ESC R ESC / ESC SP ESC M ESC P ESC : ESC g Difference to F/W Specifications (When applicable) Select font Specify code page Write blank code page data Specify international character set Specify/cancel slash zero Set ANK right space Specify ANK 12 dot pitch Specify ANK 15 dot pitch Specify ANK 16 dot pitch Specify ANK 14 dot pitch 4 bytes ignored IBM block uses vertical 24 dot fonts (for ESC/POS) * • Character Expansion Settings Commands ESC i ESC W ESC h SO DC4 ESC SO ESC DC4 Difference to F/W Specifications (When applicable) Set/cancel the double wide/high printing Set/cancel the double wide printing Set/cancel the double high printing Set double wide printing Cancel double wide printing Set printing vertical double high characters Cancel printing magnified character height • Print Modes Commands ESC E ESC F ESC ESC _ ESC 4 ESC 5 SI DC2 Difference to F/W Specifications (When applicable) Select emphasized printing Cancel emphasized printing Select/cancels underline mode Select/cancels upperline mode Selects white/black inverted printing Cancel white/black inverted printing Selects upside-down printing Cancel upside-down printing • Line Spacing Commands LF CR ESC a ESC z ESC 0 ESC J ESC I Difference to F/W Specifications (When applicable) Line feed Carriage return (same as line feed) Feed paper n lines Select line feed amount Specify line feed to 3 mm n/4 mm line feed n/8mm line feed 6 . STAR Line Mode 2-1) Command List • Refer to the Star Line Mode Command Specifications for details of the commands.2.

• Page Control Commands FF ESC C ESC C 0 VT ESC B Difference to F/W Specifications (When applicable) Form feed Set page length to n lines Set page length in 24 mm units Feed paper to vertical table position Set vertical tab position 7 .

• Logos Commands ESC FS q ESC FS p Register logo data Print logo data Difference to F/W Specifications (When applicable) * Registration size up to 65535 x 65535 (normally 1023 x 288) • Bar Codes Commands ESC b Difference to F/W Specifications (When applicable) Print bar code • Cutter Control Commands ESC d Difference to F/W Specifications (When applicable) Paper cut instruction • External Device Drive Commands ESC BEL BEL FS SUB EM ESC GS BEL Difference to F/W Specifications (When applicable) Set pulse width for external device drive External device 1 drive instruction External device 1 drive instruction External device 2 drive instruction External device 2 drive instruction Ring buzzer • Print Setting Commands ESC RS d ESC RS r Difference to F/W Specifications (When applicable) Set print density Set print speed 8 .• Horizontal Direction Position Commands ESC I ESC Q HT ESC D ESC GS A ESC GS R ESC GS a Set left margin Set right margin Move print position to horizontal tab position Set/cancel horizontal tab position Move absolute position Move relative position Specify position alignment Reference point is lefts edge of paper (same as TSP000) Difference to F/W Specifications (When applicable) Enabled only at top of line (Specification 2 of the Star Line Mode Command Specifications) Enabled only at top of line (Specification 2 of the Star Line Mode Command Specifications) • Download Commands ESC & ESC % Difference to F/W Specifications (When applicable) Register/delete download characters Set/cancel download characters • Bit Image Graphics Commands ESC K ESC L ESC k ESC X Standard density bit image High density bit image Fine bit image Fine bit image (wire dot conversion) Difference to F/W Specifications (When applicable) Prints only printable protion when counter exceeds print region.

1 byte ignored 4 bytes ignored • Chinese Characters Commands ESC p ESC q ESC $ ESC s ESC t ESC r Difference to F/W Specifications (When applicable) Set to JIS Chinese character mode Cancel JIS Chinese character mode Set/cancel JIS Chinese character mode Set two byte Chinese characters left/right spaces Set 1 byte Chinese characters left/right spaces Register Chinese download characters • Others Commands CAN ESC @ ESC GS # ESC ? Cancel print data and initialize commands Command initialization Set memory switch Reset printer Difference to F/W Specifications (When applicable) Does not clear reception buffer Not real-time command. ETB status Difference to F/W Specifications (When applicable) 4 bytes ignored When using a serial port emulator. operations are possible. *2 Only reset command (command for manufacturing unsupported) • Raster Commands ESC * r R ESC * r A ESC * r B ESC * r C ESC * r D ESC * r E ESC * r F ESC * r P ESC * r Q ESC * r m l ESC * r m r ESC * r T ESC * r K b n1 n2 d1 … dk k n1 n2 d1 … dk ESC * r Y ESC FF NUL ESC FF EOT Initialize raster mode Enter raster mode Quit raster mode Clear raster data Drawer drive Set EOT mode Set FF mode Set page length Set print quality Set left margin Set right margin Set top margin Set print color Transfer raster data (auto line feed) Transfer raster data Move vertical direction position (Line feed for specified dots) Execute form feed mode Execute EOT mode Difference to F/W Specifications (When applicable) 2 bytes ignored 2 bytes ignored 2 bytes ignored 2 bytes ignored 2 bytes ignored 2 bytes ignored 2 bytes ignored 2 bytes ignored 2 bytes ignored 2 bytes ignored 2 bytes ignored 2 bytes ignored 2 bytes ignored Processes from top of data as ASCII data Processes from top of data as ASCII data 2 bytes ignored 2 bytes ignored 2 bytes ignored  .• Status Commands ESC RS a ESC ACK SOH ENQ EOT ETB ESC RS E Set status transmission conditions Real-time printer status (ASB Status) Real-time printer status (1) Real-time printer status (2) Update of ETB status Clear ETB counter.

• Black Mark Commands ESC d FF ESC C ESC C 0 VT ESC B Difference to F/W Specifications (When applicable) Paper cut instruction Form feed Set page length to n lines Set page length in 24 mm units Feed paper to vertical table position Set vertical tab position Same as operations in normal mode • 2-Color Printing Commands ESC RS c ESC RS C ESC 4 ESC 5 ESC RS d ESC RS r ESC FS q ESC FS p Specify printing color in 2 color printing mode Select/cancel 2 color printing mode Specify white/black inversion and printing color red Specify white/black inversion and printing color black Set print density Set printing speed Register logo Print logo Difference to F/W Specifications (When applicable) * 0 .

• Presenter Commands ESC SYN 0 ESC SYN  ESC SYN 3 ESC SYN 4 Difference to F/W Specifications (When applicable) Execute presenter paper recovery Set presenter automatic recovery function and recovery time Acquire presenter paper counter Initialize presenter paper counter 2 bytes ignored • Mark Commands Commands ESC GS * 0 ESC GS * 1 ESC GS * 2 ESC GS * W ESC GS * C Difference to F/W Specifications (When applicable) Print mark Specify mark height and line feed amount Specify mark color and horizontal width in each mark number Register mark format to non-volatile memory Initialize mark format from non-volatile memory 3 bytes ignored • Auto Logo Commands Commands ESC GS / W ESC GS / C ESC GS / 1 ESC GS / 2 ESC GS / 3 ESC GS / 4 ESC GS / 5 ESC GS / 6 Register Auto Logo setting to non-volatile memory Initialize Auto Logo setting from non-volatile memory Set ON/OFF for Auto Logo function Set command characters Set user macro 1 Set user macro 2 Set command character switching method Set partial cut just prior to Auto Logo printing Difference to F/W Specifications (When applicable) 3 bytes ignored • PDF417 Commands Commands ESC GS x S 0 ESC GS x S 1 ESC GS x S 2 ESC GS x S 3 ESC GS x D ESC GS x P ESC GS x I Set bar code size Set security level (ECC) Set module x direction size Set module aspect ratio Set bar code data Print bar code Get bar code expansion information Difference to F/W Specifications (When applicable) 3 bytes ignored • Print Start Trigger Control Commands Commands ESC GS g 0 ESC GS g 1 Print starting trigger Set print start timer Difference to F/W Specifications (When applicable) 3 bytes ignored 3 bytes ignored  .

2 . TSP700II: Set only on Command Emulator memory. Blank Code Page Registration Commands TSP100: Write to xml file. data is erased. Not written to printer. (No self-print) Not written to printer. setting is erased. (<ESC> @ operation + clear external character registration) TSP700II: Register only on Command Emulator memory. After registration: Settings on the Command Emulator are initialized to the xml file contents.• QR Code Commands Commands ESC GS y S 0 ESC GS y S 1 ESC GS y S 2 ESC GS y D 1 ESC GS y D 2 ESC GS y P ESC GS y I Difference to F/W Specifications (When applicable) Set model Set error correction level Set cell size Set data (auto) Set data (manual) Print QR code Get expansion information (bar code size) 4 bytes ignored *1 NV Logo. *2 Memory Switch Commands TSP100: Write to xml file. When PC power is turned off. but printer is reset. but printer is reset. When PC power is turned off.

2-2) List of Compatible Models Class Commands ESC RS F ESC GS t ESC GS = ESC R ESC / ESC SP ESC M ESC P ESC : ESC g ESC i ESC W ESC h SO DC4 ESC SO ESC DC4 ESC E ESC F ESC ESC _ ESC 4 ESC 5 SI DC2 LF CR ESC a ESC z ESC 0 ESC J ESC I FF ESC C ESC C 0 VT ESC B ESC I ESC Q HT ESC D ESC GS A ESC GS R ESC GS a ESC & ESC % Model Name TSP100 x ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ TSP700II x ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ Font Style and Character Set Character expansion settings Print modes Line spacing Page Control Horizontal Direction Position Download OK x : NG ○: 3 .

Class Bit Image Graphics Commands ESC K ESC L ESC k ESC X ESC FS q ESC FS p ESC b ESC d ESC BEL BEL FS SUB EM ESC GS BEL ESC RS d ESC RS r ESC RS a ESC ACK SOH ENQ EOT ETB ESC RS E ESC p ESC q ESC $ ESC s ESC t ESC r CAN ESC @ ESC GS # ESC ? ESC * r R ESC * r A ESC * r B ESC * r C ESC * r D ESC * r E ESC * r F ESC * r P ESC * r Q ESC * r m l ESC * r m r ESC * r T ESC * r K b n1 n2 d1 … dk k n1 n2 d1 … dk ESC * r Y ESC FF NUL ESC FF EOT Model Name TSP100 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ x ○ ○ ○ x x ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ x x x x x x x x x x x x x x x x x x TSP700II ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ x x ○ ○ x x ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ x x x x x x x x x x x x x x x x x x Logos Bar Codes Cutter control External Device Drive Print Setting Status Chinese Character Others Raster 4 .

Class Black mark related commands Commands ESC d FF ESC C ESC C 0 VT ESC B ESC RS c ESC RS C ESC 4 ESC 5 ESC RS d ESC RS r ESC FS q ESC FS p ESC SYN 0 ESC SYN  ESC SYN 3 ESC SYN 4 ESC GS * 0 ESC GS * 1 ESC GS * 2 ESC GS * W ESC GS * C ESC GS / W ESC GS / C ESC GS / 1 ESC GS / 2 ESC GS / 3 ESC GS / 4 ESC GS / 5 ESC GS / 6 ESC GS x S 0 ESC GS x S 1 ESC GS x S 2 ESC GS x S 3 ESC GS x D ESC GS x P ESC GS x I ESC GS g 0 ESC GS g 1 ESC GS y S 0 ESC GS y S 1 ESC GS y S 2 ESC GS y D 1 ESC GS y D 2 ESC GS y P ESC GS y I Model Name TSP100 x x x x x x ○ ○ ○ ○ ○ ○ ○ ○ x x x x x x x x x x x x x x x x x x x x x x x x x x ○ ○ ○ ○ ○ ○ x TSP700II x x x x x x ○ ○ ○ ○ ○ ○ ○ ○ x x x x x x x x x x x x x x x x x x x x x x x x x x ○ ○ ○ ○ ○ ○ x 2-Color Printing Presenter Mark Commands Auto Logo Commands PDF417 Commands Print Start Trigger Control QR Code 5 .

SPECIAL PRODUCTS DIVISION STAR MICRONICS CO.. 424-0066 Japan Tel : 0543-347-022 Fax : 0543-348-503 OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA.co. Gomm Road. Bucks.starmicronics.uk Please access the following URL http://www.06.jp/eng/dl/dl02. 1150 King Georges Post Road. 536 Nanatsushinya. Star House. U. Tel : 044-47 Fax : 044-473333 http://www. Shimizu-ku. NJ 08837-3729 U.01 2007.S. HP13 7DL. High Wycombe.04 Printed in Japan. Edison. Tel : 732-623-5555 Fax : 732-623-550 http://www. Shizuoka. INC.starmicronics.star-m.htm for the lastest revision of the manual. 0. LTD.K.com STAR MICRONICS U.K. Peregrine Business Park. LTD.A. 80874995 . Distributed by Rev.

Sign up to vote on this title
UsefulNot useful