GENERAL DESCRIPTION COMMAND FUNCTION LIST COMMAND DETAILS 3-1) Explanation of Terms 3-2) Exception processing 3-3) Standard Command Details 3-3-1) Font style and character set ESC RS F n ESC GS t n ESC GS = n1 n2 da1 da2 … dak db1 db2 … dbk ESC R n ESC / N ESC SP n...
Page 3
ESC D n1 n2 … nk NUL ESC D NUL ESC GS A n1 n2 ESC GS R n1 n2 ESC GS a n 3-3-7) Download ESC & c1 c2 n d1 . . . d48 ESC & c1 c2 n ESC &...
Page 4
APPENDIX 5-1) Appendix 1: Bar Code Specification Details <Thermal> 5-1-1) Code 39 5-1-2) Interleaved 2 of 5 5-1-3) JAN/EAN/UPC 5-1-4) Code 128 5-1-5) Code 93 5-1-6) NW7 (CODERBAR) 5-2) Appendix 2 – Status Specifications <Shared> 5-2-1) ENQ Command Status 5-2-2) EOT Command Status 5-2-3) Automatic Status 5-2-4) Printer Status Transmission Specification when using Ethernet and Wireless LAN Interfaces 5-3) Appendix 3 – Blank Code Page Configuration <Thermal> 5-4) Appendix 4: QR Code Maximum Input Character Count in Each Verson <Thermal> SPECIAL APPENDIX COMMAND LIST BY MODEL SPECIAL APPENDIX COMMAND FUNCTION LIST 7-1) HSP7000...
1. GENERAL DESCRIPTION This specifications document describes the command specifications for the STAR MODE on hybrid printers. Information contained herein applies to models with the following conditions. • Hybrid printers • Interfaces: - Parallel • RS-232C • USB - Ethernet < Applicable Models:> • HSP7000 STAR LIne Mode Command Specifications Rev. 0.00...
2. COMMAND FUNCTION LIST • Standard Commands Class Commands Font style ESC RS F and character ESC GS t ESC GS = ESC R ESC / ESC SP ESC M ESC P ESC : ESC g ESC 6 ESC 7 Character ESC i expansion...
Page 8
Class Commands Page control ESC C ESC C 0 ESC B Horizontal ESC I direction position ESC Q ESC D ESC GS A ESC GS R ESC GS a Download ESC & ESC % Bit image ESC K Graphics ESC L ESC k ESC X ESC ^...
Page 9
Class Commands Kanji Character ESC p ESC q ESC $ ESC s ESC t ESC r ESC u ESC x ESC w Others ESC @ ESC U ESC GS # ESC # @ ESC # N ? ESC # * ESC ? (*) Kanji character commands •...
Page 10
• Raster Related Commands Class Commands Raster ESC * r R commands 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...
Page 11
• Mark Commands Class Commands Mark Commands ESC GS * 0 ESC GS * 1 ESC GS * 2 ESC GS * W ESC GS * C • Auto Logo Commands Class Commands Auto Logo ESC GS / W Commands ESC GS / C ESC GS / 1 ESC GS / 2...
Page 12
• Page Function Commands Class Commands Page Function ESC GS h 0 ESC GS h 1 • Slip/Validation Function Commands Class Commands Slip Function ESC SI ESC FF ESC VT ESC EM ESC US • Page Mode Commands Class Commands Page mode ESC n ESC !
3. COMMAND DETAILS 3-1) Explanation of Terms • Reception buffer The buffer for storing data (reception data) received from the host, as it is called the reception buffer. Reception data is temporarily stored in the reception buffer, then processed sequentially. •...
3-2) Exception processing 1) Undefined codes Codes from <00>H to <1F>H are targeted. When codes not defined as commands in this region are received, they are discarded. (Ex.) If processing the data string of <30>H<31>H<03>H<32>H<0A>H<33>H, the printer will discard <03>H as an undefined code. 2) Undefined commands When data continuing the codes of ESC, FS, GS, DLE are codes not defined as commands, ESC, FS,GS and subse- quent codes are discarded. (Ex.) If processing the data string of <30>H<1B>H<22>H<31>H<32>H, the printer will read and discard <1B>H<22>H as an undefined command.
3-3) Standard Command Details 3-3-1) Font style and character set ESC RS F n [Name] Select font [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 1, n = 16 Slip Validation [Initial Value] Thermal n = 0 Slip Validation [Function] <Thermal>...
Page 16
ESC GS t n [Name] Select code page [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 21, 32 ≤ n ≤ 34, 64 ≤ n ≤ 79, n = 255 Slip 0 ≤ n ≤ 21, 32 ≤ n ≤ 34, 64 ≤ n ≤ 79, n = 255 Validation 0 ≤...
Page 17
ESC GS = n1 n2 da1 da2 … dak db1 db2 … dbk [Name] Write blank code page data [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n1 = 0, n2 = 48, 1 ≤ (n1 + n2 x 256) 0 ≤ da ≤ 255 (Font-A data), db = 0 (Star mode does not have Font-B), k = (n1 + n2 x 256) Slip Validation [Initial Value]...
Page 18
ESC R n [Name] Specify international character set [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 14, n = 64, 48 ≤ N ≤ 57 (”0” ≤ n ≤ “9”), 65 ≤ n ≤ 69 (”A” ≤ n ≤ “E”) Slip 0 ≤...
Page 19
ESC / N [Name] Specify/cancel slash zero [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n = 0, 1, 48, 49 Slip n = 0, 1, 48, 49 Validation n = 0, 1, 48, 49 [Initial Value] Thermal Memory switch setting Slip Memory switch setting Validation Memory switch setting...
Page 20
ESC M [Name] (Thermal) Specify 12 dot pitch/(Slip) specify 7 x 9 font (half dots) (default) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Specifies the right space for ANK 12 x 24 dot fonts in 0 dots. <Slip>, <Validation>...
Page 21
ESC : [Name] (Thermal) Specify 16 dot pitch/(Slip) specify 5 x 9 font (3P-1) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Memory switch setting Slip Validation [Function] <Thermal> Specifies the right space for ANK 12 x 24 dot fonts in 4 dots. <Slip>, <Validation>...
Page 22
ESC 6 [Name] Specify IBM character set #2 [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Two bytes ignored ESC 7 [Name] Specify IBM character set #1 [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal...
Page 24
ESC W n [Name] Specify/cancel expanded wide [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) Slip 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) Validation 0 ≤...
Page 25
ESC h n [Name] Specify/cancel expanded high [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) Slip 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) Validation 0 ≤...
Page 26
[Name] Set double wide [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Cancels 2x wide expansion Slip Cancels 2x wide expansion Validation Cancels 2x wide expansion [Function] Specifies double wide for ANK characters and Kanji characters. This command is equivalent to ESC W 1. (Note) The settings using this command are valid for all stations and modes.
Page 27
ESC SO [Name] Set double high [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Double high expansion cancelled. Slip Double high expansion cancelled. Validation Double high expansion cancelled. [Function] Specifies double high for ANK characters and Kanji characters. This command is equivalent to ESC h 1.
Page 29
ESC F [Name] Cancel emphasized printing [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Emphasized printing cancelled. Slip Emphasized printing cancelled. Validation Emphasized printing cancelled. [Function] <Thermal> Cancels emphasized printing for ANK characters. <Slip>, <Validation> Cancels emphasized printing for subsequent data. When page mode is selected, the emphasized printing cancel specification is in page units.
Page 30
ESC – n [Name] Specify/cancel underling mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n = 0, 1, 48, 49 Slip n = 0, 1, 48, 49 Validation n = 0, 1, 48, 49 [Initial Value] Thermal n = 0 (Underline cancelled) Slip n = 0 (Underline cancelled) Validation...
Page 31
ESC _ n [Name] Specify/cancel upperline [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n = 0, 1, 48, 49 Slip n = 0, 1, 48, 49 Validation n = 0, 1, 48, 49 [Initial Value] Thermal n = 0 (Upperline cancelled) Slip n = 0 (Upperline cancelled) Validation...
Page 32
ESC 4 [Name] (Thermal) Specify black/white inversion/(Slip) specify black/white inversion, red/black color ( [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Specifies white/black inversion for ANK characters and Kanji characters. IBM block ignores white/black inversion. <Slip>, <Validation>...
Page 33
ESC GS 4 m n [Name] Select red/black substitute function [ESC 4/5 setting] [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip m = 1, 2, 49, 50 When m = 1, 49 (“1”) When m = 2, 50 (“2”) When m = 83 (“S”) Validation m = 1, 2, 49, 50 When m = 1, 49 (“1”)
Page 34
Precautions for selecting <Option 1> Prints white/black inverted characters using 5 x 9 fonts regardless of the current font size setting. Inserts a one dot string of black printing to the head of the white/black inverted characters. Printing data created on a conventional red/black printer, using 1 and 2 above, there are cases in which the print- ing position will shift to the right and a line of printable characters reduced.
Page 35
[Name] Select upside-down printing [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Upside-down printing cancelled Slip Upside-down printing cancelled Validation Upside-down printing cancelled [Function] Specifies upside-down printing This command is enabled only when at the top of the line. Upside down and right-side up characters cannot both exist in the same line.
Page 36
ESC RS i n [Name] Specify/cancel character rotated mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) Validation 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) [Initial Value] Thermal Slip...
3-3-4) Line Spacing [Name] Line feed [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Memory switch setting Slip 1/6 inch line feed Validation 1/6 inch line feed [Function] Feeds the currently specified amount of paper. If print data exists in the line buffer, it prints that data. <Thermal>...
Page 38
ESC a n [Name] Feed paper n lines [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ n ≤ 127 Slip 1 ≤ n ≤ 127 Validation 1 ≤ n ≤ 127 [Initial Value] Thermal Memory switch setting Slip 1/6 inch Validation 1/6 inch [Function]...
Page 39
ESC z n [Name] Select line feed amount [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n = 1, 49 Slip n = 0, 1, n = 48, 49 Validation n = 0, 1, n = 48, 49 [Initial Value] Thermal Memory switch setting Slip 1/6 inch Validation...
Page 40
ESC 1 [Name] (Thermal) Specify 3 mm line feed amount/(Slip) specify 7/72 inch line feed amount [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Memory switch setting Slip 1/6 inch Validation 1/6 inch [Function] <Thermal> Specifies the line feed amount to 3 mm. <Slip>, <Validation>...
Page 41
ESC j n [Name] Reverse paper feed [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip 0 ≤ n ≤ 255 Validation 0 ≤ n ≤ 255 [Initial Value] Thermal Slip Validation [Function] <Thermal> Three bytes ignored <Slip>, <Validation> Executes a n/72 in reverse direction paper feed. If print data exists in the line buffer, it prints that data.
Page 42
ESC A n [Name] Defines (thermal) a 3 mm/4 mm line feed amount/Defines (slip) n/72 inch pitch line feed [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 255 Slip 0 ≤ n ≤ 85 Validation 0 ≤ n ≤ 85 [Initial Value] Thermal Slip Validation [Function] Defines the line feed amount. The line feed amount defined using this command is specified to the current line feed amount by the ESC 2 command.
Page 43
ESC 3 n [Name] Specify n/216 inch paper feed [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip 0 ≤ n ≤ 255 Validation 0 ≤ n ≤ 255 [Initial Value] Thermal Slip 1/6 inch line feed Validation 1/6 inch line feed [Function] <Thermal>...
3-3-5) Page Control Commands [Name] Form feed [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Executes a form feed. If the current position is at the top of the page, it form feeds to the top of the next page. If there is data existing in the line buffer when executing a form feed, it prints that data, then ex- ecutes the form feed.
Page 45
ESC C n [Name] Set page length to n lines [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ n ≤ 127 Slip Validation [Initial Value] Thermal (Form feed amount initial value x 42) Slip Validation [Function] <Thermal> The position whereat this command is processed is considered the top of the page and sets the page length to (current form feed amount x n).
Page 46
ESC C 0 n [Name] Set n x 24 mm page length [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ n ≤ 22 Slip Validation [Initial Value] Thermal (Form feed amount initial value x 42) Slip Validation [Function] <Thermal> The position whereat this command is processed is considered the top of the page and sets the page length to (n x 24 mm).
Page 47
[Name] Feed paper to vertical tab position [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Feeds paper to the next vertical tab position. This command is ignored if there are no tabs set. If a vertical tab is set, and the current position is the same as the vertical tab position, or if it is below that position, it feeds paper to the top of the next page.
Page 48
ESC B n1 n2 … nk NUL [Name] Set vertical tab position [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ n ≤ 255, 0 ≤ n ≤ 16 Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Sets the vertical tab to the (current form feed amount x n) position. All other vertical tabs set before setting the vertical tab using this command are cancelled.
3-3-6) Horizontal Direction Printing Position ESC l n [Name] Set left margin [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 255 Slip 0 ≤ n ≤ (right margin -2) ≤ 255 Validation 0 ≤ n ≤ (right margin -2) ≤ 255 [Initial Value] Thermal n = 0...
Page 50
ESC Q n [Name] Set right margin [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Uses the left edge as a standard to set the print region as (current ANK character pitch x n). Setting this command partway will take affect from the next line.
Page 51
[Name] Move horizontal tab [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Move print position to next horizontal tab position. The current position moves to the next tab position when at the horizontal tab position. This command is ignored with under the following conditions.
Page 52
ESC D NUL [Name] Clear horizontal tab [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Clears the currently set horizontal tab. (Note) The settings using this command are valid for all stations and modes. ESC GS A n1 n2 [Name] Move absolute position...
Page 58
[Ex.:] When selecting 7 x 9 fonts, and defining the character to 21H: ESC & NUL n1 n2 m d1 d2 d3 d4 d5 d6 d7 Code (Hexadecimal) 1B 26 00 21 21 80 3E 40 88 00 88 40 3E (1 when printing corresponding bits, and 0 for no print)) [Ex.:] When selecting 5 x 9 fonts, and defining the character to 21H: ESC &...
Page 59
ESC % N [Name] Specify/cancel ANK download characters [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n = 0, 1, 48, 49 Slip n = 0, 1, 48, 49 Validation n = 0, 1, 48, 49 [Initial Value] Thermal Cancel ANK download character Slip Cancel ANK download character Validation...
3-3-8) Bit Image Graphics ESC K n1 n2 d1 … dk [Name] Standard density bit image [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ {(n1 + n2 x 256) x 3} ≤ printable region k = (n1 + n2 x 256) 0 ≤...
Page 61
<Slip>, <Validation> This command prints bit images with only the data count determined by n1. The amount of data that can be printed in one line is limited to the total dot count. Data that exceeds the total dot count or the right margin is ignored. See each printer’s product specifications manual for details regarding the total dot count.
Page 62
ESC L n1 n2 d1 … dk [Name] High density bit image [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ {(n1 + n2 x 256) ≤ printable region k = (n1 + n2 x 256) 0 ≤ d ≤ 255 Slip 1 ≤ (n1 + n2 x 256) ≤...
Page 63
ESC k n1 n2 d1 … dk [Name] Fine bit image [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n2 = 0 1 ≤ {(n1 + n2 x 256) x 8} ≤ printable region k = {(n1 + n2 x 256) x 24} 0 ≤...
Page 64
ESC X n1 n2 d1 … dk [Name] Fine density bit image (Wire-dot, 24 pin compatible) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ (n1 + n2 x 256) ≤ printable region k = {(n1 + n2 x 256) x 3} 0 ≤...
Page 65
ESC ^ m n1 n2 d1 d2 … dk [Name] 9 Dot bit image [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip 0 ≤ m ≤ 1 (“0” ≤ m ≤ “1”) Validation 0 ≤ m ≤ 1 (“0” ≤ m ≤ “1”) [Initial Value] Thermal Slip...
3-3-9) Logo ESC FS q n [ x 11 x 1 2 y 11 y 1 2 d 1 … d k ] 1 … [ x n 1 x n 2 y n 1 y n 2 d 1 … d k ] n [Name] Register logo [Code]...
Page 67
(Note) Registration data shared by all stations, and modes. If this command is used frequently, there is the possibility of damaging the non-volatile memory. Write to the non-volatile memory less than 10 times in one day. Relationship of logo and registered data xn = xn1 + xn2 x 256, yn = yn1 + yn2 x 256 (yn1 + yn2 x 256) bite (yn1 + yn2 x 256) x 8 dot...
Page 68
ESC FS p n m [Name] Print logo [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ n ≤ 255 0 ≤ m ≤ 3, 48 ≤ m ≤ 51, (“0” ≤ m ≤ “3”) Slip 1 ≤ n ≤ 255 0 ≤...
Page 69
ESC RS L m [Name] Logo batch control [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ m ≤ 3, 48 ≤ m ≤ 51, (“0” ≤ m ≤ “3”), m = 255 Slip 0 ≤ m ≤ 3, 48 ≤ m ≤ 51, (“0” ≤ m ≤ “3”), m = 255 Validation 0 ≤...
3-3-11) Cutter Control ESC d n [Name] Auto-cutter: [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ d ≤ 3, 48 ≤ d ≤ 51 (“0” ≤ d ≤ “3”) Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Executes the auto-cutter. After auto-cutter is executed, the printer considers that position to be the top of the page.
Page 74
[Name] External device 1 drive instruction [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Executes the external device drive conditions set according to the command to set the external drive device pulse width (ESC BEL n1 n2). As with other commands, it temporarily stores data in the data buffer, then executes in the order re- ceived.
Page 75
[Name] External device 2 drive instruction [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Drives external device 2. The energizing time and delay time for the external device 2 are fixed at 200 ms each. As with other commands, it temporarily stores data in the data buffer, then executes in the order received.
3-3-14) Status ESC RS a n [Name] Set status transmission conditions [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 3, 48 ≤ n ≤ 51, (“0” ≤ n ≤ “51”) Slip 0 ≤ n ≤ 3, 48 ≤ n ≤ 51, (“0” ≤ n ≤ “51”) Validation 0 ≤...
Page 82
ESC ACK SOH [Name] Real-time printer status (ASB Status) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] This command is effective only when using an interface capable of bi-directional data communications. When this command is received, the printer sends the status to the host in real time. Immediately executed not when taking out from the reception buffer, but when received from the host.) Bi-directional parallel interfaces enter a “data present”...
Page 83
[Name] Real-time printer status (2) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] This command is effective only when using an interface capable of bi-directional data communications. When this command is received, the printer sends one byte of EOT status to the host in real time. Immediately executed not when taking out from the reception buffer, but when received from the host.) Bi-directional parallel interfaces enter a “data present”...
Page 84
ESC RS E n [Name] Initialize ASB ETB counter, and ETB status. [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n = 0, 48 (“0”) Slip n = 0, 48 (“0”) Validation n = 0, 48 (“0”) [Initial Value] Thermal ASB ETB counter = 0 Slip ASB ETB counter = 0 Validation...
3-3-15) Kanji Characters ESC p [Name] Specify JIS Kanji character mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Cancel JIS Kanji character mode Slip Cancel JIS Kanji character mode Validation Cancel JIS Kanji character mode [Function] Specifies JIS Kanji character mode When in JIS Kanji character mode, all character codes are handled as 2 byte Japanese characters (First byte: upper code;...
Page 86
ESC $ n [Name] Specify/cancel JIS Kanji character mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Specifies and cancels the shift JIS Kanji character mode. 0, 48 Cancel shift JIS Kanji character mode 1, 49 Specify shift JIS Kanji character mode When in shift JIS Kanji character mode, if the data is <80>H to <9F>H or <E0>H to <FF>H, this is...
Page 89
ESC r c1 c2 d1 … dk [Name] Register Chinese download characters [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ d ≤ 255 k = 72, c1 and c2 differ according to specifications and code type (see table below). Slip 0 ≤ d ≤ 255 k = 32, c1 and c2 differ according to specifications and code type (see table below). Validation 0 ≤ d ≤ 255 k = 32, c1 and c2 differ according to specifications and code type (see table below). [Initial Value] Thermal All spaces Slip...
Page 90
<Slip>, <Validation> The defined ranges are shown below. Specifications Japanese Language Kanji characters They are designed as shown below and data is sent sequentially. Vertical 16 dot The font of Kanji download characters is composed of 16 x 16 dot patterns. Bits that correspond to the dots to print are “1,”...
Page 91
ESC u n [Name] Specify two-byte 16 x 16 dot Kanji character (Single density/double density) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip n = 0, 1, n = 48, 49 (“0,” “1”) Validation n = 0, 1, n = 48, 49 (“0,” “1”) [Initial Value] Thermal Slip...
Page 92
ESC x n [Name] Specify expanded Kanji characters (Double tall/double high & wide) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip n = 0, 1, n = 48, 49 (“0,” “1”) Validation n = 0, 1, n = 48, 49 (“0,” “1”) [Initial Value] Thermal Slip...
Page 93
ESC w n [Name] Specify expanded Kanji characters (batch double tall/double high & wide) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip n = 0, 1, n = 48, 49 (“0,” “1”) Validation n = 0, 1, n = 48, 49 (“0,” “1”) [Initial Value] Thermal Slip...
3-3-16) Others [Name] Ring buzzer [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Issues a short buzzer sound from the printer. Execute this command after printing the unprinted data in the line buffer. [Name] Cancel print data and initialize commands [Code] ASCII...
Page 95
ESC @ [Name] Command initialization [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Initializes each command after printing data in the line buffer. However, printers with memory switch settings are initialized to the memory switch settings. DIPSW re-loading is not performed.
Page 96
ESC U n [Name] Select printing direction [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) Validation 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) [Initial Value] Thermal Slip...
Page 100
[Name] Printer deselect [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Deselects printer. All received data is discarded until the next DC1 (printer select) is received. [Name] Select printer [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation...
Page 101
3-4) Raster Graphics Command Details Raster graphics are command types and incidental specifications that enable high speed and high quality printing of graphics. The following shows the characteristics and specifications for raster graphics. • Define the raster mode command as an expansion set for Star Line mode. Basically no restrictions set for use of conventional STAR line mode.
Page 102
ESC * r R [Name] Initialize raster mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Initializes raster mode. This command is also valid when not in the raster mode. However, initialization of the raster mode with this command is executed when entering the raster mode.
Page 103
ESC * r A [Name] Enter raster mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Enters raster mode. This command is ignored when in the raster mode. The following shows the details regard processing of this command. Reception of this command.
Page 104
ESC * r B [Name] Quit raster mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Quits raster mode. When raster mode is quit, and raster data remains in the raster mode image buffer, the raster mode will be quit after executing raster EOT mode.
Page 105
ESC * r D n NUL [Name] Drawer drive [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 3 Slip Validation [Initial Value] Thermal n = 0 Slip Validation [Function] <Thermal> Drives the drawer in the raster mode. Drawer drive conditions conform to line mode setting command ESC BEL n1 n2. n is a decimal description (max.
Page 106
ESC * r E n NUL [Name] Set raster EOT mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n = 0, 1, 2, 3, 8, 9, 12, 13 Slip Validation [Initial Value] Thermal n = 13 Slip Validation [Function] <Thermal> Set raster EOT mode The EOT mode operates to execute using the raster document quit command ESC FF EOT.
Page 107
ESC * r F n NUL [Name] Set raster FF mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n = 0, 1, 2, 3, 8, 9, 12, 13 Slip Validation [Initial Value] Thermal n = 13 Slip Validation [Function] <Thermal> Sets raster FF mode. The FF mode operates to execute using the raster document quit command ESC FF NUL.
Page 108
ESC * r P n NUL [Name] Set raster page length [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Raster image buffer length Slip Validation [Function] <Thermal> Sets raster page length. n is a decimal description (max. 255 digits) using ASCII characters. Page length Continuous print mode (no page length setting) 1 ≤...
Page 109
ESC * r m l n NUL [Name] Set raster left margin [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal n = 0 Slip Validation [Function] <Thermal> Sets raster left margin. This command sets the left margin to (n x 8) dots. When the left margin exceeds the printable area, or if the left margin specification eliminates the print area ((printable region - right margin) ≥...
Page 110
ESC * r T n NUL [Name] Set raster top margin [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 2 Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Sets the raster top margin. n is a decimal description (max. 255 digits) using ASCII characters. Set To Default Set top margin using reverse paper feed.
Page 111
ESC * r K n NUL [Name] Set raster print color [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 3 Slip Validation [Initial Value] Thermal n = 0 Slip Validation [Function] <Thermal> Sets raster print color. This command is effective only when specifying the 2 color mode using the line mode. This command is ignored when not in the 2 color print mode.
Page 112
b n1 n2 data [Name] Send raster data (auto line feed) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255, 0 ≤ d ≤ 255 k = n1 + n2 x 256, 1 ≤ k Slip Validation [Initial Value]...
Page 113
k n1 n2 data [Name] Transfer raster data [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255, 0 ≤ d ≤ 255 k = n1 + n2 x 256, 1 ≤ k Slip Validation [Initial Value] Thermal...
Page 114
ESC * r Y n NUL [Name] Move vertical direction position (Line feed for specified dots) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Moves vertical direction position. Moves position n dots with this command. When the current page length setting is in continuous print mode, and n dots exceed the remaining dot count of the raster image buffer length, the data in the print buffer is printed, and paper is fed n dots when this command is received.
Page 115
ESC FF EOT [Name] Execute EOT mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Executes EOT mode. Executes operation specified by the EOT mode setting command ESC * r E n NUL. <Slip>, <Validation>...
Page 116
ESC * r V m n NUL [Name] Execute external buzzer drive [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal m = 49, 50, 1 ≤ n ≤ 20 Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Repeatedly drives the buzzer according to the ON/OFF conditions set by the external buzzer drive pulse condition command ESC GS EM DC1 m n1 n2.
Page 117
3-5) Black Mark Related Command Details The following commands control top of form functions using black mark paper. The following commands are effective only when black mark is set to be effective. ESC d n [Name] Auto - cutter: [Code] ASCII Hexadecimal Decimal...
Page 118
[Name] Execute top of form [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Executes top of form. <Slip>, <Validation> One byte ignored ESC C n [Name] Set page length to n lines [Code] ASCII Hexadecimal Decimal [Defined Area]...
Page 119
ESC C 0 n [Name] Set page length to n x 24 mm units [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ n ≤ 22 Slip Validation [Initial Value] Thermal (Form feed amount initial value x 42) Slip Validation [Function] <Thermal>...
Page 120
[Name] Feed paper to vertical tab position [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> When black mark is effective, this command is ignored. <Slip>, <Validation> One byte ignored ESC B n1 n2 … nk NUL [Name] Set vertical tab position [Code]...
Page 121
ESC B NUL [Name] Clear vertical tab position [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> When black mark is effective, this command is ignored. <Slip>, <Validation> Three bytes ignored STAR Line Mode Command Specifications 3-109 Rev. 0.00...
Page 122
3-6) 2-Color Printing Command Details The following commands control 2-color printing functions. The following commands are effective only when using a model handling 2-color printing. ESC RS c n [Name] Set print color in 2-color print mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal...
Page 123
ESC RS C n [Name] Select/cancel 2-color print mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 (“0” ≤ n ≤ “2”), n = 16, n =32 Slip Validation [Initial Value] Thermal n = 0, 48 Slip Validation...
Page 124
ESC 4 [Name] (Thermal) Specify black/white inversion/(Slip) specify black/white inversion/specify red/black color [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal White/black inversion cancelled Slip White/black inversion cancelled/black color printing specified Validation White/black inversion cancelled/black color printing specified [Function] <Thermal> Specifies white/black inversion for ANK characters and Kanji characters. IBM block ignores white/black inversion.
Page 125
ESC RS d n [Name] Set print density [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 15 48 ≤ n ≤ 57 (“0” ≤ n ≤ “9”), 65 ≤ n ≤ 70 (“A” ≤ n ≤ “F”) Slip Validation [Initial Value] Thermal...
Page 126
ESC RS r n [Name] Set printing speed [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) Slip Validation [Initial Value] Thermal Memory switch setting Slip Validation [Function] <Thermal>...
Page 127
ESC FS q n [ x 11 x 1 2 y 11 y 1 2 d 1 … d k ] 1 … [ x n 1 x n 2 y n 1 y n 2 d 1 … d k ] n [Name] Register logo [Code]...
Page 128
(Note) The registered data is shared by all stations and modes. If this command is used frequently, there is the possibility of damaging the non-volatile memory. Write to the non-volatile memory less than 10 times in one day. Relationship of logo and registered data xn = xn1 + xn2 x 256, yn = yn1 + yn2 x 256 (yn1 + yn2 x 256) bite (yn1 + yn2 x 256) x 8 dot...
Page 129
ESC FS p n m [Name] Print logo [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ n ≤ 255 0 ≤ m ≤ 3, 48 ≤ m ≤ 51, (“0” ≤ m ≤ “3”) Slip 1 ≤ n ≤ 255 0 ≤...
Page 130
<Print Sample> L O T T E R Y 01 05 32 85 86 50 70 77 08 50 21 42 46 40 12 02 06 78 2003/04/08 STAR Micronics co., ltd No. 0304081254896 Command Transmission Example • Mark Format Mark Height h = 10 dots;...
Page 131
ESC GS * 0 n m1 m2 m3 … mk [Name] Print Mark [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal “001” ≤ n ≤ “255”, “0” ≤ m ≤ “9”, k = n Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal>...
Page 132
ESC GS * 1 h v [Name] Specify mark height and line feed [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal “001” ≤ h ≤ “255”, “001” ≤ v ≤ “255”, h ≤ v Slip Validation [Initial Value] Thermal Non-volatile memory Slip Validation [Function] <Thermal>...
Page 133
ESC GS * W [Name] Register mark format to non-volatile memory [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Registers the mark format (mark height, mark line feed amount, mark color, and mark horizontal width) in non-volatile memory.
Page 134
3-8) AUTO LOGO Function Command Details If the portion that was changed was only the product name in a system, like the one below, already operating, this command functions to print a logo like the one below by only changing the product name. This function has two oper- ating modes.
Page 135
Simple Auto Logo Function Preset the simple Auto Logo function, and execute the following operations with the printing cut command under the existing system as a trigger. (1) Simple Auto Logo function starts up using the existing system cut command as a trigger. (2) Center alignment command process (3) Execute printing of logo 2.
Page 136
Command Transmission Example Set the Auto Logo function in advance and register to the non-volatile memory. ESC GS / 1 n ( n = 0x01 ): ESC GS / 2 n ( n = “/” ): ESC GS / 3 nL nH d1 d2 … dk: nL = 4 nH = 0: d1 = 0x1b d2 = 0x1d d2 = 0x61 d3 = 0x01: ESC GS / 4 nL nH d1 d2 …...
Page 137
ESC GS / W [Name] Register Auto Logo setting to non-volatile memory [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Registers Auto Logo setting to non-volatile memory. After registration ends, resets the printer. This command is ignored while Auto Logo is executing. ESC GS / C [Name] Initialize Auto Logo setting from non-volatile memory...
Page 138
ESC GS / 1 n [Name] Set ON/OFF for Auto Logo function [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 2 Slip Validation [Initial Value] Thermal n = 0 Slip Validation [Function] <Thermal> Sets ON/OFF for Auto Logo function. This setting is registered to non-volatile memory by the ESC GS / W command.
Page 139
ESC GS / 2 n [Name] Set command characters [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 32 ≤ n ≤ 127, n = 0 Slip Validation [Initial Value] Thermal n = 0 Slip Validation [Function] <Thermal> Sets command character for the Auto Logo function. This setting is registered to non-volatile memory by the ESC GS / W command.
Page 142
ESC GS / 5 n [Name] Set command character switching method [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 1 Slip Validation [Initial Value] Thermal n = 0 Slip Validation [Function] <Thermal> Sets command character conversion method for the Auto Logo function. This setting is registered to non-volatile memory by the ESC GS / W command.
Page 143
ESC GS / 6 n [Name] Partial cut setting just prior to Auto Logo printing [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ n ≤ 1 Slip Validation [Initial Value] Thermal n = 0 Slip Validation [Function] <Thermal> Sets the partial cut setting just prior to Auto Logo printing This setting is registered to non-volatile memory by the ESC GS / W command.
Page 144
This command selects execution of a partial cut just prior to Auto Logo Logo 2, and Logo 3, when executing Logos 2 and 3 as an Auto Logo print, as shown above. If a partial cut is set to be executed by this function, it is possible to supply coupons printed by Auto Logo cut by the partial cut.
Page 145
3-9) 2-dimensional Bar Codes PDF417 Command Details This command prints 2-dimensional bar codes PDF417. Commands for 2-dimensional bar codes PDF417 are separated into the following four functions. Bar code type setting Bar code data setting (<ESC> <GS> “x” “D”) Bar code printing (<ESC> <GS> “x” “P”) Get bar code expansion information The details of the functions are outlined below. Bar code type setting These commands set the bar code type.
Page 146
These are individual settings, so the following errors may occur even if there are no problems. In such cases, the bar code will not be generated, and the (3) print command ((<ESC> <GS> “x” “P”) will be ignored. • An error occurs when generating the bar code by the combination of bar code settings. • When the generated bar code exceeds the printable PDF417 size. •...
Page 147
ESC GS x S 0 n p1 p2 [Name] PDF417 bar code size setting [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n = 0, 1 When n = 0 When n = 1 p1 = 0 or 3 ≤ p1 ≤ 90, p2 = 0 or 1 ≤ p2 ≤ 30 (However, this excludes p1 = p2 = Slip Validation [Initial Value]...
Page 148
ESC GS x S 2 n [Name] Set PDF417 module X direction size [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ n ≤ 10 Slip Validation [Initial Value] Thermal n = 2 Slip Validation [Function] <Thermal> Parameter details • n : Sets the module X direction size (x-dim) (units: dots) Specification using this command is recommended to be 2 ≤...
Page 149
ESC GS x D nL nH d1 d2 … dk [Name] PDF417 bar code data setting [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 1 ≤ (nL + nH x 256) ≤ 1024 0 ≤...
Page 150
ESC GS x I [Name] Get PDF417 bar code expansion information [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> In printing bar codes with the current setting and the printing starting position using this command, information such as the presence of errors is sent to the printer.
Page 151
3-10) Print Starting Trigger Control Command Details This command is for models equipped with an expansion control function that page-controls the command in line units by page-controlling the image buffer. ESC GS g 0 m n [Name] Print starting trigger [Code] ASCII Hexadecimal...
Page 152
3-11) 2-dimensional Bar Codes QR Code Command Details * QR code is a registered trademark of DENSO WAVE Incorporated. This command prints 2-dimensional bar codes of QR code. Commands for 2-dimensional bar codes QR code are separated into the following four functions. 1) Bar code type setting (<ESC> <GS> “y” “S”) 2) Bar code data setting...
Page 153
Bar code data setting command This command set the bar code print data. There are four types of data types that can be set by the QR code. They are: numbers, alpha-numeric characters, binary and Kanji characters. However, with these specifications, there are two data setting methods. They are: A method that specifies that data along with the bar code data (data manual analysis);...
Page 154
Below is a command transmission example. (1) Bar code type setting <ESC> <GS>“y”“S”“0” 1 <ESC> <GS>“y”“S”“1” 0 <ESC> <GS>“y”“S”“2” 3 Bar code data setting • <ESC> <GS> “y” “D” “1” 0 20 0 “2005, January 1 (SAT)” <LF> : Set bar code data (data automatic analysis) • <ESC> <GS> “y” “D” “2” 10 1 4 0 “2005”“,” : Set bar code data (data manual analysis) 4 2 0 “Year” “,” 1 1 0 “1” “,” 4 2 0 “Month”...
Page 155
ESC GS y S 0 n [Name] Set QR code model [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ n ≤ 2 Slip Validation [Initial Value] Thermal n = 2 Slip Validation [Function] <Thermal> Sets the model. • Parameter details Model 1 Model 2 <Slip>, <Validation>...
Page 156
ESC GS y S 2 n [Name] Set QR code cell size [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ n ≤ 8 Slip Validation [Initial Value] Thermal n = 3 Slip Validation [Function] <Thermal> Sets the cell size. • Parameter details •...
Page 157
ESC GS y D 1 m nL nH d1 d2 … dk [Name] QR code data setting (automatic setting) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal m = 0 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 0 ≤ d ≤ 255 Slip Validation [Initial Value]...
Page 158
ESC GS y D 2 a m1 n1L n1H d11 d12 … d1k m2 n2L n2H d21 d22 … d2k ml … dlk [Name] QR code data setting (manual setting) [Code] ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal [Defined Area] Thermal 1 ≤ a ≤ 255 1 ≤...
Page 159
ESC GS y P [Name] Print QR code [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> This command prints the bar code data. When this command is received, the printer prints unprinted data, if unprinted data remains in the image buffer, then prints the bar code.
Page 160
3-12) Page Function Command Details ESC GS h 0 k m n [Name] 180˚ inversion function [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ k ≤ 1, m = 0, n = 0 Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Sets to make 180˚ inversion function valid/invalid.
Page 161
ESC GS h 1 k m n [Name] Water mark function [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal 0 ≤ k ≤ 2, 0 ≤ m ≤ 2, 1 ≤ n ≤ 255 Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal>...
Page 162
Example of Use Register logo to use as the water mark as logo #1. Water mark function is valid.: Transmit print data: Trigger command transmission: <Slip>, <Validation> Only setting is valid Setting is valid after switching to thermal. (Note) When using this function, the data volume for one page should be within the printer’s buffer length.
Page 163
3-13) Slip/Validation Function Command Details ESC SI n [Name] Set slip sensor [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Three bytes ignored ESC FF n [Name] Slip/Validation Function [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip 2 ≤...
Page 164
ESC VT m n [Name] Sets slip paper discharge direction and discharge length [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Four bytes ignored ESC EM n m LF NUL [Name] Set slip/validation automatic clamp [Code] ASCII Hexadecimal...
Page 165
3-14) Page Mode Command Details [Name] Batch printing of page data (valid only in page mode) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Refer to “Page Control Command.” <Slip>, <Validation> When in page mode, the printer batch prints page data expanded in the page region, then returns to line mode.
Page 166
ESC n [Name] Selects page mode [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Two bytes ignored <Slip>, <Validation> Shifts from line mode (default) to page mode. This command is valid when input at the top of the line. Page mode expands print data to the page coordinate region set by ESC * …...
Page 167
ESC ! [Name] Select line mode (Default) [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] <Thermal> Two bytes ignored <Slip>, <Validation> Select line mode (Default) When this command is executed in page mode, the printer returns to line mode without printing. When returning to line mode, all conditions such as print data in the print region, region coordinate information, and rotation direction are cleared.
ESC T n [Name] Set page mode rotation direction [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip 0 ≤ n ≤ 3, 48 ≤ n ≤ 51, (“0” ≤ n ≤ “3”) Validation 0 ≤ n ≤ 3, 48 ≤ n ≤ 51, (“0” ≤ n ≤ “3”) [Initial Value] Thermal Slip...
Page 170
3-15) Station Selection Command Details ESC + A n [Name] Select printer station [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal n = 0, 3, 4, “0”, “3”, “4” Slip n = 0, 3, 4, “0”, “3”, “4” Validation n = 0, 3, 4, “0”, “3”, “4” [Initial Value] Thermal n = 0...
Page 171
3-16) Presenter Related Command Details The following commands control the presenter functions. The following commands are effective only on models equipped with a presenter. ESC SYN 0 n [Name] Execute presenter paper recovery [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal...
Page 172
ESC SYN 4 n [Name] Initialize presenter paper counter [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip Validation [Initial Value] Thermal Slip Validation [Function] Four bytes ignored STAR LIne Mode Command Specifications 3-160 Rev. 0.00...
Page 173
3-17) MICR Related Command Details The following commands control MICR functions. The following commands are effective only on models equipped with MICR. ESC FS M m n [Name] MICR function [Code] ASCII Hexadecimal Decimal [Defined Area] Thermal Slip 48 ≤ m ≤ 50 (“0” ≤ m ≤ “2”) n = 48, 49 Validation [Initial Value]...
Page 174
E13B Support Table Type Numbers ASCII 0 to 9 30 to 39 Decimal 48 to 57 CMC7 Support Table Type Numbers ASCII 0 to 9 30 to 39 Decimal 48 to 57 STAR LIne Mode Command Specifications SYMBOL1 SYMBOL2 SYMBOL3 S II 3-162 Rev. 0.00 SYMBOL4 S III S IV...
Page 175
Rev. 0.00 4. CHARACTER CODE TABLES Character Code Specifications References STAR LIne Mode Command Specifications...
5. APPENDIX 5-1) Appendix 1: Bar Code Specification Details <Thermal> Refer to the dedicated manuals for characteristics and methods of use for each bar code symbol. This section describes precautions and methods for setting when printing with the printer. Bar code widths are set for each bar code according to the mode. The following describes each mode and the dot counts.
5-1-3) JAN/EAN/UPC Used numbers, not only the bar code symbols, are controlled using JAN, EAN and UPC as shared common commer- cial codes. Mainly, they are used for supermarkets such as shops and grocery stores. 1. Each mode and bar code width Items Module Width Bar Code Width...
Rev. 0.00 5-1-4) Code 128 These are bar code symbols that can print ASCII 128 characters. For that reason, use thereof is increasing. 1. Each module and module width Items Mode 1 Mode 2 Mode 3 Module Width 2 Dots 3 Dots 4 Dots Length of 1 Character (*)
5-1-5) Code 93 1. Each mode and module width Items Module Width Length of 1 Character (*) (*) Start and stob bars not included. 2. Regulations • Start/stop codes are automatically applied. • Check character (C, K) is automatically applied. •...
5-2) Appendix 2 – Status Specifications <Shared> This function is valid only when using an interface capable of bi-directional data communications. Refer to your printer’s product specification manual to verify if the interface cable on the printer you use is capable of bi-directional data communications.
5-2-3) Automatic Status Automatic status is a group of states that are automatically returned from the printer to the host when the printer’s sta- tus has changed.Automatic status is composed of “Header – 1,” “Header – 2” and “plurality of bytes of the printer sta- tus and is continuously returned to the host.The host always uses an identifying method to identify the data for every byte received.
Page 183
Header -2 Header -2 is the 1 byte length information transmitted from the second byte of the automatic status. The table below shows the composition of the Header -2. Header -2 represents the automatic status version (called automatic status version below) using bit 1 to bit 3 and bit 5. For reference, the table below shows the relationship of actual version bytes and the Header -2.
Page 184
Printer Status Printer status is the status of the printer sent from the 3 For the printer status, (the number of bytes added in Header -1 minus two) is returned. Printer status is always updated for new information. (No log exists.) The following shows the composition of the status.
Page 185
<Printer status 4 Sensor Information (Sixth Byte)> Contents Fixed at “0” Not Used (Fixed at “0”) Not Used (Fixed at “0”) Fixed at “0” Paper end Paper Near-end (Inner Side) Paper Near-end (Outer Side) Fixed at “0” <Printer status 5 Sensor Information (Seventh Byte)> Contents Fixed at “0” Slip/Validation Condition Slip/Validation Condition Fixed at “0”...
Page 186
<Printer status 6 ETB Counter (Eighth Byte)> Contents Fixed at “0” ETB Counter Bit-4 ETB Counter Bit-3 Fixed at “0” ETB Counter Bit-2 ETB Counter Bit-1 ETB Counter Bit-0 Fixed at “0” (*) ETB Counter This counter is the 5 bit ETB counter. (It counts from 0 to 31.When ther counter overflows, it counts up from 31 to 0.)) This counter is incremented by 1 using the <ETB> command.
5-2-4) Printer Status Transmission Specification when using Ethernet and Wireless LAN Interfaces The following explains the printer status transmission specification when using Ethernet and wireless LAN interfaces. Transmission format: • When transmitting only STAR ASB: STAR ASB (Second Byte Bit-7=1) + Length (Length = 0x0000) •...
Page 188
(5) Printer status (variable) Status sent by printer The content of the status differs according to the cause. Refer to Commands That are Factors, and Automatic Status for details on the content of the status. (6) Delimiter 2 (1 byte) Sends “;”.
5-3) Appendix 3 – Blank Code Page Configuration <Thermal> Blank code pages are character code tables that are empty from character code 80H to FFH. They can be specified using the command below. • ESC GS t n (n = 255) Also, it is possible to write data to the blank code page area using the command below.
Page 190
2. Example configuration of Font B data. (9 x 24 font) Fig. A-2 9 x 24 Font • • • • • • • • • • • • • • • • • • • • • • • •...
5-4) Appendix 4: QR Code Maximum Input Character Count in Each Verson <Thermal> 1) Model 1 Versions and Maximum Input Character Count Version Number of Cells on One Side STAR LIne Mode Command Specifications Error Numbers Correction Language Characters Level 1030 1167 5-16 English Binary Kanji Character...
Page 192
2) Model 2 Versions and Maximum Input Character Count Version Number of Cells on One Side STAR LIne Mode Command Specifications Error Numbers Correction Language Characters Level 1022 1101 1250 5-17 English Binary Kanji Character Rev. 0.00...
Page 193
Version Number of Cells on One Side STAR LIne Mode Command Specifications Error Numbers Correction Language Characters Level 1408 1082 1548 1212 1725 1346 1903 1500 1063 2061 1600 1159 2232 1708 1224 2409 1872 1358 1056 2620 2059 1468 1108 2812 2188 1588 1228 3057 2395...
Page 194
Version Number of Cells on One Side STAR LIne Mode Command Specifications Error Numbers Correction Language Characters Level 4417 3486 2473 1897 4686 3693 2670 2022 4965 3909 2805 2157 5253 4134 2949 2301 5529 4343 3081 2361 5836 4588 3244 2524 6153 4775 3417 2625 6479...
6. SPECIAL APPENDIX COMMAND LIST BY MODEL ○ : Valid Commands • : Valid Commands (Independent Functions on Thermal/Slip) × : Invalid command (Ignored) • Standard Commands Class Commands Font Style ESC RS F ○ ESC GS t ○ Character ESC GS = ○ ESC R ○ ESC / ○ ESC SP ○...
Page 196
Class Commands Bit Image ESC K ○ Graphics ESC L ○ ESC k ○ ESC X ○ ESC ^ ○ Logo ESC FS q ○ ESC FS p ESC RS L Bar Codes ESC b ○ ESC d Cutter Control ESC BEL ○...
Page 197
• Raster related commands Class Commands Raster ESC * r R ESC * r A ESC * r B ESC * r C ESC * r D ESC * r E ○ ESC * r F ○ ESC * r P ○...
Page 198
• Auto Logo Commands Class Commands Class Auto Logo ESC GS / W ESC GS / C ESC GS / 1 ○ ESC GS / 2 ○ ESC GS / 3 ○ ESC GS / 4 ○ ESC GS / 5 ○...
Page 199
• QR Code Commands Class Commands QR Codes 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 •...
7. SPECIAL APPENDIX COMMAND FUNCTION LIST 7-1) HSP7000 7-1-1) Setting Command List Execution Station Type Command Thermal, Slip, Validation ESC RS F Shared Font Style Only valid for thermal ESC GS t Shared Character ESC GS = Independent Station selec- tion command dependent Only valid for...
Page 201
Execution Station Type Command Thermal, Slip, Validation Adornment ESC E Shared ESC G Shared ESC F Shared ESC H Shared ESC - Shared ESC _ Shared ESC 4 Shared ESC 5 Shared ESC GS 4 Shared Slip, Validation valid Shared Shared ESC RS i Shared...
Page 202
Execution Station Type Command Thermal, Slip, Validation Download ESC & Shared ESC % Shared Logos ESC FS q Shared External ESC BEL Shared Drive Device ESC GS EM Shared Print Set- ESC RS d Shared ting Only valid for thermal ESC RS r Shared Only valid...
Page 203
Execution Station Type Command Thermal, Slip, Validation Macro ESC GS + Shared Raster ESC * r E Independent Mode Station selection command dependent Only valid for thermal ESC * r F Independent Station selection command dependent Only valid for thermal ESC * r P Independent Station selection...
Page 204
Execution Station Type Command Thermal, Slip, Validation Printer ESC RS A Independent Driver Station selec- tion command dependent ESC RS m Shared Only valid for thermal Print ESC GS g 1 Shared Start Only valid for Trigger thermal ESC GS y S 0 Shared Codes Only valid for...
7-1-2) Execution Command List Execution Station Type Command Thermal, Slip, Validation Line Independent spacing Station selection command dependent Independent Station selection command dependent Independent Station selection command dependent ESC a Independent Station selection command dependent ESC J Independent Station selection command dependent ESC j...
Page 206
Execution Station Type Command Thermal, Slip, Validation External Shared Device Drive Shared Shared Shared ESC GS BEL Shared ESC GS EM Shared Status ESC ACK Shared Shared Shared Shared ESC RS E Shared Others Shared Shared ESC @ Shared ESC GS # Shared ESC # N Shared...
Page 207
Execution Station Type Command Thermal, Slip, Valida- tion Raster ESC * r D Independent Mode Station selection command dependent Only valid for thermal Independent Station selection command dependent Only valid for thermal Independent Station selection command dependent Only valid for thermal ESC * r Y Independent...
Page 208
Execution Station Type Command Thermal, Slip, Validation Head ESC RS # Independent Failure Station selec- Detection tion command dependent Slip ESC FF Independent Function Station selec- tion command dependent Page Independent Mode (Page Mode) Station selec- tion command dependent Staion ESC + A Independent Switch...
Page 209
ELECTRONIC PRODUCTS DIVISION STAR MICRONICS CO., LTD. 536 Nanatsushinya, Shimizu-ku, Shizuoka, 424-0066 Japan Tel: (int+81)-54-347-0112, Fax: (int+81)-54-347-0709 Please access the following URL http://www.star-m.jp/eng/dl/dl02.htm for the latest revision of the manual. OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 1150 King Georges Post Road, Edison, NJ 08837-3729 U.S.A.