Line Thermal/Dot Printer STAR Line Mode Command Specifications Rev. 0.00 Star Micronics Co., Ltd.
1. 2. 3.
ESC Q n HT 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 . . .
. 5.
Rev. 0.00 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.
Rev. 0.00 2.
Rev. 0.
Rev. 0.
Rev. 0.
Rev. 0.
Rev. 0.
Rev. 0.00 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. • Line buffer The buffer for storing image data for printing is called the line buffer. • Line buffer full The state in which the buffer has no more space available is called line buffer full.
Rev. 0.00 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 subsequent codes are discarded. (Ex.
Rev. 0.00 3-3) Standard Command Details 3-3-1) Font style and character set ESC RS F n [Name] [Code] Select font ASCII Hexadecimal Decimal [Defined Area] [Initial Value] [Function] n 0 1 16 ESC 1B 27 Thermal Slip Validation Thermal Slip Validation : : : : : : RS 1E 30 F 46 70 n n n 0 ≤ n ≤ 1, n = 16 n=0 - Select font Font Font-A (12 x 24 dots) Font-B (9 x 24 dots) OCR-B (16 x 24 dots) When OCR-B font is selected, the following functions are invalid.
Rev. 0.00 ESC GS t n [Name] [Code] Select code page ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] n 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Thermal Slip Validation Thermal Slip Validation GS 1D 29 : : : : : : t 74 116 n n n 0 ≤ n ≤ 21, 32 ≤ n ≤ 34, 64 ≤ n ≤ 79, n = 255 0 ≤ n ≤ 21, 32 ≤ n ≤ 34, 64 ≤ n ≤ 79, n = 255 0 ≤ n ≤ 21, 32 ≤ n ≤ 34, 64 ≤ n ≤ 79, n = 255 Memory switch setting, when set to DBCS, Japanese characters normal katakana are fixed.
Rev. 0.00 ESC GS = n1 n2 da1 da2 … dak db1 db2 … dbk [Name] [Code] Write blank code page data ASCII ESC GS Hexadecimal 1B 1D Decimal 27 29 = 3D 61 n1 n1 n1 n2 n2 n2 da1 da1 da1 da2 da2 da2 .. .. .. dak dak dak db1 db1 db1 db2 db2 db2 .. .. ..
Rev. 0.
Rev. 0.00 ESC / N [Name] [Code] Specify/cancel slash zero ASCII ESC / Hexadecimal 1B 2F Decimal 27 47 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : n n n n = 0, 1, 48, 49 n = 0, 1, 48, 49 n = 0, 1, 48, 49 Memory switch setting Memory switch setting Memory switch setting Specifies and cancels slash zeros. See each printer’s product specifications manual for details on the memory switch settings.
Rev. 0.00 ESC M [Name] [Code] (Thermal) Specify 12 dot pitch/(Slip) specify 7 x 9 font (half dots) (default) ASCII ESC M Hexadecimal 1B 4D Decimal 27 77 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : Memory switch setting - Specifies the right space for ANK 12 x 24 dot fonts in 0 dots. , Specifies 7 x 9 (half) dot font.
Rev. 0.00 ESC : [Name] [Code] (Thermal) Specify 16 dot pitch/(Slip) specify 5 x 9 font (3P-1) ASCII ESC : Hexadecimal 1B 3A Decimal 27 58 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : Memory switch setting - Specifies the right space for ANK 12 x 24 dot fonts in 4 dots. , Specifies 5 x 9 (3 pulse = 1) dot fonts.
Rev. 0.
Rev. 0.
Rev. 0.00 ESC W n [Name] [Code] Specify/cancel expanded wide ASCII ESC W n Hexadecimal 1B 57 n Decimal 27 87 n [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) n = 0 (Double wide cancelled) n = 0 (Double wide cancelled) n = 0 (Double wide cancelled) Specifies/cancels double wide for ANK characters and Kanji characters.
Rev. 0.00 ESC h n [Name] [Code] Specify/cancel expanded high ASCII ESC h Hexadecimal 1B 68 Decimal 27 104 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : n n n 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) n = 0 (Double high cancelled) n = 0 (Double high cancelled) n = 0 (Double high cancelled) Specifies/cancels double high for ANK characters and Kanji characters.
Rev. 0.00 SO [Name] [Code] Set double wide ASCII SO Hexadecimal 0E Decimal 14 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : Cancels 2x wide expansion Cancels 2x wide expansion Cancels 2x wide expansion 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.
Rev. 0.00 ESC SO [Name] [Code] Set double high ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] Thermal Slip Validation Thermal Slip Validation SO 0E 14 : : : : : : Double high expansion cancelled. Double high expansion cancelled. Double high expansion cancelled. [Function] Specifies double high for ANK characters and Kanji characters. This command is equivalent to ESC h 1. (Note) The settings using this command are valid for all stations and modes.
Rev. 0.00 3-3-3) ESC E [Name] [Code] Print mode Select emphasized printing ASCII ESC E Hexadecimal 1B 45 Decimal 27 69 [Defined Area] [Initial Value] Thermal Slip Validation Thermal Slip Validation : : : : : : Emphasized printing cancelled. Emphasized printing cancelled. Emphasized printing cancelled. [Function] Specifies emphasized printing for ANK characters. IBM block ignores emphasized printing.
Rev. 0.00 ESC F [Name] [Code] Cancel emphasized printing ASCII ESC F Hexadecimal 1B 46 Decimal 27 70 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : Emphasized printing cancelled. Emphasized printing cancelled. Emphasized printing cancelled. Cancels emphasized printing for ANK characters. , Cancels emphasized printing for subsequent data.
Rev. 0.00 ESC – n [Name] [Code] Specify/cancel underling mode ASCII ESC n Hexadecimal 1B 2D n Decimal 27 45 n [Defined Area] [Initial Value] [Function] n 0, 48 1, 49 Thermal Slip Validation Thermal Slip Validation : : : : : : n = 0, 1, 48, 49 n = 0, 1, 48, 49 n = 0, 1, 48, 49 n = 0 (Underline cancelled) n = 0 (Underline cancelled) n = 0 (Underline cancelled) Specifies/cancels underline according to n value.
Rev. 0.00 ESC _ n [Name] Specify/cancel upperline [Code] ASCII Hexadecimal Decimal [Defined Area] [Initial Value] [Function] n 0, 48 1, 49 Thermal Slip Validation Thermal Slip Validation ESC 1B 27 : : : : : : _ 5F 95 n n n n = 0, 1, 48, 49 n = 0, 1, 48, 49 n = 0, 1, 48, 49 n = 0 (Upperline cancelled) n = 0 (Upperline cancelled) n = 0 (Upperline cancelled) Specifies/cancels upperline according to n value.
Rev. 0.
Rev. 0.
Rev. 0.00 Precautions for selecting
Rev. 0.00 SI [Name] [Code] Select upside-down printing ASCII SI Hexadecimal 0F Decimal 15 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : Upside-down printing cancelled Upside-down printing cancelled Upside-down printing cancelled 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. This command is enabled for following.
Rev. 0.00 ESC RS i n [Name] [Code] Specify/cancel character rotated mode ASCII ESC RS i n Hexadecimal 1B 1E 69 n Decimal 27 30 105 n [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) Character rotation cancelled (n = 0) Character rotation cancelled (n = 0) Only setting is valid Setting is valid after switching to slip or validation.
Rev. 0.00 3-3-4) LF [Name] [Code] Line Spacing Line feed ASCII Hexadecimal Decimal [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation [Name] [Code] : : : : : : Memory switch setting 1/6 inch line feed 1/6 inch line feed Feeds the currently specified amount of paper. If print data exists in the line buffer, it prints that data. CR LF 0A 10 Initial value of line feed amount is set by the memory switch.
Rev. 0.00 ESC a n [Name] [Code] Feed paper n lines ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation a 61 97 : : : : : : n n n 1 ≤ n ≤ 127 1 ≤ n ≤ 127 1 ≤ n ≤ 127 Memory switch setting 1/6 inch 1/6 inch Executes paper feed of (currently specified line feed amount x n). If print data exists in the line buffer, it prints that data.
Rev. 0.00 ESC z n [Name] [Code] Select line feed amount ASCII ESC z Hexadecimal 1B 7A Decimal 27 122 [Defined Area] [Initial Value] [Function] n 1, 49 Thermal Slip Validation Thermal Slip Validation : : : : : : n n n n = 1, 49 n = 0, 1, n = 48, 49 n = 0, 1, n = 48, 49 Memory switch setting 1/6 inch 1/6 inch Specifies the line feed amount. Amount of Line Feed Specifies 4 mm line feed amount , n 0, 48 1, 49 Specifies the line feed amount.
Rev. 0.00 ESC 1 [Name] [Code] (Thermal) Specify 3 mm line feed amount/(Slip) specify 7/72 inch line feed amount ASCII ESC 1 Hexadecimal 1B 31 Decimal 27 49 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : Memory switch setting 1/6 inch 1/6 inch Specifies the line feed amount to 3 mm. , Specifies the line feed amount to 7/72 in. Line feed amounts can be set independently for both line mode and page mode.
Rev. 0.00 ESC j n [Name] [Code] Reverse paper feed ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation j 6A 106 : : : : : : n n n 0 ≤ n ≤ 255 0 ≤ n ≤ 255 - Three bytes ignored , Executes a n/72 in reverse direction paper feed. If print data exists in the line buffer, it prints that data. This paper feed amount is unaffected even if there are vertical expanded characters in one line.
Rev. 0.00 ESC A n [Name] [Code] Defines (thermal) a 3 mm/4 mm line feed amount/Defines (slip) n/72 inch pitch line feed ASCII ESC A n Hexadecimal 1B 41 n Decimal 27 65 n [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : 0 ≤ n ≤ 255 0 ≤ n ≤ 85 0 ≤ n ≤ 85 - 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.
Rev. 0.00 ESC 3 n [Name] [Code] Specify n/216 inch paper feed ASCII ESC 3 n Hexadecimal 1B 33 n Decimal 27 51 n [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : 0 ≤ n ≤ 255 0 ≤ n ≤ 255 1/6 inch line feed 1/6 inch line feed Three bytes ignored , Sets subsequent line feed amounts to a value approximate to n/216 inch.
Rev. 0.00 3-3-5) FF [Name] [Code] Page Control Commands Form feed ASCII Hexadecimal Decimal [Defined Area] [Initial Value] [Function] FF 0C 12 Thermal Slip Validation Thermal Slip Validation : : : : : : - 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 executes the form feed.
Rev. 0.00 ESC C n [Name] [Code] Set page length to n lines ASCII ESC C Hexadecimal 1B 43 Decimal 27 67 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : n n n 1 ≤ n ≤ 127 (Form feed amount initial value x 42) - 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). This command cancels the bottom margin setting when setting page length.
Rev. 0.00 ESC C 0 n [Name] [Code] Set n x 24 mm page length ASCII ESC C 0 Hexadecimal 1B 43 00 Decimal 27 67 0 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : n n n 1 ≤ n ≤ 22 (Form feed amount initial value x 42) - The position whereat this command is processed is considered the top of the page and sets the page length to (n x 24 mm). This command cancels the bottom margin setting when setting page length.
Rev. 0.00 VT [Name] [Code] Feed paper to vertical tab position ASCII VT Hexadecimal 0B Decimal 11 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - 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.
Rev. 0.00 ESC B n1 n2 … nk NUL [Name] [Code] Set vertical tab position ASCII ESC B Hexadecimal 1B 42 Decimal 27 66 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : n1 n1 n1 n2 n2 n2 .. .. .. nk nk nk NUL 00 0 1 ≤ n ≤ 255, 0 ≤ n ≤ 16 - 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.
Rev. 0.00 3-3-6) Horizontal Direction Printing Position ESC l n [Name] [Code] Set left margin ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation l 6C 108 : : : : : : n n n 0 ≤ n ≤ 255 0 ≤ n ≤ (right margin -2) ≤ 255 0 ≤ n ≤ (right margin -2) ≤ 255 n=0 n=0 n=0 Uses the left edge as a standard to set the left margin (current ANK character pitch x n).
Rev. 0.00 ESC Q n [Name] [Code] Set right margin ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation Q 51 81 : : : : : : n n n 0 ≤ n ≤ 255 2 ≤ n ≤ maximum printable digits ≤ 255 2 ≤ n ≤ maximum printable digits ≤ 255 Maximum printable digits Maximum printable digits Uses the left edge as a standard to set the print region as (current ANK character pitch x n).
Rev. 0.00 HT [Name] [Code] Move horizontal tab ASCII HT Hexadecimal 09 Decimal 9 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - 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. • When there is no horizontal tab set.
Rev. 0.00 ESC D NUL [Name] [Code] Clear horizontal tab ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation D 44 68 : : : : : : NUL 00 0 - Clears the currently set horizontal tab. (Note) The settings using this command are valid for all stations and modes.
Rev. 0.00 ESC GS R n1 n2 [Name] [Code] Move relative position ASCII ESC GS Hexadecimal 1B 1D Decimal 27 29 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : R 52 82 n1 n1 n1 n2 n2 n2 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255 - Moves the printing position from the current position to the (n1 + n2 x 256) dot position. This command is ignored if the print region is exceeded.
Rev. 0.00 ESC GS a n [Name] [Code] Specify position alignment ASCII ESC GS Hexadecimal 1B 1D Decimal 27 29 [Defined Area] [Initial Value] [Function] n 0, 48 1, 49 2, 50 Thermal Slip Validation Thermal Slip Validation : : : : : : a 61 97 n n n 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) n=0 n=0 n=0 This specifies position alignment for all print data in one line, in the set print region.
Rev. 0.00 3-3-7) Download ESC & c1 c2 n d1 . . . d48 [Name] [Code] Register 12 x 24 dot font download characters ASCII ESC & c1 c2 n d1 Hexadecimal 1B 26 c1 c2 n d1 Decimal 27 38 c1 c2 n d1 [Defined Area] Thermal Slip Validation Thermal Slip Validation [Initial Value] [Function] : : : : : : .. .. .. d48 d48 d48 c1 = 1, 49, c2 = 1, 49, 32 ≤ n ≤ 127, 0 ≤ d ≤ 255 - Registers 12 x 24 dot font download characters to the nth address. Download characters can be registered to <20>H to <7F>H.
Rev. 0.00 ESC & c1 c2 n [Name] [Code] Delete 12 x 24 dot font download characters ASCII ESC & c1 c2 n Hexadecimal 1B 26 c1 c2 n Decimal 27 38 c1 c2 n [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : c1 = 1, 49, c2 = 0, 48, 32 ≤ n ≤ 127 - Deletes 12 x 24 dot font download characters registered to the nth address. , Deleting is possible.
Rev. 0.
Rev. 0.00 [Ex.:] When selecting 7 x 9 fonts, and defining the character to 21H: 㩷 㩷 8 dot 㩷 㩷 㩷 㩷 7 dot 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 d1㩷 d2㩷 d3㩷 d4㩷 d5㩷 d6 d7㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㩷 㪤㪪㪙㩷 㩷 㩷 㩷 㩷 㩷 㩷 㪣㪪㪙㩷 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.
Rev. 0.
Rev. 0.00 3-3-8) Bit Image Graphics ESC K n1 n2 d1 … dk [Name] [Code] Standard density bit image ASCII ESC K Hexadecimal 1B 4B Decimal 27 75 [Defined Area] Thermal : n1 n1 n1 n2 n2 n2 d1 d1 d1 .. .. ..
Rev. 0.00 , 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. After printing the bit image, the printer automatically returns to the character mode.
Rev. 0.00 ESC L n1 n2 d1 … dk [Name] [Code] High density bit image ASCII ESC L Hexadecimal 1B 4C Decimal 27 76 [Defined Area] Thermal : n1 n1 n1 n2 n2 n2 d1 d1 d1 .. .. ..
Rev. 0.00 ESC k n1 n2 d1 … dk [Name] [Code] Fine bit image ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] Thermal k 6B 107 : n1 n1 n1 n2 n2 n2 d1 d1 d1 .. .. .. dk dk dk n2 = 0 1 ≤ {(n1 + n2 x 256) x 8} ≤ printable region k = {(n1 + n2 x 256) x 24} [Initial Value] [Function] Slip Validation Thermal Slip Validation : : : : : 0 ≤ d ≤ 255 - Prints bit images using 1 dots wide and 1 dots high per 1 dot of input data.
Rev. 0.00 ESC X n1 n2 d1 … dk [Name] [Code] Fine density bit image (Wire-dot, 24 pin compatible) ASCII ESC X n1 n2 d1 .. dk Hexadecimal 1B 58 n1 n2 d1 .. dk Decimal 27 88 n1 n2 d1 .. dk [Defined Area] Thermal : 1 ≤ (n1 + n2 x 256) ≤ printable region k = {(n1 + n2 x 256) x 3} [Initial Value] [Function] Slip Validation Thermal Slip Validation : : : : : 0 ≤ d ≤ 255 - Prints input bit images with 8 dots/mm resolution for both horizontal and vertical.
Rev. 0.00 ESC ^ m n1 n2 d1 d2 … dk [Name] [Code] 9 Dot bit image ASCII Hexadecimal Decimal [Defined Area] [Initial Value] [Function] ESC 1B 27 Thermal Slip Validation Thermal Slip Validation ^ 5E 94 : : : : : : m m m n1 n1 n1 n2 n2 n2 d1 d1 d1 d2 d2 d2 .. .. .. dk dk dk 0 ≤ m ≤ 1 (“0” ≤ m ≤ “1”) 0 ≤ m ≤ 1 (“0” ≤ m ≤ “1”) - All data received and discarded.
Rev. 0.00 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] [Code] Register logo ASCII Hexadecimal Decimal [Defined Area] ESC FS q n [x11 x12 y11 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 .. 1B 1C 71 n [x11 x12 y11 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 .. dk]n 27 28 113 n [x11 x12 y11 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 ..
Rev. 0.00 (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.
Rev. 0.
Rev. 0.00 ESC RS L m [Name] [Code] Logo batch control ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] Thermal Slip Validation Thermal Slip Validation [Initial Value] [Function] RS 1E 30 : : : : : : L 4C 76 m m m 0 ≤ m ≤ 3, 48 ≤ m ≤ 51, (“0” ≤ m ≤ “3”), m = 255 0 ≤ m ≤ 3, 48 ≤ m ≤ 51, (“0” ≤ m ≤ “3”), m = 255 0 ≤ m ≤ 3, 48 ≤ m ≤ 51, (“0” ≤ m ≤ “3”), m = 255 - Controls logos specified by the parameter m. After execution, resets the printer.
Rev. 0.00 3-3-10) Bar Codes ESC b n1 n2 n3 n4 d1 . . . dk RS [Name] [Code] Print bar code ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] Thermal b 62 98 : n1 n1 n1 n2 n2 n2 n3 n3 n3 n4 n4 n4 d1 d1 d1 .. .. ..
Rev. 0.
Rev. 0.00 3-3-11) Cutter Control ESC d n [Name] Auto-cutter: [Code] ASCII Hexadecimal Decimal ESC 1B 27 d 64 100 n n n [Defined Area] Thermal : 0 ≤ d ≤ 3, [Initial Value] Slip Validation Thermal Slip Validation : : : : : 48 ≤ d ≤ 51 (“0” ≤ d ≤ “3”) - [Function] n 0, 48 Executes the auto-cutter. After auto-cutter is executed, the printer considers that position to be the top of the page. Auto-cutter Full cut at the current position.
Rev. 0.
Rev. 0.00 BEL [Name] [Code] External device 1 drive instruction ASCII BEL Hexadecimal 07 Decimal 7 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - 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 received.
Rev. 0.00 SUB [Name] [Code] External device 2 drive instruction ASCII SUB Hexadecimal 1A Decimal 26 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - 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.
Rev. 0.00 ESC GS BEL m t1 t2 [Name] [Code] Ring buzzer ASCII Hexadecimal Decimal [Defined Area] [Initial Value] [Function] m 1, 49 2, 50 ESC 1B 27 GS 1D 29 BEL 07 7 m m m t1 t1 t1 t2 t2 t2 Thermal : 1 ≤ m ≤ 2, 49 ≤ m ≤ 50 (“1” ≤ m ≤ “2”) Slip : 1 ≤ t1 ≤ 255, 1 ≤ t2 ≤ 255 1 ≤ m ≤ 2, 49 ≤ m ≤ 50 (“1” ≤ m ≤ “2”) Validation : 1 ≤ t1 ≤ 255, 1 ≤ t2 ≤ 255 1 ≤ m ≤ 2, 49 ≤ m ≤ 50 (“1” ≤ m ≤ “2”) Thermal Slip Validation : : : 1 ≤ t1 ≤ 255, 1 ≤ t2 ≤ 255 - Rings buzzer.
Rev. 0.
Rev. 0.
Rev. 0.00 3-3-13) Print Settings ESC RS d n [Name] [Code] Set print density ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] n 0, 48 1, 49 2, 50 3, 51 4, 52 5, 53 6, 54 7, 55 8, 56 9, 57 10, 65 11, 66 12, 67 13, 68 14, 69 15, 70 Thermal Slip Validation Thermal Slip Validation RS 1E 30 d 64 100 n n n : 0 ≤ n ≤ 15 : : : : : 48 ≤ n ≤ 57 (”0” ≤ n ≤ “9”), 65 ≤ n ≤ 70 (”A” ≤ n ≤ “F”) Memory switch setting - Sets print density.
Rev. 0.00 ESC RS r n [Name] [Code] Set printing speed ASCII ESC Hexadecimal 1B Decimal 27 RS 1E 30 r 72 114 n n n [Defined Area] Thermal : 0≤n≤2 [Initial Value] Slip Validation Thermal Slip Validation : : : : : 48 ≤ n ≤ 50 (“0” ≤ n ≤ “2”) Memory switch setting - [Function] n 0, 48 1, 49 2, 50 Sets print speed. This command stops printing to be executed.
Rev. 0.
Rev. 0.00 ESC ACK SOH [Name] [Code] Real-time printer status (ASB Status) ASCII ESC ACK SOH Hexadecimal 1B 06 01 Decimal 27 6 1 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - 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.
Rev. 0.00 EOT [Name] [Code] Real-time printer status (2) ASCII EOT Hexadecimal 04 Decimal 4 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - 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.
Rev. 0.00 ESC RS E n [Name] [Code] Initialize ASB ETB counter, and ETB status. ASCII ESC RS E n Hexadecimal 1B 1E 45 n Decimal 27 30 69 n [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : n = 0, 48 (“0”) n = 0, 48 (“0”) n = 0, 48 (“0”) ASB ETB counter = 0 ASB ETB counter = 0 ASB ETB counter = 0 Clears the ASB ETB counter to zero and clears the ETB status.
Rev. 0.
Rev. 0.00 ESC $ n [Name] [Code] Specify/cancel JIS Kanji character mode ASCII ESC $ n Hexadecimal 1B 24 n Decimal 27 36 n [Defined Area] [Initial Value] [Function] n 0, 48 1, 49 Thermal Slip Validation Thermal Slip Validation : : : : : : n = 0, 1, 48, 49 n = 0, 1, 48, 49 n = 0, 1, 48, 49 Memory switch setting Memory switch setting Memory switch setting Specifies and cancels the shift JIS Kanji character mode.
Rev. 0.
Rev. 0.
Rev. 0.00 ESC r c1 c2 d1 … dk [Name] [Code] Register Chinese download characters ASCII ESC r c1 c2 Hexadecimal 1B 72 c1 c2 Decimal 27 114 c1 c2 [Defined Area] [Initial Value] [Function] d1 d1 d1 .. .. .. dk dk dk Thermal : 0 ≤ d ≤ 255 Slip : k = 72, c1 and c2 differ according to specifications and code type (see table below). 0 ≤ d ≤ 255 Validation : k = 32, c1 and c2 differ according to specifications and code type (see table below).
Rev. 0.00 , The defined ranges are shown below. Specifications Japanese Language Kanji characters c1 c2 21h ≤ c2 ≤ 7Eh c1 = 77h Registration count 94 Characters They are designed as shown below and data is sent sequentially. Horizontal 16 dot MSB d1 d3 d5 d7 d9 d11 d13 d15 d17 d19 d21 d23 d25 d27 d29 d31 d2 d4 d6 d8 d10 d12 d14 d16 d18 d20 d22 d24 d26 d28 d30 d32 LSB Vertical 16 dot MSB LSB The font of Kanji download characters is composed of 16 x 16 dot patterns.
Rev. 0.00 ESC u n [Name] [Code] Specify two-byte 16 x 16 dot Kanji character (Single density/double density) ASCII ESC u n Hexadecimal 1B 75 n Decimal 27 117 n [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : n = 0, 1, n = 48, 49 (“0,” “1”) n = 0, 1, n = 48, 49 (“0,” “1”) Specify two-byte 16 x 16 dot Kanji characters (single density). Specify two-byte 16 x 16 dot Kanji characters (single density).
Rev. 0.00 ESC x n [Name] [Code] Specify expanded Kanji characters (Double tall/double high & wide) ASCII ESC x n Hexadecimal 1B 78 n Decimal 27 120 n [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : n = 0, 1, n = 48, 49 (“0,” “1”) n = 0, 1, n = 48, 49 (“0,” “1”) Specify two-byte 16 x 16 dot Kanji characters (single density). Specify two-byte 16 x 16 dot Kanji characters (single density).
Rev. 0.00 ESC w n [Name] [Code] Specify expanded Kanji characters (batch double tall/double high & wide) ASCII ESC w n Hexadecimal 1B 77 n Decimal 27 119 n [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : n = 0, 1, n = 48, 49 (“0,” “1”) n = 0, 1, n = 48, 49 (“0,” “1”) Specify two-byte 16 x 16 dot Kanji characters (single density). Specify two-byte 16 x 16 dot Kanji characters (single density).
Rev. 0.00 3-3-16) Others RS [Name] [Code] Ring buzzer ASCII Hexadecimal Decimal [Defined Area] [Initial Value] [Function] CAN [Name] [Code] Thermal Slip Validation Thermal Slip Validation : : : : : : - Issues a short buzzer sound from the printer. Execute this command after printing the unprinted data in the line buffer.
Rev. 0.00 ESC @ [Name] [Code] Command initialization ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : @ 40 64 - 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. After execution, thermal is selected.
Rev. 0.00 ESC U n [Name] [Code] Select printing direction ASCII ESC U Hexadecimal 1B 55 Decimal 27 85 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : n n n 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) n=0 n=0 Only setting is valid Setting is valid after switching to slip or validation. , Executes print direction specified by this command after printing data in the line buffer.
Rev. 0.
Rev. 0.
Rev. 0.00 ESC # * LF NUL [Name] [Code] Inquire printer version ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation # 23 35 : : : : : : * 2A 42 LF 0A 10 NUL 00 0 - Sends printer version. ESC # *, printer version LF NUL < Ex: For HSP7000 Ver. 1.0 ESC # *, HSP7000 Ver. 1.
Rev. 0.00 DC3 [Name] [Code] Printer deselect ASCII DC3 Hexadecimal 13 Decimal 19 [Defined Area] [Initial Value] [Function] DC1 [Name] [Code] : : : : : : Select printer Select printer Select printer Deselects printer. All received data is discarded until the next DC1 (printer select) is received.
Rev. 0.00 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. Not usable with Star Page mode.
Rev. 0.00 ESC * r R [Name] [Code] Initialize raster mode ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation * 2A 42 : : : : : : r 72 114 R 52 82 - 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. The following settings are initialized using this command.
Rev. 0.00 ESC * r A [Name] [Code] Enter raster mode ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation * 2A 42 : : : : : : r 72 114 A 41 65 - Enters raster mode. This command is ignored when in the raster mode. The following shows the details regard processing of this command. (1) Reception of this command. (2) All data remaining in the reception buffer and image buffer is printed equivalent to the FF command.
Rev. 0.00 ESC * r B [Name] [Code] Quit raster mode ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] * 2A 42 Thermal Slip Validation Thermal Slip Validation : : : : : : r 72 114 B 42 66 - 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. , Use prohibited.
Rev. 0.00 ESC * r D n NUL [Name] [Code] Drawer drive ASCII Hexadecimal Decimal [Defined Area] [Initial Value] [Function] n 0 1 2 3 ESC 1B 27 Thermal Slip Validation Thermal Slip Validation * 2A 42 : : : : : : r 72 114 D 44 68 n n n NUL 00 0 0≤n≤3 n=0 - 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. 255 digits) using ASCII characters.
Rev. 0.00 ESC * r E n NUL [Name] [Code] Set raster EOT mode ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation * 2A 42 : : : : : : r 72 114 E 45 69 n n n NUL 00 0 n = 0, 1, 2, 3, 8, 9, 12, 13 n = 13 - Set raster EOT mode The EOT mode operates to execute using the raster document quit command ESC FF EOT. n is a decimal description (max. 255 digits) using ASCII characters.
Rev. 0.00 ESC * r F n NUL [Name] [Code] Set raster FF mode ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation * 2A 42 : : : : : : r 72 114 F 46 70 n n n NUL 00 0 n = 0, 1, 2, 3, 8, 9, 12, 13 n = 13 - Sets raster FF mode. The FF mode operates to execute using the raster document quit command ESC FF NUL. n is a decimal description (max. 255 digits) using ASCII characters.
Rev. 0.00 ESC * r P n NUL [Name] [Code] Set raster page length ASCII ESC * Hexadecimal 1B 2A Decimal 27 42 [Defined Area] [Initial Value] [Function] n 0 1≤n Thermal Slip Validation Thermal Slip Validation : : : : : : r 72 114 P 50 80 n n n NUL 00 0 Raster image buffer length - Sets raster page length. n is a decimal description (max. 255 digits) using ASCII characters. Page length Continuous print mode (no page length setting) Specify page length , Use prohibited.
Rev. 0.00 ESC * r m l n NUL [Name] [Code] Set raster left margin ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation * 2A 42 : : : : : : r 72 114 m 6D 109 l 6C 108 n n n NUL 00 0 n=0 - Sets raster left margin. This command sets the left margin to (n x 8) dots.
Rev. 0.00 ESC * r T n NUL [Name] [Code] Set raster top margin ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] n 0 1 2 Thermal Slip Validation Thermal Slip Validation * 2A 42 : : : : : : r 72 114 T 54 84 n n n NUL 00 0 0≤n≤2 - Sets the raster top margin. n is a decimal description (max. 255 digits) using ASCII characters. Top margin Set To Default Set top margin using reverse paper feed. Set standard top margin.
Rev. 0.00 ESC * r K n NUL [Name] [Code] Set raster print color ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] n 0 1 2 3 Thermal Slip Validation Thermal Slip Validation * 2A 42 : : : : : : r 72 114 K 4B 75 n n n NUL 00 0 0≤n≤3 n=0 - 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. n is a decimal description (max.
Rev. 0.00 b n1 n2 data [Name] [Code] Send raster data (auto line feed) ASCII b n1 n2 d1 Hexadecimal 62 n1 n2 d1 Decimal 98 n1 n2 d1 d2 d2 d2 ... ... ... dk dk dk [Defined Area] Thermal : 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255, 0 ≤ d ≤ 255 [Initial Value] Slip Validation Thermal Slip Validation : : : : : k = n1 + n2 x 256, 1 ≤ k - [Function] Print color Black Cyan Magenta Yellow Sends raster data. Raster data is sent in (n1 + n2 x 256) byte counts as binary data.
Rev. 0.00 k n1 n2 data [Name] [Code] Transfer raster data ASCII k Hexadecimal 6B Decimal 107 n1 n1 n1 n2 n2 n2 d1 d1 d1 d2 d2 d2 ... ... ... dk dk dk [Defined Area] Thermal : 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255, 0 ≤ d ≤ 255 [Initial Value] Slip Validation Thermal Slip Validation : : : : : k = n1 + n2 x 256, 1 ≤ k - [Function] Print color Black Cyan Magenta Yellow Sends raster data. Raster data is sent in (n1 + n2 x 256) byte counts as binary data.
Rev. 0.00 ESC * r Y n NUL [Name] [Code] Move vertical direction position (Line feed for specified dots) ASCII ESC * r Y n NUL Hexadecimal 1B 2A 72 59 n 00 Decimal 27 42 114 89 n 0 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - Moves vertical direction position. Moves position n dots with this command.
Rev. 0.00 ESC FF EOT [Name] [Code] Execute EOT mode ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation FF 0C 12 : : : : : : EOT 04 4 - Executes EOT mode. Executes operation specified by the EOT mode setting command ESC * r E n NUL. , Use prohibited.
Rev. 0.00 ESC * r V m n NUL [Name] [Code] Execute external buzzer drive ASCII ESC * r Hexadecimal 1B 2A 72 Decimal 27 42 114 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : V 56 86 1 31 49 n n n NUL 0 0 m = 49, 50, 1 ≤ n ≤ 20 - 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. m specifies the buzzer drive terminal to drive.
Rev. 0.00 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] [Code] Auto - cutter: ASCII Hexadecimal Decimal [Defined Area] [Initial Value] [Function] n 0, 48 ESC 1B 27 Thermal Slip Validation Thermal Slip Validation d 64 100 : : : : : : n n n 0 ≤ n ≤ 3, 48 ≤ n ≤ 51 (“0” ≤ n ≤ “3”) - Executes the auto-cutter.
Rev. 0.00 FF [Name] [Code] Execute top of form ASCII FF Hexadecimal 0C Decimal 12 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - Executes top of form.
Rev. 0.00 ESC C 0 n [Name] [Code] Set page length to n x 24 mm units ASCII ESC C 0 n Hexadecimal 1B 43 0 n Decimal 27 67 0 n [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : 1 ≤ n ≤ 22 (Form feed amount initial value x 42) - When black mark is effective, this command is ignored.
Rev. 0.00 VT [Name] [Code] Feed paper to vertical tab position ASCII VT Hexadecimal 0B Decimal 11 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - When black mark is effective, this command is ignored.
Rev. 0.00 ESC B NUL [Name] [Code] Clear vertical tab position ASCII ESC B Hexadecimal 1B 42 Decimal 27 66 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : NUL 00 0 - When black mark is effective, this command is ignored.
Rev. 0.00 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.
Rev. 0.
Rev. 0.
Rev. 0.00 ESC RS d n [Name] [Code] Set print density ASCII ESC Hexadecimal 1B Decimal 27 RS 1E 30 d 64 100 n n n [Defined Area] Thermal : 0 ≤ n ≤ 15 [Initial Value] Slip Validation Thermal Slip Validation : : : : : 48 ≤ n ≤ 57 (“0” ≤ n ≤ “9”), 65 ≤ n ≤ 70 (“A” ≤ n ≤ “F”) Memory switch setting - [Function] Sets print density. This command stops printing to be executed. When in 2-color print mode, this can set the print density of red print.
Rev. 0.00 ESC RS r n [Name] [Code] Set printing speed ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation RS 1E 30 : : : : : : r 72 114 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) Memory switch setting - Sets print speed. This command stops printing to be executed. Because 2-color print mode prints in one speed, the speed settings with this command are invalid.
Rev. 0.00 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] [Code] Register logo ASCII Hexadecimal Decimal [Defined Area] ESC FS q n [x11 x12 y11 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 .. 1B 1C 71 n [x11 x12 y11 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 .. dk]n 27 28 113 n [x11 x12 y11 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 ..
Rev. 0.00 (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.
Rev. 0.
Rev. 0.00 3-7) Mark Command Details This command is specialized to mark sheet printing for lotteries. This command can print lines. Print Sample L O T T E R Y 1 0 01 05 32 85 86 50 70 77 08 50 21 42 46 40 12 02 06 78 Mark Printing 2003/04/08 STAR Micronics co.,. ltd No.
Rev. 0.00 ESC GS * 0 n m1 m2 m3 … mk [Name] [Code] Print Mark ASCII Hexadecimal Decimal [Defined Area] [Initial Value] [Function] ESC 1B 27 Thermal Slip Validation Thermal Slip Validation GS 1D 29 : : : : : : * 2A 42 0 30 48 n n n m1 m1 m1 m2 m2 m2 m3 m3 m3 ... ... ... mk mk mk “001” ≤ n ≤ “255”, “0” ≤ m ≤ “9”, k = n - Prints mark number specified by m, based on the pre-specified mark format (mark height, mark line feed amount, mark color, and mark horizontal width).
Rev. 0.00 ESC GS * 1 h v [Name] [Code] Specify mark height and line feed ASCII ESC GS * Hexadecimal 1B 1D 2A Decimal 27 29 42 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : 1 31 49 h h h v v v “001” ≤ h ≤ “255”, “001” ≤ v ≤ “255”, h ≤ v Non-volatile memory - Specifies mark height and line feed v indicates mark height (number of dots); v indicates mark line feed amount (number of dots).
Rev. 0.00 ESC GS * W [Name] [Code] Register mark format to non-volatile memory ASCII ESC GS * W Hexadecimal 1B 1D 2A 57 Decimal 27 29 42 87 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - Registers the mark format (mark height, mark line feed amount, mark color, and mark horizontal width) in non-volatile memory. After registration to the non-volatile memory, execute a printer reset.
Rev. 0.00 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 operating modes. 1) Standard Auto Logo Function Preset the Auto Logo function, and execute the following operations with the printing cut command under the existing system as a trigger.
Rev. 0.00 2) 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. (4) Paper is fed to cutting position, then a partial cut is executed. (5) Execute printing of logo 1.
Rev. 0.00 Command Transmission Example 1) Set the Auto Logo function in advance and register to the non-volatile memory.
Rev. 0.00 ESC GS / W [Name] [Code] Register Auto Logo setting to non-volatile memory ASCII ESC GS / W Hexadecimal 1b 1d 2f 57 Decimal 27 29 47 87 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - Registers Auto Logo setting to non-volatile memory. After registration ends, resets the printer. This command is ignored while Auto Logo is executing.
Rev. 0.00 ESC GS / 1 n [Name] [Code] Set ON/OFF for Auto Logo function ASCII ESC GS / 1 Hexadecimal 1b 1d 2f 31 Decimal 27 29 47 49 [Defined Area] [Initial Value] [Function] n 0 1 Thermal Slip Validation Thermal Slip Validation : : : : : : n n n 0≤n≤2 n=0 - Sets ON/OFF for Auto Logo function. This setting is registered to non-volatile memory by the ESC GS / W command. When in the raster mode, the Auto Logo function is ignored. This command is ignored while Auto Logo is executing.
Rev. 0.00 ESC GS / 2 n [Name] [Code] Set command characters ASCII ESC GS Hexadecimal 1b 1d Decimal 27 29 [Defined Area] [Initial Value] [Function] n 32 to 127 0 Thermal Slip Validation Thermal Slip Validation : : : : : : / 2f 47 3 32 50 n n n 32 ≤ n ≤ 127, n = 0 n=0 - Sets command character for the Auto Logo function. This setting is registered to non-volatile memory by the ESC GS / W command. This command is ignored while Auto Logo is executing.
Rev. 0.00 ESC GS / 3 nL nH d1 d2 … dk [Name] [Code] Set user macro 1 ASCII ESC Hexadecimal 1b Decimal 27 [Defined Area] Thermal GS 1d 29 : / 2f 47 3 33 51 nL nL nL nH nH nH d1 d1 d1 d2 d2 d2 ... ... ... dk dk dk 1 ≤ nL ≤ 64, nH = 0 1 ≤ (nL + nH x 256) ≤ 64 dk = (nL + nH x 256) [Initial Value] [Function] Slip Validation Thermal Slip Validation : : : : : 0 ≤ d ≤ 255 No user macro 1 setting - Sets user macro 1 for the Auto Logo function.
Rev. 0.00 ESC GS / 4 nL nH d1 d2 … dk [Name] [Code] Set user macro 2 ASCII ESC Hexadecimal 1b Decimal 27 [Defined Area] Thermal GS 1d 29 : / 2f 47 4 34 52 nL nL nL nH nH nH d1 d1 d1 d2 d2 d2 ... ... ... dk dk dk 1 ≤ nL ≤ 64, nH = 0 1 ≤ (nL + nH x 256) ≤ 64 dk = (nL + nH x 256) [Initial Value] [Function] Slip Validation Thermal Slip Validation : : : : : 0 ≤ d ≤ 255 No user macro 2 setting - Sets user macro 2 for the Auto Logo function.
Rev. 0.00 ESC GS / 5 n [Name] [Code] Set command character switching method ASCII ESC GS / 5 n Hexadecimal 1b 1d 2f 35 n Decimal 27 29 47 53 n [Defined Area] [Initial Value] [Function] n 0 1 Thermal Slip Validation Thermal Slip Validation : : : : : : 0≤n≤1 n=0 - Sets command character conversion method for the Auto Logo function. This setting is registered to non-volatile memory by the ESC GS / W command. This command is ignored while Auto Logo is executing.
Rev. 0.00 ESC GS / 6 n [Name] [Code] Partial cut setting just prior to Auto Logo printing ASCII ESC GS / 6 n Hexadecimal 1b 1d 2f 36 n Decimal 27 29 47 54 n [Defined Area] [Initial Value] [Function] n 0 1 Thermal Slip Validation Thermal Slip Validation : : : : : : 0≤n≤1 n=0 - 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. This command is ignored while Auto Logo is executing.
Rev. 0.00 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. , Only setting is valid Setting is valid after switching to thermal.
Rev. 0.00 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. 1) Bar code type setting ( “x” “S”) 2) Bar code data setting ( “x” “D”) 3) Bar code printing ( “x” “P”) 4) Get bar code expansion information ( “x” “I”) The details of the functions are outlined below.
Rev. 0.00 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 (( “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. • When the print data exceeds the currently set print region.
Rev. 0.00 ESC GS x S 0 n p1 p2 [Name] [Code] PDF417 bar code size setting ASCII ESC GS x Hexadecimal 1B 1D 78 Decimal 27 29 120 [Defined Area] Thermal : [Initial Value] [Function] : : : : : 0 30 48 n n n p1 p1 p1 p2 p2 p2 n = 0, 1 When n = 0 Slip Validation Thermal Slip Validation S 53 83 1 ≤ p1 ≤ 99, 1 ≤ p2 ≤ 99 When n = 1 p1 = 0 or 3 ≤ p1 ≤ 90, p2 = 0 or 1 ≤ p2 ≤ 30 (However, this excludes p1 = p2 = 0.
Rev. 0.00 ESC GS x S 2 n [Name] [Code] Set PDF417 module X direction size ASCII ESC GS x S Hexadecimal 1B 1D 78 53 Decimal 27 29 120 83 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : 2 32 50 n n n 1 ≤ n ≤ 10 n=2 - Parameter details •n : Sets the module X direction size (x-dim) (units: dots) Specification using this command is recommended to be 2 ≤ n. To use with n = 1, confirm by actual use.
Rev. 0.00 ESC GS x D nL nH d1 d2 … dk [Name] [Code] PDF417 bar code data setting ASCII ESC GS x Hexadecimal 1B 1D 78 Decimal 27 29 120 [Defined Area] Thermal : D 44 68 nL nL nL nH nH nH d1 d1 d1 d2 d2 d2 … … … dk dk dk 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 1 ≤ (nL + nH x 256) ≤ 1024 [Initial Value] [Function] Slip Validation Thermal Slip Validation : : : : : 0 ≤ d ≤ 255, 1 ≤ k ≤ 1024 - Parameter details • nL+nH×256: Bar code data count • dk: Bar code data (max.
Rev. 0.00 ESC GS x I [Name] [Code] Get PDF417 bar code expansion information ASCII ESC GS x I Hexadecimal 1B 1D 78 49 Decimal 27 29 120 73 [Defined Area] Thermal Slip Validation Thermal Slip Validation [Initial Value] [Function] : : : : : : - 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.
Rev. 0.00 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.
Rev. 0.00 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.
Rev. 0.00 2) 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); and a method that specifies only the bar code data (data automatic analysis).
Rev. 0.00 Below is a command transmission example. (1) Bar code type setting “y”“S”“0” 1 “y”“S”“1” 0 “y”“S”“2” 3 : Set to model 1. : Set error correction level to L. : Set cell size to 3 dots.
Rev. 0.00 ESC GS y S 0 n [Name] [Code] Set QR code model ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] n 1 2 Thermal Slip Validation Thermal Slip Validation GS 1D 29 : : : : : : y 79 121 S 53 83 0 30 48 n n n 1≤n≤2 n=2 - Sets the model. • Parameter details Set model Model 1 Model 2 , Only setting is valid Setting is valid after switching to thermal.
Rev. 0.00 ESC GS y S 2 n [Name] [Code] Set QR code cell size ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation GS 1D 29 : : : : : : y 79 121 S 53 83 2 32 50 n n n 1≤n≤8 n=3 - Sets the cell size. • Parameter details • n: Cell size (Units: Dots) • Specification using this command is recommended to be 3 ≤ n. To use with n = 1 and 2, confirm by actual use.
Rev. 0.00 ESC GS y D 1 m nL nH d1 d2 … dk [Name] [Code] QR code data setting (automatic setting) ASCII ESC GS y D Hexadecimal 1B 1D 79 44 Decimal 27 29 121 68 [Defined Area] Thermal : 1 31 49 m m m [Initial Value] [Function] : : : : : nH nH nH d1 d1 d1 d2 d2 d2 … … … dk dk dk m=0 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 Slip Validation Thermal Slip Validation nL nL nL 1 ≤ nL + nH × 256 ≤ 7089 (k = nL + nH × 256) 0 ≤ d ≤ 255 - Automatically analyzes the bar code data type and sets the data.
Rev. 0.
Rev. 0.00 ESC GS y P [Name] [Code] Print QR code ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation GS 1D 29 : : : : : : y 79 121 P 50 80 - 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. Margins of more than 4 cells are required around the QR code. The user must ensure the margins.
Rev. 0.00 3-12) Page Function Command Details ESC GS h 0 k m n [Name] [Code] 180˚ inversion function ASCII ESC GS Hexadecimal 1B 1D Decimal 27 29 [Defined Area] [Initial Value] [Function] k 0 1 Thermal Slip Validation Thermal Slip Validation : : : : : : h 68 104 0 30 48 k k k m m m n n n 0 ≤ k ≤ 1, m = 0, n = 0 - Sets to make 180˚ inversion function valid/invalid.
Rev. 0.00 ESC GS h 1 k m n [Name] [Code] Water mark function ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation GS 1D 29 : : : : : : h 68 104 1 31 49 k k k m m m n n n 0 ≤ k ≤ 2, 0 ≤ m ≤ 2, 1 ≤ n ≤ 255 - Sets to make water mark function valid/invalid. k 0 1 Invalid Valid Water Mark Function 2 Prints one logo specified by n at the position centered in the horizontal and vertical directions.
Rev. 0.00 1) 2) 3) 4) Example of Use Register logo to use as the water mark as logo #1. Water mark function is valid.: ESC GS h 1 k m n (k=0x02, m=0x01, n=0x01) Transmit print data: Print data (print length is within the length of the image buffer) Trigger command transmission: ESC d n (cutter command is water mark printing trigger) , Only setting is valid Setting is valid after switching to thermal.
Rev. 0.
Rev. 0.
Rev. 0.00 3-14) Page Mode Command Details FF [Name] [Code] Batch printing of page data (valid only in page mode) ASCII FF Hexadecimal 0C Decimal 12 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - Refer to “Page Control Command.” , When in page mode, the printer batch prints page data expanded in the page region, then returns to line mode.
Rev. 0.00 ESC n [Name] [Code] Selects page mode ASCII ESC Hexadecimal 1B Decimal 27 [Defined Area] [Initial Value] Thermal Slip Validation Thermal Slip Validation n 6E 110 : : : : : : - [Function] Two bytes ignored , Shifts from line mode (default) to page mode. This command is valid when input at the top of the line.
Rev. 0.00 ESC ! [Name] [Code] Select line mode (Default) ASCII ESC ! Hexadecimal 1B 21 Decimal 27 33 [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : - Two bytes ignored , Select line mode (Default) When this command is executed in page mode, the printer returns to line mode without printing.
Rev. 0.
Rev. 0.00 ESC T n [Name] [Code] Set page mode rotation direction ASCII ESC T n Hexadecimal 1B 54 n Decimal 27 84 n [Defined Area] [Initial Value] [Function] Thermal Slip Validation Thermal Slip Validation : : : : : : 0 ≤ n ≤ 3, 48 ≤ n ≤ 51, (“0” ≤ n ≤ “3”) 0 ≤ n ≤ 3, 48 ≤ n ≤ 51, (“0” ≤ n ≤ “3”) n=0 n=0 Three bytes ignored , Sets the rotation in page mode to the items in the table below, according to the n value. Setting valid only when line mode.
Rev. 0.
Rev. 0.00 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.
Rev. 0.
Rev. 0.00 3-17) MICR Related Command Details The following commands control MICR functions. The following commands are effective only on models equipped with MICR.
Rev. 0.
Rev. 0.00 4.
Rev. 0.00 5. APPENDIX 5-1) Appendix 1: Bar Code Specification Details 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. The user must ensure the specified printing position and quiet zone at the position where the bar code begins.
Rev. 0.00 5-1-3) JAN/EAN/UPC Used numbers, not only the bar code symbols, are controlled using JAN, EAN and UPC as shared common commercial 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 JAN/EAN-8 (*) JAN/EAN-13 UPC-A UPC-E Mode 1 2 Dots 16.75mm Mode 2 3 Dots 25.125mm Mode 3 4 Dots 33.5mm 23.75mm 23.75mm 12.75mm 35.625mm 35.625mm 19.125mm 47.5mm 47.5mm 25.
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 Module Width Length of 1 Character (*) (*) Start and stob bars not included. Mode 1 2 Dots 2.75mm Mode 2 3 Dots 4.125mm Mode 3 4 Dots 5.5mm 2. Regulations When using LF with the command, control codes are not sent by the host PC, so the control codes are sent as data, as shown below.
Rev. 0.00 3.
Rev. 0.00 5-1-5) Code 93 1. Each mode and module width Items Module Width Length of 1 Character (*) Mode 1 2 Dots 2.25mm (*) Start and stob bars not included. Mode 2 3 Dots 3.375mm Mode 3 4 Dots 4.5mm 2. Regulations • Start/stop codes are automatically applied. • Check character (C, K) is automatically applied. • 2 character set expression conforms to Code 128. However, items marked with a star are codes that can only be used with Code 128, and not with Code 93.
Rev. 0.00 5-2) Appendix 2 – Status Specifications 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-1) ENQ Command Status This status is the one the printer transmits using the ENQ command.
Rev. 0.00 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 status has changed.Automatic status is composed of “Header – 1,” “Header – 2” and “plurality of bytes of the printer status and is continuously returned to the host.The host always uses an identifying method to identify the data for every byte received.
Rev. 0.00 (2) 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.
Rev. 0.00 (3) Printer Status Printer status is the status of the printer sent from the 3rd byte of the automatic status. 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.
Rev. 0.
Rev. 0.00 Bit Contents Status “0” 7 6 5 4 3 2 1 0 Fixed at “0” ETB Counter ETB Counter Fixed at “0” ETB Counter ETB Counter ETB Counter Fixed at “0” By model “1” - HSP7000 ○ ○ ○ ○ ○ - Bit-4 Bit-3 Bit-2 Bit-1 Bit-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 command.
Rev. 0.00 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.
Rev. 0.00 (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 “;”.
Rev. 0.00 5-3) Appendix 3 – Blank Code Page Configuration 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. • ESC GS = ….. When registering data, Font A and Font B data must be registered as a set. 1. Example configuration of Font A data.
Rev. 0.00 2. Example configuration of Font B data. (9 x 24 font) Fig.
Rev. 0.
Rev. 0.
Rev. 0.
Rev. 0.
Rev. 0.00 6.
Rev. 0.
Rev. 0.00 • Raster related commands Class Raster Class 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...
Rev. 0.
Rev. 0.
Rev. 0.00 7.
Rev. 0.
Rev. 0.
Rev. 0.
Rev. 0.
Rev. 0.
Rev. 0.
Rev. 0.
Rev. 0.
OVERSEAS SUBSIDIARY COMPANIES STAR MICRONICS AMERICA, INC. 1150 King Georges Post Road, Edison, NJ 08837-3729 U.S.A. Tel: (int+1)-732-623-5555, Fax: (int+1)-732-623-5590 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. STAR MICRONICS EUROPE LTD.