2.3. Standard Command Details .................................................................................. 19
2.3.1. Font style and Character Set ..................................................................................... 19
ESC RS F n ........................................................................................................................................... 19
ESC GS t n ............................................................................................................................................ 20
ESC R n ................................................................................................................................................ 24
ESC / n ................................................................................................................................................. 25
ESC SP n .............................................................................................................................................. 25
ESC & c1 c2 n d1…d48 .......................................................................................................................... 26
ESC & c1 c2 n ....................................................................................................................................... 27
ESC % n ............................................................................................................................................... 27
2.3.2. Kanji characters ....................................................................................................... 28
ESC p ................................................................................................................................................... 28
ESC $ n ................................................................................................................................................ 28
ESC s n1 n2 .......................................................................................................................................... 29
ESC t n1 n2 .......................................................................................................................................... 29
ESC r c1 c2 d1...dk ................................................................................................................................ 30
ESC i n1 n2 ........................................................................................................................................... 31
ESC W n ............................................................................................................................................... 32
ESC h n ................................................................................................................................................ 32
ESC E ................................................................................................................................................... 33
ESC F ................................................................................................................................................... 33
ESC – n ................................................................................................................................................ 34
ESC _ n ................................................................................................................................................ 34
SI ........................................................................................................................................................ 36
2.3.4. Horizontal Direction Printing Position .......................................................................... 37
ESC l n ................................................................................................................................................. 37
ESC Q n ................................................................................................................................................ 37
ESC D n1 n2…nk NUL ............................................................................................................................ 38
StarPRNT Command Specifications2
Rev. 2.25
ESC D NUL ............................................................................................................................................ 38
ESC GS A n1 n2 ..................................................................................................................................... 39
ESC GS R n1 n2 ..................................................................................................................................... 39
ESC GS a n ........................................................................................................................................... 39
2.3.5. Line Spacing ........................................................................................................... 40
ESC a n ................................................................................................................................................ 40
ESC z n ................................................................................................................................................ 40
ESC J n ................................................................................................................................................. 41
ESC I n ................................................................................................................................................. 41
2.3.6. Page Control Commands .......................................................................................... 42
ESC C n ................................................................................................................................................ 42
ESC C 0 n ............................................................................................................................................. 42
2.3.7. Top margin ............................................................................................................. 43
ESC RS T n ........................................................................................................................................... 43
2.3.8. Page Function ......................................................................................................... 44
ESC GS h 0 k m n .................................................................................................................................. 44
2.3.9. Cutter Control ......................................................................................................... 45
ESC d n ................................................................................................................................................ 45
2.3.10. Reduced Printing Function Command Details ............................................................... 46
ESC GS c h v ......................................................................................................................................... 46
ESC GS P 0 ........................................................................................................................................... 47
ESC GS P 1 ........................................................................................................................................... 48
ESC GS P 2 n ........................................................................................................................................ 48
2.3.14. Bar Code ................................................................................................................ 73
ESC b n1 n2 n3 n4 d1...dk RS ................................................................................................................. 73
2.3.15. Two-Dimensional Bar Code QR Code Command Details ................................................ 76
ESC GS y S 0 n ...................................................................................................................................... 78
ESC GS y S 1 n ...................................................................................................................................... 78
ESC GS y S 2 n ...................................................................................................................................... 78
ESC GS y D 1 m nL nH d1 d2 … dk .......................................................................................................... 79
ESC GS y D 2 a m1 n1L n1H d11 d12 … d1k m2 n2L n2H d21 d22 … d2k ml … dlk ............................................. 80
ESC GS y P ........................................................................................................................................... 81
2.3.16. Two-Dimensional Bar Code PDF417 Command Details ................................................. 82
ESC GS x S 0 n p1 p2 ............................................................................................................................. 84
ESC GS x S 1 n ...................................................................................................................................... 84
ESC GS x S 2 n ...................................................................................................................................... 84
ESC GS x S 3 n ...................................................................................................................................... 85
ESC GS x D nL nH d1 d2 … dk ................................................................................................................ 85
ESC GS x P ........................................................................................................................................... 85
2.3.17. GS1 2D Code, Compound symbol Command Details .................................................... 86
ESC ACK CAN ........................................................................................................................................ 94
ESC GS # m N n1 n2 n3 n4 LF NUL ......................................................................................................... 96
2.3.20. Status .................................................................................................................... 97
ESC RS a n ........................................................................................................................................... 97
ESC RS E n ........................................................................................................................................... 98
ESC GS ETX s n1 n2 ............................................................................................................................... 99
ESC RS A n ......................................................................................................................................... 109
ESC RS d n ......................................................................................................................................... 110
ESC RS r n .......................................................................................................................................... 112
2.3.22. Special Command .................................................................................................. 113
ESC RS R n ......................................................................................................................................... 113
2.3.24. Black Mark Related Command Details ....................................................................... 118
ESC d n .............................................................................................................................................. 118
ESC C n .............................................................................................................................................. 119
ESC C 0 n ........................................................................................................................................... 119
2.3.25. Color Printing Command Details .............................................................................. 120
ESC RS c n .......................................................................................................................................... 120
ESC RS C n ......................................................................................................................................... 121
SUB ................................................................................................................................................... 125
EM ..................................................................................................................................................... 126
ESC GS EM DC1 m n1 n2 ...................................................................................................................... 127
ESC GS EM DC2 m n1 n2 ...................................................................................................................... 128
ESC GS B 0 ......................................................................................................................................... 130
ESC GS B 1 ......................................................................................................................................... 130
ESC GS B 2 ......................................................................................................................................... 131
ESC GS B 3 ......................................................................................................................................... 131
2.3.29. Magnetic Card Reader Commands ........................................................................... 132
ESC M C ............................................................................................................................................. 132
ESC M D ............................................................................................................................................. 132
ESC M E ............................................................................................................................................. 132
ESC M F .............................................................................................................................................. 133
ESC M G ............................................................................................................................................. 133
ESC M J .............................................................................................................................................. 133
ESC GS B @ ........................................................................................................................................ 134
ESC RS B A ......................................................................................................................................... 134
ESC GS B B ......................................................................................................................................... 135
ESC GS B C ......................................................................................................................................... 135
4.7.2. Magnetic Card Data Transmission Format ................................................................. 195
4.8. Appendix 8 Specifications when a melody speaker is connected .............................. 196
4.9. Appendix 9 Print Area Setting ............................................................................. 197
5. SPECIAL APPENDIX .................................................................................... 198
5.1. COMMAND LIST FOR EACH MODEL ..................................................................... 198
StarPRNT Command Specifications8
Rev. 2.25
This specification is a command specification for StarPRNT of line thermal printer.
Information contained herein applies to the following models.
< Applicable Models:>
• mPOP
• SM-L Series
SM-L200
SM-L300
• SM-S Series
SM-S210i (For Japanese market only)
SM-S220i (Other than Japanese market)
SM-S230i (Other than Japanese market)
• SM-L Series
SM-T300i
SM-T400i
• mC-Print3
MCP30
MCP31
• mC-Print2
MCP20
MCP21
For the command support status of each model, refer to “5. COMMAND LIST FOR EACH MODEL”.
StarPRNT Command Specifications9
Rev. 2.25
Commands
Name
ESC RS F
Select font
ESC GS t
Specify code page
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 &
Register/delete 12 x 24 dot font download characters
ESC %
Set/cancel download characters
Commands
Name
ESC p
Set to JIS Kanji character mode
ESC q
Cancel JIS Kanji character mode
ESC $
Set/cancel JIS Kanji character modes
ESC s
Set two bytes Kanji characters left/right spaces
ESC t
Set 1 byte Kanji characters left/right spaces
ESC r
Register Chinese download characters
Commands
Name
ESC i
Set/cancel the double wide/high printing
ESC W
Set/cancel the double wide printing
ESC h
Set/cancel the double high printing
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
SI
Select upside-down printing
DC2
Cancel upside-down printing
1.COMMAND FUNCTION LIST
• Font style and character set
• Chinese characters
• Kanji character control commands are ignored on printers not installed with Kanji character fonts (those intended for
overseas).
• All Kanji character control commands are ignored if the specification for the location of use is specified as SBCS (single
byte countries) by the memory switch.
• Print modes
StarPRNT Command Specifications10
Rev. 2.25
Commands
Name
ESC l
Set left margin
ESC Q
Set right margin
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
Commands
Name
LF
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
Commands
Name
FF
Form feed
ESC C
Set page length to n lines
ESC C 0
Set page length in 24 mm units
Commands
Name
ESC RS T
Set top margin
Commands
Name
ESC GS h 0
Invert 180˚
Commands
Name
ESC d
Paper cutter instruction
Commands
Name
• Horizontal direction position
• Line spacing
• Page control commands
• Top margin
• Page Function
• Cutter control
• Reduced Printing Function Command
ESC GS c h v Set reduced printing
StarPRNT Command Specifications11
Rev. 2.25
Commands
Name
ESC GS P 0
Selects page mode
ESC GS P 1
Cancels page mode
ESC GS P 2
Select printing direction
ESC GS P 3
Set print region in page mode
ESC GS P 4
Specify character vertical direction absolute position
ESC GS P 5
Specify character vertical direction relative position
ESC GS P 6
Prints
ESC GS P 7
Cancel printing and page mode
ESC GS P 8
Cancel print data
Commands
Name
ESC K
Standard density bit image
ESC L
High density bit image
ESC k
Fine bit image
ESC X
Fine bit image
ESC GS S m
Graphics Raster data printing
ESC GS X m
Commands
Name
ESC GS ( L (fn=0, 48)
Register logo data
ESC GS ( L (fn=3, 51)
Send key code of the registered NV graphics
ESC GS ( L (fn=64)
Send all key code of the NV graphics
ESC GS ( L (fn=65)
Erase entire NV graphics data
ESC GS ( L (fn=66)
Erase the specified NV graphics data
ESC GS ( L (fn=67)
Set the specified NV graphics data
ESC GS ( L (fn=69)
Print the specified NV graphics data
Register logo data
Send all key code of the NV graphics
Erase entire NV graphics data
ESC GS 8 L (fn=66)
Erase the specified NV graphics data
Set the specified NV graphics data
ESC GS ) L (fn=48)
Send the registered individual logo CRC
ESC GS ) L (fn=49)
Send the registered individual NV graphics memory capacity
ESC GS ) L (fn=50)
all key code of the registered NV graphics
ESC GS ) L (fn=51)
Send the registered NV graphics data
Commands
Name
ESC b
Print bar code
• Page Mode Commands
• Bit image Graphics
• Logos
ESC GS 8 L (fn=0, 48)
ESC GS 8 L (fn=3, 51)
ESC GS 8 L (fn=64)
ESC GS 8 L (fn=65)
ESC GS 8 L (fn=67)
ESC GS 8 L (fn=69)
Graphics Raster data printing (Compress data)
Send key code of the registered NV graphics
Print the specified NV graphics data
• Bar code
StarPRNT Command Specifications12
Rev. 2.25
Commands
Name
ESC GS y S0
Set QR code model
ESC GS y S1
Set QR code mistake correction level
ESC GS y S2
Set QR code cell size
ESC GS y D1
Set QR code data
ESC GS y D2
Set QR code data (Manual)
ESC GS y P
Print QR code
Commands
Name
ESC GS x S0
Set PDF417 bar code size
ESC GS x S1
Set PDF417 ECC (security level)
ESC GS x S2
Set PDF417 module X direction size
ESC GS x S3
Set PDF417 module aspect ratio
ESC GS x D
Set PDF417 bar code data
ESC GS x P
Print PDF417 bar code
Commands
Name
ESC GS ( k(cn=51,fn=67)
Set 2D module siz
ESC GS ( k(cn=51,fn=71)
Set The maximum width of the 2D GS1DataBar Expanded Stacked
ESC GS ( k(cn=51,fn=80)
Store data in 2D symbol saving region
ESC GS ( k(cn=51,fn=81)
Print 2D symbol data of symbol saving region
ESC GS ( k(cn=52,fn=67)
Compound symbol: Set module size
ESC GS ( k(cn=52,fn=71)
Compound symbol: Set The maximum width of the 2D GS1DataBar Expanded Stacked
ESC GS ( k(cn=52,fn=72)
Compound symbol: Set HRI Font
ESC GS ( k(cn=52,fn=80)
Compound symbol: Store data in symbol saving region
ESC GS ( k(cn=52,fn=81)
Compound symbol: Print symbol data of symbol saving region
Commands
Name
ESC @
Command initialization
ESC ?
Reset printer
Commands
Name
ESC GS #
Set memory switch
• QR Code commands
• PDF417 commands
• 2D GS1 code, Compound symbol Commands
• Initialization Command
ESC ACK CAN Real-time printer reset
• Memory Switch Command
StarPRNT Command Specifications13
Rev. 2.25
Commands
Name
ESC RS a
Set status transmission conditions
ESC ACK SOH
Real-time printer status (ASB Status)
ETB
Update ETB status
ESC RS E
Clear ETB counter, ETB status
ESC GS ETX
Send print end counter and initialize
Print data cancel function
Data time out setting
ESC # *
Printer version inquiry
ESC GS ) I (fn = 48)
Transmit multibyte font kind
ESC GS ) I (fn = 49)
Transmit Printer information
ESC GS ) I (fn = 50)
Transmit installed I/F kind
ESC GS ) I (fn = 52)
Commands
Name
ESC RS A
Printing area setting
ESC RS d
Set print density
ESC RS r
Set printing speed
Commands
Name
ESC RS R
Specify the special location of use
Commands
Name
ESC GS ) U (fn = 48)
Selects UTF code
ESC GS ) U (fn = 64)
Setting of the Unicode ambiguous character
Commands
Name
ESC d
Paper cut instruction
FF
Form feed
ESC C
Set page length to n lines
ESC C 0
Set page length in 24 mm units
Commands
Name
ESC RS c
Specify printing color in 2 color printing mode
ESC RS C
Select/cancel 2 color printing mode
ESC 4
Specify white/black inversion and printing color red
ESC 5
Cancel white/black inversion and specify printing color black
• Status
ESC GS ) I (fn = 51)
• Print settings
Transmit Remaining battery power
Transmit external device information
• Special Commands
• UTF Commands
ESC GS ) U (fn = 65)
Set the UTF-8 CJK Unified Ideograph font
• Black mark Commands
• 2 color printing related commands
StarPRNT Command Specifications14
Rev. 2.25
Commands
Name
ESC BEL
Set pulse width for external device 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
ESC GS EM DC1
External buzzer drive pulse condition settings
ESC GS EM DC2
External buzzer drive execution
Commands
Name
ESC GS s R
Commands
Name
ESC GS B 0
ESC GS B 1
Status Request
ESC GS B 2
Barcode data request
ESC GS B 3
Commands
Name
ESC M J
Read JIS II track
Commands
Name
Status request
Customer display data request
• External device drive
• Melody Speaker Command
• Barcode Reader Command
Playback of received data
Send data to a barcode reader
Buffer clear
• Magnetic Card Reader Commands
ESC M C Read ISO track
ESC M D Read ISO track
ESC M E Read ISO 2 tracks
ESC M F Read ISO 3 tracks
ESC M G Read ISO track (Track 3)
EOT Cancel MSR mode
• Customer Display Command
ESC GS B @ Send data to a customer display
ESC RS B A
ESC GS B B
ESC GS B C Buffer clear
StarPRNT Command Specifications15
Rev. 2.25
Commands
Name
ESC GS ) N (fn = 48)
ESC GS ) N (fn = 49)
ESC GS ) N (fn = 50)
ESC GS ) N (fn = 51)
ESC GS ) N (fn = 52)
ESC GS ) N (fn = 53)
Set 9100 multi session
ESC GS ) N (fn = 54)
ESC GS ) N (fn = 55)
ESC GS ) N (fn = 57)
Set Steady LAN
ESC GS ) N (fn = 58)
ESC GS ) N (fn = 59)
ESC GS ) N (fn = 64)
Send acquisition method for IP address
ESC GS ) N (fn = 65)
ESC GS ) N (fn = 66)
ESC GS ) N (fn = 67)
ESC GS ) N (fn = 68)
ESC GS ) N (fn = 69)
ESC GS ) N (fn = 70)
ESC GS ) N (fn = 71)
ESC GS ) N (fn = 73)
ESC GS ) N (fn = 74)
ESC GS ) N (fn = 75)
ESC GS ) N (fn = 112)
ESC GS ) N (fn = 113)
ESC GS ) N (fn = 129)
Send Login Password Change Status
Set Star CloudPRNT Cloud Service
ESC GS ) N (fn = 134)
Set Star CloudPRNT Polling time
ESC GS ) N (fn = 135)
Send Star CloudPRNT Polling time
ESC GS ) N (fn = 137)
Send Star CloudPRNT User Name
• Network command
Set acquisition method for IP address
Set IP Address
Set subnet mask
Set default gateway
Set DHCP timeout
Set 9100 data timeout
Set disconnect message
Set DNS 1
Set DNS 2
Send IP Address
Send subnet mask
Send default gateway
Send DHCP timeout
Send 9100 multi session
Send 9100 data timeout
Set disconnect message
Send Steady LAN
Send DNS 1
Send DNS 2
Save network parameters
Initialize network parameters
ESC GS ) N (fn = 114) Execute Login
ESC GS ) N (fn = 115) Send Login Status
ESC GS ) N (fn = 116) Execute Logout
ESC GS ) N (fn = 128) Set Login Password
ESC GS ) N (fn = 130)
ESC GS ) N (fn = 131) Send Star CloudPRNT Cloud Service
ESC GS ) N (fn = 132) Set Star CloudPRNT Service URL
ESC GS ) N (fn = 133) Send Star CloudPRNT Service URL
ESC GS ) N (fn = 136) Set Star CloudPRNT User Name
ESC GS ) N (fn = 138) Set Star CloudPRNT Password
ESC GS ) N (fn = 139) Send Star CloudPRNT Password
ESC GS ) N (fn = 140) Set Star CloudPRNT HTTPS trust level
ESC GS ) N (fn = 141) Send Star CloudPRNT HTTPS trust level
ESC GS ) N (fn = 142) Set Star CloudPRNT NTP Server
ESC GS ) N (fn = 143) Send Star CloudPRNT NTP Server
ESC GS ) N (fn = 144) Set Star CloudPRNT Cipher Suites Encryption Level
ESC GS ) N (fn = 145) Send Star CloudPRNT Cipher Suites Encryption Level
StarPRNT Command Specifications16
Rev. 2.25
2. COMMAND DETAILS
2.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
* For SM-S and T series, the base line is the upper end of each data.
* For the expansion position of the print data in page mode, refer to “Appendix 5 Explanation of Page Mode”.
• ASB Function
Sends the automatic status to the host each time the printer’s status changed.
• NSB Function
When the printer uses a parallel I/F or USB I/F, sends the automatic status each time the reverse transfer mode is entered.
When the printer uses Ethernet I/F or wireless I/F, sends the automatic status when the printer is connected to the print port
(TCP#9100). The ASB and NSB status formats are the same.
StarPRNT Command Specifications17
Rev. 2.25
2.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 the data following the ESC code is a code that is not defined as a command, ESC 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.
When the data following ESC is FS, and the data following that is not defined as a command, ESC FS and the code which
follows (total 3 bytes) are discarded.
When the data following ESC is GS, and the data which follows it is a code that is not defined as a command, ESC GS
and the code which follows it (total 3 bytes) is read and discarded.
When the data following ESC is RS, and the data which follows it is a code that is not defined as a command, ESC RS
and the 2-byte code which follows it (total 4 bytes) is read and discarded.
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.
(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.
StarPRNT Command Specifications18
Rev. 2.25
[Name]
Select font
[Code]
ASCII
ESC
RS F n
Hex.
1B
1E
46 n
Decimal
27
30
70 n
2.3. Standard Command Details
2.3.1. Font style and Character Set
ESC RS F n
[Defined Region] Spec. 1 : 0≤n≤1
Spec. 2 : 0≤n≤2
[Initial Value] n = 0
[Function] Selects a font
n Font
0 Font-A (12 x 24 dots)
1 Font-B (9 x 24 dots)
2 Font-C ( 9 x 17 dots)
StarPRNT Command Specifications19
Rev. 2.25
[Name]
Select code page
[Code]
ASCII
ESC
GS t n
Hex.
1B
1D
74 n
Decimal
27
29
116 n
2
Katakana
7
Codepage 861 (Icelandic)
8
Codepage 863 (Canadian French)
ESC GS t n
[Defined Region] Spec. 1
For SBCS
0≤ n ≤ 21, 32 ≤ n ≤ 34, 64 ≤ n ≤ 79, 96 ≤ n ≤ 98, n=102, 255
Spec. 2
For SBCS
0≤ n ≤ 21, 32 ≤ n ≤ 34, 64 ≤ n ≤ 79, 96 ≤ n ≤ 98, n=102, n=255
0 ≤ da ≤ 255 (Font-A data)
0 ≤ db ≤ 255 (Font-B data
ak = 6144
bk = 6144
ck = 0 (Do not send Font-C data)
Spec. 2
n1 = 0
n2 = 48
1 ≤ (n1 + n2 x 256)
0 ≤da ≤ 255 (Font-A data)
0 ≤db ≤ 255 (Font-B data
0 ≤ dc ≤ 255 (Font-C data)
ak = 6144
bk = 6144
ck = 4352
[Initial Value] - - [Function] Writes data into a blank code page.
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 following is the data written to the blank code page. Font-A: 1 character = 48 bytes 6144 bytes = 48 bytes x 128 characters Font-B: 1 character = 48 bytes 6144 bytes = 48 bytes x 128 characters Font-C: 1 character = 34 bytes 4352 bytes = 34 bytes x 128 characters
Send Font-A, Font-B and Font-C data continuously.
For models that do not support Font-C, only send Font-A / Font-B data.
The printer is reset when writing with this command is completed.
StarPRNT Command Specifications22
Rev. 2.25
StarPRNT Command Specifications23
Rev. 2.25
[Name]
Specify international character set
[Code]
ASCII
ESC
R n
Hex.
1B
52 n
Decimal
27
82 n
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 R n
[Defined Area] 0≤n≤14
n = 64
48≤n≤57 (”0”≤n≤”9”)
65≤n≤69 (”A”≤n≤”E”)
[Initial Value] Memory switch setting
When installed with Japanese language characters and MBCS setting: Fixed at n=8
When installed with Hangeul language characters and MBCS setting: Fixed at n=13
[Function] Specifies international characters
When installed with Japanese language characters and MBCS setting, this command is ignored.
When installed with Hangeul language characters and MBCS setting, this command is ignored.
StarPRNT Command Specifications24
Rev. 2.25
[Name]
Specify/cancel slash zero
[Code]
ASCII
ESC / n Hex.
1B
2F n
Decimal
27
47 n
ESC SP n
[Name]
Set ANK right space
[Code]
ASCII
ESC
SP n
Hex.
1B
20 n
Decimal
27
32 n
ESC / 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
[Defined Area] 0≤n≤15
48≤n≤57 (”0”≤n≤”9”)
65≤n≤70 (”A”≤n≤”F”)
[Initial Value] Memory switch setting
[Function] Specify the right space amount of ANK characters in n dots.
The ANK character width is "left space amount” + "ANK font dot count” + right space amount.”
(See the information on character specifications in the appropriate printer specifications manual for
details on the ANK font dot count.)
Standard mode and page mode can be set independently of each other.
StarPRNT Command Specifications25
Rev. 2.25
[Name]
Register ANK download characters
[Code]
ASCII
ESC
&
c1
c2 n d1
...
d48
Hex.
1B
26
c1
c2 n d1
...
d48
Decimal
27
38
c1
c2 n d1
...
d48
FONT-A data format 24 dots vertically x 12 dots horizontally
FONT-B data format 24 dots vertically x 9 dots horizontally
ESC & c1 c2 n d1…d48
[Defined Area] c1 = 1, 49
c2 = 1, 49
32≤n≤127
0≤d≤255
[Initial Value] - - [Function] Registers the download characters of the currently selected font (Font-A or Font-B) to the nth address.
Download characters can be registered to <20>H to <7F>H.
If one has been already registered to an address, it is overwritten.
When parameters c1 and c2 and n are outside of the defined area, subsequent data is handled as normal
data.
StarPRNT Command Specifications26
Rev. 2.25
[Name]
Delete ANK download characters
[Code]
ASCII
ESC
&
c1
c2 n
Hex.
1B
26
c1
c2 n
Decimal
27
38
c1
c2 n
[Name]
Specifies/cancels ANK download characters
[Code]
ASCII
ESC % n Hex.
1B
25 n
Decimal
27
37 n
n
Download characters
0, 48
Cancels ANK download characters
1, 49
Specifies ANK download characters
ESC & c1 c2 n
[Defined Area] c1 = 1, 49
c2 = 0, 48
32≤n≤127
[Initial Value] - - [Function] Deletes the download characters of the currently selected font (Font-A or Font-B) that are registered in the
[Defined Area] - - [Initial Value] JIS Kanji character mode cancelled
[Function] Specifies JIS Kanji character mode
When in JIS Kanji character mode, character codes are all handled as 2 byte Kanji characters (First byte:
upper code; second byte: lower code).
This command is ignored for models not equipped with Japanese and Kanji characters and when the
specification for the location of use is specified as SBCS (single byte countries) by the memory switch.
This command is ignored when UTF-8 is specified (command: ESC GS t 128) for MBCS.
ESC q
[Defined Area] - - [Initial Value] JIS Kanji character mode cancelled
[Function] Cancel JIS Kanji character mode
This command is ignored when UTF-8 is specified (command: ESC GS t 128) for MBCS.
ESC $ n
[Defined Area] - - [Initial Value] Memory switch setting
[Function] Specifies and cancels the shift JIS Kanji character mode.
When in shift JIS Kanji character mode, character codes are all handled as 2 byte Kanji characters (First
byte: upper code; second byte: lower code).
This command is ignored for models not equipped with Japanese and Kanji characters and when the
specification for the location of use is specified as SBCS (single byte countries) by the memory switch.
This command is ignored when UTF-8 is specified (command: ESC GS t 128) for MBCS.
StarPRNT Command Specifications28
Rev. 2.25
[Name]
Set Full-Size Kanji character left/right spaces
[Code]
ASCII
ESC
s
n1
n2
Hex.
1B
73
n1
n2
Decimal
27
115
n1
n2
[Name]
Set Half-Size Kanji character left/right spaces
[Code]
ASCII
ESC
t
n1
n2
Hex.
1B
74
n1
n2
Decimal
27
116
n1
n2
ESC s n1 n2
[Defined Area] 0≤n1≤7 48≤n1≤55 (”0”≤n1≤”7”)
0≤n2≤15
48≤n2≤57 (”0”≤n2≤”9”)
65≤n2≤70 (”A”≤n2≤”F”)
[Initial Value] Memory switch setting
[Function] Adds n1 dots left space amount and n2 dots right space amount to Kanji characters.
The Kanji character width is "left space amount” + "Kanji font dot count” + "right space amount.”
(See the information on character specifications in the appropriate printer specifications manual for
details on the Kanji font dot count.)
This command is ignored for models not equipped with Kanji fonts (for overseas) and when the
specification for the location of use is specified as SBCS (single byte countries) by the memory switch.
Standard mode and page mode can be set independently of each other.
ESC t n1 n2
[Defined Area] 0≤n1≤7 48≤n1≤55 (”0”≤n1≤”7”)
0≤n2≤15
48≤n2≤57 (”0”≤n2≤”9”)
65≤n2≤70 (”A”≤n2≤”F”)
[Initial Value] Memory switch setting
[Function] Adds n1 dots left space amount and n2 dots right space amount to half-size Kanji characters.
The half-size Kanji character width is "left space amount” + " half-size Kanji font dot count” + "right
Space amount.”
(See the information on character specifications in the appropriate printer specifications manual for
details on the half-size Kanji font dot count.)
This command is ignored for models not equipped with Kanji fonts (for overseas) and when the
specification for the location of use is specified as SBCS (single byte countries) by the memory switch.
Standard mode and page mode can be set independently of each other.
StarPRNT Command Specifications29
Rev. 2.25
[Name]
Register Kanji download characters
[Code]
ASCII
ESC
r
c1
c2
d1
...
dk
Hex.
1B
72
c1
c2
d1
...
dk Decimal
27
114
c1
c2
d1
...
dk
Specification
c1
c2
Registration count
Japanese char./JIS type
c1=77h
21h≤c2≤7Eh
94 characters
Japanese char./Shift JIS type
c1=ECh
40h≤c2≤7Eh
80h≤c2≤9Eh
94 characters
Kanji characters
c1=FEh
A1h≤c2≤FEh
94 characters
Tai w an char./JIS type
c1=FEh
A1h≦c2≦FEh
94 characters
Hangeul char./JIS type
c1=FEh
A1h≦c2≦FEh
94 characters
d1 ● ● ● ● ● ● ● ●
d2 ● ● ● ● ● ● ● ●
d3 ● ● ● ● ● ● ● ●
d4 ● ● ● ● ● ● ● ●
d5 ● ● ● ● ● ● ● ●
d6 ● ● ● ● ● ● ● ●
d7 ● ● ● ● ● ● ● ●
d8 ● ● ● ● ● ● ● ●
d9 ● ● ● ● ● ● ● ●
d10 ● ● ● ● ● ● ● ●
d11 ● ● ● ● ● ● ● ●
d12 ● ● ● ● ● ● ● ●
d13 ● ● ● ● ● ● ● ●
d14 ● ● ● ● ● ● ● ●
d15 ● ● ● ● ● ● ● ●
d16 ● ● ● ● ● ● ● ●
d17 ● ● ● ● ● ● ● ●
d18 ● ● ● ● ● ● ● ●
d19 ● ● ● ● ● ● ● ●
d20 ● ● ● ● ● ● ● ●
d21 ● ● ● ● ● ● ● ●
d22 ● ● ● ● ● ● ● ●
d23 ● ● ● ● ● ● ● ●
d24 ● ● ● ● ● ● ● ●
d25 ● ● ● ● ● ● ● ●
d26 ● ● ● ● ● ● ● ●
d27 ● ● ● ● ● ● ● ●
d28 ● ● ● ● ● ● ● ●
d29 ● ● ● ● ● ● ● ●
d30 ● ● ● ● ● ● ● ●
d31 ● ● ● ● ● ● ● ●
d32 ● ● ● ● ● ● ● ●
d33 ● ● ● ● ● ● ● ●
d34 ● ● ● ● ● ● ● ●
d35 ● ● ● ● ● ● ● ●
d36 ● ● ● ● ● ● ● ●
d37 ● ● ● ● ● ● ● ●
d38 ● ● ● ● ● ● ● ●
d39 ● ● ● ● ● ● ● ●
d40 ● ● ● ● ● ● ● ●
d41 ● ● ● ● ● ● ● ●
d42 ● ● ● ● ● ● ● ●
d43 ● ● ● ● ● ● ● ●
d44 ● ● ● ● ● ● ● ●
d45 ● ● ● ● ● ● ● ●
d46 ● ● ● ● ● ● ● ●
d47 ● ● ● ● ● ● ● ●
d48 ● ● ● ● ● ● ● ●
d49 ● ● ● ● ● ● ● ●
d50 ● ● ● ● ● ● ● ●
d51 ● ● ● ● ● ● ● ●
d52 ● ● ● ● ● ● ● ●
d53 ● ● ● ● ● ● ● ●
d54 ● ● ● ● ● ● ● ●
d55 ● ● ● ● ● ● ● ●
d56 ● ● ● ● ● ● ● ●
d57 ● ● ● ● ● ● ● ●
d58 ● ● ● ● ● ● ● ●
d59 ● ● ● ● ● ● ● ●
d60 ● ● ● ● ● ● ● ●
d61 ● ● ● ● ● ● ● ●
d62 ● ● ● ● ● ● ● ●
d63 ● ● ● ● ● ● ● ●
d64 ● ● ● ● ● ● ● ●
d65 ● ● ● ● ● ● ● ●
d66 ● ● ● ● ● ● ● ●
d67 ● ● ● ● ● ● ● ●
d68 ● ● ● ● ● ● ● ●
d69 ● ● ● ● ● ● ● ●
d70 ● ● ● ● ● ● ● ●
d71 ● ● ● ● ● ● ● ●
d72 ● ● ● ● ● ● ● ●
bit7
bit6
bit5
Bit4
bit3
bit2
bit1
bit0 bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0 bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
Horizontal
Vertical
24 Dots
ESC r c1 c2 d1...dk
[Defined Area] 0≤d≤255
k=72
c1 and c2 differ according to specifications and code type (see table below).
[Initial Value] All spaces
[Function] Registers Kanji download characters to c1 and c2 addresses.
Those already registered to these addresses are overwritten. If c1 and c2 are outside of the defined are or
the printer is model not equipped with Kanji fonts (for overseas) and when the specification for the location
of use is specified as SBCS (single byte countries) by the memory switch, the printer discards up to d1
and dk.
(*) The registration region is the same for Japanese characters in JIS or shift JIS.
24 Dots
●: Font data/○: Invalid data
StarPRNT Command Specifications30
Loading...
+ 176 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.