Line Thermal Printer
STAR Line Mode
Command
Specifications
Rev 0.01
Table of Contents
1. INTERFACE CONFIGURATION ........................................................ 1-1
1-1) RS-232C Serial Interface ................................................... 1-1
1-1-1) Specifications (Conforming to RS-232)........................................... 1-1
1-1-2) Signal array and explanations according to interface connector pin ...................... 1-1
1-1-3) Communication protocol ..................................................... 1-2
1-2) Parallel Interfaces (Amphenol 36 pins) ..................................... 1-4
1-2-1) Specifications (Conforming to IEEE1284) ......................................... 1-4
1-2-2) Signal array and explanations according to interface connector pin ...................... 1-4
1-2-3) Signal output timing ........................................................ 1-5
1-2-4) Status specification ......................................................... 1-5
1-3) USB interface ..............................................................1-6
1-4) Ethernet interface ......................................................... 1-7
2. COMMAND FUNCTION LIST .......................................................... 2-1
3. COMMAND DETAILS ................................................................ 3-1
3-1) Explanation of Terms ....................................................... 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 GS t n ..................................................................... 3-3
ESC GS = n1 n2 da1 da2...dak db1 db2...dbk ............................................ 3-4
ESC R n ....................................................................... 3-5
ESC / n ........................................................................ 3-6
ESC SP n ...................................................................... 3-7
ESC M ........................................................................ 3-8
ESC P ......................................................................... 3-8
ESC : ......................................................................... 3-8
ESC g ......................................................................... 3-9
3-3-2) Character Expansion Settings ................................................ 3-10
ESC i n1 n2 ....................................................................3-10
ESC W n ......................................................................3-11
ESC h n....................................................................... 3-11
SO .......................................................................... 3-12
DC4 ......................................................................... 3-12
ESC SO ...................................................................... 3-13
ESC DC4...................................................................... 3-13
3-3-3) Print mode .............................................................. 3-14
ESC E ........................................................................ 3-14
ESC F ........................................................................ 3-14
ESC – n....................................................................... 3-15
ESC _ n....................................................................... 3-15
ESC 4 ........................................................................ 3-16
ESC 5 ........................................................................ 3-16
SI ........................................................................... 3-17
DC2 ......................................................................... 3-17
3-3-4) Line spacing ............................................................. 3-18
LF ........................................................................... 3-18
CR .......................................................................... 3-18
ESC a n....................................................................... 3-18
ESC z n....................................................................... 3-19
ESC 0 ........................................................................ 3-19
ESC J n....................................................................... 3-20
ESC n ...................................................................... 3-20
3-3-5) Page control commands .................................................... 3-21
FF........................................................................... 3-21
ESC C n ...................................................................... 3-21
ESC C 0 n .....................................................................3-22
VT........................................................................... 3-23
ESC B n1 n2…nk NUL ............................................................3-24
ESC B NUL .................................................................... 3-24
3-3-6) Horizontal direction printing position ............................................ 3-25
ESC l n .......................................................................3-25
ESC Q n ...................................................................... 3-26
HT........................................................................... 3-26
ESC D n1 n2…nk NUL ............................................................ 3-27
ESC D NUL ....................................................................3-27
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 1-1
ESC GS A n1 n2 ................................................................ 3-28
ESC GS R n1 n2 ................................................................ 3-28
ESC GS a n.................................................................... 3-29
3-3-7) Download............................................................... 3-30
ESC & c1 c2 n d1…d48 ........................................................... 3-30
ESC & c1 c2 n ..................................................................3-31
ESC % n ...................................................................... 3-31
3-3-8) Bit image graphics ........................................................ 3-32
ESC K n1 n2 d1...dk.............................................................. 3-32
ESC L n1 n2 d1...dk .............................................................. 3-33
ESC k n1 n2 d1...dk .............................................................. 3-34
ESC X n1 n2 d1...dk.............................................................. 3-35
3-3-9) Logo .................................................................. 3-36
ESC FS q n [x11 x12 y11 y12 d1...dk]1...[xn1 xn2 yn1 yn2 d1...dk]n ........................... 3-36
ESC FS p n m ..................................................................3-38
3-3-10) Bar code ............................................................... 3-39
ESC b n1 n2 n3 n4 d1...dk RS ...................................................... 3-39
3-3-11) Cutter control ............................................................ 3-41
ESC d n....................................................................... 3-41
3-3-12 External device drive....................................................... 3-42
ESC BEL n1 n2 ................................................................. 3-42
BEL.......................................................................... 3-43
FS........................................................................... 3-43
SUB ......................................................................... 3-44
EM .......................................................................... 3-44
3-3-13) Print settings ............................................................ 3-45
ESC RS d n .................................................................... 3-45
ESC RS r n .................................................................... 3-46
3-3-14) Status ................................................................. 3-47
ESC RS a n .................................................................... 3-47
ESC ACK SOH ................................................................. 3-48
ENQ ......................................................................... 3-48
EOT ......................................................................... 3-48
3-3-15) Chinese characters ........................................................ 3-49
ESC p ........................................................................ 3-49
ESC q ........................................................................ 3-49
ESC $ n....................................................................... 3-50
ESC s n1 n2 ................................................................... 3-51
ESC t n1 n2 ....................................................................3-51
ESC r c1 c2 d1...dk .............................................................. 3-52
3-3-16) Others ................................................................. 3-53
CAN ......................................................................... 3-53
ESC @ ....................................................................... 3-54
ESC GS # m N n1 n2 n3 n4 LF NUL .................................................. 3-55
ESC ? LF NUL .................................................................. 3-56
3-4) Raster Graphics Command Details ........................................... 3-57
ESC * r R...................................................................... 3-58
ESC * r A...................................................................... 3-59
ESC * r B...................................................................... 3-60
ESC * r C...................................................................... 3-60
ESC * r D n NUL ................................................................ 3-61
ESC * E n NUL ................................................................ 3-62
ESC * r F n NUL................................................................. 3-63
ESC * r P n NUL ................................................................ 3-64
ESC * r Q n NUL ................................................................ 3-64
ESC * r m l n NUL ............................................................... 3-65
ESC * r m r n NUL ............................................................... 3-65
ESC * r T n NUL................................................................. 3-66
ESC * r K n NUL ................................................................ 3-66
b n1 n2 data ................................................................... 3-67
k n1 n2 data ................................................................... 3-68
ESC * r Y n NUL ................................................................ 3-69
ESC FF NUL ................................................................... 3-70
ESC FF EOT ................................................................... 3-70
3-5) Black Mark Related Command Details ........................................ 3-71
ESC d n ....................................................................... 3-71
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 1-2
FF........................................................................... 3-72
ESC C n ...................................................................... 3-72
ESC C 0 n .....................................................................3-73
ESC c n....................................................................... 3-73
VT........................................................................... 3-74
ESC B n1 n2...nk NUL ............................................................ 3-74
ESC B NUL .................................................................... 3-74
3-6) USB Related Command Details ............................................... 3-75
3-7) 2 Color Printing Command Details .......................................... 3-76
ESC RS c n .................................................................... 3-76
ESC RS C n ................................................................... 3-77
ESC 4 ........................................................................ 3-79
ESC 5 ........................................................................ 3-79
ESC RS d n .................................................................... 3-80
ESC RS r n .................................................................... 3-81
ESC FS q n [x11 x12 y11 y12 d1...dk]1...[xn1 xn2 yn1 yn2 d1...dk]n ........................... 3-82
ESC FS p n m ..................................................................3-84
3-8) Presenter Related Command Details ......................................... 3-85
ESC SYN 0 n................................................................... 3-85
ESC SYN 1 n................................................................... 3-85
ESC SYN 3 n................................................................... 3-86
ESC SYN 4 n................................................................... 3-87
4. CHARACTER CODE TABLES .......................................................... 4-1
4-1) ANK Codes .................................................................. 4-1
4-2) Japanese Character Codes ................................................... 4-7
4-2-1) JIS Code Type (Conforming to JIS x0208-1983) .................................... 4-7
4-2-2) SHIFT-JIS Code Type ...................................................... 4-14
4-3) Chinese Character Codes (Conforming to GB2312) ............................ 4-20
4-4) Taiwanese Character Codes ................................................. 4-28
4-5) Korean Character Codes .................................................... 4-40
5. APPENDIX ....................................................................... 5-1
5-1) Appendix 1: Bar code specification details ................................. 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 Specifications .......................................... 5-6
5-2-1) ENQ Command Status ...................................................... 5-6
5-2-2) EOT Command Status ...................................................... 5-6
5-2-3) Automatic Status .......................................................... 5-7
5-3) Appendix 3: Blank Code Page Configuration ................................. 5-14
6. SPECIAL APPENDIX COMMAND LIST BY MODEL ....................................... 6-1
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 1-3
This specifications document describes the command specifications for the STAR LINE MODE on line thermal
printers. Information contained herein applies to models with the following conditions.
- Line thermal printers
- Interfaces:
- Parallel
- RS-232C
- USB
- Ethernet
< Applicable Models:>
TSP700
TSP600
TSP800
TUP900
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 1-4
1. INTERFACE CONFIGURATION
1-1) RS-232C Serial Interface
1-1-1) Specifications (Conforming to RS-232)
Rating: RS-232C
Synch method: Start-Stop synchronization method
Handshake: DTR mode
Baud rates: 4800, 9600, 19200, 38400 bps (Set by DIP switches)
Bit length: 7, 8 bits (Set by DIP switches)
Parity: Yes/No (Set by DIP switches)
Parity bit: Odd/even (Set by DIP switches)
Stop bit: 1 bit (Fixed)
Signal polarity: Mark = logic 1 (-3 to -15 V)
Space = logic 0 (+3 to +15 V)
1-1-2) Signal array and explanations according to interface connector pin
<Signal Array and Functions>
Pin
No.
8-19 N.C - Not used
21-24 N.C Signal ground
Signal Name Signal
Direction
1 FG - Frame ground
2 TXD OUT Transmission data
3 RXD IN Reception data
4 RTS OUT Same as DTR
5 N.C - Not used
6 DSR IN Not used
7 SG - Signal ground
20 DTR OUT Data terminal ready signal (SPACE: printer is ready to receive.)
1) When in DTR mode:
When printer is ready to receive data: SPACE
2) When in XON/XOFF mode:
Always SPACE except in the following conditions.
1 Until communication is possible after a reset.
2 When test printing
25 /INIT IN Signal ground
Remarks
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 1-1
1-1-3) Communication protocol
1) General description of operations in the DTR mode
This mode abides by the DIP switch settings. (Ex-factory settings)
This mode performs communication while handshaking with the DTR signals. In the operations to receive printer
data, this mode controls the DTR signals by confirming the BUSY signal. A SPACE indicates that the printer is ready
to receive data; conversely, a “mark” indicates that the printer cannot receive data.
<When ON-LINE>
RXD DATA DATA DATA
DTR
Printing
Power ON Buffer full Buffer empty
<When out of paper>
RXD OFF-LINE ON-LINE
DTR ON-LINE Recovery
Printing Out of paper
No paper signal
Power ON
If there is no printer error after turning ON the power, the DTR signal line is set to a SPACE. When the host computer
confirms that the DTR signal line is a SPACE, it sends the data text to the RXD signal line. The printer sets the DTR
signal line to a “Mark” after the empty area of the data buffer reaches a maximum of 256 bytes. When the host
computer confirms that the DTR signal line is a Mark, it stops the transmission of data text to the printer buffer, but at
this point as well, the printer is still capable of receiving data, up to the amount of empty space in the data buffer. If
the host computer ignores the DTR signal and transmits data, all data exceeding the amount of space in the data
buffer is simply discarded. The printer sets the DTR signal line to SPACE again when the amount of empty space in
the data buffer increased because of the printing and the data in the buffer is a maximum of 256 bytes.
2) Buffer full/Buffer full cancel in the DTR mode
Full Near Full Near Empty Empty
Buffer Empty area: 256 bytes Reception data: 256 bytes
DTR "Mark" DTR "SPACE"
DTR is set to mark at the point the empty area is a maximum of 256 bytes.
DTR is set to SPACE when the data in the buffer is a minimum of 256 bytes.
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 1-2
3) General description of operations in the XON/XOFF mode
This mode is set when DIPSW #1 to #3 are turned OFF. This mode notifies the host of the XON (DC1) data when the
printer can receive data and the XOFF (DC3) data when the printer cannot receive data, using the TXD signals.
This functions so that XON outputs only 1 byte when the printer shifts from OFFLINE (printer busy) to ONLINE
(printer ready) and; XOFF outputs 1 byte when the printer shifts from ONLINE (printer ready) to OFFLINE (printer
busy) .
XON XOFF XON XOFF XON
TXD
RXD DATA DATA DATA
Printing
Out of
paper
signal
Power ON No paper ON-LINE Recovery
If there is no error after turning the power ON, XON (control code name: DC1; Hexadecimal name: 11H) is output by
the TXD signal line. After the host computer receives the XON, it sends the data text to the RXD signal line. XOFF
(CD3; 13H) is output when the empty space in the data buffer is a maximum of 256 bytes. The host computer stops
sending data text when it receives the XOFF, however, the printer is capable of receiving data at that time for the
amount of empty space in the data buffer. Data exceeding the amount of empty space is discarded. As the empty
space in the data buffer increases through printing, XON is output when the data in the buffer is a maximum of 256
bytes.
4) Buffer full/Buffer full cancel in the XON/XOFF mode
Full Near Full Near Empty Empty
Buffer Empty area: 256 bytes Reception data: 256 bytes
XOFF Output XON Output
Printer Setting Conditions Explanation of Operations
Memory switch B-4 = 0 XOFF outputs only 1 byte when the empty area is a
maximum of 256 bytes. XON outputs 1 byte when the
data in the buffer is a maximum of 256 bytes.
Memory switch B-4 = 1 XOFF output for every 1 byte of data received, when
the empty area is a maximum of 256 bytes. XON
output when the data in the buffer is a maximum of 256
bytes.
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 1-3
1-2) Parallel Interfaces (Amphenol 36 pins)
1-2-1) Specifications (Conforming to IEEE1284)
Rating: Conforms to IEEE 1284
Mode: Compatibility Mode/Nibble Mode/Byte Mode
Data transfer speed: 1000 to 6000 CPS
Synch method: According to externally supplied strobe pulse
Handshake: According to ACK and BUSY signals
Logic level: Compatible to TTL
1-2-2) Signal array and explanations according to interface connector pin
<Signal Array and Functions>
Pin No. Compatibility Mode Signal
Nibble Mode Signal Name Byte Mode Signal Name
Name
1
2 to 9
10
11
12
13
14
15
16
17
18
19 to 30
31
32
33
34
35
36
nStrobe
Data0 to 7
nAck
Busy
PError
Select
N/C
N/C
Signal GND
Frame GND
+5V
Twisted Pair Return
nInit
nFault
External GND
N/C
N/C
nSelectIn
HostClk
Data0 to 7
PtrClk
PtrBusy/Data3,7
AckDataReq/Data2,6
Xflag/Data1,5
HostBusy
Signal GND
Frame GND
+5V
Twisted Pair Return
nInit
nDataAvail/Data0,4
-
-
1284Active
HostClk
Data0 to 7
PtrClk
PtrBusy
AckDataReq
Xflag
HostBusy
Signal GND
Frame GND
+5V
Twisted Pair Return
nInit
nDataAvail
-
-
1284Active
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 1-4
1-2-3) Signal output timing
1) Compatibility mode
nStrobe
Data 0 to 7
nAck
Busy
2) Nibble Mode/Byte Mode
Conforms to IEEE 1284 standard
1-2-4) Status specification
See Appendix 2 for details.
T T T T= Max. 0.5 µs
Approx. 1 µs
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 1-5
1-3) USB interface
Refer to the “USB Interface Specifications” documentation for details.
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 1-6
1-4) Ethernet interface
Refer to the “Ethernet Interface Specifications” documentation for details.
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 1-7
2. COMMAND FUNCTION LIST
• Standard Commands
Class Commands Name
Font style ESC GS t Specify code page
and character set ESC GS = Write blank code page data
ESC R Specify international character set
ESC / Specify/cancel slash zero
ESC SP Set ANK right space
ESC M Specify ANK 12 dot pitch
ESC P Specify ANK 5 dot pitch
ESC : Specify ANK 16 dot pitch
ESC g Specify ANK 14 dot pitch
Character ESC Set/cancel the double wide/high printing
expansion settings ESC W Set/cancel the double wide printing
ESC h Set/cancel the double high printing
SO Set double wide printing
DC4 Cancel double wide printing
ESC SO Set printing magnified double character height
ESC DC4 Cancel printing magnified character height
Print modes ESC E Select emphasized printing
ESC F Cancel emphasized printing
ESC - Select/cancels underling mode
ESC _ Select/cancels upperline mode
ESC 4 Select white/black inverted printing
ESC 5 Cancel white/black inverted printing
S Select upside-down printing
DC2 Cancel upside-down printing
Line spacing LF Line feed
CR Carriage return (same as line feed)
ESC a Feed paper n lines
ESC z Select line feed amount
ESC 0 Specify line spacing to 3 mm
ESC J n/4 mm line feed
ESC I n/8 mm line feed
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 2-1
Class Commands Name
Page control FF Form feed
commands ESC C Set page length to n lines
ESC C 0 Set page length in 24 mm units
VT Feed paper to vertical tab position
ESC B Set vertical tab position
ESC N Set bottom margin to n lines
ESC O Cancel bottom margin
Horizontal ESC l Set left margin
direction ESC Q Set right margin
position HT Move print position to horizontal tab position
ESC D Set/cancel horizontal tab position
ESC GS A Move absolute position
ESC GS R Move relative position
ESC GS a Specify position alignment
Download ESC & Register/delete 12 x 24 dot font download characters
ESC % Set/cancel download characters
Bit image ESC K Standard density bit image
graphics ESC L High density bit image
ESC k Fine bit image
ESC X Fine bit image
Logos ESC FS q Register logo data
ESC FS p Print logo data
Bar code ESC b Print bar code
Cutter control ESC d Paper cutter instruction
External device ESC BEL Set pulse width for external device drive
Drive BEL External device 1 drive instruction
FS External device 1 drive instruction
SUB External device 2 drive instruction
EM External device 2 drive instruction
Print settings ESC RS d Set print density
ESC RS r Set printing speed
Status ESC RS a Set status transmission conditions
ESC ACK SOH Real-time printer status (ASB Status)
ENQ Real-time printer status (1)
EOT Real-time printer status (2)
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 2-2
Class Commands Name
Chinese
characters
ESC p Set to JIS Chinese character mode
ESC q Cancel JIS Chinese character mode
ESC $ Set/cancel JIS Chinese character mode
ESC s Set two byte Chinese characters left/right spaces
ESC t Set 1 byte Chinese characters left/right spaces
ESC r Register Chinese download characters
Others CAN Cancel print data and initialize commands
ESC @ Command initialization
ESC GS # Set memory switch
ESC ? Reset printer
(*) Chinese character commands
• Chinese character control commands are ignored on printers not installed with Chinese character fonts (those
intended for overseas).
• All Chinese character control commands are ignored if the specification for the location of use is specified as
SBCS (single byte countries) by the memory switch.
• Raster related commands
Class Commands Name
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 Drive drawer
ESC * r E Set EOT mode
ESC * r F Set FF mode
ESC * r P Set page length
ESC * r Q Set print quality
ESC * r m l Set left margin
ESC * r m r Set right margin
ESC * r T Set top margin
ESC * r K Set print color
b n1 n2 d1...dk Transfer raster data (auto line feed)
k n1 n2 d1...dk Transfer raster data
ESC FF NUL Execute form feed mode
ESC EOT NULL Execute EOT mode
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 2-3
• Black mark related commands
Class Commands Name
Black mark ESC d Paper cut instruction
Related FF Form feed
Commands ESC C Set page length to n lines
ESC C 0 Set page length in 24 mm units
VT Feed paper to vertical tab position
ESC B Set vertical tab position
• USB I/F related commands
Class Commands Name
There are no commands for TSP600/700/800 and TUP900.
• 2 color printing related commands
Class Commands Name
2 color printing ESC RS c Specify printing color in 2 color printing mode
Related ESC RS C Select/cancel 2 color printing mode
Commands ESC 4 Specify white/black inversion and printing color red
ESC 5 Cancel white/black inversion and specify printing color black
ESC RS d Set print density
ESC RS r Set printing speed
ESC FS q Register logo
ESC FS p Print logo
• Presenter r el at e d co m m a nd s
Class Commands Name
Presenter ESC SYN 0 Execute presenter paper recovery
related ESC SYN 1 Set presenter automatic recovery function and recovery time
commands ESC SYN 3 Acquire presenter paper counter
ESC SYN 4 Initialize presenter paper counter
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 2-4
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. When the buffer is full in
standard mode, data in the line buffer is printed and a line feed is performed when new print data is processed.
This is the same as a Line Feed. When the line buffer is full in the page mode, the printer move the print position
to the head of the next line then starts with the new print data.
• Top of line
The top of line is a state that satisfies the following conditions.
- There is currently no print data in the line buffer.
- The position is not specified with the horizontal direction position command.
• Printable region
This is the maximum printable area with the printer’s specifications.
• Print region
This is the printing area specified by a command. (Print region ≤ printable region)
• ANK character base line
24 dots
A
20 dots
Base Line
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-1
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.) If processing the data string of <30>H<1B>H<22>H<31>H<32>H, the printer will read and discard
<1B>H<22>H as an undefined command.
3) Settings outside of the defined area
Processing values outside of the defined area in commands accompanying arguments, those commands are
ignored and the preset values are unchanged. The processing of commands is terminated at the point values
outside of the defined region are processed in arguments having a plurality of commands. Data after that is
processed as normal data.
(Ex.) If processing the data string of <1B>H<52>H<15>H, the printer will discard the data string of
<1B>H<52>H<15>H because although <1B>H<52>H is defined as a commands (ESC R) , the argument
<15>H is outside of the definition. Therefore, the international character set that is already set
experiences no change.
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-2
3-3) Standard Command Details
3-3-1) Font style and character set
ESC GS t n
[Name] Select code page
[Code] ASCII ESC GS t n
Hex. 1B 1D 74 n
Decimal 27 29 116 n
[Defined Region] 0≤n≤21
32≤n≤ 34
64≤n≤ 79
[Initial Value] Memory switch setting
When installed with Japanese language characters and DBCS setting: Fixed at n=2
[Function] Specifies code page
When installed with Japanese and Chinese language characters and DBCS setting, this
command is ignored.
n Code Page n Code Page
0 Normal* 32 Codepage 1252 (Windows Latin-1)
1 CodePage437 (USA,Std. Europe) 33 Codepage 1250 (Windows Latin-2)
2 Katakana 34 Codepage 1251 (Windows Cyrillic)
3 CodePage437 (USA,Std. Europe) 64 Codepage 3840 (IBM-Russian)
4 Codepage 858 (Multilingual) 65 Codepage 3841 (Gost)
5 Codepage 852 (Latin-2) 66 Codepage 3843 (Polish)
6 Codepage 860 (Portuguese) 67 Codepage 3844 (CS2)
7 Codepage 861 (Icelandic) 68 Codepage 3845 (Hungarian)
8 Codepage 863 (Canadian French) 69 Codepgae 3846 (Turkish)
9 Codepage 865 (Nordic) 70 Codepage 3847 (Brazil-ABNT)
10 Codepage 866 (Cyrillic Russian) 71 Codepage 3848 (Brazil-ABICOMP)
11 Codepage 855 (Cyrillic Bulgarian) 72 Codepage 1001 (Arabic)
12 Codepage 857 (Turkey) 73 Codepage 2001 (Lithuanian-KBL)
13 Codepage 862 (Israel (Hebrew) ) 74 Codepage 3001 (Estonian-1)
14 Codepage 864 (Arabic) 75 Codepage 3002 (Estonian-2)
15 Codepage 737 (Greek) 76 Codepage 3011 (Latvian-1)
16 Codepage 851 (Greek) 77 Codepage 3012 (Latvian-2)
17 Codepage 869 (Greek) 78 Codepage 3021 (Bulgarian)
18 Codepage 928 (Greek) 79 Codepage 3041 (Maltese)
19 Codepage 772 (Lithuanian) 255 User Setting Blank Code Page
20 Codepage 774 (Lithuanian)
21 Codepage 874 (Thai)
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-3
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
Hex. 1B 1D 3D n1 n2 da1 da2 ... dak db1 db2 … dbk
Decimal 27 29 61 n1 n2 da1 da2 ... dak db1 db2 … dbk
[Defined Area] n1= 0
n2 = 48
1≤ (n1 + n2 x 256)
0≤ da≤ 255 (Font-A data)
db = 0 (STAR mode is not installed with Font-B.)
k = (n1 + n2 x 256)
[Initial Value] - - [Function] A blank code page indicates a character code table where character codes from 80h to FFh
are all blank.
A blank code page can be selected using the ESC GS t n command n = 255.
The printer is reset when writing with this command is completed.
Font-A Data Format Vertical 24 dots x Horizontal 12 dots]
Da1 ●●●●●●●●Da2 ●●●●○○○○
Da3 ●●●●●●●●Da4 ●●●●○○○○
Da5 ●●●●●●●●Da6 ●●●●○○○○
Da7 ●●●●●●●●Da8 ●●●●○○○○
Da9 ●●●●●●●●Da10 ●●●●○○○○
Da11 ●●●●●●●●Da12 ●●●●○○○○
Da13 ●●●●●●●●Da14 ●●●●○○○○
Da15 ●●●●●●●●Da16 ●●●●○○○○
Da17 ●●●●●●●●Da18 ●●●●○○○○
Da19 ●●●●●●●●Da20 ●●●●○○○○
Da21 ●●●●●●●●Da22 ●●●●○○○○
Da23 ●●●●●●●●Da24 ●●●●○○○○
Da25 ●●●●●●●●Da26 ●●●●○○○○
Da27 ●●●●●●●●Da28 ●●●●○○○○
Da29 ●●●●●●●●Da30 ●●●●○○○○
Da31 ●●●●●●●●Da32 ●●●●○○○○
Da33 ●●●●●●●●Da34 ●●●●○○○○
Da35 ●●●●●●●●Da36 ●●●●○○○○
Da37 ●●●●●●●●Da38 ●●●●○○○○
Da39 ●●●●●●●●Da40 ●●●●○○○○
Da41 ●●●●●●●●Da42 ●●●●○○○○
Da43 ●●●●●●●●Da44 ●●●●○○○○
Da45 ●●●●●●●●Da46 ●●●●○○○○
Da47 ●●●●●●●●Da48 ●●●●○○○○
● = Data region/ ○ =Zero data
MSB LSB MSB LSB
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-4
ESC R n
[Name] Specify international character set
[Code] ASCII
Hex. 1B 52 n
Decimal 27 82 n
[Defined Area] 0≤n≤14
[Initial Value] Memory switch setting
[Function] Specifies international characters
n International Characters
0, 48 USA
1, 49 France
2, 50 Germany
3, 51 UK
4, 52 Denmark
5, 53 Sweden
6, 54 Italy
7, 55 Spain
8, 56 Japan
9, 57 Norway
10, 65 Denmark II
11, 66 Spain II
12, 67 Latin America
13, 68 Korea
14, 69 Ireland
64 Legal
ESC
n = 64
48≤n≤ 57 (”0”≤n≤ ”9”)
65≤n≤ 69 (”A”≤n≤ ”E”)
When installed with Japanese language characters and DBCS setting: Fixed at n=8
Rn
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-5
ESC / n
[Name] Specify/cancel slash zero
[Code] ASCII ESC / n
Hex. 1B 2F n
Decimal 27 47 n
[Defined Area] n = 0, 1, 48, 49
[Initial Value] Memory switch setting
[Function] Specifies and cancels slash zeros.
n International Characters
0, 48 Cancels slash zero
1, 49 Specifies slash zero
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-6
ESC SP n
[Name] Set ANK right space
[Code] ASCII ESC SP n
Hex. 1B 20 n
Decimal 27 32 n
[Defined Area] 0≤n≤15
48≤n≤ 57 (”0”≤n≤ ”9”)
65≤n≤ 70 (”A”≤n≤ ”F”)
[Initial Value] Memory switch setting
[Function] Specifies the right space for ANK 12 x 24 dot fonts in n dots.
Character spacing can be specified also with the following commands.
• Specify 12 dot pitch (ESC M)
• Specify 14 dot pitch (ESC g)
• Specify 15 dot pitch (ESC P)
• Specify 16 dot pitch (ESC :)
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-7
ESC M
[Name] Specify 12 dot pitch
[Code] ASCII ESC M
Hex. 1B 4D
Decimal 27 77
[Defined Area] - - [Initial Value] Memory switch setting
[Function] Specifies rights space for the ANK 12 x 24 dot fonts to 0 dots.
ESC P
[Name] Specify 15 dot pitch
[Code] ASCII ESC P
Hex. 1B 50
Decimal 27 80
[Defined Area] - - [Initial Value] Memory switch setting
[Function] Specifies rights space for the ANK 12 x 24 dot fonts to 3 dots.
ESC :
[Name] Specify 16 dot pitch
[Code] ASCII ESC :
Hex. 1B 3A
Decimal 27 58
[Defined Area] - - [Initial Value] Memory switch setting
[Function] Specifies rights space for the ANK 12 x 24 dot fonts to 4 dots.
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-8
ESC g
[Name] Specify 14 dot pitch
[Code] ASCII ESC g
Hex. 1B 67
Decimal 27 103
[Defined Area] - - [Initial Value] Memory switch setting
[Function] Specifies rights space for the ANK 12 x 24 dot fonts to 2 dots.
Specification A
This command is enabled only when the memory switch setting is set for DBCS (2 byte
countries). It is ignored when the memory switch setting is set for SBCS (1 byte countries).
Specification B
This command is enabled for both when the memory switch setting is set for either DBCS (2 byte
countries) or SBCS (1 byte countries).
Supplement:
Specification Type A and Specification Type B differ per model.
See the COMMAND LIST BY MODEL in Chapter 6. SPECIAL APPENDIX for your model.
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-9
3-3-2) Character Expansion Settings
ESC i n1 n2
[Name] Set/cancel the double wide/high
[Code] ASCII ESC i n1 n2
Hex. 1B 69 n1 n2
Decimal 27 105 n1 n2
[Defined Area] 0≤n1≤5
48≤ n1≤ 53 (”0”≤ n1≤ ”5”)
0≤ n2≤ 5
48≤ n2≤ 53 (”0”≤ n2≤ ”5”)
[Initial Value] n1 = 0 (Double high cancelled)
n2 = 0 (Double wide cancelled)
[Function] Specifies/cancels double high/wide for ANK characters and Chinese characters.
This command is ignored if either N1 or N2 is outside of the defined area.
n1 Expanded high
0, 48 Cancels expanded high
1, 49 Specifies 2x high expansion
2, 50 Specifies 3x high expansion
3, 51 Specifies 4x high expansion
4, 52 Specifies 5x high expansion
5, 53 Specifies 6x high expansion
n2 Expanded wide
0, 48 Cancels expanded wide
1, 49 Specifies 2x wide expansion
2, 50 Specifies 3x wide expansion
3, 51 Specifies 4x wide expansion
4, 52 Specifies 5x wide expansion
5, 53 Specifies 6x wide expansion
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-10
ESC W n
[Name]
[Code] ASCII ESC W n
[Defined Area] 0≤n≤5
[Initial Value] n = 0 (Double wide cancelled)
[Function] Specifies/cancels double wide for ANK characters and Chinese characters.
Specify/cancel expanded wide
Hex. 1B 57 n
Decimal 27 87 n
48≤n≤ 53 (”0”≤n≤ ”5”)
n Expanded wide
0, 48 Cancels expanded wide
1, 49 Specifies 2x wide expansion
2, 50 Specifies 3x wide expansion
3, 51 Specifies 4x wide expansion
4, 52 Specifies 5x wide expansion
5, 53 Specifies 6x wide expansion
ESC h n
[Name]
[Code] ASCII ESC h n
Specify/cancel expanded high
Hex. 1B 68 n
Decimal 27 104 n
[Defined Area] 0≤n≤5
48≤n≤ 53 (”0”≤n≤ ”5”)
[Initial Value] n = 0 (Double high cancelled)
[Function] Specifies/cancels double high for ANK characters and Chinese characters.
n Expanded high
0, 48 Cancels expanded high
1, 49 Specifies 2x expansion
2, 50 Specifies 3x expansion
3, 51 Specifies 4x expansion
4, 52 Specifies 5x expansion
5, 53 Specifies 6x expansion
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-11
SO
[Name] Set double wide
[Code] ASCII SO
Hex. 0E
Decimal 14
[Defined Area] - - [Initial Value] Cancels 2x wide expansion
[Function] Specifies double wide for ANK characters and Chinese characters.
This command is equivalent to ESC W n (n = 1).
DC4
[Name] Cancel expanded wide
[Code] ASCII
Hex. 14
Decimal 20
[Defined Area] - - [Initial Value] - - [Function] Cancels expanded wide if the following commands specify expanded wide.
C4
• Double wide specifying command (SO)
• Set/cancel double wide (ESC W)
• Set/cancel double wide/high (ESC i)
This command is equivalent to ESC W n (n = 0).
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-12
ESC SO
[Name] Set double high
[Code] ASCII ESC SO
Hex. 1B 0E
Decimal 27 14
[Defined Area] - - [Initial Value] Double high expansion cancelled.
[Function] Specifies double high for ANK characters and Chinese characters.
This command is equivalent to ESC h n (n = 1).
ESC DC4
[Name] Cancel expanded high
[Code] ASCII
Hex. 1B 14
Decimal 27 20
[Defined Area] - - [Initial Value] - - [Function] Cancels expanded high if the following commands specify expanded high.
ESC DC4
• Double high specifying command (ESC SO)
• Set/cancel the double high (ESC h)
• Set/cancel double wide/high (ESC i)
This command is equivalent to ESC h n (n = 0).
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-13
3-3-3) Print mode
ESC E
[Name] Select emphasized printing
[Code] ASCII ESC E
Hex. 1B 45
Decimal 27 69
[Defined Area] - - [Initial Value] Emphasized printing selected
[Function] Specifies emphasized printing for ANK characters.
IBM block ignores emphasized printing.
ESC F
[Name] Cancel emphasized printing
[Code] ASCII ESC F
Hex. 1B 46
Decimal 27 70
[Defined Area] - - [Initial Value] Emphasized printing cancelled.
[Function] Cancels emphasized printing for ANK characters.
―――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――――――――― ――――――――――――――――
STAR Line Mode Command Specifications 3-14