Star Micronics Line Thermal/Dot Printer manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Star Micronics Line Thermal/Dot Printer, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Star Micronics Line Thermal/Dot Printer one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Star Micronics Line Thermal/Dot Printer. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Star Micronics Line Thermal/Dot Printer should contain:
- informations concerning technical data of Star Micronics Line Thermal/Dot Printer
- name of the manufacturer and a year of construction of the Star Micronics Line Thermal/Dot Printer item
- rules of operation, control and maintenance of the Star Micronics Line Thermal/Dot Printer item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Star Micronics Line Thermal/Dot Printer alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Star Micronics Line Thermal/Dot Printer, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Star Micronics service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Star Micronics Line Thermal/Dot Printer.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Star Micronics Line Thermal/Dot Printer item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    Line Thermal/Dot Printer ST AR Line Mode Command Specications Rev . 0.00 Star Micronics Co., Ltd. Special Products Operating Division[...]

  • Page 2

    Contents 1. GENERAL DESCRIPTION 1-1 2. COMMAND FUNCTION LIST 2-1 3. COMMAND DET AILS 3-1 3-1) Explanation of T erms 3-1 3-2) Exception processing 3-2 3-3) Standard Command Details 3-3 3-3-1) Font style and character set 3-3 ESC RS F n 3-3 ESC GS t n 3-4 ESC GS = n1 n2 da1 da2 … dak db1 db2 … dbk 3-5 ESC R n 3-6 ESC / N 3-7 ESC SP n 3-7 ESC M 3-[...]

  • Page 3

    ESC Q n 3-38 HT 3-39 ESC D n1 n2 … nk NUL 3-39 ESC D NUL 3-40 ESC GS A n1 n2 3-40 ESC GS R n1 n2 3-41 ESC GS a n 3-42 3-3-7) Download 3-43 ESC & c1 c2 n d1 . . . d48 3-43 ESC & c1 c2 n 3-44 ESC & NUL n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)] n 2 - n 1 + 1 3 - 4 5 ESC % N 3-47 3-3-8) Bit Image Graphics 3-48 ESC K n1 n2 d1 … dk 3-48 ESC L n1 n[...]

  • Page 4

    4. CHARACTER CODE T ABLES 4-1 5. APPENDIX 5-1 5-1) Appendix1:BarCodeSpecicationDetails<Thermal> 5- 1 5-1-1) Code 39 5-1 5-1-2) Interleaved 2 of 5 5-1 5-1-3) JAN/EAN/UPC 5-2 5-1-4) Code 128 5-3 5-1-5) Code 93 5-5 5-1-6) NW7 (CODERBAR) 5-5 5-2) Appendix2–StatusSpecications<Shared> 5- 6 [...]

  • Page 5

    [...]

  • Page 6

    Rev . 0.00 1-1 ST ARLIneModeCommandSpecications 1. GENERAL DESCRIPTION ThisspecicationsdocumentdescribesthecommandspecicationsfortheST ARMODEonhybridprinters. Information contained herein applies to models with the following conditions. • Hybrid printers • Interfaces: - Parallel • RS[...]

  • Page 7

    Rev . 0.00 2-1 ST ARLIneModeCommandSpecications 2. COMMAND FUNCTION LIST • Standard Commands Class Commands Name Thermal Slip, V alidation Font style ESC RS F Select font - and character set ESC GS t Select code page ← ESC GS = Write blank code page data ← ESC R Specify international character set ← ESC / Specify/cancel slash[...]

  • Page 8

    Rev . 0.00 2-2 ST ARLIneModeCommandSpecications Class Commands Name Thermal Slip, V alidation Page control FF Form feed - ESC C Set page length to n lines - ESC C 0 Set page length in n x 24 mm units - VT Feed paper to vertical tab position - ESC B Set vertical tab position - Horizontal direction position ESC I Set left margin ← ES[...]

  • Page 9

    Rev . 0.00 2-3 ST ARLIneModeCommandSpecications Class Commands Name Thermal Slip, V alidation Kanji Character ESC p Set JIS Kanji Character mode ← ESC q Cancel JIS Kanji Character mode ← ESC $ Set/cancel JIS Kanji Character mode ← ESC s Set two-byte Kanji characters left/ right spaces ← ESC t Set single-byte Kanji characters [...]

  • Page 10

    Rev . 0.00 2-4 ST ARLIneModeCommandSpecications • Raster Related Commands Class Commands Name Thermal Slip, V alidation Raster commands ESC * r R Initialize raster mode - ESC * r A Enter raster mode - ESC * r B Quit raster mode - ESC * r C Clear raster data - ESC * r D Drawer drive - ESC * r E Set raster EOT mode - ESC * r F Set ra[...]

  • Page 11

    Rev . 0.00 2-5 ST ARLIneModeCommandSpecications • Mark Commands Class Commands Name Thermal Slip, V alidation Mark Commands ESC GS * 0 Print mark - ESC GS * 1 Specify mark height and line feed - ESC GS * 2 At each mark number Specify mark color , mark horizontal width - ESC GS * W Register mark format to non- volatile memory - ESC [...]

  • Page 12

    Rev . 0.00 2-6 ST ARLIneModeCommandSpecications • Page Function Commands Class Commands Name Thermal Slip, V alidation Page Function ESC GS h 0 180˚inversionfunction - ESC GS h 1 W ater mark function - • Slip/V alidation Function Commands Class Commands Name Thermal Slip, V alidation Slip Function ESC SI - - ESC FF -[...]

  • Page 13

    Rev . 0.00 3-1 ST ARLineModeCommandSpecications 3. COMMAND DET AILS 3-1) Explanation of T erms • 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 b[...]

  • Page 14

    Rev . 0.00 3-2 ST ARLIneModeCommandSpecications 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[...]

  • Page 15

    Rev . 0.00 3-3 ST ARLineModeCommandSpecications 3-3) Standard Command Details 3-3-1) Font style and character set ESC RS F n [Name] Select font [Code] ASCII ESC RS F n Hexadecimal 1B 1E 46 n Decimal 27 30 70 n [Dened Area] Thermal : 0 ≤ n ≤ 1, n = 16 Slip : - V alidation : - [Initial V alue] Thermal : n = 0 Slip : - V alida[...]

  • Page 16

    Rev . 0.00 3-4 ST ARLIneModeCommandSpecications ESC GS t n [Name] Select code page [Code] ASCII ESC GS t n Hexadecimal 1B 1D 74 n Decimal 27 29 1 16 n [Dened 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 V alidation : 0 ≤ n ≤ 21, 32[...]

  • Page 17

    Rev . 0.00 3-5 ST ARLineModeCommandSpecications ESC GS = n1 n2 da1 da2 … dak db1 db2 … dbk [Name] Write blank code page data [Code] ASCII ESC GS = n1 n2 da1 da2 .. dak db1 db2 .. dbk Hexadecimal 1B 1D 3D n1 n2 da1 da2 .. dak db1 db2 .. dbk Decimal 27 29 61 n1 n2 da1 da2 .. dak db1 db2 .. dbk [Dened Area] Thermal : n1 = 0, n[...]

  • Page 18

    Rev . 0.00 3-6 ST ARLIneModeCommandSpecications ESC R n [Name] Specify international character set [Code] ASCII ESC R n Hexadecimal 1B 52 n Decimal 27 82 n [Dened Area] Thermal : 0 ≤ n ≤ 14, n = 64, 48 ≤ N ≤ 57 (”0” ≤ n ≤ “9”), 65 ≤ n ≤ 69 (”A” ≤ n ≤ “E”) Slip : 0 ≤ n ≤ 14, n = 64, 48 ≤[...]

  • Page 19

    Rev . 0.00 3-7 ST ARLineModeCommandSpecications ESC / N [Name] Specify/cancel slash zero [Code] ASCII ESC / n Hexadecimal 1B 2F n Decimal 27 47 n [Dened Area] Thermal : n = 0, 1, 48, 49 Slip : n = 0, 1, 48, 49 V alidation : n = 0, 1, 48, 49 [Initial V alue] Thermal : Memory switch setting Slip : Memory switch setting V alidatio[...]

  • Page 20

    Rev . 0.00 3-8 ST ARLIneModeCommandSpecications ESC M [Name] (Thermal) Specify 12 dot pitch/(Slip) specify 7 x 9 font (half dots) (default) [Code] ASCII ESC M Hexadecimal 1B 4D Decimal 27 77 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Memory switch setting Slip : - V alidation : - [Function] <[...]

  • Page 21

    Rev . 0.00 3-9 ST ARLineModeCommandSpecications ESC : [Name] (Thermal) Specify 16 dot pitch/(Slip) specify 5 x 9 font (3P-1) [Code] ASCII ESC : Hexadecimal 1B 3A Decimal 27 58 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Memory switch setting Slip : - V alidation : - [Function] <Thermal>[...]

  • Page 22

    Rev . 0.00 3-10 ST ARLIneModeCommandSpecications ESC 6 [Name] Specify IBM character set #2 [Code] ASCII ESC 6 Hexadecimal 1B 36 Decimal 27 54 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Two bytes ignored ESC 7 [Name] Specify IBM character set #1 [Code] ASCII[...]

  • Page 23

    Rev . 0.00 3-1 1 ST ARLineModeCommandSpecications 3-3-2) Character Expansion Settings ESC i n1 n2 [Name] Set/cancel the double wide/high [Code] ASCII ESC i n1 n2 Hexadecimal 1B 69 n1 n2 Decimal 27 105 n1 n2 [Dened Area] Thermal : 0 ≤ n1 ≤ 5, 48 ≤ n1 ≤ 53(“0” ≤ n1 ≤ “5”), 0 ≤ n2 ≤ 5, 48 ≤ n2 ≤ 53(?[...]

  • Page 24

    Rev . 0.00 3-12 ST ARLIneModeCommandSpecications ESC W n [Name] Specify/cancel expanded wide [Code] ASCII ESC W n Hexadecimal 1B 57 n Decimal 27 87 n [Dened Area] Thermal : 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) Slip : 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) V alidation : 0 ≤ n ≤ 5, [...]

  • Page 25

    Rev . 0.00 3-13 ST ARLineModeCommandSpecications ESC h n [Name] Specify/cancel expanded high [Code] ASCII ESC h n Hexadecimal 1B 68 n Decimal 27 104 n [Dened Area] Thermal : 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) Slip : 0 ≤ n ≤ 5, 48 ≤ n ≤ 53, (“0” ≤ n ≤ “5”) V alidation : 0 ≤ n ≤ 5,[...]

  • Page 26

    Rev . 0.00 3-14 ST ARLIneModeCommandSpecications SO [Name] Set double wide [Code] ASCII SO Hexadecimal 0E Decimal 14 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Cancels 2x wide expansion Slip : Cancels 2x wide expansion V alidation : Cancels 2x wide expansion [Function] Specifies double wide for[...]

  • Page 27

    Rev . 0.00 3-15 ST ARLineModeCommandSpecications ESC SO [Name] Set double high [Code] ASCII ESC SO Hexadecimal 1B 0E Decimal 27 14 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Double high expansion cancelled. Slip : Double high expansion cancelled. V alidation : Double high expansion cancelled. [[...]

  • Page 28

    Rev . 0.00 3-16 ST ARLIneModeCommandSpecications 3-3-3) Print mode ESC E [Name] Select emphasized printing [Code] ASCII ESC E Hexadecimal 1B 45 Decimal 27 69 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Emphasized printing cancelled. Slip : Emphasized printing cancelled. V alidation : Emphasized [...]

  • Page 29

    Rev . 0.00 3-17 ST ARLineModeCommandSpecications ESC F [Name] Cancel emphasized printing [Code] ASCII ESC F Hexadecimal 1B 46 Decimal 27 70 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Emphasized printing cancelled. Slip : Emphasized printing cancelled. V alidation : Emphasized printing cancelled[...]

  • Page 30

    Rev . 0.00 3-18 ST ARLIneModeCommandSpecications ESC – n [Name] Specify/cancel underling mode [Code] ASCII ESC - n Hexadecimal 1B 2D n Decimal 27 45 n [Dened Area] Thermal : n = 0, 1, 48, 49 Slip : n = 0, 1, 48, 49 V alidation : n = 0, 1, 48, 49 [Initial V alue] Thermal : n = 0 (Underline cancelled) Slip : n = 0 (Underline ca[...]

  • Page 31

    Rev . 0.00 3-19 ST ARLineModeCommandSpecications ESC _ n [Name] Specify/cancel upperline [Code] ASCII ESC _ n Hexadecimal 1B 5F n Decimal 27 95 n [Dened Area] Thermal : n = 0, 1, 48, 49 Slip : n = 0, 1, 48, 49 V alidation : n = 0, 1, 48, 49 [Initial V alue] Thermal : n = 0 (Upperline cancelled) Slip : n = 0 (Upperline cancelled[...]

  • Page 32

    Rev . 0.00 3-20 ST ARLIneModeCommandSpecications ESC 4 [Name] (Thermal) Specify black/white inversion/(Slip) specify black/white inversion, red/black color ( substitute function ) [Code] ASCII ESC 4 Hexadecimal 1B 34 Decimal 27 52 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : White/black inversion[...]

  • Page 33

    Rev . 0.00 3-21 ST ARLineModeCommandSpecications ESC GS 4 m n [Name] Select red/black substitute function [ESC 4/5 setting] [Code] ASCII ESC GS 4 m n Hexadecimal 1B 1D 34 m n Decimal 27 29 52 m n [Dened Area] Thermal : - Slip : m = 1, 2, 49, 50 When m = 1, 49 (“1”) : n = 0 to 3, 255 When m = 2, 50 (“2”) : n = 0, 2 to 5 [...]

  • Page 34

    Rev . 0.00 3-22 ST ARLIneModeCommandSpecications Precautionsforselecting<Option1> 1. Prints white/black inverted characters using 5 x 9 fonts regardless of the current font size setting. 2. Inserts a one dot string of black printing to the head of the white/black inverted characters. 3. Printing data created on a[...]

  • Page 35

    Rev . 0.00 3-23 ST ARLineModeCommandSpecications SI [Name] Select upside-down printing [Code] ASCII SI Hexadecimal 0F Decimal 15 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Upside-down printing cancelled Slip : Upside-down printing cancelled V alidation : Upside-down printing cancelled [Function[...]

  • Page 36

    Rev . 0.00 3-24 ST ARLIneModeCommandSpecications ESC RS i n [Name] Specify/cancel character rotated mode [Code] ASCII ESC RS i n Hexadecimal 1B 1E 69 n Decimal 27 30 105 n [Dened Area] Thermal : - Slip : 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) V alidation : 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ [...]

  • Page 37

    Rev . 0.00 3-25 ST ARLineModeCommandSpecications 3-3-4) Line Spacing LF [Name] Line feed [Code] ASCII LF Hexadecimal 0A Decimal 10 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Memory switch setting Slip : 1/6 inch line feed V alidation : 1/6 inch line feed [Function] Feeds the currently specified[...]

  • Page 38

    Rev . 0.00 3-26 ST ARLIneModeCommandSpecications ESC a n [Name] Feed paper n lines [Code] ASCII ESC a n Hexadecimal 1B 61 n Decimal 27 97 n [Dened Area] Thermal : 1 ≤ n ≤ 127 Slip : 1 ≤ n ≤ 127 V alidation : 1 ≤ n ≤ 127 [Initial V alue] Thermal : Memory switch setting Slip : 1/6 inch V alidation : 1/6 inch [Function[...]

  • Page 39

    Rev . 0.00 3-27 ST ARLineModeCommandSpecications ESC z n [Name] Select line feed amount [Code] ASCII ESC z n Hexadecimal 1B 7A n Decimal 27 122 n [Dened Area] Thermal : n = 1, 49 Slip : n = 0, 1, n = 48, 49 V alidation : n = 0, 1, n = 48, 49 [Initial V alue] Thermal : Memory switch setting Slip : 1/6 inch V alidation : 1/6 inch[...]

  • Page 40

    Rev . 0.00 3-28 ST ARLIneModeCommandSpecications ESC 1 [Name] (Thermal) Specify 3 mm line feed amount/(Slip) specify 7/72 inch line feed amount [Code] ASCII ESC 1 Hexadecimal 1B 31 Decimal 27 49 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Memory switch setting Slip : 1/6 inch V alidation : 1/6 i[...]

  • Page 41

    Rev . 0.00 3-29 ST ARLineModeCommandSpecications ESC j n [Name] Reverse paper feed [Code] ASCII ESC j n Hexadecimal 1B 6A n Decimal 27 106 n [Dened Area] Thermal : - Slip : 0 ≤ n ≤ 255 V alidation : 0 ≤ n ≤ 255 [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Three bytes ignored <Sl[...]

  • Page 42

    Rev . 0.00 3-30 ST ARLIneModeCommandSpecications ESC A n [Name] Denes(thermal)a3mm/4mmlinefeedamount/Denes(slip)n/72inchpitchlinefeed [Code] ASCII ESC A n Hexadecimal 1B 41 n Decimal 27 65 n [Dened Area] Thermal : 0 ≤ n ≤ 255 Slip : 0 ≤ n ≤ 85 V alidation : 0 ≤ n ≤ [...]

  • Page 43

    Rev . 0.00 3-31 ST ARLineModeCommandSpecications ESC 3 n [Name] Specify n/216 inch paper feed [Code] ASCII ESC 3 n Hexadecimal 1B 33 n Decimal 27 51 n [Dened Area] Thermal : - Slip : 0 ≤ n ≤ 255 V alidation : 0 ≤ n ≤ 255 [Initial V alue] Thermal : - Slip : 1/6 inch line feed V alidation : 1/6 inch line feed [Function] &[...]

  • Page 44

    Rev . 0.00 3-32 ST ARLIneModeCommandSpecications 3-3-5) Page Control Commands FF [Name] Form feed [Code] ASCII FF Hexadecimal 0C Decimal 12 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Executes a form feed. If the current position is at the[...]

  • Page 45

    Rev . 0.00 3-33 ST ARLineModeCommandSpecications ESC C n [Name] Set page length to n lines [Code] ASCII ESC C n Hexadecimal 1B 43 n Decimal 27 67 n [Dened Area] Thermal : 1 ≤ n ≤ 127 Slip : - V alidation : - [Initial V alue] Thermal : (Form feed amount initial value x 42) Slip : - V alidation : - [Function] <Thermal>?[...]

  • Page 46

    Rev . 0.00 3-34 ST ARLIneModeCommandSpecications ESC C 0 n [Name] Set n x 24 mm page length [Code] ASCII ESC C 0 n Hexadecimal 1B 43 00 n Decimal 27 67 0 n [Dened Area] Thermal : 1 ≤ n ≤ 22 Slip : - V alidation : - [Initial V alue] Thermal : (Form feed amount initial value x 42) Slip : - V alidation : - [Function] <Therm[...]

  • Page 47

    Rev . 0.00 3-35 ST ARLineModeCommandSpecications VT [Name] Feed paper to vertical tab position [Code] ASCII VT Hexadecimal 0B Decimal 1 1 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Feeds paper to the next vertical tab position. This comma[...]

  • Page 48

    Rev . 0.00 3-36 ST ARLIneModeCommandSpecications ESC B n1 n2 … nk NUL [Name] Set vertical tab position [Code] ASCII ESC B n1 n2 .. nk NUL Hexadecimal 1B 42 n1 n2 .. nk 00 Decimal 27 66 n1 n2 .. nk 0 [Dened Area] Thermal : 1 ≤ n ≤ 255, 0 ≤ n ≤ 16 Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidatio[...]

  • Page 49

    Rev . 0.00 3-37 ST ARLineModeCommandSpecications 3-3-6) Horizontal Direction Printing Position ESC l n [Name] Set left margin [Code] ASCII ESC l n Hexadecimal 1B 6C n Decimal 27 108 n [Dened Area] Thermal : 0 ≤ n ≤ 255 Slip : 0 ≤ n ≤ (right margin -2) ≤ 255 V alidation : 0 ≤ n ≤ (right margin -2) ≤ 255 [Initial [...]

  • Page 50

    Rev . 0.00 3-38 ST ARLIneModeCommandSpecications ESC Q n [Name] Set right margin [Code] ASCII ESC Q n Hexadecimal 1B 51 n Decimal 27 81 n [Dened Area] Thermal : 0 ≤ n ≤ 255 Slip : 2 ≤ n ≤ maximum printable digits ≤ 255 V alidation : 2 ≤ n ≤ maximum printable digits ≤ 255 [Initial V alue] Thermal : - Slip : Maxim[...]

  • Page 51

    Rev . 0.00 3-39 ST ARLineModeCommandSpecications HT [Name] Move horizontal tab [Code] ASCII HT Hexadecimal 09 Decimal 9 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Move print position to next horizontal tab position. The current position moves to the next ta[...]

  • Page 52

    Rev . 0.00 3-40 ST ARLIneModeCommandSpecications ESC D NUL [Name] Clear horizontal tab [Code] ASCII ESC D NUL Hexadecimal 1B 44 00 Decimal 27 68 0 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Clears the currently set horizontal tab. (Note) The settings using [...]

  • Page 53

    Rev . 0.00 3-41 ST ARLineModeCommandSpecications ESC GS R n1 n2 [Name] Move relative position [Code] ASCII ESC GS R n1 n2 Hexadecimal 1B 1D 52 n1 n2 Decimal 27 29 82 n1 n2 [Dened Area] Thermal : 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255 Slip : 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255 V alidation : 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255 [Initial[...]

  • Page 54

    Rev . 0.00 3-42 ST ARLIneModeCommandSpecications ESC GS a n [Name] Specify position alignment [Code] ASCII ESC GS a n Hexadecimal 1B 1D 61 n Decimal 27 29 97 n [Dened Area] Thermal : 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) Slip : 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) V alidation : 0 ≤[...]

  • Page 55

    Rev . 0.00 3-43 ST ARLineModeCommandSpecications 3-3-7) Download ESC & c1 c2 n d1 . . . d48 [Name] Register 12 x 24 dot font download characters [Code] ASCII ESC & c1 c2 n d1 .. d48 Hexadecimal 1B 26 c1 c2 n d1 .. d48 Decimal 27 38 c1 c2 n d1 .. d48 [Dened Area] Thermal : c1 = 1, 49, c2 = 1, 49, 32 ≤ n ≤ 127, 0 ≤ [...]

  • Page 56

    Rev . 0.00 3-44 ST ARLIneModeCommandSpecications ESC & c1 c2 n [Name] Delete 12 x 24 dot font download characters [Code] ASCII ESC & c1 c2 n Hexadecimal 1B 26 c1 c2 n Decimal 27 38 c1 c2 n [Dened Area] Thermal : c1 = 1, 49, c2 = 0, 48, 32 ≤ n ≤ 127 Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V ali[...]

  • Page 57

    Rev . 0.00 3-45 ST ARLineModeCommandSpecications ESC & NUL n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)] n 2 - n 1 + 1 [Name] Register download characters [Code] ASCII ESC & NUL n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)] n2 - n1 + 1 Hexadecimal 1B 26 00 n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)] n2 - n1 + 1 Decimal 27 38 0 n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)] n2[...]

  • Page 58

    Rev . 0.00 3-46 ST ARLIneModeCommandSpecications [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 chara[...]

  • Page 59

    Rev . 0.00 3-47 ST ARLineModeCommandSpecications ESC % N [Name] Specify/cancel ANK download characters [Code] ASCII ESC % n Hexadecimal 1B 25 n Decimal 27 37 n [Dened Area] Thermal : n = 0, 1, 48, 49 Slip : n = 0, 1, 48, 49 V alidation : n = 0, 1, 48, 49 [Initial V alue] Thermal : Cancel ANK download character Slip : Cancel ANK[...]

  • Page 60

    Rev . 0.00 3-48 ST ARLIneModeCommandSpecications 3-3-8) Bit Image Graphics ESC K n1 n2 d1 … dk [Name] Standard density bit image [Code] ASCII ESC K n1 n2 d1 .. dk Hexadecimal 1B 4B n1 n2 d1 .. dk Decimal 27 75 n1 n2 d1 .. dk [Dened Area] Thermal : 1 ≤ {(n1 + n2 x 256) x 3} ≤ printable region k = (n1 + n2 x 256) 0 ≤ d ?[...]

  • Page 61

    Rev . 0.00 3-49 ST ARLineModeCommandSpecications <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?[...]

  • Page 62

    Rev . 0.00 3-50 ST ARLIneModeCommandSpecications ESC L n1 n2 d1 … dk [Name] High density bit image [Code] ASCII ESC L n1 n2 d1 .. dk Hexadecimal 1B 4C n1 n2 d1 .. dk Decimal 27 76 n1 n2 d1 .. dk [Dened Area] Thermal : 1 ≤ {(n1 + n2 x 256) ≤ printable region k = (n1 + n2 x 256) 0 ≤ d ≤ 255 Slip : 1 ≤( n1 + n2 x 25[...]

  • Page 63

    Rev . 0.00 3-51 ST ARLineModeCommandSpecications ESC k n1 n2 d1 … dk [Name] Fine bit image [Code] ASCII ESC k n1 n2 d1 .. dk Hexadecimal 1B 6B n1 n2 d1 .. dk Decimal 27 107 n1 n2 d1 .. dk [Dened Area] Thermal : n2 = 0 1 ≤ {(n1 + n2 x 256) x 8} ≤ printable region k = {(n1 + n2 x 256) x 24} 0 ≤ d ≤ 255 Slip : - V alidat[...]

  • Page 64

    Rev . 0.00 3-52 ST ARLIneModeCommandSpecications ESC X n1 n2 d1 … dk [Name] Fine density bit image (Wire-dot, 24 pin compatible) [Code] ASCII ESC X n1 n2 d1 .. dk Hexadecimal 1B 58 n1 n2 d1 .. dk Decimal 27 88 n1 n2 d1 .. dk [Dened Area] Thermal : 1 ≤ (n1 + n2 x 256) ≤ printable region k = {(n1 + n2 x 256) x 3} 0 ≤ d ?[...]

  • Page 65

    Rev . 0.00 3-53 ST ARLineModeCommandSpecications ESC ^ m n1 n2 d1 d2 … dk [Name] 9 Dot bit image [Code] ASCII ESC ^ m n1 n2 d1 d2 .. dk Hexadecimal 1B 5E m n1 n2 d1 d2 .. dk Decimal 27 94 m n1 n2 d1 d2 .. dk [Dened Area] Thermal : - Slip : 0 ≤ m ≤ 1 (“0” ≤ m ≤ “1”) V alidation : 0 ≤ m ≤ 1 (“0” ≤ m ?[...]

  • Page 66

    Rev . 0.00 3-54 ST ARLIneModeCommandSpecications 3-3-9) Logo ESC FS q n [x1 1 x12 y1 1 y12 d1 … dk]1 … [xn1 xn2 yn1 yn2 d1 … dk] n [Name] Register logo [Code] ASCII ESC FS q n [x1 1 x12 y1 1 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 .. dk]n Hexadecimal 1B 1C 71 n [x1 1 x12 y1 1 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 .. dk]n Decimal [...]

  • Page 67

    Rev . 0.00 3-55 ST ARLineModeCommandSpecications (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[...]

  • Page 68

    Rev . 0.00 3-56 ST ARLIneModeCommandSpecications ESC FS p n m [Name] Print logo [Code] ASCII ESC FS p n m Hexadecimal 1B 1C 70 n m Decimal 27 28 1 12 n m [Dened Area] Thermal : 1 ≤ n ≤ 255 0 ≤ m ≤ 3, 48 ≤ m ≤ 51, (“0” ≤ m ≤ “3”) Slip : 1 ≤ n ≤ 255 0 ≤ m ≤ 3, 48 ≤ m ≤ 51, (“0” ≤ m ≤ ?[...]

  • Page 69

    Rev . 0.00 3-57 ST ARLineModeCommandSpecications ESC RS L m [Name] Logo batch control [Code] ASCII ESC RS L m Hexadecimal 1B 1E 4C m Decimal 27 30 76 m [Dened 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 V alidati[...]

  • Page 70

    Rev . 0.00 3-58 ST ARLIneModeCommandSpecications 3-3-10) Bar Codes ESC b n1 n2 n3 n4 d1 . . . dk RS [Name] Print bar code [Code] ASCII ESC b n1 n2 n3 n4 d1 .. dk RS Hexadecimal 1B 62 n1 n2 n3 n4 d1 .. dk 1E Decimal 27 98 n1 n2 n3 n4 d1 .. dk 30 [Dened Area] Thermal : 0 ≤ n1 ≤ 8, 48 ≤ n1 ≤ 56 (“0” ≤ n1 ≤ “8”)[...]

  • Page 71

    Rev . 0.00 3-59 ST ARLineModeCommandSpecications • n3: Bar Code Mode Selection n3 Bar Codes T ypes UPC-E, UPC-A, JAN/EAN8 Code39, NW-7 ITF JAN/EAN13, Code128, Code93 1, 49 Minimum module 2 dots Narrow : Wide = 2: 6 dots Narrow : Wide = 2: 5 dots 2, 50 Minimum module 3 dots Narrow : Wide = 3: 9 dots Narrow : Wide = 4:10 dots 3, 51 M[...]

  • Page 72

    Rev . 0.00 3-60 ST ARLIneModeCommandSpecications 3-3-1 1) Cutter Control ESC d n [Name] Auto-cutter: [Code] ASCII ESC d n Hexadecimal 1B 64 n Decimal 27 100 n [Dened Area] Thermal : 0 ≤ d ≤ 3, 48 ≤ d ≤ 51 (“0” ≤ d ≤ “3”) Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function[...]

  • Page 73

    Rev . 0.00 3-61 ST ARLineModeCommandSpecications 3-3-12) External Device Drive ESC BEL n1 n2 [Name] Set external drive device 1 pulse width [Code] ASCII ESC BEL n1 n2 Hexadecimal 1B 07 n1 n2 Decimal 27 7 n1 n2 [Dened Area] Thermal : 1 ≤ n1 ≤ 127, 1 ≤ n2 ≤ 127 Slip : 1 ≤ n1 ≤ 127, 1 ≤ n2 ≤ 127 V alidation : 1 ≤[...]

  • Page 74

    Rev . 0.00 3-62 ST ARLIneModeCommandSpecications BEL [Name] External device 1 drive instruction [Code] ASCII BEL Hexadecimal 07 Decimal 7 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Executes the external device drive conditions set according to the command t[...]

  • Page 75

    Rev . 0.00 3-63 ST ARLineModeCommandSpecications SUB [Name] External device 2 drive instruction [Code] ASCII SUB Hexadecimal 1A Decimal 26 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Drives external device 2. The energizing time and delay time for the extern[...]

  • Page 76

    Rev . 0.00 3-64 ST ARLIneModeCommandSpecications ESC GS BEL m t1 t2 [Name] Ring buzzer [Code] ASCII ESC GS BEL m t1 t2 Hexadecimal 1B 1D 07 m t1 t2 Decimal 27 29 7 m t1 t2 [Dened Area] Thermal : 1 ≤ m ≤ 2, 49 ≤ m ≤ 50 (“1” ≤ m ≤ “2”) 1 ≤ t1 ≤ 255, 1 ≤ t2 ≤ 255 Slip : 1 ≤ m ≤ 2, 49 ≤ m ≤ 50 (?[...]

  • Page 77

    Rev . 0.00 3-65 ST ARLineModeCommandSpecications ESC GS EM DC1 m n1 n2 [Name] Set external buzzer drive pulse condition [Code] ASCII ESC GS EM DC1 m n1 n2 Hexadecimal 1B 1D 19 1 1 m n1 n2 Decimal 27 29 25 17 m n1 n2 [Dened Area] Thermal : 1 ≤ m ≤ 2, 49 ≤ m ≤ 50, (“1” ≤ m ≤ “2”) 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤[...]

  • Page 78

    Rev . 0.00 3-66 ST ARLIneModeCommandSpecications ESC GS EM DC2 m n1 n2 [Name] Execute external buzzer drive [Code] ASCII ESC GS EM DC2 m n1 n2 Hexadecimal 1B 1D 19 12 m n1 n2 Decimal 27 29 25 18 m n1 n2 [Dened Area] Thermal : 1 ≤ m ≤ 2, 49 ≤ m ≤ 50, (“1” ≤ m ≤ “2”) 1 ≤ n1 ≤ 20, n2 = 0 Slip : 1 ≤ m ≤ [...]

  • Page 79

    Rev . 0.00 3-67 ST ARLineModeCommandSpecications 3-3-13) Print Settings ESC RS d n [Name] Set print density [Code] ASCII ESC RS d n Hexadecimal 1B 1E 64 n Decimal 27 30 100 n [Dened Area] Thermal : 0 ≤ n ≤ 15 48 ≤ n ≤ 57 (”0” ≤ n ≤ “9”), 65 ≤ n ≤ 70 (”A” ≤ n ≤ “F”) Slip : - V alidation : - [I[...]

  • Page 80

    Rev . 0.00 3-68 ST ARLIneModeCommandSpecications ESC RS r n [Name] Set printing speed [Code] ASCII ESC RS r n Hexadecimal 1B 1E 72 n Decimal 27 30 1 14 n [Dened Area] Thermal : 0 ≤ n ≤ 2 48 ≤ n ≤ 50 (“0” ≤ n ≤ “2”) Slip : - V alidation : - [Initial V alue] Thermal : Memory switch setting Slip : - V alidation[...]

  • Page 81

    Rev . 0.00 3-69 ST ARLineModeCommandSpecications 3-3-14) Status ESC RS a n [Name] Set status transmission conditions [Code] ASCII ESC RS a n Hexadecimal 1B 1E 61 n Decimal 27 30 97 n [Dened Area] Thermal : 0 ≤ n ≤ 3, 48 ≤ n ≤ 51, (“0” ≤ n ≤ “51”) Slip : 0 ≤ n ≤ 3, 48 ≤ n ≤ 51, (“0” ≤ n ≤ “5[...]

  • Page 82

    Rev . 0.00 3-70 ST ARLIneModeCommandSpecications ESC ACK SOH [Name] Real-time printer status (ASB Status) [Code] ASCII ESC ACK SOH Hexadecimal 1B 06 01 Decimal 27 6 1 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] This command is effective only when using an in[...]

  • Page 83

    Rev . 0.00 3-71 ST ARLineModeCommandSpecications EOT [Name] Real-time printer status (2) [Code] ASCII EOT Hexadecimal 04 Decimal 4 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] This command is effective only when using an interface capable of bi-directional da[...]

  • Page 84

    Rev . 0.00 3-72 ST ARLIneModeCommandSpecications ESC RS E n [Name] Initialize ASB ETB counter , and ETB status. [Code] ASCII ESC RS E n Hexadecimal 1B 1E 45 n Decimal 27 30 69 n [Dened Area] Thermal : n = 0, 48 (“0”) Slip : n = 0, 48 (“0”) V alidation : n = 0, 48 (“0”) [Initial V alue] Thermal : ASB ETB counter = 0 [...]

  • Page 85

    Rev . 0.00 3-73 ST ARLineModeCommandSpecications 3-3-15) Kanji Characters ESC p [Name] Specify JIS Kanji character mode [Code] ASCII ESC p Hexadecimal 1B 70 Decimal 27 1 12 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Cancel JIS Kanji character mode Slip : Cancel JIS Kanji character mode V alidat[...]

  • Page 86

    Rev . 0.00 3-74 ST ARLIneModeCommandSpecications ESC $ n [Name] Specify/cancel JIS Kanji character mode [Code] ASCII ESC $ n Hexadecimal 1B 24 n Decimal 27 36 n [Dened Area] Thermal : n = 0, 1, 48, 49 Slip : n = 0, 1, 48, 49 V alidation : n = 0, 1, 48, 49 [Initial V alue] Thermal : Memory switch setting Slip : Memory switch set[...]

  • Page 87

    Rev . 0.00 3-75 ST ARLineModeCommandSpecications ESC s n1 n2 [Name] Set two-byte Kanji characters left/right spaces [Code] ASCII ESC s n1 n2 Hexadecimal 1B 73 n1 n2 Decimal 27 1 15 n1 n2 [Dened Area] Thermal : 0 ≤ n1 ≤ 7, 48 ≤ n1 ≤ 55 (“0” ≤ n1 ≤ “7”) 0 ≤ n2 ≤ 15, 48 ≤ n2 ≤ 57 (”0” ≤ n2 ≤ “[...]

  • Page 88

    Rev . 0.00 3-76 ST ARLIneModeCommandSpecications ESC t n1 n2 [Name] Set single-byte Kanji characters left/right spaces [Code] ASCII ESC t n1 n2 Hexadecimal 1B 74 n1 n2 Decimal 27 1 16 n1 n2 [Dened Area] Thermal : 0 ≤ n1 ≤ 7, 48 ≤ n1 ≤ 55 (“0” ≤ n1 ≤ “7”) 0 ≤ n2 ≤ 15, 48 ≤ n2 ≤ 57 (”0” ≤ n2 ≤ [...]

  • Page 89

    Rev . 0.00 3-77 ST ARLineModeCommandSpecications ESC r c1 c2 d1 … dk [Name] Register Chinese download characters [Code] ASCII ESC r c1 c2 d1 .. dk Hexadecimal 1B 72 c1 c2 d1 .. dk Decimal 27 1 14 c1 c2 d1 .. dk [Dened Area] Thermal : 0 ≤ d ≤ 255 k=72,c1andc2differaccordingtospecicationsand[...]

  • Page 90

    Rev . 0.00 3-78 ST ARLIneModeCommandSpecications <Slip>,<Validation> The defined ranges are shown below. Specications c1 c2 Registration count Japanese Language Kanji characters c1 = 77h 21h ≤ c2 ≤ 7Eh 94 Characters They are designed as shown below and data is sent sequentially. The font of Kanji download cha[...]

  • Page 91

    Rev . 0.00 3-79 ST ARLineModeCommandSpecications ESC u n [Name] Specify two-byte 16 x 16 dot Kanji character (Single density/double density) [Code] ASCII ESC u n Hexadecimal 1B 75 n Decimal 27 1 17 n [Dened Area] Thermal : - Slip : n = 0, 1, n = 48, 49 (“0,” “1”) V alidation : n = 0, 1, n = 48, 49 (“0,” “1”) [In[...]

  • Page 92

    Rev . 0.00 3-80 ST ARLIneModeCommandSpecications ESC x n [Name] Specify expanded Kanji characters (Double tall/double high & wide) [Code] ASCII ESC x n Hexadecimal 1B 78 n Decimal 27 120 n [Dened Area] Thermal : - Slip : n = 0, 1, n = 48, 49 (“0,” “1”) V alidation : n = 0, 1, n = 48, 49 (“0,” “1”) [Initial V[...]

  • Page 93

    Rev . 0.00 3-81 ST ARLineModeCommandSpecications ESC w n [Name] Specify expanded Kanji characters (batch double tall/double high & wide) [Code] ASCII ESC w n Hexadecimal 1B 77 n Decimal 27 1 19 n [Dened Area] Thermal : - Slip : n = 0, 1, n = 48, 49 (“0,” “1”) V alidation : n = 0, 1, n = 48, 49 (“0,” “1”) [In[...]

  • Page 94

    Rev . 0.00 3-82 ST ARLIneModeCommandSpecications 3-3-16) Others RS [Name] Ring buzzer [Code] ASCII RS Hexadecimal 1E Decimal 30 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Issues a short buzzer sound from the printer. Execute this command after printing the [...]

  • Page 95

    Rev . 0.00 3-83 ST ARLineModeCommandSpecications ESC @ [Name] Command initialization [Code] ASCII ESC @ Hexadecimal 1B 40 Decimal 27 64 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Initializes each command after printing data in the line buffer. However, prin[...]

  • Page 96

    Rev . 0.00 3-84 ST ARLIneModeCommandSpecications ESC U n [Name] Select printing direction [Code] ASCII ESC U n Hexadecimal 1B 55 n Decimal 27 85 n [Dened Area] Thermal : - Slip : 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) V alidation : 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) [Initial V alue][...]

  • Page 97

    Rev . 0.00 3-85 ST ARLineModeCommandSpecications ESC GS # m N n1 n2 n3 n4 LF NUL [Name] Set memory switch [Code] ASCII ESC GS # m N n1 n2 n3 n4 LF NUL Hexadecimal 1B 1D 23 m N n1 n2 n3 n4 0A 00 Decimal 27 29 35 m N n1 n2 n3 n4 10 0 [Dened Area] Thermal : m = 87, 84, 44, 43, 45, 64, 75, 76 (m = “W”, “T”, “,”, “+”[...]

  • Page 98

    Rev . 0.00 3-86 ST ARLIneModeCommandSpecications ESC # @ LF NUL [Name] Initialize all memory switches [Code] ASCII ESC # @ LF NUL Hexadecimal 1B 23 40 0A 00 Decimal 27 35 64 10 0 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Initializes all memory switches Val[...]

  • Page 99

    Rev . 0.00 3-87 ST ARLineModeCommandSpecications ESC # * LF NUL [Name] Inquire printer version [Code] ASCII ESC # * LF NUL Hexadecimal 1B 23 2A 0A 00 Decimal 27 35 42 10 0 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Sends printer version. ESC # *, printer ve[...]

  • Page 100

    Rev . 0.00 3-88 ST ARLIneModeCommandSpecications DC3 [Name] Printer deselect [Code] ASCII DC3 Hexadecimal 13 Decimal 19 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Select printer Slip : Select printer V alidation : Select printer [Function] Deselects printer. All received data is discarded until[...]

  • Page 101

    Rev . 0.00 3-89 ST ARLineModeCommandSpecications 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 ex[...]

  • Page 102

    Rev . 0.00 3-90 ST ARLIneModeCommandSpecications ESC * r R [Name] Initialize raster mode [Code] ASCII ESC * r R Hexadecimal 1B 2A 72 52 Decimal 27 42 1 14 82 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Initializes raster mode. This command[...]

  • Page 103

    Rev . 0.00 3-91 ST ARLineModeCommandSpecications ESC * r A [Name] Enter raster mode [Code] ASCII ESC * r A Hexadecimal 1B 2A 72 41 Decimal 27 42 1 14 65 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Enters raster mode. This command is ignore[...]

  • Page 104

    Rev . 0.00 3-92 ST ARLIneModeCommandSpecications ESC * r B [Name] Quit raster mode [Code] ASCII ESC * r B Hexadecimal 1B 2A 72 42 Decimal 27 42 1 14 66 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Quits raster mode. When raster mode is quit[...]

  • Page 105

    Rev . 0.00 3-93 ST ARLineModeCommandSpecications ESC * r D n NUL [Name] Drawer drive [Code] ASCII ESC * r D n NUL Hexadecimal 1B 2A 72 44 n 00 Decimal 27 42 1 14 68 n 0 [Dened Area] Thermal : 0 ≤ n ≤ 3 Slip : - V alidation : - [Initial V alue] Thermal : n = 0 Slip : - V alidation : - [Function] <Thermal> Drives the[...]

  • Page 106

    Rev . 0.00 3-94 ST ARLIneModeCommandSpecications ESC * r E n NUL [Name] Set raster EOT mode [Code] ASCII ESC * r E n NUL Hexadecimal 1B 2A 72 45 n 00 Decimal 27 42 1 14 69 n 0 [Dened Area] Thermal : n = 0, 1, 2, 3, 8, 9, 12, 13 Slip : - V alidation : - [Initial V alue] Thermal : n = 13 Slip : - V alidation : - [Function] <Th[...]

  • Page 107

    Rev . 0.00 3-95 ST ARLineModeCommandSpecications ESC * r F n NUL [Name] Set raster FF mode [Code] ASCII ESC * r F n NUL Hexadecimal 1B 2A 72 46 n 00 Decimal 27 42 1 14 70 n 0 [Dened Area] Thermal : n = 0, 1, 2, 3, 8, 9, 12, 13 Slip : - V alidation : - [Initial V alue] Thermal : n = 13 Slip : - V alidation : - [Function] <The[...]

  • Page 108

    Rev . 0.00 3-96 ST ARLIneModeCommandSpecications ESC * r P n NUL [Name] Set raster page length [Code] ASCII ESC * r P n NUL Hexadecimal 1B 2A 72 50 n 00 Decimal 27 42 1 14 80 n 0 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : Raster image buffer length Slip : - V alidation : - [Function] <Therma[...]

  • Page 109

    Rev . 0.00 3-97 ST ARLineModeCommandSpecications ESC * r m l n NUL [Name] Set raster left margin [Code] ASCII ESC * r m l n NUL Hexadecimal 1B 2A 72 6D 6C n 00 Decimal 27 42 1 14 109 108 n 0 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : n = 0 Slip : - V alidation : - [Function] <Thermal> [...]

  • Page 110

    Rev . 0.00 3-98 ST ARLIneModeCommandSpecications ESC * r T n NUL [Name] Set raster top margin [Code] ASCII ESC * r T n NUL Hexadecimal 1B 2A 72 54 n 00 Decimal 27 42 1 14 84 n 0 [Dened Area] Thermal : 0 ≤ n ≤ 2 Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Sets [...]

  • Page 111

    Rev . 0.00 3-99 ST ARLineModeCommandSpecications ESC * r K n NUL [Name] Set raster print color [Code] ASCII ESC * r K n NUL Hexadecimal 1B 2A 72 4B n 00 Decimal 27 42 1 14 75 n 0 [Dened Area] Thermal : 0 ≤ n ≤ 3 Slip : - V alidation : - [Initial V alue] Thermal : n = 0 Slip : - V alidation : - [Function] <Thermal> [...]

  • Page 112

    Rev . 0.00 3-100 ST ARLIneModeCommandSpecications b n1 n2 data [Name] Send raster data (auto line feed) [Code] ASCII b n1 n2 d1 d2 ... dk Hexadecimal 62 n1 n2 d1 d2 ... dk Decimal 98 n1 n2 d1 d2 ... dk [Dened Area] Thermal : 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255, 0 ≤ d ≤ 255 k = n1 + n2 x 256, 1 ≤ k Slip : - V alidation : - [...]

  • Page 113

    Rev . 0.00 3-101 ST ARLineModeCommandSpecications k n1 n2 data [Name] T ransfer raster data [Code] ASCII k n1 n2 d1 d2 ... dk Hexadecimal 6B n1 n2 d1 d2 ... dk Decimal 107 n1 n2 d1 d2 ... dk [Dened Area] Thermal : 0 ≤ n1 ≤ 255, 0 ≤ n2 ≤ 255, 0 ≤ d ≤ 255 k = n1 + n2 x 256, 1 ≤ k Slip : - V alidation : - [Initial V [...]

  • Page 114

    Rev . 0.00 3-102 ST ARLIneModeCommandSpecications ESC * r Y n NUL [Name] Moveverticaldirectionposition(Linefeedforspecieddots) [Code] ASCII ESC * r Y n NUL Hexadecimal 1B 2A 72 59 n 00 Decimal 27 42 1 14 89 n 0 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V a[...]

  • Page 115

    Rev . 0.00 3-103 ST ARLineModeCommandSpecications ESC FF EOT [Name] Execute EOT mode [Code] ASCII ESC FF EOT Hexadecimal 1B 0C 04 Decimal 27 12 4 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Executes EOT mode. Executes operation specified b[...]

  • Page 116

    Rev . 0.00 3-104 ST ARLIneModeCommandSpecications ESC * r V m n NUL [Name] Execute external buzzer drive [Code] ASCII ESC * r V 1 n NUL Hexadecimal 1B 2A 72 56 31 n 0 Decimal 27 42 1 14 86 49 n 0 [Dened Area] Thermal : m = 49, 50, 1 ≤ n ≤ 20 Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Fun[...]

  • Page 117

    Rev . 0.00 3-105 ST ARLineModeCommandSpecications 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 ESC d n Hexadecimal 1B 64 n Decimal 27 100 [...]

  • Page 118

    Rev . 0.00 3-106 ST ARLIneModeCommandSpecications FF [Name] Execute top of form [Code] ASCII FF Hexadecimal 0C Decimal 12 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Executes top of form. <Slip>,<Validation> One byte igno[...]

  • Page 119

    Rev . 0.00 3-107 ST ARLineModeCommandSpecications ESC C 0 n [Name] Set page length to n x 24 mm units [Code] ASCII ESC C 0 n Hexadecimal 1B 43 0 n Decimal 27 67 0 n [Dened Area] Thermal : 1 ≤ n ≤ 22 Slip : - V alidation : - [Initial V alue] Thermal : (Form feed amount initial value x 42) Slip : - V alidation : - [Function] [...]

  • Page 120

    Rev . 0.00 3-108 ST ARLIneModeCommandSpecications VT [Name] Feed paper to vertical tab position [Code] ASCII VT Hexadecimal 0B Decimal 1 1 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> When black mark is effective, this command is ignored. &[...]

  • Page 121

    Rev . 0.00 3-109 ST ARLineModeCommandSpecications ESC B NUL [Name] Clear vertical tab position [Code] ASCII ESC B NUL Hexadecimal 1B 42 00 Decimal 27 66 0 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> When black mark is effective, this comma[...]

  • Page 122

    Rev . 0.00 3-1 10 ST ARLIneModeCommandSpecications 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 ESC RS c n Hexadecimal 1B 1E 6[...]

  • Page 123

    Rev . 0.00 3-1 1 1 ST ARLineModeCommandSpecications ESC RS C n [Name] Select/cancel 2-color print mode [Code] ASCII ESC RS C n Hexadecimal 1B 1E 43 n Decimal 27 30 67 n [Dened Area] Thermal : 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 (“0” ≤ n ≤ “2”), n = 16, n =32 Slip : - V alidation : - [Initial V alue] Thermal : n = 0, 48 S[...]

  • Page 124

    Rev . 0.00 3-1 12 ST ARLIneModeCommandSpecications ESC 4 [Name] (Thermal) Specify black/white inversion/(Slip) specify black/white inversion/specify red/black color [Code] ASCII ESC 4 Hexadecimal 1B 34 Decimal 27 52 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : White/black inversion cancelled Slip[...]

  • Page 125

    Rev . 0.00 3-1 13 ST ARLineModeCommandSpecications ESC RS d n [Name] Set print density [Code] ASCII ESC RS d n Hexadecimal 1B 1E 64 n Decimal 27 30 100 n [Dened Area] Thermal : 0 ≤ n ≤ 15 48 ≤ n ≤ 57 (“0” ≤ n ≤ “9”), 65 ≤ n ≤ 70 (“A” ≤ n ≤ “F”) Slip : - V alidation : - [Initial V alue] Therma[...]

  • Page 126

    Rev . 0.00 3-1 14 ST ARLIneModeCommandSpecications ESC RS r n [Name] Set printing speed [Code] ASCII ESC RS r n Hexadecimal 1B 1E 72 n Decimal 27 30 1 14 n [Dened Area] Thermal : 0 ≤ n ≤ 2, 48 ≤ n ≤ 50, (“0” ≤ n ≤ “2”) Slip : - V alidation : - [Initial V alue] Thermal : Memory switch setting Slip : - V alida[...]

  • Page 127

    Rev . 0.00 3-1 15 ST ARLineModeCommandSpecications ESC FS q n [x1 1 x12 y1 1 y12 d1 … dk]1 … [xn1 xn2 yn1 yn2 d1 … dk] n [Name] Register logo [Code] ASCII ESC FS q n [x1 1 x12 y1 1 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 .. dk]n Hexadecimal 1B 1C 71 n [x1 1 x12 y1 1 y12 d1 .. dk]1 .. [xn1 xn2 yn1 yn2 d1 .. dk]n Decimal 27 28 1 13[...]

  • Page 128

    Rev . 0.00 3-1 16 ST ARLIneModeCommandSpecications (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[...]

  • Page 129

    Rev . 0.00 3-1 17 ST ARLineModeCommandSpecications ESC FS p n m [Name] Print logo [Code] ASCII ESC FS p n m Hexadecimal 1B 1C 70 n m Decimal 27 28 1 12 n m [Dened Area] Thermal : 1 ≤ n ≤ 255 0 ≤ m ≤ 3, 48 ≤ m ≤ 51, (“0” ≤ m ≤ “3”) Slip : 1 ≤ n ≤ 255 0 ≤ m ≤ 3, 48 ≤ m ≤ 51, (“0” ≤ m ≤ [...]

  • Page 130

    Rev . 0.00 3-1 18 ST ARLIneModeCommandSpecications 3-7) Mark Command Details This command is specialized to mark sheet printing for lotteries. This command can print lines. Print Sample Command Transmission Example • Mark Format Mark Height h = 10 dots; Mark Line Feed Amount V = 20 dots Mark number 0: Mark Color c = White; Mark Hor[...]

  • Page 131

    Rev . 0.00 3-1 19 ST ARLineModeCommandSpecications ESC GS * 0 n m1 m2 m3 … mk [Name] Print Mark [Code] ASCII ESC GS * 0 n m1 m2 m3 ... mk Hexadecimal 1B 1D 2A 30 n m1 m2 m3 ... mk Decimal 27 29 42 48 n m1 m2 m3 ... mk [Dened Area] Thermal : “001” ≤ n ≤ “255”, “0” ≤ m ≤ “9”, k = n Slip : - V alidation :[...]

  • Page 132

    Rev . 0.00 3-120 ST ARLIneModeCommandSpecications ESC GS * 1 h v [Name] Specify mark height and line feed [Code] ASCII ESC GS * 1 h v Hexadecimal 1B 1D 2A 31 h v Decimal 27 29 42 49 h v [Dened Area] Thermal : “001” ≤ h ≤ “255”, “001” ≤ v ≤ “255”, h ≤ v Slip : - V alidation : - [Initial V alue] Thermal [...]

  • Page 133

    Rev . 0.00 3-121 ST ARLineModeCommandSpecications ESC GS * W [Name] Register mark format to non-volatile memory [Code] ASCII ESC GS * W Hexadecimal 1B 1D 2A 57 Decimal 27 29 42 87 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Registers the mark format (mark he[...]

  • Page 134

    Rev . 0.00 3-122 ST ARLIneModeCommandSpecications 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. 1[...]

  • Page 135

    Rev . 0.00 3-123 ST ARLineModeCommandSpecications 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 alignmen[...]

  • Page 136

    Rev . 0.00 3-124 ST ARLIneModeCommandSpecications Command Transmission Example 1) Set the Auto Logo function in advance and register to the non-volatile memory. ESC GS / 1 n ( n = 0x01 ): Auto Logo Function ON ESC GS / 2 n ( n = “/” ): Auto Logo Command Character (“/”) Specification ESC GS / 3 nL nH d1 d2 … dk: User macro 1[...]

  • Page 137

    Rev . 0.00 3-125 ST ARLineModeCommandSpecications ESC GS / W [Name] Register Auto Logo setting to non-volatile memory [Code] ASCII ESC GS / W Hexadecimal 1b 1d 2f 57 Decimal 27 29 47 87 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Registers Auto Logo setting [...]

  • Page 138

    Rev . 0.00 3-126 ST ARLIneModeCommandSpecications ESC GS / 1 n [Name] Set ON/OFF for Auto Logo function [Code] ASCII ESC GS / 1 n Hexadecimal 1b 1d 2f 31 n Decimal 27 29 47 49 n [Dened Area] Thermal : 0 ≤ n ≤ 2 Slip : - V alidation : - [Initial V alue] Thermal : n = 0 Slip : - V alidation : - [Function] <Thermal> S[...]

  • Page 139

    Rev . 0.00 3-127 ST ARLineModeCommandSpecications ESC GS / 2 n [Name] Set command characters [Code] ASCII ESC GS / 3 n Hexadecimal 1b 1d 2f 32 n Decimal 27 29 47 50 n [Dened Area] Thermal : 32 ≤ n ≤ 127, n = 0 Slip : - V alidation : - [Initial V alue] Thermal : n = 0 Slip : - V alidation : - [Function] <Thermal> Se[...]

  • Page 140

    Rev . 0.00 3-128 ST ARLIneModeCommandSpecications ESC GS / 3 nL nH d1 d2 … dk [Name] Set user macro 1 [Code] ASCII ESC GS / 3 nL nH d1 d2 ... dk Hexadecimal 1b 1d 2f 33 nL nH d1 d2 ... dk Decimal 27 29 47 51 nL nH d1 d2 ... dk [Dened Area] Thermal : 1 ≤ nL ≤ 64, nH = 0 1 ≤ (nL + nH x 256) ≤ 64 dk = (nL + nH x 256) 0 ?[...]

  • Page 141

    Rev . 0.00 3-129 ST ARLineModeCommandSpecications ESC GS / 4 nL nH d1 d2 … dk [Name] Set user macro 2 [Code] ASCII ESC GS / 4 nL nH d1 d2 ... dk Hexadecimal 1b 1d 2f 34 nL nH d1 d2 ... dk Decimal 27 29 47 52 nL nH d1 d2 ... dk [Dened Area] Thermal : 1 ≤ nL ≤ 64, nH = 0 1 ≤ (nL + nH x 256) ≤ 64 dk = (nL + nH x 256) 0 ?[...]

  • Page 142

    Rev . 0.00 3-130 ST ARLIneModeCommandSpecications ESC GS / 5 n [Name] Set command character switching method [Code] ASCII ESC GS / 5 n Hexadecimal 1b 1d 2f 35 n Decimal 27 29 47 53 n [Dened Area] Thermal : 0 ≤ n ≤ 1 Slip : - V alidation : - [Initial V alue] Thermal : n = 0 Slip : - V alidation : - [Function] <Thermal>[...]

  • Page 143

    Rev . 0.00 3-131 ST ARLineModeCommandSpecications ESC GS / 6 n [Name] Partial cut setting just prior to Auto Logo printing [Code] ASCII ESC GS / 6 n Hexadecimal 1b 1d 2f 36 n Decimal 27 29 47 54 n [Dened Area] Thermal : 0 ≤ n ≤ 1 Slip : - V alidation : - [Initial V alue] Thermal : n = 0 Slip : - V alidation : - [Function] &[...]

  • Page 144

    Rev . 0.00 3-132 ST ARLIneModeCommandSpecications 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 par[...]

  • Page 145

    Rev . 0.00 3-133 ST ARLineModeCommandSpecications 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  (<ESC><GS>“x”“S?[...]

  • Page 146

    Rev . 0.00 3-134 ST ARLIneModeCommandSpecications 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 occur[...]

  • Page 147

    Rev . 0.00 3-135 ST ARLineModeCommandSpecications ESC GS x S 0 n p1 p2 [Name] PDF417 bar code size setting [Code] ASCII ESC GS x S 0 n p1 p2 Hexadecimal 1B 1D 78 53 30 n p1 p2 Decimal 27 29 120 83 48 n p1 p2 [Dened Area] Thermal : n = 0, 1 When n = 0 1 ≤ p1 ≤ 99, 1 ≤ p2 ≤ 99 When n = 1 p1 = 0 or 3 ≤ p1 ≤ 90, p2 = 0 [...]

  • Page 148

    Rev . 0.00 3-136 ST ARLIneModeCommandSpecications ESC GS x S 2 n [Name] Set PDF417 module X direction size [Code] ASCII ESC GS x S 2 n Hexadecimal 1B 1D 78 53 32 n Decimal 27 29 120 83 50 n [Dened Area] Thermal : 1 ≤ n ≤ 10 Slip : - V alidation : - [Initial V alue] Thermal : n = 2 Slip : - V alidation : - [Function] <The[...]

  • Page 149

    Rev . 0.00 3-137 ST ARLineModeCommandSpecications ESC GS x D nL nH d1 d2 … dk [Name] PDF417 bar code data setting [Code] ASCII ESC GS x D nL nH d1 d2 … dk Hexadecimal 1B 1D 78 44 nL nH d1 d2 … dk Decimal 27 29 120 68 nL nH d1 d2 … dk [Dened Area] Thermal : 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255 1 ≤ (nL + nH x 256) ≤ 102[...]

  • Page 150

    Rev . 0.00 3-138 ST ARLIneModeCommandSpecications ESC GS x I [Name] Get PDF417 bar code expansion information [Code] ASCII ESC GS x I Hexadecimal 1B 1D 78 49 Decimal 27 29 120 73 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> In printing bar [...]

  • Page 151

    Rev . 0.00 3-139 ST ARLineModeCommandSpecications 3-10) Print Starting T rigger 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 ESC GS g 0 m n Hexa[...]

  • Page 152

    Rev . 0.00 3-140 ST ARLIneModeCommandSpecications 3-1 1) 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[...]

  • Page 153

    Rev . 0.00 3-141 ST ARLineModeCommandSpecications 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 method[...]

  • Page 154

    Rev . 0.00 3-142 ST ARLIneModeCommandSpecications Below is a command transmission example. (1) Bar code type setting   <ESC><GS>“y”“S”“0”1 :Settomodel1.   <ESC><GS>“y”“S”“1”0 :SeterrorcorrectionleveltoL.   <ESC&g[...]

  • Page 155

    Rev . 0.00 3-143 ST ARLineModeCommandSpecications ESC GS y S 0 n [Name] Set QR code model [Code] ASCII ESC GS y S 0 n Hexadecimal 1B 1D 79 53 30 n Decimal 27 29 121 83 48 n [Dened Area] Thermal : 1 ≤ n ≤ 2 Slip : - V alidation : - [Initial V alue] Thermal : n = 2 Slip : - V alidation : - [Function] <Thermal> Sets t[...]

  • Page 156

    Rev . 0.00 3-144 ST ARLIneModeCommandSpecications ESC GS y S 2 n [Name] Set QR code cell size [Code] ASCII ESC GS y S 2 n Hexadecimal 1B 1D 79 53 32 n Decimal 27 29 121 83 50 n [Dened Area] Thermal : 1 ≤ n ≤ 8 Slip : - V alidation : - [Initial V alue] Thermal : n = 3 Slip : - V alidation : - [Function] <Thermal> Se[...]

  • Page 157

    Rev . 0.00 3-145 ST ARLineModeCommandSpecications ESC GS y D 1 m nL nH d1 d2 … dk [Name] QR code data setting (automatic setting) [Code] ASCII ESC GS y D 1 m nL nH d1 d2 … dk Hexadecimal 1B 1D 79 44 31 m nL nH d1 d2 … dk Decimal 27 29 121 68 49 m nL nH d1 d2 … dk [Dened Area] Thermal : m = 0 0 ≤ nL ≤ 255, 0 ≤ nH ?[...]

  • Page 158

    Rev . 0.00 3-146 ST ARLIneModeCommandSpecications ESC GS y D 2 a m1 n1L n1H d1 1 d12 … d1k m2 n2L n2H d21 d22 … d2k ml … dlk [Name] QR code data setting (manual setting) [Code] ASCII ESC GS y D 2 a m1 n1L n1H d1 1 d12 … d1k Hexadecimal 1B 1D 79 44 32 a m1 n1L n1H d1 1 d12 … d1k Decimal 27 29 121 68 50 a m1 n1L n1H d1 1 d12 [...]

  • Page 159

    Rev . 0.00 3-147 ST ARLineModeCommandSpecications ESC GS y P [Name] Print QR code [Code] ASCII ESC GS y P Hexadecimal 1B 1D 79 50 Decimal 27 29 121 80 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> This command prints the bar code data. When [...]

  • Page 160

    Rev . 0.00 3-148 ST ARLIneModeCommandSpecications 3-12) Page Function Command Details ESC GS h 0 k m n [Name] 180˚inversionfunction [Code] ASCII ESC GS h 0 k m n Hexadecimal 1B 1D 68 30 k m n Decimal 27 29 104 48 k m n [Dened Area] Thermal : 0 ≤ k ≤ 1, m = 0, n = 0 Slip : - V alidation : - [Initial V alue] Ther[...]

  • Page 161

    Rev . 0.00 3-149 ST ARLineModeCommandSpecications ESC GS h 1 k m n [Name] Water mark function [Code] ASCII ESC GS h 1 k m n Hexadecimal 1B 1D 68 31 k m n Decimal 27 29 104 49 k m n [Dened Area] Thermal : 0 ≤ k ≤ 2, 0 ≤ m ≤ 2, 1 ≤ n ≤ 255 Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [...]

  • Page 162

    Rev . 0.00 3-150 ST ARLIneModeCommandSpecications Example of Use 1) Register logo to use as the water mark as logo #1. 2) Water mark function is valid.: ESC GS h 1 k m n (k=0x02, m=0x01, n=0x01) 3) Transmit print data: Print data (print length is within the length of the image buffer) 4) Trigger command transmission: ESC d n (cutter [...]

  • Page 163

    Rev . 0.00 3-151 ST ARLineModeCommandSpecications 3-13) Slip/V alidation Function Command Details ESC SI n [Name] Set slip sensor [Code] ASCII ESC SI n Hexadecimal 1B 0F n Decimal 27 15 n [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Three bytes ignored ESC FF[...]

  • Page 164

    Rev . 0.00 3-152 ST ARLIneModeCommandSpecications ESC VT m n [Name] Sets slip paper discharge direction and discharge length [Code] ASCII ESC VT m n Hexadecimal 1B 0B m n Decimal 27 1 1 m n [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Four bytes ignored ESC E[...]

  • Page 165

    Rev . 0.00 3-153 ST ARLineModeCommandSpecications 3-14) Page Mode Command Details FF [Name] Batch printing of page data (valid only in page mode) [Code] ASCII FF Hexadecimal 0C Decimal 12 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Refer t[...]

  • Page 166

    Rev . 0.00 3-154 ST ARLIneModeCommandSpecications ESC n [Name] Selects page mode [Code] ASCII ESC n Hexadecimal 1B 6E Decimal 27 1 10 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Two bytes ignored <Slip>,<Validation> Shift[...]

  • Page 167

    Rev . 0.00 3-155 ST ARLineModeCommandSpecications ESC ! [Name] Select line mode (Default) [Code] ASCII ESC ! Hexadecimal 1B 21 Decimal 27 33 [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] <Thermal> Two bytes ignored <Slip>,<Validation>?[...]

  • Page 168

    Rev . 0.00 3-156 ST ARLIneModeCommandSpecications ESC * xL xH yL yH dxL dxH dyL dyH [Name] Set page mode print region [Code] ASCII ESC * xL xH yL yH dxL dxH dyL dyH Hexadecimal 1B 2A xL xH yL yH dxL dxH dyL dyH Decimal 27 42 xL xH yL yH dxL dxH dyL dyH [Dened Area] Thermal : - Slip : 0 ≤ xL ≤ 255, 0 ≤ xH ≤ 2 0 ≤ yL ?[...]

  • Page 169

    Rev . 0.00 3-157 ST ARLineModeCommandSpecications ESC T n [Name] Set page mode rotation direction [Code] ASCII ESC T n Hexadecimal 1B 54 n Decimal 27 84 n [Dened Area] Thermal : - Slip : 0 ≤ n ≤ 3, 48 ≤ n ≤ 51, (“0” ≤ n ≤ “3”) V alidation : 0 ≤ n ≤ 3, 48 ≤ n ≤ 51, (“0” ≤ n ≤ “3”) [Initial[...]

  • Page 170

    Rev . 0.00 3-158 ST ARLIneModeCommandSpecications 3-15) Station Selection Command Details ESC + A n [Name] Select printer station [Code] ASCII ESC + A n Hexadecimal 1B 2B 41 n Decimal 27 43 65 n [Dened Area] Thermal : n = 0, 3, 4, “0”, “3”, “4” Slip : n = 0, 3, 4, “0”, “3”, “4” V alidation : n = 0, 3, 4,[...]

  • Page 171

    Rev . 0.00 3-159 ST ARLineModeCommandSpecications 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 ESC SYN 0 n Hexadecimal 1B 16 30 n Decimal 27[...]

  • Page 172

    Rev . 0.00 3-160 ST ARLIneModeCommandSpecications ESC SYN 4 n [Name] Initialize presenter paper counter [Code] ASCII ESC SYN 4 n Hexadecimal 1B 16 4 n Decimal 27 22 52 n [Dened Area] Thermal : - Slip : - V alidation : - [Initial V alue] Thermal : - Slip : - V alidation : - [Function] Four bytes ignored[...]

  • Page 173

    Rev . 0.00 3-161 ST ARLineModeCommandSpecications 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 ESC FS M m n Hexadecimal 1B 1C 4D m n Decimal 27 28 77 m n [Dened Area] Therma[...]

  • Page 174

    Rev . 0.00 3-162 ST ARLIneModeCommandSpecications E13B Support Table T ype Numbers SYMBOL1 SYMBOL2 SYMBOL3 SYMBOL4 ASCII 0 to 9 T A O D Hex 30 to 39 54 41 4F 44 Decimal 48 to 57 84 65 79 68 CMC7 Support Table T ype Numbers S I S II S III S IV S V ASCII 0 to 9 / # = > ^ Hex 30 to 39 2F 23 3D 3E 5F Decimal 48 to 57 47 35 61 62 94[...]

  • Page 175

    Rev . 0.00 4-1 ST ARLIneModeCommandSpecications 4. CHARACTER CODE T ABLES Character Code Specifications References[...]

  • Page 176

    Rev . 0.00 5-1 ST ARLIneModeCommandSpecications 5. APPENDIX 5-1) Appendix 1: Bar Code Specication 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[...]

  • Page 177

    Rev . 0.00 5-2 ST ARLIneModeCommandSpecications 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 Mode 1 Mode 2 Mode 3 Module Width 2 D[...]

  • Page 178

    Rev . 0.00 5-3 ST ARLIneModeCommandSpecications 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 (*) 2.75mm 4.125mm 5.5mm (*) Start and stob bars[...]

  • Page 179

    Rev . 0.00 5-4 ST ARLIneModeCommandSpecications 3. 2-Character set code table <ControlCodes> <ControlCodes> <ControlCodes> Code Format Code Format NUL 00H %@ 25H 40H % 25H %0 25H 30H SOH 01H %A 25H 41H STX 02H %B 25H 42H <FunctionCodes> ETX 03H %C 25H 43H Code Format EOT 04H %D 25H 44H FNC[...]

  • Page 180

    Rev . 0.00 5-5 ST ARLIneModeCommandSpecications 5-1-5) Code 93 1. Each mode and module width Items Mode 1 Mode 2 Mode 3 Module Width 2 Dots 3 Dots 4 Dots Length of 1 Character (*) 2.25mm 3.375mm 4.5mm (*) Start and stob bars not included. 2. Regulations • Start/stop codes are automatically applied. • Check character (C, K) is aut[...]

  • Page 181

    Rev . 0.00 5-6 ST ARLIneModeCommandSpecications 5-2) Appendix 2 – Status Specications <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-di[...]

  • Page 182

    Rev . 0.00 5-7 ST ARLIneModeCommandSpecications 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 a[...]

  • Page 183

    Rev . 0.00 5-8 ST ARLIneModeCommandSpecications (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 b[...]

  • Page 184

    Rev . 0.00 5-9 ST ARLIneModeCommandSpecications (3) Printer Status Printer status is the status of the printer sent from the 3 rd 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 sh[...]

  • Page 185

    Rev . 0.00 5-10 ST ARLIneModeCommandSpecications <Printerstatus4SensorInformation(SixthByte)> Bit Contents Status By model “0” “1” HSP7000 7 Fixed at “0” - - 6 Not Used (Fixed at “0”) - - 5 Not Used (Fixed at “0”) - 4 Fixed at “0” - - 3 Paper end Paper No paper ○ 2 Paper Near[...]

  • Page 186

    Rev . 0.00 5-1 1 ST ARLIneModeCommandSpecications <Printerstatus6ETBCounter(EighthByte)> Bit Contents Status By model “0” “1” HSP7000 7 Fixed at “0” - - 6 ETB Counter Bit-4 ○ 5 ETB Counter Bit-3 ○ 4 Fixed at “0” - - 3 ETB Counter Bit-2 ○ 2 ETB Counter Bit-1 ○ 1 ETB Counter Bit-[...]

  • Page 187

    Rev . 0.00 5-12 ST ARLIneModeCommandSpecications 5-2-4) Printer Status T ransmission Specication when using Ethernet and W ireless LAN Interfaces The following explains the printer status transmission specification when using Ethernet and wireless LAN interfaces. 1) Transmission format: • When transmitting only STAR ASB: STAR AS[...]

  • Page 188

    Rev . 0.00 5-13 ST ARLIneModeCommandSpecications (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 “;”. 3) Status transmission specification[...]

  • Page 189

    Rev . 0.00 5-14 ST ARLIneModeCommandSpecications 5-3) Appendix 3 – Blank Code Page Conguration <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[...]

  • Page 190

    Rev . 0.00 5-15 ST ARLIneModeCommandSpecications 2. Example configuration of Font B data. (9 x 24 font) Fig. A-2 9 x 24 Font MSB LSB MSB LSB d1 d2 0 0 0 0 0 0 0 d3 • • • d4 0 0 0 0 0 0 0 d5 • • • • • d6 0 0 0 0 0 0 0 d7 • • • • • d8 0 0 0 0 0 0 0 d9 • • • • d10 0 0 0 0 0 0 0 d1 1 • • • • d12 [...]

  • Page 191

    Rev . 0.00 5-16 ST ARLIneModeCommandSpecications 5-4) Appendix 4 : QR Code Maximum Input Character Count in Each V erson <Thermal> 1) Model 1 Versions and Maximum Input Character Count V ersion Number of Cells on One Side Error Correction Level Numbers English Language Characters Binary Kanji Character 1 21 L 40 24 17 10 M 33 2[...]

  • Page 192

    Rev . 0.00 5-17 ST ARLIneModeCommandSpecications 2) Model 2 Versions and Maximum Input Character Count V ersion Number of Cells on One Side Error Correction Level Numbers English Language Characters Binary Kanji Character 1 21 L 41 25 17 10 M 34 20 14 8 Q 27 16 1 1 7 H 17 10 7 4 2 25 L 77 47 32 20 M 63 38 26 16 Q 48 29 20 12 H 34 20 [...]

  • Page 193

    Rev . 0.00 5-18 ST ARLIneModeCommandSpecications V ersion Number of Cells on One Side Error Correction Level Numbers English Language Characters Binary Kanji Character 16 81 L 1408 854 586 361 M 1082 656 450 277 Q 775 470 322 198 H 602 365 250 154 17 85 L 1548 938 644 397 M 1212 734 504 310 Q 876 531 364 224 H 674 408 280 173 18 89 L[...]

  • Page 194

    Rev . 0.00 5-19 ST ARLIneModeCommandSpecications V ersion Number of Cells on One Side Error Correction Level Numbers English Language Characters Binary Kanji Character 31 141 L 4417 2677 1840 1 132 M 3486 21 13 1452 894 Q 2473 1499 1030 634 H 1897 1 150 790 486 32 145 L 4686 2840 1952 1201 M 3693 2238 1538 947 Q 2670 1618 1 1 12 684 [...]

  • Page 195

    Rev . 0.00 6-1 ST ARLIneModeCommandSpecications 6. SPECIAL APPENDIX COMMAND LIST BY MODEL ○:ValidCommands •:ValidCommands(IndependentFunctionsonThermal/Slip) ‡:Commandwhereonlysettingsarevalid × : Invalid command (Ignored) • Standard Commands Class Commands[...]

  • Page 196

    Rev . 0.00 6-2 ST ARLIneModeCommandSpecications Class Commands Class Model Name HSP7000 Set Executed Thermal Slip 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 ○ ○ ○ Cutter Control ESC [...]

  • Page 197

    Rev . 0.00 6-3 ST ARLIneModeCommandSpecications • Raster related commands Class Commands Class Model Name HSP7000 Set Executed Thermal Slip 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 ○ ○ × ESC * r Q ○ ○ [...]

  • Page 198

    Rev . 0.00 6-4 ST ARLIneModeCommandSpecications • Auto Logo Commands Class Commands Class Model Name HSP7000 Set Executed Thermal Slip Auto Logo ESC GS / W ○ ○ ○ ESC GS / C ○ ○ ○ ESC GS / 1 ○ ○ ‡ ESC GS / 2 ○ ○ ‡ ESC GS / 3 ○ ○ ‡ ESC GS / 4 ○ ○ ‡ ESC GS / 5 ○ ○ ‡ ESC GS / 6 ○ ○ ‡ ?[...]

  • Page 199

    Rev . 0.00 6-5 ST ARLIneModeCommandSpecications • QR Code Commands Class Commands Class Model Name HSP7000 Set Executed Thermal Slip 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 ○ ○ ○ • Page Function Com[...]

  • Page 200

    Rev . 0.00 7-1 ST ARLIneModeCommandSpecications 7. SPECIAL APPENDIX COMMAND FUNCTION LIST 7-1) HSP7000 7-1-1) Setting Command List Execution Station Thermal Slip V alidation T ype Command Thermal, Slip, V alidation Line Other Precautions Line/Page Other Precautions Line/Page Other Precautions Font Style and ESC RS F Shared Only valid[...]

  • Page 201

    Rev . 0.00 7-2 ST ARLIneModeCommandSpecications Execution Station Thermal Slip V alidation T ype Command Thermal, Slip, V alidation Line Other Precautions Line/Page Other Precautions Line/Page Other Precautions Adornment ESC E Shared V alid V alid Shared V alid Shared ESC G Shared Invalid T wo bytes ignored Invalid Two bytes ignored [...]

  • Page 202

    Rev . 0.00 7-3 ST ARLIneModeCommandSpecications Execution Station Thermal Slip V alidation T ype Command Thermal, Slip, V alidation Line Other Precau- tions Line/Page Other Precautions Line/Page Other Precautions Download ESC & Shared V alid V alid Shared Shared with validation V alid Shared Shared with slip ESC % Shared V alid V[...]

  • Page 203

    Rev . 0.00 7-4 ST ARLIneModeCommandSpecications Execution Station Thermal Slip V alidation T ype Command Thermal, Slip, Validation Line Other Precautions Line/Page Other Precautions Line/Page Other Precautions Macro ESC GS + Shared V alid V alid Shared V alid Shared Raster Mode ESC * r E Independent Station selection command dependen[...]

  • Page 204

    Rev . 0.00 7-5 ST ARLIneModeCommandSpecications Execution Station Thermal Slip V alidation T ype Command Thermal, Slip, V alidation Line Other Precautions Line/Page Other Precautions Line/Page Other Precautions Printer Driver ESC RS A Independent Station selec- tion command dependent V alid V alid only Line Page Mode: V alid after sw[...]

  • Page 205

    Rev . 0.00 7-6 ST ARLIneModeCommandSpecications 7-1-2) Execution Command List Execution Station Thermal Slip V alidation T ype Command Thermal, Slip, V alidation Line Other Precautions Line/Page Other Precautions Line/Page Other Precautions Line spacing LF Independent Station selection command dependent V alid V alid For each Line/Pa[...]

  • Page 206

    Rev . 0.00 7-7 ST ARLIneModeCommandSpecications Execution Station Thermal Slip V alidation T ype Command Thermal, Slip, V alidation Line Other Precautions Line/Page Other Precautions Line/Page Other Precautions External Device Drive BEL Shared V alid V alid Shared V alid Shared FS Shared V alid V alid Shared V alid Shared SUB Shared [...]

  • Page 207

    Rev . 0.00 7-8 ST ARLIneModeCommandSpecications Execution Station Thermal Slip V alidation T ype Command Thermal, Slip, V alida- tion Line Other Precautions Line/Page Other Precautions Line/Page Other Precautions Raster Mode ESC * r D Independent Station selection command dependent Only valid for thermal V alid Invalid Data received [...]

  • Page 208

    Rev . 0.00 7-9 ST ARLIneModeCommandSpecications Execution Station Thermal Slip V alidation T ype Command Thermal, Slip, V alidation Line Other Precautions Line/Page Other Precautions Line/Page Other Precautions Head Failure Detection ESC RS # Independent Station selec- tion command dependent Invalid Four bytes ignored Invalid Four by[...]

  • Page 209

    Rev . 0.00 2008.09.29 Printed in Japan, 8087710 5 ELECTRONIC PRODUCTS DIVISION ST AR MICRONICS CO., L TD. 53 6 Nanatsushinya, Shimizu-ku, Shizuoka, 424-0066 Japan T el: (int+81)-54-347-01 12, Fax: (int+81)-54-347-0709 Please access the following URL ht t p : / / w w w . s t a r - m . j p / eng/dl/dl02.htm for the latest revision of the manual. OVER[...]