Line Thermal Printer
StarPRNT
Command Specifications

Ver1.3E 2023/8

Table of contents
StarPRNT Command Details ................................................................................. 9
1. Font style and Character set ..................................................... 9
ESC RS F n .............................................................................. 9
ESC GS t n .............................................................................. 9
ESC R n ................................................................................ 10
ESC / n ................................................................................ 10
ESC SP n ............................................................................... 10
ESC & c1 c2 n d1 ... d48 ................................................................... 11
ESC & c1 c2 n ........................................................................... 12
ESC % n ................................................................................ 12

2. Print Mode ................................................................... 13
ESC i n1 n2 ............................................................................. 13
ESC W n ................................................................................ 13
ESC h n ................................................................................ 14
ESC E .................................................................................. 14
ESC F .................................................................................. 14
ESC - n ................................................................................ 15
ESC 4 .................................................................................. 16
ESC 5 .................................................................................. 16
SI ...................................................................................... 17
DC2 .................................................................................... 17

3. Horizontal Directon Printing Position ............................................. 18
ESC l n ................................................................................. 18
ESC Q n ................................................................................ 18
HT ..................................................................................... 18
ESC D n1 n2 ... nk NUL .................................................................... 19
ESC GS A n1 n2 ......................................................................... 20
ESC GS R n1 n2 ......................................................................... 20
ESC GS a n ............................................................................. 20

4. Line Spacing .................................................................. 21
LF ..................................................................................... 21
ESC a n ................................................................................ 21
ESC z n ................................................................................ 21
ESC 0 .................................................................................. 21
ESC J n ................................................................................ 22
ESC I n ................................................................................. 22

5. Page Control Commands ........................................................ 23
FF ..................................................................................... 23
ESC C n ................................................................................ 23

6. Cutter control ................................................................ 24
ESC d n ................................................................................ 24
2

7. Page Mode Command .......................................................... 25
ESC GS P 0 ............................................................................. 25
ESC GS P 1 ............................................................................. 26
ESC GS P 2 n ........................................................................... 26
ESC GS P 3 xL xH yL yH dxL dxH dyL dyH ................................................... 27
ESC GS P 4 nL nH ....................................................................... 27
ESC GS P 5 nL nH ....................................................................... 28
ESC GS P 6 ............................................................................. 28
ESC GS P 7 ............................................................................. 29
ESC GS P 8 ............................................................................. 29

8. Bit Image Graphics ............................................................ 30
ESC K n1 n2 d1･･･dk ..................................................................... 30
ESC L n1 n2 d1･･･dk ..................................................................... 31
ESC k n1 n2 d1･･･dk ..................................................................... 32
ESC X n1 n2 d1･･･dk ..................................................................... 33
ESC GS S m xL xH yL yH n [d11 d12 ･･･ d1k] ............................................... 34

9. Logo ........................................................................ 35
ESC GS (L pL pH m fn [parameter] ...................................................... 35
ESC GS 8 L p1 p2 p3 p4 m fn [parameter] ................................................... 35<Function 48>ESC GS ( L pL pH m fn (fn=48) ................................................. 36<Function 48>ESC GS 8 L p1 p2 p3 p4 m fn (fn=48) ........................................... 36<Function 51>ESC GS ( L pL pH m fn (fn=51) ................................................. 37<Function 51>ESC GS 8 L p1 p2 p3 p4 m fn (fn=51) ........................................... 37<Function 64>ESC GS ( L pL pH m fn d1 d2 (fn=64)............................................ 38<Function 64>ESC GS 8 L p1 p2 p3 p4 m fn d1 d2 (fn=64) ...................................... 38<Function 65>ESC GS ( L pL pH m fn d1 d2 d3 (fn=65) ......................................... 39<Function 65>ESC GS 8 L p1 p2 p3 p4 m fn d1 d2 d3 (fn=65) .................................... 39<Function 66>ESC GS ( L pL pH m fn kc1 kc2 (fn=66) .......................................... 40<Function 66>ESC GS 8 L p1 p2 p3 p4 m fn kc1 kc2 (fn=66) .................................... 40<Function 67> ESC GS ( L pL pH m fn a kc1 kc2 b ............................................ 41<Function 67> ESC GS 8 L p1 p2 p3 p4 m fn a kc1 kc2 b ....................................... 41<Function 69>ESC GS ( L pL pH m fn kc1 kc2 x y (fn=69) ...................................... 43<Function 69>ESC GS 8 L p1 p2 p3 p4 m fn kc1 kc2 x y (fn=69) ................................. 43
ESC GS ) L pL pH fn [parameter] ........................................................... 44<Function 48> ESC GS ) L pL pH fn kc1 kc2 .................................................. 45<Function 49>ESC GS ) L pL pH fn kc1 kc2 .................................................. 47<Function 50>ESC GS ) L pL pH fn d1 d2 .................................................... 47

10. Barcode..................................................................... 48
ESC b n1 n2 n3 n4 d1 ･･･ dk RS ........................................................... 48

11. Two-Dimensional Barcode QR Code ............................................. 55
ESC GS y S 0 n .......................................................................... 57
ESC GS y S 1 n .......................................................................... 57
ESC GS y S 2 n .......................................................................... 57
ESC GS y D 1 m nL nH d1 d2 ... dk .......................................................... 58
ESC GS y P ............................................................................. 58

12. Two-dimensional Barcode PDF417 .............................................. 59
ESC GS x S 0 n p1 p2 .................................................................... 61
3

ESC GS x S 1 n .......................................................................... 61
ESC GS x S 2 n .......................................................................... 61
ESC GS x S 3 n .......................................................................... 62
ESC GS x D nL nH d1 d2 ･･･ dk ........................................................... 62
ESC GS x P ............................................................................. 62

13. Initialization command ......................................................... 63
ESC @ .................................................................................. 63
ESC ? LF NUL ........................................................................... 63

14. Memory Switch .............................................................. 64
ESC GS # m N n1 n2 n3 n4 LF NUL ......................................................... 64

15. Status ...................................................................... 65
ESC RS a n ............................................................................. 65
ESC ACK SOH ........................................................................... 65
ETB .................................................................................... 65
ESC RS E n ............................................................................. 66
ESC GS ETX s n1 n2 ..................................................................... 66
ESC GS ) I pL pH fn d1 d2 ................................................................. 68
ESC GS ) I pL pH fn ...................................................................... 69

16. Print Settings ................................................................ 70
ESC RS d n ............................................................................. 70
ESC RS r n.............................................................................. 70

17. UTF Command ............................................................... 71
ESC GS ) U pL pH fn m (fn = 48) ........................................................... 71

18. Black Mark .................................................................. 72
ESC d n ................................................................................ 72
FF ..................................................................................... 72
ESC C n ................................................................................ 72

19. Presenter Related Command Details ............................................. 73
ESC SYN 0 n ............................................................................ 73
ESC SYN 1 n ............................................................................ 73
ESC SYN 2 n ............................................................................ 74
ESC SYN 3 n ............................................................................ 74
ESC SYN 4 n ............................................................................ 75
ESC GS SUB DC3 m t1 t2 ................................................................. 75

20. Bezel Related Command Details ................................................ 76
ESC SYN DC1 n ......................................................................... 76
ESC SYN DC2 n ......................................................................... 76
ESC SYN DC3 n ......................................................................... 77
ESC SYN DC4 n ......................................................................... 77
ESC GS ) s pl ph fn m .................................................................... 78

21. LED (Presenter / Bezel) Command Details ....................................... 79
ESC GS SUB DC1 m t1 t2 ................................................................. 79
ESC GS SUB DC2 m t1 t2 ................................................................. 80422. Network Commands ........................................................... 81
ESC GS ) N pL pH fn [parameter] ........................................................... 81<Function 48>ESC GS ) N pL pH fn m n (fn=48) ............................................... 83<Function 49>ESC GS ) N pL pH fn m d1 d2 d3 d4 (fn=49) ...................................... 83<Function 50>ESC GS ) N pL pH fn m d1 d2 d3 d4 (fn=50) ...................................... 84<Function 51>ESC GS ) N pL pH fn m d1 d2 d3 d4 (fn=51) ...................................... 84<Function 52>ESC GS ) N pL pH fn m n (fn=52) ............................................... 85<Function 54>ESC GS ) N pL pH fn m n1 n2(fn=54) ............................................ 85<Function 58>ESC GS ) N pL pH fn m d1 d2 d3 d4 (fn=58) ...................................... 86<Function 59>ESC GS ) N pL pH fn m d1 d2 d3 d4 (fn=59) ...................................... 86<Function 64>ESC GS ) N pL pH fn m (fn=64) ................................................. 87<Function 65>ESC GS ) N pL pH fn m (fn=65) ................................................. 87<Function 66>ESC GS ) N pL pH fn m (fn=66) ................................................. 88<Function 67>ESC GS ) N pL pH fn m (fn=67) ................................................. 88<Function 68>ESC GS ) N pL pH fn m (fn=68) ................................................. 89<Function 70>ESC GS ) N pL pH fn m (fn=70) ................................................. 89<Function 74>ESC GS ) N pL pH fn m (fn=74) ................................................. 90<Function 75>ESC GS ) N pL pH fn m (fn=75) ................................................. 90<Function 80>ESC GS ) N pL pH fn m n (fn=80) ............................................... 91<Function 81>ESC GS ) N pL pH fn m (fn=81) ................................................. 91<Function 82>ESC GS ) N pL pH fn m n (fn=82) ............................................... 92<Function 83>ESC GS ) N pL pH fn m (fn=83) ................................................. 92<Function 84>ESC GS ) N pL pH fn m n (fn=84) ............................................... 93<Function 85>ESC GS ) N pL pH fn m (fn=85) ................................................. 93<Function 86>ESC GS ) N pL pH fn m n (fn=86) ............................................... 94<Function 87>ESC GS ) N pL pH fn m (fn=87) ................................................. 94<Function 112>ESC GS ) N pL pH fn m n (fn=112) ............................................. 95<Function 113>ESC GS ) N pL pH fn m n (fn=113) ............................................. 96<Function 114>ESC GS ) N pL pH fn m d1 ... dk (fn=114) ....................................... 97<Function 115>ESC GS ) N pL pH fn m (fn=115) ............................................... 97<Function 116>ESC GS ) N pL pH fn m n (fn=116) ............................................. 98<Function 128>ESC GS ) N pL pH fn m d1 ... dk (fn=128) ....................................... 99<Function 129>ESC GS ) N pL pH fn m (fn=129) ............................................... 99

APPENDIX-1. Diffrence between SK1 StarPRNT and Native StarPRNT ................. 100
APPENDIX-2. Bar Code Specification Details ....................................... 104
APPENDIX-3. Automatic Status .................................................. 109
APPENDIX-4. Maximum Number of Input Characters for Each Version of QR Code........ 117
APPENDIX-5. Expalanation of Page Mode .......................................... 121
APPENDIX-6. Print Startup Control Starting Pinting When Set to Page Unitse ........... 124

5

Command Description
OutlineThis specification is a command specification for StarPRNT of line thermal printer.
Information contained herein applies to the following models.

< Applicable Models: >･SK1-211 Series
SK1-211SF2-Q-SP
SK1-211SF2-LQP-SP (PR-SK1-21 equipped model)
SK1-211SF2-LQW-SP (PR2-SK1-21 equipped model)･SK1-221 Series
SK1-221SF2-Q-SP
SK1-221SF2-LQP-SP (PR-SK1-21 equipped model)
SK1-221SF2-LQW-SP (PR2-SK1-21 equipped model)･SK1-311 Series
SK1-311SF4-Q-SP
SK1-311SF4-LQP-SP (PR-SK1-31 equipped model)
SK1-311SF4-LQW-SP (PR2-SK1-31 equipped model)･SK1-321-SP Series･SK1-41-SP Series･SK5-31-SP Series

61.1 Operation Mode
Applicable dedicated commands are listed as following.
StarPRNTStarPRNT Emulation

1.2 Description of Number
Hex decimal number<Number>

Example<31>, <41>

Decimal number

NumberExample1, 100, 255

Binary number<Number> B

Example<xxxxxxx0> B, <xxxxxxx1> B

ASCII‘Number’Example‘0’, ‘1’

1.3 Character Set
All data sent from the host computer are automatically converted to single byte alphanumeric characters and symbols.
For contents of character set, please refer to Character Code Table.

1.4 Control Commands
Control commands are used for controlling the operations of the printer such as starting/stopping Line feeding andpaper feeding. All functions related to type of characters, enlarging characters, Setting of format and graphic printing
are controlled.

1.5 Data control function
Control commands have data control function to send the status of printer to host systems.
The following is shown in details of sending functions.
･To carry out at the time of expanding the input buffer, there is a possibility of the transmitting delay due to the printing,cutting and paper feeding operations happened in the input buffer condition.
･Execute sending the command without checking the status of host system.
･It is valid for Virtual Com Interface.
･In the printer device class as well, it is available for response function, but, it can be obtained via SDK and Driver.
For the details, refer to the specification attached to the printer driver.

7

1.6 COMMAND DETAILS･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 moves the print position to the head of the next line thenstarts with the new print data.
･Top of line
The top of line is a state that satisfies the following conditions.
(1) There is currently no print data in the line buffer.
(2) 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
The base line is the upper end of each data.

･ASB Function
Sends the automatic status to the host each time the printers status changed.
･NSB Function
When the printer uses USB I/F, sends the automatic status each time the reverse transfer mode is entered.

8StarPRNT Command Details
1. Font style and Character set

ESC RS F n[Name][Code]

Select Font
ASCII

ESC

RS

F

n

HEX

1B

1E

46

n

DEC

27

30

70

n

[Defined Area]0≤n≤1[Initial Value]

n=0[Function]

Selects a font
n
0
1

Font
Font-A (12x24 dot)
Font-B (8x16 dot)

ESC GS t n[Name]

Select code page

[Code]

ASCII

ESC

GS

t

n

HEX

1B

1D

74

n

27

29

116

n

DEC
[Defined Area]0≤n≤255[Initial Value]

Memory switch setting[Function]

Specifies code page
n
0
1
2
3
4
5
6
8
9
10
12
13
14
15
32
33
34

Code Page
Normal*CodePage437 (USA Std.Europe)
Katakana
CodePage437(USA Std.Europe)
Codepage858(Multilingual)
Codepage852(Latin-2)
Codepage860(Portuguese)
Codepage863(Canadian French)
Codepage865(Nordic)
Codepage866(Cyrillic Russian)
Codepage857(Turkey)
Codepage862(Israel (Hebrew))
Codepage864(Arabic)
Codepage737(Greek)
Codepage1252(Windows Latin-1)
Codepage1250(Windows Latin-2)
Codepage1251(Windows Cyrillic)

Font-A
O
O
O
O
O
O
O
O
O
O
O
O
O *1
O
O
O
O

Font-B
O
O
O
O
O
O
O
O
O
O
O
O
O *1
O
O
O
O

*1. Codepage864: Font-A is 16x24 dots and Font-B is 12x16 dots

9

ESC R n[Name]

Specify international character set[Code]

ASCII

ESC

R

n

HEX

1B

52

n

DEC

27

82

n

[Defined Area]0≤n≤8, 48≤n≤56[Initial Value]

Memory switch setting[Function]

Specifies international characters
n
0, 48
1, 49
2, 50
3, 51
4, 52
5, 53
6, 54
7, 55
8, 56

International Characters
USA
FranceGermanyUK
Denmark
Sweden
Italy
Spain
Japan

ESC / n[Name][Code]

Specify/Cancel slash zero
ASCII

ESC

/

n

HEX

1B

2F

n

DEC

27

47

n

[Defined Area]0≤n≤1, 48≤n≤49[Initial Value]

Memory switch setting[Function]

Specifies and cancel slash zeros.
n
0, 48
1, 49

Contents
Cancels slash zero
Specifies slash zero

ESC SP n[Name]

Set ANK right space[Code]

ASCII

ESC

SP

n

HEX

1B

2F

n

27

32

n

DEC
[Defined Area]0≤n≤15, 48≤n≤57, 65≤n≤69[Initial Value]

Memory switch setting[Function]

Specify the right space amount of ANK characters in n dots.
Standard mode and page mode can be set independently of each other.
The ANK character width is “left space amount” + “ANK font dot count” + “right space amount.”10ESC & c1 c2 n d1 ... d48[Name][Code]

Register ANK font download characters
ASCII

ESC

&

c1

c2

n

d1 ･･･ d48

HEX

1B

26

c1

c2

n

d1 ･･･ d48

DEC

27

38

c1

c2

n

d1 ･･･ d48[Defined Area]

c1=1, 49c2=1, 49
32≤n≤1270≤d≤255[Initial Value][Function]--Register ANK font characters 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 n are outside of the defined area, subsequent data is handled as normal data.

<Example Font-A>

11

ESC & c1 c2 n[Name]

Delete ANK font download characters[Code]

ASCII

ESC

HEX

1B

26

c1

c2

n

DEC

27

38

c1

c2

n

[Defined Area]

&

c1

c2

n

c1=1, 49c2=0, 48
32≤n≤127[Initial Value][Function]--Deletes ANK font download characters registered to the nth address.

ESC % n[Name][Code]

Specify/cancel ANK download characters
ASCII

ESC

%

n

HEX

1B

25

n

DEC

27

37

n

[Defined Area]n=0, 1, 48, 49[Function]

Specify/cancel ANK download characters.
n
0, 48
1, 49

Contents
Cancels ANK download characters
Specifies ANK download characters<Print example of ANK download characters>
1. ANK download character register (ESC & c1 c2 n d1 ･･･ d48)
2. Specify ANK download characters (ESC 1 n(n=1))
3. Prints ANK download characters

122. Print Mode

ESC i n1 n2[Name]

Specify/cancel the double wide and high[Code]

ASCII

ESC

i

n1

n2

HEX

1B

69

n1

n2

27

105

n1

n2

DEC
[Defined Area]0≤n1≤5, 48≤n1≤53
0≤n2≤5, 48≤n2≤53[Initial Value]

n1=0, n2=0

[Function]

Specifies/cancels double high/wide for ANK characters
This command is ignored if either n1 or n2 is outside of the defined area.
n1
0, 48
1, 49
2, 50
3, 51
4, 52
5, 53

Contents
Cancels expanded highSpecifies 2x high expansion
Specifies 3x high expansion
Specifies 4x high expansion
Specifies 5x high expansion
Specifies 6x high expansion

n2
0, 48
1, 49
2, 50
3, 51
4, 52
5, 53

Contents
Cancels expanded wide
Specifies 2x wide expansion
Specifies 3x wide expansion
Specifies 4x wide expansion
Specifies 5x wide expansion
Specifies 6x wide expansion

ESC W n[Name]

Specify/cancel expanded wide

[Code]

ASCII

ESC

HEX

1B

57

n

DEC

27

87

n

W

n

[Defined Area]0≤n≤5, 48≤n≤53[Initial Value]

n=0[Function]

Specifies/cancels double wide for ANK characters
n
0, 48
1, 49
2, 50
3, 51
4, 52
5, 53

Contents
Cancels expanded wide
Specifies 2x wide expansion
Specifies 3x wide expansion
Specifies 4x wide expansion
Specifies 5x wide expansion
Specifies 6x wide expansion

13

ESC h n[Name]

Specify/cancel expanded high[Code]

ASCII

ESC

h

n

HEX

1B

68

n

DEC

27

104

n

[Defined Area]0≤n≤5, 48≤n≤53[Initial Value]

n=0[Function]

Specifies/cancels double high for ANK characters
n
0, 48
1, 49
2, 50
3, 51
4, 52
5, 53

Contents
Cancels expanded highSpecifies 2x high expansion
Specifies 3x high expansion
Specifies 4x high expansion
Specifies 5x high expansion
Specifies 6x high expansion

ESC E[Name]

Select emphasized printing[Code]

ASCII

ESC

E

HEX

1B

45

DEC

27

69

[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

DEC

27

70

[Function]

Cancels emphasized printing for ANK characters.

14

ESC - n[Name][Code]

Specify/cancel underling mode
ASCII

ESC

-

n

HEX

1B

2D

n

DEC

27

45

n

[Defined Area]n=0, 1, 48, 49[Initial Value]

n=0[Function]

Specifies underlining (2 dots).
Underlines are composed of 2 dot lines.
Underlines are not applied to horizontal tabs and to specified horizontal direction positions.
Underlines are expanded if the character expansion is specified.
(When double high expansion is used, underlines are composed of 4 dots.)
Underlines are enabled for white/black inversion.
This command is enabled for ANK characters.
IBM block ignores underlines.
n
0, 48
1, 49

Contents
Cancels underline
Specifies underline

ESC _ n[Name][Code]

Specify/Cancel upperline
ASCII

ESC

_

n

HEX

1B

5F

n

27

95

n

DEC
[Defined Area]n=0, 1, 48, 49[Initial Value]

n=0[Function]

Specifies upperlining (2 dots).
Upperlines are composed of 2 dot lines.
Upperlines are not applied to horizontal tabs and to specified horizontal direction positions.
Upperlines are expanded if the character expansion is specified.
(When double high expansion is used, upperlines are composed of 4 dots.)
Upperlines are enabled for white/black inversion.
This command is enabled for ANK characters.
IBM block ignores upperlines.
n
0, 48
1, 49

Contents
Cancels upperline
Specifies upperline

15

ESC 4[Name][Code][Function]

Select white/black inverted printing
ASCII

ESC

4

HEX

1B

34

DEC

27

52

Specifies white/black inversion for ANK characters.
IBM block ignores white/black inversion.

ESC 5[Name][Code][Function]

Cancel white/black inversion
ASCII

ESC

5

HEX

1B

35

DEC

27

53

Cancels white/black inversion for ANK characters.

16

SI[Name]

Select upside-down printing[Code]

ASCII

SI

HEX

0F

DEC

15

[Function]

Specifies upside-down printing.
This command is enabled only when at the top of the line.
Upside down and right-side up characters cannot both exist in the same line.
This command is enabled for following.
ANK characters
Bit images
Logos
Bar codes

DC2[Name]

Cancel upside-down printing[Code]ASCII[Function]

DC2

HEX

12

DEC

18

Cancels upside-down printing
This command is enabled only when at the top of the line.

173. Horizontal Directon Printing Position

ESC l n[Name]

Set left margin[Code]

ASCII

ESC

l

n

HEX

1B

6C

n

27

108

n

DEC
[Defined Area]0≤n≤255[Initial Value]

n=0[Function]

Uses the left edge as a standard to set the left margin as (current ANK character pitch xn).
Character pitch includes the space between characters and expansion settings are enabled.
The left margin set using this command is unaffected by changing the character pitch.
This command is ignored if settings are for a printing region less than 36 mm.
Setting this command partway will take affect from the next line.

ESC Q n[Name][Code]

Set right margin
ASCII

ESC

Q

n

HEX

1B

51

n

27

81

n

DEC
[Defined Area]0≤n≤255[Initial Value]

Memory switch setting[Function]

Uses the left edge as a standard to set the print region as (current ANK character pitch xn).
Character pitch includes the space between characters and expansion settings are enabled.
The right margin set using this command is unaffected by changing the character pitch.
This command is ignored if settings are for a printing region less than 36 mm.
Setting this command partway will take affect from the next line.

HT[Name][Code][Function]

Move horizontal tab
ASCII

HT

HEX

09

DEC

9

Move print position to next horizontal tab position.
This command is ignored with under the following conditions.
When there is no horizontal tab set.
When the current position is the same as the furthest right horizontal tab position or to the right of it.

18

ESC D n1 n2 ... nk NUL[Name]

Set horizontal tab･

[Code]

ASCII

ESC

D

n1

n2 ･･･ nk

NUL

HEX

1B

44

n1

n2 ･･･ nk

00

DEC

27

68

n1

n2 ･･･ nk

0[Defined Area]1≤n≤2550≤k≤16[Initial Value][Function]--Uses the left edge as a standard to set the horizontal tab to the position of (current ANK character pitchxn).
The horizontal tab reference point is the right edge of the paper, regardless of the left margin.
ANK character pitch includes the right space and expansion settings are enabled.
All other horizontal tabs set before setting the horizontal tab using this command are cancelled.
A maximum of 16 horizontal tabs can be set. However, the tab position must satisfy the following conditions.
If the following conditions are not met, data up to the NUL code is discarded.
Normal tabs that meet the conditions below are set and tabs after errors occur are not set.
1<n1 < n2 ･･･ < nknk≤Printable region
The horizontal tab set using this command is unaffected by changing the character pitch.
Horizontal tabs set using the ESC D NUL command are cleared.
Standard mode and page mode can be set independently of each other.

19

ESC GS A n1 n2[Name]

Move absolute position[Code]

ASCII

ESC

GS

A

n1

n2

HEX

1B

1D

41

n1

n2

DEC

27

29

65

n1

n2

[Defined Area][Initial Value][Function]0≤n1≤255, 0≤n2≤255---

Moves the printing position from the left margin to the (n1+n2x256) dots position
This command is ignored if the print region is exceeded.
If print data is overlapped when moved to the left, the old print data is overwritten by new data(that is, only the portion overlapped by the new data is lost).

ESC GS R n1 n2[Name]

Move relative position[Code]

ASCII

ESC

GS

R

n1

n2

HEX

1B

1D

52

n1

n2

27

29

82

n1

n2

DEC
[Defined Area]0≤n1≤255, 0≤n2≤255[Initial Value]---[Function]

Moves the printing position from current position to the (n1+n2x256) dots position.
This command is ignored if the print region is exceeded.
When (n1 + n2 x 256) ≥ 32768, it moves {65536 – (n1 + n2x 256)} dots in the left direction.
When (n1 + n2 x 256) < 32768, it moves (n1 + n2 x 256) dots in the right direction.
If print data is overlapped when moved to the left, the old print data is overwritten by new data(that is, only the portion overlapped by the new data is lost).

ESC GS a n[Name][Code]

Specify position alignment
ASCII

ESC

GS

a

n

HEX

1B

1D

61

n

27

29

97

n

DEC
[Defined Area]0≤n2≤2, 48≤n≤50[Initial Value]

n=0[Function]

Specifies the alignment position in the printing region that has been set.
n
0, 48
1, 49
2, 50

Contents
Left alignment
Center alignment
Right alignment20

4. Line Spacing

LF[Name]

Line feed[Code]

ASCII

LF

HEX

0A

DEC

10

[Function]

Feeds the currently specified amount of paper.
If print data exists in the line buffer, it prints that data.
The initial value for the amount of paper is set according to the memory switch settings.

ESC a n[Name]

Feed paper n lines[Code]

ASCII

ESC

HEX

1B

61

n

DEC

27

97

n

[Defined Area]n1≤n≤127[Initial Value][Function]aMemory switch setting
Executes a paper feed for (the current specified line feed amount xn).
If print data exists in the line buffer, it prints that data.
The initial value for the amount of paper is set according to the memory switch settings.

ESC z n[Name]

Specify line feed amount[Code]

ASCII

ESC

HEX
DEC

z

n

1B

7A

n

27

122

n

[Defined Area]0≤n≤1, 48≤n≤49[Initial Value]

n=0[Function]

Specified the line feed amount.
Standard mode and page mode can be set independently of each other.
n
0, 48
1, 49

Contents
Specifies 3mm line feed amountSpecifies 4mm line feed amount

ESC 0[Name]

Specify line spacing to 3mm[Code]

ASCII

ESC

HEX

1B

30

DEC

27

48

[Function]

0

Specifies the line fee amount to 3mm.
Standard mode and page mode can be set independently of each other.

21

ESC J n[Name]

n/4mm line feed

[Code]

ASCII

J

n

HEX

1B

4A

n

DEC

27

74

n

[Defined Area][Function]

ESC

1≤n≤255

Executes a n/4mm paper feed.
If print data exists in the line buffer, it prints that data.
Using this command will intermittently feed paper, therefore, it is normally recommended that this command not
be used.

ESC I n[Name]

n/8mm line feed

[Code]

ASCII

ESC

I

HEX

1B

49

n

DEC

27

73

n

[Defined Area][Function]n1≤n≤255

Executes a n/8mm paper feed.
If print data exists in the line buffer, it prints that data.
Using this command will intermittently feed paper, therefore, it is normally recommended that this command not
be used.

22

5. Page Control Commands

FF[Name]

Form feed[Code]

ASCII

FF

HEX

0C

DEC

12

[Function]

Executes a form feed.
If the current position is at the top of the page, it executes a form feed to the top of the next page.
If there is data existing in the line buffer when executing a form feed, it prints that data, then executes the form
feed.
However, by printing data remaining in the buffer, and moving to the top of the next page, a form feed isconsidered to have been executed, so form feed is not performed.
Invalid in page mode.

ESC C n[Name][Code]

Specify page length to n lines
ASCII

ESC

C

n

HEX

1B

43

n

27

67

n

DEC
[Defined Area]1≤n≤127[Initial Value]

n=42[Function]

The position whereat this command is processed is considered the top of the page and sets the page length to(current form feed amount x n).
The page length set using this command is unaffected by changing the form feed amount later.
Moving to the top of the page is performed using the following commands.
Form feed command (FF)
Cutter command (ESC d n)Error cancel operations
Invalid in black mark's valid.

23

6. Cutter control

ESC d n[Name]

Auto-cutter[Code]

ASCII

ESC

d

n

HEX

1B

64

n

27

100

n

DEC
[Defined Area][Function]0≤n≤3, 48≤n≤51

Executes the auto-cutter.
After auto-cutter is executed, the printer considers that to be the top of the page.
If there is data existing in the line buffer, it prints that data, then executes the auto-cutter.
nContents

0, 48

Full cut at the current position.
Print data in line buffer is printed before a full cut.

1, 49Partial cut at the current position.
Print data in line buffer is printed before a full cut.

2, 50Paper is fed to cutting position, then a full cut
Print data in line buffer is printed before the operation described above.

3, 51

Paper is fed to cutting position, then a partial cut
Print data in line buffer is printed before the operation described above.

When presenter is connected, cutting is executed by changing the partial-cut to full-cut.

24

7. Page Mode Command

ESC GS P 0[Name]

Selects page mode

[Code]

ASCII

ESC

GS

P

0

HEX

1B

1D

50

30

DEC

27

29

80

48

[Function]

Switches from standard mode to page mode.
Valid only when input at the top of the line.
Invalid when input in page mode.
Returns to standard mode after running this command.
･ESC GS P 1 (selects standard mode)･ESC GS P 7 (prints in page mode and recovers)
The character expansion position uses the starting point specified by ESC GS P2 (selection of character print
direction in page mode) in the print region specified by ESC GS P 3 (set print region in page mode).
Switches the following command setting values to the setting values of page mode.
･Set space amount:

ESC SP, ESC s , ESC t･Set the line feed amount: ESC z , ESC 0･Set horizontal tab:

ESC D

The following commands are valid in page mode.
･ESC GS a (Move absolute position)･SI (Select upside-down printing)･ESC l (Set left margin)･ESC Q (Set right margin)
The following commands are invalid in page mode.
FF (Form feed)
ESC RS m (BM setting)
ESC RS A (Printing Region Setting)
Recover to standard mode using ESC @ (initialize printer)

25

ESC GS P 1[Name]

Cancel page mode

[Code]

ASCII

ESC

GS

P

1

HEX

1B

1D

50

31

DEC

27

29

80

49

[Function]

Cancel page mode.
Valid only when input in page mode.
Data expanded in page mode is erased.
After execution, the top of the line is positioned at the next print starting position.
Print region set by ESC GS P 3 (Set print region in page mode) is initialized.
Switches the following command setting values to the setting values of standard mode.
･Set space amount:

ESC SP, ESC s , ESC t･Set the line feed amount:

ESC z , ESC 0･Set horizontal tab:

ESC D

The following commands are valid only when set in standard mode.
･ESC GS P 3 (Set print region in page mode)･ESC GS P 2 (Select character print direction in page mode.)
The following commands are ignored in standard mode.
･ESC GS P 4 (Specify character vertical direction absolute position in page mode)･ESC GS P 5 (Specify character vertical direction relative position in page mode.)･ESC GS P 6 (Print data in page mode.)･ESC GS P 7 (Print in page mode and recover)･ESC GS P 8 (Cancel print data in page mode.)
When power is turned on and when a reset is implemented, standard mode is selected when
executing initialization (ESC @) of the printer.

ESC GS P 2 n[Name][Code]

Select character print direction in page mode
ASCII

ESC

GS

P

2

n

HEX

1B

1D

50

32

n

DEC

27

29

80

50

n

[Defined Area]0≤n≤3, 48≤n≤51[Initial Value]

n=0[Function]

Select character print direction and starting point in page mode.
n
0, 48
1, 49
2, 50
3, 51

Printing Direction
Left to Right
Bottom to Top
Right to Left
Top to Bottom

Starting Point
Upper Left
(Drawing at Right A)
Bottom Left
(Drawing at Right B)
Bottom Right(Drawing at Right C)
Top Right(Drawing at Right D)

When standard mode is selected, only internal printer flag operations are executed when this command is entered.
The starting point in the print region specified by ESC GS P 3 (Set print region in page mode) is used for thestart of character expansion.

26

ESC GS P 3 xL xH yL yH dxL dxH dyL dyH[Name]

Set print region in page mode

[Code]

ASCII

ESC

GS

P

3

xL

xH

yL

yH

dxL dxH dyL dyH

HEX

1B

1D

50

33

xL

xH

yL

yH

dxL dxH dyL dyH

DEC

27

29

80

51

xL

xH

yL

yH

dxL dxH dyL dyH[Defined Area][Initial Value]0≤xL, xH, yL, yH, dxL, dxH, dyL, dyH≤255
xL = xH = yL = yH = 0
dxL, dxH, dyL, dyH (See the table below)[Function]

Set print region in page mode.
Sets the position and size of the print region.
･Horizontal starting point = [(xL+xH x 256) x 1/8] mm･Vertical starting point = [(yL+yH x 256) x 1/8] mm･Horizontal direction length = [(dxL+dxH x 256) x 1/8] mm･Vertical direction length = [(dyL+dyH x 256) x 1/8] mm
When standard mode is selected, only internal printer flag operations are executed when this command isentered. Has no effect on printing.
If the horizontal or vertical starting point is outside of the print region, invalidate all settings.
If the horizontal or vertical length direction is 0, invalidate all settings.
The character expansion stating point is the one specified by the selection of the character printing direction(ESC GS P 2) in page mode in the print region.
If the (horizontal direction starting point + horizontal direction length) exceeds the horizontal direction printableregion, the (horizontal direction printable region – horizontal direction starting point) becomes the horizontal
direction length.
If the (vertical direction starting point + vertical direction length) exceeds the vertical direction printable region,the (vertical direction printable region – vertical direction starting point) becomes the vertical direction length.
If the calculated results is a fraction, that is corrected to the minimum mechanical pitch and excess is discarded.

ESC GS P 4 nL nH[Name]

Specify character vertical direction absolute position in page mode

[Code]

ASCII

GS

P

4

nL

nH

HEX

1B

1D

50

34

nL

nH

DEC

27

29

80

52

nL

nH

[Defined Area][Function]

ESC

0≤ nL, nH ≤255

Specify the position for character vertical direction of the data expansion starting position in page mode with theabsolute position that uses the starting point as a reference.
The position of the character vertical direction of the starting position for subsequent data expansion uses the
position from the starting point [(nL + nH x 256) x 1/8] mm.
This command is ignored when page mode is not selected.
Absolute position specifications that exceed the specified print region are ignored.
The position of the character horizontal direction of the data expansion starting position does not move.
Specify the reference starting point using ESC GS P 2.
The following operations will occur depending on the starting point of ESC GS P 2 command.
a. When the starting point is “upper left” or “bottom right,” specify the absolute position of the paper feed
direction.
b. When the starting point is “upper right” or “bottom left,” specify the absolute position of the perpendicular
direction to the paper feed.
If the calculated result is a fraction, that is corrected to the minimum mechanical pitch and excess is discarded.

27

ESC GS P 5 nL nH[Name]

Specify character vertical direction relative position in page mode

[Code]

ASCII

GS

P

5

nL

nH

HEX

1B

1D

50

35

nL

nH

DEC

27

29

80

53

nL

nH

[Defined Area][Function]

ESC

0≤ nL, nH ≤255

Specify the position for character vertical direction of the data expansion starting position in page mode with therelative position that uses the current position as a reference.
The subsequent data expansion starting position uses the position moved [(nL + nH x 256) x 1/8] mm from thecurrent position.
This command is ignored when page mode is not selected.
When specifying the characters downward from the current position the value is positive (plus);
when specifying upward, the value is negative (minus).
Negative numbers are represented by a complement of 65536. For example, use the following to move upward
N pitches.
nL +H x 256 = 65536 - N
Relative position specifications that exceed the specified print region are ignored.
The following operations will occur depending on the ESC GS P 2 command.
a. When the starting point is “upper left” or “bottom right,” specify the relative position of the paper
feed direction.
b. When the starting point is “upper right” or “bottom left”, specify the relative position of the perpendicular
direction to the paper feed.
If the calculated result is a fraction, that is corrected to the minimum mechanical pitch and excess is discarded.

ESC GS P 6[Name]

Print data in page mode

[Code]ASCII[Function]

ESC

GS

P

6

HEX

1B

1D

50

36

DEC

27

29

80

54

Lump-prints data expanded to the entire print region in page mode.
Valid only when page mode is selected.
After printing, the following information is maintained.
a. Expanded data
b. Selection of character print direction in page mode (ESC GS P 2)
c. Setting of print region in page mode (ESC GS P 3)
d. Character expansion position

28

ESC GS P 7[Name]

Print in page mode and recover[Code]ASCII[Function]

ESC

GS

P

7

HEX

1B

1D

50

37

DEC

27

29

80

55

Lump-prints data expanded to the entire print region and recovers to standard mode.
Valid only when page mode is selected.
All expanded data is erased after printing.
Print region set by ESC GS P 3 (Set print region in page mode) is initialized.
No paper cut is executed.
After execution, the top of the line is positioned at the next print starting position.

ESC GS P 8[Name]

Cancel print data in page mode

[Code]

ASCII

ESC

GS

P

8

HEX

1B

1D

50

38

DEC

27

29

80

56

[Function]

Erases all data in presently set print region, in page mode.
Valid only when page mode is selected.
Portion included in the currently set print region is deleted even if data of the print region set previously.

29

8. Bit Image Graphics

ESC K n1 n2 d1･･･dk[Name]

Standard density bit image[Code]

ASCII

ESC

K

n1

n2

d1 ･･･ dk

HEX

1B

4B

n1

n2

d1 ･･･ dk

27

75

n1

n2

d1 ･･･ dk

DEC[Defined Area]

1≤｛(n1 + n2 x 256) x 3｝≤Printable regionk= (n1 + n2 x 256)0≤d≤255
0≤n1, n2≤255[Function]

Prints bit images using 3 dots wide and 3 dots high per 1dot of input data.
The following shows the data processing in this command.
･When {(n1 + n2 x 256) x 3} exceeds the printable region that is currently set, only the data in the printing
region is printed. At this time, all data for the print region is discarded.
• If the current position already exceeds the print region, this command discards all data.

30

ESC L n1 n2 d1･･･dk[Name]

Standard density bit image[Code]

ASCII

ESC

L

HEX

1B

4C

n1

n2

d1 ･･･ dk

DEC

27

76

n1

n2

d1 ･･･ dk[Defined Area]n1n2

d1 ･･･ dk

1≤(n1 + n2 x 256) ≤Printable regionk= (n1 + n2 x 256)0≤d≤255
0≤n1, n2≤255[Function]

Prints bit images using 1dot wide and 3 dots high per 1dot of input data.
The following shows the data processing in this command.
･When {(n1 + n2 x 256) x 3} exceeds the printable region that is currently set, only the data in the printing
region is printed. At this time, all data for the print region is discarded.
• If the current position already exceeds the print region, this command discards all data.

31

ESC k n1 n2 d1･･･dk[Name]

Fine density bit image[Code]

ASCII

ESC

k

n1

n2

d1 ･･･ dk

HEX

1B

6B

n1

n2

d1 ･･･ dk

DEC27

107 n1n2

d1 ･･･ dk[Defined Area]1≤(n1 + n2 x 256)≤Printable regionk= {(n1 + n2 x 256) x 24}0≤d≤255
0≤n1, n2≤255[Function]

Prints bit images using 1 dot wide and 1 dot high per 1dot of input data.
The following shows the data processing in this command.
･When {(n1 + n2 x 256) x 3} exceeds the printable region that is currently set, only the data in the printing
region is printed. At this time, all data for the print region is discarded.
• If the current position already exceeds the print region, this command discards all data.

32

ESC X n1 n2 d1･･･dk[Name]

Fine density bit image (Compatible with 24bit wire dots)[Code]

ASCII

ESC

X

n1

n2

d1 ･･･ dk

HEX

1B

58

n1

n2

d1 ･･･ dk

DEC

27

88

n1

n2

d1 ･･･ dk[Defined Area]1≤(n1 + n2 x 256)≤Printable regionk= {(n1 + n2 x 256) x 3}0≤d≤255
0≤n1, n2≤255[Function]

Prints input bit images with 8 dots/mm resolution for both horizontal and vertical.
The following shows the data processing in this command.
･When {(n1 + n2 x 256) x 3} exceeds the printable region that is currently set, only the data in the printing
region is printed. At this time, all data for the print region is discarded.
• If the current position already exceeds the print region, this command discards all data.

33

ESC GS S m xL xH yL yH n [d11 d12 ･･･ d1k]
[Name]

Print raster graphics data

[Code]

ASCII

ESC

HEX

1B

1D

DEC

27

29

[Defined Area]m= 1 n=0

GS

S

m

xL

xH

yL

yH

n d11 d12 ･･･ d1k

53

m

xL

xH

yL

yH

n d11 d12 ･･･ d1k

83

m

xL

xH

yL

yH

n d11 d12 ･･･ d1k

0≤xL≤255, 0≤xH≤1, 0≤yL≤255, 0≤yH≤255
1≤(xL + xH x 256)≤128
1≤(yL + yH x 256)≤65535
0≤d≤255
k= (xL + xH x 256) x (yL + yH x 256)
[Function]

Print raster graphics data.
Specify only the 2 tones Monochrome printing regardless of input m parameter.
Disabled in Page Mode.
(xL + xH x 256) specifies the number of horizontal data bytes ((a number of dots x a number of bits per dot)/8,+1 if not divisible).
(yL + yH x 256) specifies the number of dots in the vertical direction.
k indicates the number of the data.
(d1, d2 ･･･ dk) specifies the image data to define.
When parameter is disabled:•parameter m:

Command processing end (ESC GS S m).

•parameter n:n=0•parameter xL, xH, yL, yH: Command processing end (ESC GS S m xL xH yL yH)

34

9. Logo

ESC GS ( L pL pH m fn [parameter]
ESC GS 8 L p1 p2 p3 p4 m fn [parameter][Name]

Specify graphics data

[Code]ASCIIESC GS

(

L

pL

pH

m fn

[parameter]

HEX

1B 1D

28

4C

pL

pH

m fn

[parameter]

DEC

27 29

40

76

pL

pH

m fn

[parameter][Name][Code]

Specify graphics dataASCII

ESC GS

8

L

p1

p2

p3

p4

m

fn

[parameter]

HEX

1B 1D

38

4C

p1

p2

p3

p4

m

fn

[parameter]

DEC

27 29

56

76

p1

p2

p3

p4

m

fn

[parameter](*) Use the ESC GS ( L code to explain each function.
• ESC GS ( L and ESC GS 8 L are the same function.
• If [parameter] in each function exceeds 65533 bytes, use ESC GS 8 L.
[Function]

Runs the process related to the graphics data specified by the function code (fn).
fn
0, 48
3, 51
64
65
66
67
69

Code
ESC GS ( L pL pH m fn
ESC GS ( L pL pH m fn
ESC GS ( L pL pH m fn d1 d2
ESC GS ( L pL pH m fn d1 d2 d3
ESC GS ( L pL pH m fn kc1 kc2
ESC GS ( L pL pH m fn a kc1 kc2 b xL xH
yL yH [c d1･･･dk]1 [c d1･･･dk]b
ESC GS ( L pL pH m fn kc1 kc2 x y

Function No
48

64
65
66
67

Function
Send NV graphics
memory capacity
Send remaining NV
Graphics memory capacity
Send NV graphics key code
Batch all delete NV graphics data
Delete the specified NV graphics data
Define NV graphics data

69

Print the specified NV graphics data

51

35

<Function 48>ESC GS ( L pL pH m fn (fn=48)<Function 48>ESC GS 8 L p1 p2 p3 p4 m fn (fn=48)[Name]

Send NV graphics memory capacity[Code]

ASCII

ESC

GS

(

L

pL

pH

m

fn

HEX

1B

1D

28

4C

pL

pH

m

fn

DEC

27

29

40

76

pL

pH

m

fn

[Code]

ASCII

ESC

GS

8

L

p1

p2

p3

p4

m

fn

HEX

1B

1D

38

4C

p1

p2

p3

p4

m

fn

DEC

27

29

56

76

p1

p2

p3

p4

m

fn

[Defined Area]･Parameter for ESC GS ( L(pL + pH x 256) = 2 (pL=2, pH=0)･Parameter for ESC GS 8 L(p1 + p2 x 256+p3 x 65536+p4 x 16777216) = 2 (p1=2, p2=0, p3=0, p4=0)･Parameter are shared by ESC GS ( L and ESC GS 8 L
m = 48fn = 0, 48[Function][Details]

Sends the entire capacity of NV graphics area in bytes.
The byte count is sent in the following format:
Transmission data
Hex
Dec
Header<37>H55
Identifier<30>H
48
Total capacity *1<30>H to <39>H
48 to 57
NUL
00
0

Data length
1Byte
1Byte
1 to 8Byte
1Byte*1. The total capacity is the total number of bytes in this region.
The decimal value indicating the total capacity is converted to text data and sent in order from the MSB.
Ex.: When the total capacity is 1200 bytes:“1200” (Hex:31H, 32H, 30H, 30H, Decimal:49, 50, 48, 48) is converted to 4-bytes of data.
• This command is used when sending total capacity, and the total byte capacity of the region is sent regardlessof the current setting for the NV graphics data. This total capacity includes the information region.
• When the value that indicates the entire capacity is “0” (Hex:30H, Decimal:48), it is not possible to use theNV graphics function.
[Note]･Data transmission process : Function 48, 51, 64
Observe the following rules when using these functions.
• When the host PC sends this command, the printer sends response data or the status to the PC.
The PC does not send any more data until it receives response data or status from the printer.
• When the amount of data exceeds the capacity of the transmission buffer, data is erased.
• Transmission information of each function can be identified as other transmission data by specific data
(identifier) of the transmission data string.
When the header sent by the printer is [Hex = 37H/Decimal = 55], data up to NUL[Hex = 00H/Decimal = 0] is handled as one group, and identified by corresponding to the combination of
the header and identifier.

36

<Function 51>ESC GS ( L pL pH m fn (fn=51)<Function 51>ESC GS 8 L p1 p2 p3 p4 m fn (fn=51)[Name]

Send NV graphics memory capacity[Code]

ASCII

ESC

GS

(

L

pL

pH

m

fn

HEX

1B

1D

28

4C

pL

pH

m

fn

DEC

27

29

40

76

pL

pH

m

fn

[Code]

ASCII

ESC

GS

8

L

p1

p2

p3

p4

m

fn

HEX

1B

1D

38

4C

p1

p2

p3

p4

m

fn

DEC

27

29

56

76

p1

p2

p3

p4

m

fn

[Defined Area]･Parameter for ESC GS ( L(pL + pH x 256) = 2 (pL=2, pH=0)･Parameter for ESC GS 8 L(p1 + p2 x 256 + p3 x 65536 + p4 x 16777216) = 2 (p1=2, p2=0, p3=0, p4=0)･Parameter are shared by ESC GS ( L and ESC GS 8 L
m = 48fn = 3, 51[Function][Details]

Sends the remaining capacity (or unused area) of the NV graphics area in bytes.
･Sends the number of bytes in the following format:
Transmission data
Hex
Dec
Header<37>H55
Identifier<30>H
48
Total capacity *1<30>H to <39>H
48 to 57
NUL
00
0

Data length
1Byte
1Byte
1 to 8Byte
1Byte*1 The unused capacity is the total number of bytes of the unused region.
The decimal value indicating the unused capacity is converted to text data and sent in order from the MSB.
Ex.: When the unused capacity is 120 bytes:“120” (Hex:31H, 32H, 30H, Decimal:49, 50, 48) is converted to 3-bytes of data.
• Information region is also included in the use capacity.
• See the Note for <Function 48> for a detailed explanation of the sending process.

37

<Function 64>ESC GS ( L pL pH m fn d1 d2 (fn=64)<Function 64>ESC GS 8 L p1 p2 p3 p4 m fn d1 d2 (fn=64)[Name]

Send a key code list of predefined NV graphics[Code]

ASCII

ESC

GS

(

L

pL

pH

m

fn

d1

d2

HEX

1B

1D

28

4C

pL

pH

m

fn

d1

d2

DEC

27

29

40

76

pL

pH

m

fn

d1

d2

[Code]

ASCII

ESC

GS

8

L

p1

p2

p3

p4

m

fn

d1

d2

HEX

1B

1D

38

4C

p1

p2

p3

p4

m

fn

d1

d2

DEC

27

29

56

76

p1

p2

p3

p4

m

fn

d1

d2

[Defined Area]･Parameter for ESC GS ( L(pL + pH x 256) = 4 (pL=4, pH=0)･Parameter for ESC GS 8 L(p1 + p2 x 256 + p3 x 65536 + p4 x 16777216) = 4 (p1=4, p2=0, p3=0, p4=0)･Parameter are shared by ESC GS ( L and ESC GS 8 L
m = 48fn = 64d1 = 75, d2 = 67

[Function]

Sends the defined NV graphics key code list.

[Details]･Sends the key code in the following format:
Transmission data
Hex
Header<37>H
Identifier<72>H
Identifier information *1, *2<40>H / <41>H
Data<20>H to <7E>H
NUL
00

Dec
55
114
64 / 65
32 to 126
0Data length
1Byte
1Byte
1Byte
2 to 80 Byte
1Byte

*1 Send one block with identification information (3rd byte) as 40Hex, when the defined NV graphics data
count is less than 40.
*2 Send one block with identification information (3rd byte) as 41Hex, when the defined NV graphics data
count is over 40.
• If there is no defined NV graphics key code list, it sends the following format.
Transmission data
HeaderIdentifier
Identifier information
NUL

Hex
<37>H
<72>H
<40>H
00

Dec
55
114
64
0

Data length
1Byte
1Byte
1Byte
1Byte

･See the Note for <Function 48> for a detailed explanation of the sending process.

38

<Function 65>ESC GS ( L pL pH m fn d1 d2 d3 (fn=65)<Function 65>ESC GS 8 L p1 p2 p3 p4 m fn d1 d2 d3 (fn=65)[Name]

Erase entire NV graphics data

[Code]

ASCII

ESC

GS

(

L

pL

pH

m

fn

d1

d2

d3

HEX

1B

1D

28

4C

pL

pH

m

fn

d1

d2

d3

DEC

27

29

40

76

pL

pH

m

fn

d1

d2

d3

[Code]

ASCII

ESC

GS

8

L

p1

p2

p3

p4

m

fn

d1

d2

d3

HEX

1B

1D

38

4C

p1

p2

p3

p4

m

fn

d1

d2

d3

DEC

27

29

56

76

p1

p2

p3

p4

m

fn

d1

d2

d3

[Defined Area]･Parameter for ESC GS ( L(pL + pH x 256) = 5 (pL=5, pH=0)･Parameter for ESC GS 8 L(p1 + p2 x 256 + p3 x 65536 + p4 x 16777216) = 5 (p1=5, p2=0, p3=0, p4=0)･Parameter are shared by ESC GS ( L and ESC GS 8 L
m = 48fn = 65
d1 = 67, d2 = 76, d3 = 82

[Function]

Erases all NV graphics data defined by Function 67.
• The erased area is set to be an “unused area.”• All key codes become undefined.

[Details]･Effective only at top of the line in standard mode.
• Data for this parameter is discarded in page mode.
• Do not use this function for macro definition because this function is not compatible with the macros.
• If you use this function, all NV graphics data is erased.
Take special care if NV graphics data is used in multiple applications.

39

<Function 66>ESC GS ( L pL pH m fn kc1 kc2 (fn=66)<Function 66>ESC GS 8 L p1 p2 p3 p4 m fn kc1 kc2 (fn=66)[Name]

Erase the specified NV graphics data

[Code]

ASCII

ESC

GS

(

L

pL

pH

m

fn

kc1 kc2

HEX

1B

1D

28

4C

pL

pH

m

fn

kc1 kc2

DEC

27

29

40

76

pL

pH

m

fn

kc1 kc2[Code]

ASCII

ESC

GS

8

L

p1

p2

p3

p4

m

fn

kc1 kc2

HEX

1B

1D

38

4C

p1

p2

p3

p4

m

fn

kc1 kc2

DEC

27

29

56

76

p1

p2

p3

p4

m

fn

kc1 kc2[Defined Area]･Parameter for ESC GS ( L(pL + pH x 256) = 4 (pL=4, pH=0)･Parameter for ESC GS 8 L(p1 + p2 x 256 + p3 x 65536 + p4 x 16777216) = 4 (p1=4, p2=0, p3=0, p4=0)･Parameter are shared by ESC GS ( L and ESC GS 8 L
m = 48fn = 66
32≤kc1≤126
32≤kc2≤126[Function]

Erases the NV graphics data defined by key code kc1 and kc2.
• The erased area is set to be an “unused area.”• The erased key code becomes undefined.

[Details]･Effective only at the top of the line in standard mode.
• Data for this counter is discarded in page mode.
• Do not use this function for macro definition because this function is not compatible with the macros

40

<Function 67> ESC GS ( L pL pH m fn a kc1 kc2 b
xL xH yL yH [c d1 ･･･ dk]1 ･･･ [c d1･･･ dk]b (fn=67)<Function 67> ESC GS 8 L p1 p2 p3 p4 m fn a kc1 kc2 b
xL xH yL yH [c d1 ... dk]1 ... [c d1 ... dk]b (fn=67)[Name]

Set the specified NV graphics data

[Code]

ASCII
HEX

DEC

[Defined Area]

1D

27

ASCII
HEX

GS

1B

DEC

[Code]

ESC

ESC

29

GS

1B
27

1D
29

(

L

pL

pH

m

fn

a

xL

xH

yL

yH

[c

d1･･･dk ] 1 ･･･ [c
a

kc1

kc2

28

4C

pL

pH

m

fn

xL

xH

yL

yH

[c

d1･･･dk] 1 ･･･ [c
a

kc1

40

76

pL

pH

m

fn

xH

yL

yH

[c

d1･･･dk] 1 ･･･ [c

8

L

p1

p2

p3

p4

xL

xH

yL

yH

[c

d1･･･dk] 1 ･･･ [c
m

kc1

a

4C

p1

p2

p3

p4

xH

yL

yH

[c

d1･･･dk] 1 ･･･ [c

kc2

56

76

p1

p2

p3

p4

xH

yL

yH

[c

d1･･･dk] 1 ･･･ [cbd1 ･･･dk] b

kc1

xL

b

d1 ･･･ dk] b

kc1

38

a

b

d1 ･･･ dk] b
kc2

xL

m

a

d1 ･･･ dk] b
kc2

xL

m

b

kc2

b

d1 ･･･dk] b

kc1

kc2

b

d1 ･･･dk] b･Parameter for ESC GS ( L
12 ≤ (pL + pH x 256) ≤ 65535 (0≤pL≤255, 0≤pH≤255)･Parameter for ESC GS 8 L
12 ≤ (p1+ p2 x 256+p3 x 65536 + p4 x 16777216) ≤ 4294967295(0≤p1≤255, 0≤p2≤255, 0≤p3≤255, 0≤p4≤255)･Parameter are shared by ESC GS ( L and ESC GS 8 L
m = 48, fn = 67, a = 48
32≤kc1≤126
32≤kc2≤126
b = 1 (Specified only single color)
1≤(xL + xH x 256)≤8192 (0≤xL≤255, 0≤xH≤32)
1≤(yL + yH x 256)≤2304 (0≤yL≤255, 0≤yH≤9)c = 490≤d≤255
k = int (((xL + xH x 256) + 7)÷8) x (yL + yH x 256)
･Maximum number of Registration capacity
SK1-311
SK1-211512 KByte
512 KByte
254 pcs
254 pcs[Function]

SK1-41512 KByte
254 pcs

SK5-31512 KByte
254 pcs

Defines the NV graphics data (in raster format) as the record specified by key code kc1 and kc2• “b” specifies a number of colors of the definition data.
• “xL” and “xH” specify the horizontal size of definition data to (xL + xH x 256) dots.
• “yL” and “yH” specify the vertical size of definition data to (yL + yH x 256) dots.
• “c” specifies the definition data color as follows.
c=49: Black• “d” specifies the definition data (in raster format).
• If the specified key code already exists in memory, it is overwritten by the specified one.

41

[Details]･NV graphics are image data defined in the non-volatile memory of the printer.
･Data definitions for NV graphics data generated by using this command are valid until redefined by this command.
• This command is used to define NV graphics data.
• This function is defined by the raster format.
• Valid only at the top of the line in standard mode.
• When page mode is selected, counter data is received and discarded.
• Do not use this function when defining a macro because it is not compatible with macros.
• If there is not an adequate amount of space to store the NV graphics data, this function cannot be use.
Use Function 51 to check the available space that can be used.
• k byte data d1 ･･･ dk are processed as one item of the defined NV graphics data.
Bits that correspond to the dots to print are “1,” and the bits that correspond to the dots that are notprinted are “0.”• When single-color (b=1) is selected, this is defined as one data group [c d1 ･･･ dk].
• NV graphics data is printed using Function 69.
• The relationship of NV graphics data (raster format) and printing results are shown below.

When xL + xH x 256 = 512[Note]• When the specification of (xL + xH x 256), and (yL + yH x 256) exceed the remaining
capacity of the NV graphics region, this function does not operate.
• This function uses the NV graphics area of “Number of data sets (k) + Management data (14 bytes)”.

42

<Function 69>ESC GS ( L pL pH m fn kc1 kc2 x y (fn=69)<Function 69>ESC GS 8 L p1 p2 p3 p4 m fn kc1 kc2 x y (fn=69)[Name]

Print the specified NV graphics data

[Code]

ASCII

ESC

GS

(

L

pL

pH

m

fn

kc1 kc2 x y

HEX

1B

1D

28

4C

pL

pH

m

fn

kc1 kc2 x y

DEC

27

29

40

76

pL

pH

m

fn

kc1 kc2 x y[Code]

ASCII

ESC

GS

8

L

p1

p2

p3

p4

m

fn

kc1 kc2 x y

HEX

1B

1D

38

4C

p1

p2

p3

p4

m

fn

kc1 kc2 x y

DEC

27

29

56

76

p1

p2

p3

p4

m

fn

kc1 kc2 x y[Defined Area]･Parameter for ESC GS ( L(pL + pH x 256) = 6 (pL=6, pH=0)･Parameter for ESC GS 8 L(p1 + p2 x 256 + p3 x 65536 + p4 x 16777216) = 6 (p1=6, p2=0, p3=0, p4=0)･Parameter are shared by ESC GS ( L and ESC GS 8 L
m = 48fn = 6932≤kc1≤126
32≤kc2≤126
x = 1, 2
y = 1, 2[Function]

Prints the NV graphics data defined by key codes kc1 and kc2.
･Selected data can be printed in the “horizontal x-times” and “vertical y-times” scale.

[Details]･This function is used to print the NV graphics data defined by Function 67.
• The printer prints data only when the NV graphics data that matches the specified key code is defined.
If data with the specified key code is not found, the data of this counter is discarded.
• This command is effective only when no data exists in the print buffer in standard mode.
If any data exists in the print buffer, the data for this counter is discarded.
• Data for this counter is discarded in page mode.
• If graphics that exceeds the print area size is specified, the data within the print area is printed out but
the excess data is not printed out.
• The horizontal and vertical size of NV graphics can be specified by “x” and “y”.
• Excluding upside-down printing, print modes (emphasized printing, overlap printing, underlines, character sizes,
black/white inverted printing, and 90 degrees rotation) are unaffected.
• When normal mode or double-width mode is specified, the paper is fed for the number of dots (the height of
NV graphics) and when double-height mode or 4x mode is specified, the paper is fed for the number of dots
(NV graphics height multiplied by 2) regardless of the settings of default line spacing (ESC 2) and line feedamount (ESC 3).
• After these graphics are printed, the next printing starts at the beginning of a line (the printer is at
the “beginning of the line” and has “no print data”), and subsequent data is processed as normal data.
• This command is affected by the following command settings:
Move to absolute position (ESC GS A n1 n2)Move to relative position (ESC GS R n1 n2)
Set print area (ESC RS A n)
Horizontal tab (HT)Upside-down printing (SI)43

ESC GS ) L pL pH fn [parameter][Name]

Set graphics data

[Code]ASCII[Function]

ESC

GS

)

L

pL

pH

fn

[parameter]

HEX

1B

1D

29

4C

pL

pH

fn

[parameter]

DEC

27

29

41

76

pL

pH

fn

[parameter]

Executes graphics data processing.
･pL, pH specify the parameter count (pL + pH x 256) bytes after fn.
･See the function specifications for details on [parameter].
fn
48
49
50

Function No
Function 48
Function 49
Function 50

Function Name
Send the registered individual logo CRC
Send the registered individual NV graphics memory capacity
Send all key code of the registered NV graphics

44

<Function 48> ESC GS ) L pL pH fn kc1 kc2[Name]

Send the registered individual logo CRC[Code]

ASCII

ESC

GS

)

L

pL

pH

fn

kc1 kc2

HEX

1B

1D

29

4C

pL

pH

fn

kc1 kc2

DEC

27

29

41

76

pL

pH

fn

kc1 kc2[Defined Area]

pL = 3, pH = 0
fn = 48
32≤kc1≤126, 32≤kc2≤126[Function]

Sends a CRC of the logo already stored in the printer.

[Details]･The CRC operation is used only for logo graphics data currently stored in the printer.
• The key codes, size and color information are excluded from the CRC operation.
• When the printer receives the command, it calculates the CRC and sends it.
• If a logo containing multiple colors is stored, the logo data of the “n+1” color is added after the logo data of
the nth color and calculated.
• The CRC operation is as follows.
CRC16:Polynomial =x16 + x15 + x2 + x0

Initial Value

FFFF (HEX)

Shift direction

Right

Output XOR

FFFF (HEX)*See the sample codes for concrete implementation examples.
• The CRC of only the stored logo can be sent by the “ESC GS ( L” or “ESC GS 8 L” command.
• When logo data is stored, the CRC of the received data is operated.
• If the logo data exceeds the horizontal print area, the CRC is operated based on the data that is received
when logo data is stored.
The CRC is sent in the following format:
ESC GS) L pLpH

fn

kc

kc2 CRC data

LF

NUL

*CRC data is converted into a character string and sent.
If an unregistered key code is specified, the following data is sent instead.
ESC GS) L pLpH

fn

kc1 kc2 LF

NUL

45

CRC calculation method, Sample codes by C language

46

<Function 49>ESC GS ) L pL pH fn kc1 kc2[Name]

Transmit capacity used by registered individual NV graphics.

[Code]

ASCII

ESC

GS

(

L

pL

pH fn

kc1

kc2

HEX

1B

1D

29

4C

pL

pH fn

kc1

kc2

DEC

27

29

41

76

pL

pH fn

kc1

kc2

[Defined Area]

pL = 3, pH = 0
fn = 49
32≤kc1≤126, 32≤kc2≤126[Function]

Transmits the capacity used by the individual NV graphics data registered in the printer.

[Details]･The used capacity is the total number of bytes of the used area.
･The used capacity includes the management data (14 bytes).
･Only the capacity used by NV graphics data registered with the " ESC GS ( L" or " ESC GS 8 L"
command can be transmitted.
The used capacity is transmitted in the following format:
ESC GS ) L pL pH fn kc1 kc2 [used capacity] LF NULExample: When the used capacity is 1200 bytes, [used capacity] will be “1200” converted into four-byte data
(Hex: 31H, 32H, 30H, 30H, Decimal: 49, 50, 48, 48)
If an unregistered key code is specified, the following data is transmitted instead:
ESC[Reference]

GS

) L

pL

pH

fn

kc1

kc2

LF

NUL

ESC GS ( L , ESC GS 8 L<Function 50>ESC GS ) L pL pH fn d1 d2[Name]

Send all key code of the registered NV graphics[Code]

ASCII

ESC

GS

(

L

pL

pH

fn

d1

d2

HEX

1B

1D

29

4C

pL

pH

fn

d1

d2

27

29

41

76

pL

pH

fn

d1

d2

DEC
[Defined Area]

pL = 3, pH = 0
fn = 50d1 = 0, d2 = 0[Function] Send all key code of NV graphics already stored in the printer.
[Details]

If NV graphics are registered with “ESC GS ( L” or “ESC GS 8 L” command, all of their key codes can be sent.
All key codes are sent in the following format.
ESC GS) L pL pH fn k1 k2 [key-code key-code ...]LF NULUp to 512 key codes can be sent, but logo key codes exceeding this limit are not sent.
k1 and k2 represent the number of transmission data bytes (k1+k2*256) after the key codes.
Example: If NV graphics of key codes 01 and 02 are registered, k1=6 and k2=0. [key-code key-code...] is "0102"(HEX: 30H, 31H, 30H, 32H Decimal: 48, 49, 48, 50).
If NV graphics are not registered, the following data is sent.
ESC

GS

)

L

pL

pH

fn

k1

k2

LF

NUL (where, k1 = 2, k2 =0)

If the USB interface is used, the NSB must be made invalid.
[Reference]

ESC GS ( L , ESC GS 8 L

47

10. Barcode

ESC b n1 n2 n3 n4 d1 ･･･ dk RS[Name]

Barcode printing[Code]

ASCII

ESC

b

n1

n2

n3

n4

d1･･･dk

RS

HEX

1B

62

n1

n2

n3

n4

d1･･･dk

1E

27

98

n1

n2

n3

n4

d1･･･dk

30

DEC[Defined Area]0≤n1≤8, 48≤n1≤56(‘0’≤n≤ ‘8’)1≤n2≤4, 49≤n2≤52(‘1’≤n≤ ‘4’)1≤n3≤9, 49≤n3≤57(‘1’≤n≤ ‘9’)1≤n4≤255[Function] Barcode printing is executed according to the following parameters.
If n1, n2, n3 and n4 are acquired and detected to be out of the defined area, data up to RS is discarded.
[Caution] The bar codes that are printed do not conform to each standard, so you should confirm before actual use.
Particularly, if 1dot is specified, the bar code is not guaranteed.
n1: Barcode type selection
n1
Barcode type
0, 48
UPC-E
1, 49
UPC-A
2, 50
JAN/EAN8
3, 51
JAN/EAN13
4, 52
Code39
5, 53
ITF
6, 54
Code1287, 55
Code938, 56
NW-7
n2: Under-bar character selection and added line feed selection
UPC-E/A, JAN/EAN8, JAN/EAN13, Code128,
Code93, Code39, NW-7,ITF
n2
Position of under-bar
line feed after
Font
characterprinting
1, 49
-None
Execute2, 50
Font A
Under position
Execute
3, 51-None
No execute
4, 52Font A
Under position
No executen3: Barcode mode selection
UPC-E/A, JAN/EAN8,
JAN/EAN13, Code128, Code93,n3
Minimum module
1, 49
2 dots2, 50
3 dots3, 51
4 dots4, 52-5, 53-6, 54-7, 55-8, 56-9, 57--

Code39, NW-7

ITF

Narrow: Wide2: 6 dots
3: 9 dots
4: 12 dots
2: 5 dots
3: 8 dots
4: 10 dots
2: 4 dots
3: 6 dots
4: 8 dots

Narrow: Wide
2: 5 dots
4: 10 dots
6: 15 dots
2: 4 dots
4: 8 dots
6: 12 dots
2: 6 dots
3: 9 dots
4: 12 dots48

n4: Barcode height (dot count)
Form feed at (Bar code height + underbar characters).
*When there is a character string on the same line as the barcode, if n4 <character height, then n4 = character height.
k (Bar code data count), d (Bar code data)
Barcode typeDefined area of k
UPC-E
11≤k≤12UPC-A
11≤k≤12JAN/EAN87≤k≤8
JAN/EAN1312≤k≤13
Code39
1≤k

ITF

1≤k
When an odd number:
0 is automatically applied
to the top.
1≤k
1≤k
1≤k

Code128
Code93
NW-7

UPC-E:

Defined area of d48≤d≤57
48≤d≤57
48≤d≤57
48≤d≤57
48≤d≤5765≤d≤90
32, 36, 37, 43, 45, 46, 47
48≤d≤570≤d≤1270≤d≤12748≤d≤5765≤d≤68
36, 43, 45, 46, 47, 58, 97, 98, 99, 100

k=11 (or 12)

The 12th check digit is automatically applied, so it is specified and ignored.
The command is ignored for data that cannot be shortened.
Automatically converts data to shortened form.
UPC-A: k=11 (or 12)
The 12th check digit is automatically applied, so it is specified and ignored.
JAN/EAN-8:

k=7 (or 8)

The 8th check digit is automatically applied, so it is specified and ignored.
JAN/EAN-13: k=12 (or 13)
The 13th check digit cannot be automatically applied, so it is specified and ignored.
Code39: k is freely set, and maximum value differs according to the mode.
Start/stop code (“*”) is automatically applied.
ITF: k is freely set, and maximum value differs according to the mode.
If data is oddly numbered, a 0 is applied to the top.
Code128: k is freely set, and maximum value differs according to the mode and the print character type.
The check character is automatically applied.
Code93:k is freely set, and maximum value differs according to the mode and the print character type.

The check character is automatically applied.
NW-7:

k is freely set, and maximum value differs according to the mode and the print character type.

Start/stop codes included in the data (not automatically applied).

491) Barcode Specification Details
Refer to the dedicated manuals for characteristics and methods of use for each bar code symbol.
This section describes precautions and methods for setting when printing with the printer.
Barcode widths are set for each bar code according to the mode. The following describes each mode and the dot counts.
The user must ensure the specified printing position and quiet zone at the position where the bar code begins.
1-1) Code39
Code 39 represents numbers 0 to 9 and the letters of the alphabet from A to Z.
(1) Length of one character in each mode.
Items
Mode 1
Narrow Element Width
2 dotsWide Element Width
6 dotsRatio
1:3
Character Spacing
2 dotsLength of 1 Character
4
(mm)
Items
Narrow Element Width
Wide Element Width
Ratio
Character Spacing
Length of 1 Character(mm)

Mode 6
4 dots
10 dots
1:2.5
4 dots
7.25

Mode 23 dots9 dots
1:3
3 dots6Mode 34 dots12 dots
1:3
4 dots8Mode 42 dots5 dots
1:2.5
2 dots3.625

Mode 72 dots4 dots
1:2
2 dots
3.25

Mode 83 dots
6 dots
1:2
3 dots4.875

Mode 94 dots
8 dots
1:2
4 dots
6.5

Mode 53 dots
8 dots
1:2.7
3 dots
5.625(*) The length of 1 character includes the character spacing.
(2) Regulations
The start and stop bar code (*) in Code 39 are automatically inserted.
1-2) Interleaved 2 of 5
Interleaved 2 of 5 represents numbers 0 to 9. Higher density of characters is possible.
(1) Narrow element width and length of symbols per 2 characters.
Items
Mode 1Mode 2Mode 3
Narrow Element Width
2 dots4 dots
6 dotsWide Element Width
5 dots
10 dots
15 dots
Ratio
1:2.5
1:2.5
1:2.5
Length of 1 Character
4
8
12
(mm)
Items
Narrow Element Width
Wide Element Width
Ratio
Length of 1 Character(mm)

Mode 6
6 dots12 dots
1:2
10.5

Mode 72 dots
6 dots1:3
4.5

Mode 83 dots9 dots
1:3
6.75

Mode 42 dots4 dots1:2
3.5

Mode 54 dots
8 dots1:27Mode 94 dots12 dots
1:3
9(2) Regulations
By selecting interleaved 2 of 5 bar code symbols, start and stop patterns are automatically inserted.
When the bar code data digit count is odd, a zero is added to the highest value digit.

501-3) JAN/EAN/UPC
Used numbers, not only the bar code symbols, are controlled using JAN, EAN and UPC as shared common commercial
codes.
(1) Each mode and bar code width
Items
Module Width
Barcode Width (*)
JAN/EAN-8
JAN/EAN-13
UPC-A
UPC-E

Mode 1
2 dots
16.75mm23.75mm23.75mm
12.75mmMode 23 dots25.125mm
35.625mm
35.625mm
19.125mm

Mode 34 dots33.5mm
47.5mm
47.5mm
25.5mm(*) Includes the guard bar (left/right/center) but not the white space.
(2) Regulations
JAN / EAN-8
Data is in 7 or 8 digits. The command is ignored for others.
The check digit uses a modulus weight of 10/3 and is automatically applied.
When the calculated value and the numerical value of the 8th digit differ, the calculated value has priority.
JAN / EAN-13
Data is in 12 or 13 digits. The command is ignored for others.
The check digit uses a modulus weight of 10/3 and is automatically applied.
When the calculated value and the numerical value of the 13th digit differ, the calculated value has priority.
UPC-A
Data is in 11 or 12 digits. The command is ignored for others.
The check digit uses a modulus weight of 10/3 and is automatically applied.
When the calculated value and the numerical value of the 12th digit differ, the calculated value has priority.
UPC-E
Data is in 11 or 12 digits. The command is ignored for others.
The check digit uses a modulus weight of 10/3 and is automatically applied.
When the calculated value and the numerical value of the 12th digit differ, the calculated value has priority.
Data conversion to rectangles is automatic.
Data that cannot be shortened is processed as invalid data.
1-4) Code128
These are bar code symbols that can print ASCII 128 characters. For that reason, use thereof is increasing.
(1) Each module and module width
Items
Module Width
Length of 1 Character (*)

Mode 1
2 dots2.75mmMode 23 dots4.125mmMode 34 dots5.5mm(*) Start and stop bars not included.
(2) Regulations
When using <LF> with the command, control codes are not sent by the host PC, so the control codes are sent as data, as
shown below.
When sending the following data, it represents 2 characters set.
% (25H) represents %0 (25H 30H).
･Control codes (00H to 1FH) represent 40H to 5FH applied behind %.
･Control code (7FH) represents %5 (25H 35H).
･Function codes represent 1 to 4 (31H to 34H) applied behind %.
･Start codes represent 6 to 8 (36H to 38H) applied behind %.
･Stop code (SC)/Check character (CK) are automatically applied.
･When start code is omitted: Uses START C when more than 4 digits continue after header.
･Uses START A when initial data other than numbers are the control code. Uses START B for other cases.

51

(3)

2 Character set code table<Control Codes>
Code
FormatNUL 00H%@ 25H 40H
SOH 01H%A 25H 41H
STX 02H%B 25H 42H
ETX 03H%C 25H 43H
EOT 04H%D 25H 44H
ENQ 05H%E 25H 45H
ACK 06H%F 25H 46H
BEL 07H%G 25H 47H
BS 08H%H 25H 48H
HT 09H%I 25H 49H
LF 0AH%J 25H 4AH
VT 0BH%K 25H 4BH
FF 0CH%L 25H 4CH
CR 0DH%M 25H 4DH
SO 0EH%N 25H 4EH
SI 0FH%O 25H 4FH
DLE 10H%P 25H 50H
DC1 11H%Q 25H 51H
DC2 12H%R 25H 52H
DC3 13H%S 25H 53H
DC4 14H%T 25H 54H
NAK 15H%U 25H 55H
SYN 16H%V 25H 56H
ETB 17H%W 25H 57H
CAN 18H%X 25H 58H
EM 19H%Y 25H 59H
SUB 1AH%Z 25H 5AH
ESC 1BH%[ 25H 5BH
FS 1CH%\ 25H 5CH
GS 1DH%] 25H 5DH
RS 1EH%^ 25H 5EH
US 1FH%_ 25H 5FH

Code
% 25H
DEL 7FH

Code
FNC1
FNC2
FNC3
FNC4

<Control Codes>
Format%0 25H 30H%5 25H 35H<Function Codes>
Format%1 25H 31H%2 25H 32H%3 25H 33H%4 25H 34H

*
*
*
*

<Start Codes>
Format%6 25H 36H%7 25H 37H%8 25H 38H

*
*
*

Code
START A
START B
START C52

1-5) Code93(1) Each mode and module width
Items
Module Width
Length of 1 Character (*)

Mode 1
2 dots2.25mmMode 23 dots3.375mmMode 34 dots4.5mm(*) Start and stop bars not included.
(2) Regulations
Start/stop codes are automatically applied.
Check character (C, K) is automatically applied.
2 characters set expression conforms to Code 128.
However, items marked with ‘*’ are codes that can only be used with Code 128, and not with Code 93.
HRI characters of control characters (<00>H to <1F>H, <7F>H) are as follows.

ASCII

HEX

HRI Character

ASCII

HEX

HRI Character

NULL
SOH
STX
ETX
EOT
ENQ
ACK
BEL
BS
HT
LF
VT
FF
CR
SO
SI

00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F

█U
█A
█B
█C
█D
█E
█F
█G
█H
█I
█J
█K
█L
█M
█N
█O

DLE
DC1
DC2
DC3
DC4
NAK
SYN
ETB
CAN
EM
SUB
ESC
FS
GS
RS
US
DEL

10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
7F

█P
█Q
█R
█S
█T
█U
█V
█W
█X
█Y
█Z
█A
█B
█C
█D
█E
█T

53

1-6) NW-7 (CODABAR)
NW-7 normally uses either A through D as the start/stop codes and represents special symbols (- (minus sign)/$ (dollar sign)/: (colon)// (slash)/. (period)/+ (plus sign) between 0 to 9.
(1) Length of 1 character in each mode
Items
Narrow Element Width
Wide Element Width
Ratio
Character Spacing (dots)(Normally mm)
Length of 1 Character(Width mm)

Mode 1
2
6
1:3
2
3
3.5

Mode 2
3
9
1:3
3
4.5
5.25

Mode 3
4
12
1:3
4
6
7

Mode 4
2
5
1:2.5
2
2.75
3.125

Items
Narrow Element Width
Wide Element Width
Ratio
Character Spacing (dots)(Normally mm)
Length of 1 Character(Width mm)

Mode 6
4
10
1:2.5
4
5.5
6.25

Mode 7
2
4
1:2
2
2.5
2.75

Mode 8
3
6
1:2
3
3.75
4.125

Mode 9
4
8
1:2
4
5
5.5

Mode 5
3
8
1:27
3
4.25
5.125

With NW-7, lengths differ because narrow elements and wide elements are included according to the characters.
Normal characters (narrow: 5, wide: 2) and numbers (0 to 9), - and $Wide characters (narrow: 4, wide: 3) , /, . , + , A to D
Character spaces are included in one-character length.

54

11. Two-Dimensional Barcode QR Code* Note that QR code is a registered trademark of DENSO WAVE.
This command is for printing 2-dimensional barcode QR codes.
There are four functions of the commands relating to the 2-dimensional barcode QR codes, shown below.
(1) Set barcode type (<ESC> <GS> “y” “S”)
(2) Set barcode data (<ESC> <GS> “y” “D”)
(3) Set page mode

(Reserved)(4) Print Barcode(<ESC> <GS> “y” “P”)

The details of each function are described below.
1. Set barcode type
These commands set the barcode type.
Because all initial values are set, use these only to make changes.

<ESC> <GS> “y” “S” “0” Sets the model
Currently supported models are model 1 and model 2. Model 2 has a configuration including an alignment bar to improve its
support of weight to handle skewing when codes are large.
<ESC> <GS> “y” “S” “1” Sets the error correction level.
QR codes can be read even if a part of the data is corrupted, by using error correction.
Raising this level increases the size of the barcode because there is an increase in preparatory information.
<ESC> <GS> “y” “S” “2” Specifies the size of the cell (One four squared regions configuring the QR code).
The QR code is formed into a square of an equivalent size in the vertical and horizontal directions, but the size of thebarcode image that is generated depends on the cell size setting.
These settings are individual settings. Therefore, even though there may not be any particular problem in each of them,
there is the potential for an error to be generated. (See the descriptions below.) In such cases, the barcode will not be
generated and the (4) Print command (<ESC> <GS> “y” “P”) is ignored.
(1) Error is generated when generating a barcode by the combination of each setting command.
(2) Print data exceeds the currently set print region.

55

2. Set barcode data
This command sets the bar code print data.
There are four types of data that can be set using QR codes.
They are: numbers; English characters; binary; and Kanji.
Data setting methods. Specify only the barcode data (data automatic analysis).
3. Set page modeThis command is not used.
4. Print BarcodeThis command prints barcodes based on the settings of (1) to (3).
=== Precautions on using these commands ===The setting values for 1 to 3 are held unless any of the following operations are performed.
(1) Sending a new setting command.
(2) Sending an initialize command (<ESC> @)(3) Turning the power OFF.
When there is an error in sending a command with 2, the set data is cleared and the command itself is disabled.
4 is sent when necessary.
(1) When printing, position movement using specify absolute position, specify relative position, and align position areenabled.
(2) Upside-down printing is possible.
(3) Printed barcodes should always be checked in an actual use.

56

ESC GS y S 0 n[Name]

Set QR code model[Code]

ASCII

ESC

GS

y

S

0

n

HEX

1B

1D

79

53

30

n

DEC

27

29

121 8348

n[Defined Area]1≤n≤2[Initial Value]

n=2[Function] Sets the QR code model.
N
1
2

Set model
model 1model 2ESC GS y S 1 n[Name][Code]

Set QR code mistake correction level
ASCII

ESC

GS

y

S

1

n

HEX

1B

1D

79

53

31

n

DEC

27

29

121 8349n[Defined Area]0≤n≤3[Initial Value]

n=0[Function] Sets the mistake correction level of QR code.
n
0
1
2
3

Mistake Correction Level
L
M
Q
H

Mistake Correction Rate (%)
7
15
25
30

ESC GS y S 2 n[Name][Code]

Set QR code cell size
ASCII

ESC

GS

y

S

2

n

HEX

1B

1D

79

53

32

n

29

121 83

50

n

DEC

27

[Defined Area]1≤n≤8[Initial Value]

n=3[Function] Sets the cell size of QR code.
• Parameter details• n: Cell size (Units: Dots)• It is recommended that the specification using this command be 3 ≤ n.
If n = 1 or 2, check by actually using.

57

ESC GS y D 1 m nL nH d1 d2 ... dk[Name]

Set QR Code data (Auto Setting)[Code]

ASCII

ESC

GS

y

D

1

m

nL

nH

d1 d2 ･･･ dk

HEX

1B

1D

79

44

31

m

nL

nH

d1 d2 ･･･ dk

DEC

27

29

121

68

49

m

nL

nH

d1 d2 ･･･ dk[Defined Area]m=00≤nL≤255, 0≤nH≤255
1≤ (nL + nH x 256) ≤7089 (k = nL + nH x 256)0≤d≤255[Function] Automatically expands the data type of the barcode and sets the data.
Parameter details(1) nL + nH x 256: Byte count of barcode data
(2) dk:Barcode data (Max. 7089 bytes)• When using this command, the printer receives data for the number of bytes (k) specified by nL and nH. The data
automatically expands to be set as the bar code data.
• Indicates the number bytes of data specified by the nL and nH.

ESC GS y P[Name][Code]

Print QR code
ASCII

ESC

GS

y

P

HEX

1B

1D

79

50

DEC

27

29

121

80

[Function] Prints QR code data.
When receiving this command, if there is unprinted data in the image buffer, the printer will print the QR code after
printing the unprinted print data.
A margin of more than 4 cells is required around the QR code. The user should ensure that space.
Always check printed QR code in actual use.

58

12. Two-dimensional Barcode PDF417
This command prints two-dimensional barcode PDF417.
There are three types of commands, according to functions, for two-dimensional barcode PDF417.
(1) Set barcode type(<ESC> <GS> “x” “S”)

(2) Set barcode data(<ESC> <GS> “x” “D”)

(3) Print barcode(<ESC> <GS> “x” “P”)

The following describes the functions in detail.
1. Set barcode type
These commands set the bar code type. Because these are all set with default values, they should be used only when it isnecessary to change.

PDF417 is configured by a fixed bar pattern for starting and stopping, and a bar pattern called a code word.
Code words are configured by 17 modules.

<ESC> <GS> “x” “S” “0” specifies values of p1 and p2.
USE_LIMITS mode specifies the ratio of p1 and p2. USE_FIXED mode specifies p1 (line count) and p2 (code word countper line).
<ESC> <GS> “x” “S” “1” specifies values of error correction levels.
PDF417 can read information even if a portion of the data is corrupted by using the error correction.
By increasing this level, the barcode size increases because there is more preparatory information.
<ESC> <GS> “x” “S” “2” and <ESC> <GS> “x” “S” “3” specify the size of the module that configures the code word.
The X direction size (in dot increments) is determined by <ESC> <GS> “x” “S” “2” for the module, and <ESC> <GS> “x”“S” “3” specifies the Y direction size from the aspect.
Module size setting is the basis for the bar code image that is generated, so the resulting print will vary according to thatsetting.
The settings above are set individually, so the errors described below may be generated even if there is no particular
problem in those settings.
In such case, if the bar code is generated the (3) print command (<ESC> <GS> “x” “P”) is ignored.
• Error is generated when generating a bar code, due to the combination of the barcode setting commands.
• The bar code data that is generated exceeds the printable size of PDF417.
• Print data exceeds the currently set print region.

59

2. Set barcode data
This command sets the print data of the barcode.
3. Print barcodeThis command prints the barcode according to the settings of (1) and (2).
=== Precautions for use of commands ===Unless the following operations are performed, the setting values are maintained for 1 and 2.
(1) Sending of new setting commands(2) Sending an initializing command (<ESC> @)(3) The power is turned off
Sending 3 when needed(1) When printing, position shifting according to the horizontal tab, absolute position specification, relative position
specification, and position alignment is valid.
(2) Upside-down printing is possible.
(3) When a barcode is printed, always verify it by actual use.

60

ESC GS x S 0 n p1 p2[Name]

Set PDF417 barcode size

[Code]

ASCII

ESC

GS

x

S

0

p1

p2

HEX

1B

1D

78

53

30

p1

p2

DEC

27

29 120

83

48

p1

p2

[Defined Area]n= 0, 1
When n=0: 1≤p1≤99, 1≤p2≤99
When n=1: p1=0 or 3≤p1≤90, p2=0 or 1≤p2≤30 (However, this excludes. p1=p2 =0)[Initial Value]

n=0, p1=1, p2=2

[Function] Set the barcode size of PDF417.
n0Specify Method
USE_LIMITS

1

USE_FIXED

p1,p2 (Size Specification)
p1:p2 Proportions of Vertical (p1) and Horizontal (p2)
However, p1: p2= 1: 99 to 10: 1 (p1/p2 = 0.01 to 10)
p1 : Number of lines (0, 3 to 90)
p2 : Number of columns (0, 1 to 30)
However, p1xp2 ≤ 928
When either p1 or p2 specifies 0, it indicates that that setting value isvariable.

Setting the bar code size using this command specifies the general size of the bar code. The size willautomatically be corrected according to the other settings.

ESC GS x S 1 n[Name][Code]

Set PDF417 ECC (security level)
ASCII

ESC

GS

x

S

1

n

HEX

1B

1D

78

53

31

n

DEC

27

29 12083

49

n[Defined Area]0≤n≤8[Initial Value]

n=1[Function] Set the security level of PDF417.
Parameter details• n: ECC level (0 to 8)

ESC GS x S 2 n[Name][Code]

Set PDF417 module X direction size
ASCII

ESC

GS

x

S

2

n

HEX

1B

1D

78

53

32

n

DEC

27

29 12083

50n[Defined Area]1≤n≤10[Initial Value]

n=2[Function] Set the module X direction size of PDF417
Parameter details• n: Sets the module X direction size (x-dim). (Units: Dots)
It is recommended that 2≤n when specifying using this command.
When using with n = 1, check by actual use.

61

ESC GS x S 3 n[Name]

Set PDF417 module aspect ratio[Code]

ASCII

ESC

GS

x

S

3

n

HEX

1B

1D

78

53

33

n

DEC

27

29 12083

51

n[Defined Area]1≤n≤10[Initial Value]

n=3[Function] Set the module aspect ratio of PDF417.
Parameter detailsn:Sets the module aspect ratio (asp).

It is recommended that 2≤n when specifying using this command.
When using with n = 1, check by actual use.

ESC GS x D nL nH d1 d2 ･･･ dk[Name]

Set PDF417 barcode data

[Code]

ASCII

ESC

GS

x

D

nL

nH

d1 d2 ･･･ dk

HEX

1B

1D

78

44

nL

nH

d1 d2 ･･･ dk

27

29 12068nLnH

d1 d2 ･･･ dk

DEC[Defined Area]

0≤nL≤255, 0≤nH≤255
1≤(nL + nH x 256)≤10240≤d≤2551≤k≤1024[Function] Set the barcode data of PDF417.
Parameter details(1) nL + nH x 256: Barcode data count(2) dk: Barcode data (Maximum 1024 data)
When [nL + nH x 256] is outside of the definition, data of [nL + nH x 256] bytes are discarded.

ESC GS x P[Name][Code]

Print PDF417 barcode
ASCII

ESC

GS

x

P

HEX

1B

1D

78

50

DEC

27

29 12080[Function] Prints the barcode data.
If there is unprinted data in the line buffer, this command is executed after printing that data in the line buffer.
Also, this command is ignored if the following errors occur.
(1) When an error is generated when generating a bar code, due to the combination of the barcode setting.
commands(2) When the barcode data that is generated exceeds the printable size of PDF417.
(3) When the print data exceeds the currently set print region.
When a barcode is printed, always verify it by actual use.

62

13. Initialization command

ESC @[Name]

Command initialization[Code]

ASCII

ESC

@

HEX

1B

40

DEC

27

64

[Function] Initializes each command after printing data in the line buffer.
Memory switch settings are initialized to the memory switch settings.
Settings item to be initialized.
• ANK characters• ANK right space• Character pitch• International characters• Code page
• Set slash zero
• Page length• Current position (move to top of page, top of line)• Horizontal tab• Line feed amount• Set upside-down, position alignment• Left/right margins
Settings item to be no initialized.
• Set print density• Set print speed

ESC ? LF NUL[Name][Code][Function]

Reset printer (execute self print)
ASCII

ESC

?

LF

NUL

HEX

1B

3F

0A

00

DEC

27

63

10

0

Software resets the printer and executes on self print.
After sending this command, the next data is not sent until the printer is online (in a state wherein it canreceive data).
I/F
RS-232C

When resetting the printer, the following processes are performed.
Mode
DTR mode
Xon/Xoff mode

Process
DTR mark output
Xoff output

6314. Memory Switch

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

HEX

1B

1D

23

m

N

n1

n2

n3

n4

0A

00

DEC

27

29

35

m

N

n1

n2

n3

n4

10

0

[Defined Area]48≤n1≤57 (‘0’≤n1≤‘9’), 65≤n1≤70 (‘A’≤n1≤‘F’), 97≤n1≤102 (‘a’≤n1≤‘f’)48≤n2≤57 (‘0’≤n2≤‘9’), 65≤n2≤70 (‘A’≤n2≤‘F’), 97≤n2≤102 (‘a’≤n2≤‘f’)48≤n3≤57 (‘0’≤n3≤‘9’), 65≤n3≤70 (‘A’≤n3≤‘F’), 97≤n3≤102 (‘a’≤n3≤‘f’)48≤n4≤57 (‘0’≤n4≤‘9’), 65≤n4≤70 (‘A’≤n4≤‘F’), 97≤n4≤102 (‘a’≤n4≤‘f’)
m = 87, 84, 44, 43, 45, 64, 42
48≤N≤57 (‘0’≤N≤‘9’), 65≤N≤(*)70 (‘A’≤N≤‘F’), N=79 (N=‘O’), N=86 (N=‘V’),
97≤N≤(*) 102 (‘a’≤N≤‘f’), N=111 (N=‘o’), N=118 (N=‘v’),[Function] Sends command to write after defining memory switch using the definition command specified by the followingclasses.
Memory switch information defined by the command to write is written to the nonvolatile memory.
When writing to the nonvolatile memory by the command to write, the printer executes a reset.
If you specify m = 42 (‘*’), it will be loaded to the factory settings.
Consider the life of the non-volatile memory and avoid excessive use of this command.
FunctionsDefinition data write and reset
Definition data write and reset and self-print
Data definition (data specification)
Data definition (specify bit and set)
Data definition (specify bit and clear)
Definition data (all data initialized)
Definition data (load default settings)m:Mode selection

N:

Memory switch number to specify

n1 n2 n3 n4:Specify data

Class
Write
Write
Definition
Definition
Definition
Definition
Definition

m
“W”
“T”
“,”
“+”
“-”
“@”
“*”

N
Fixed at “0”Fixed at “0”N
NN
Fixed at “0”Fixed at “0”n1 n2 n3 n4Fixed at “0000”
Fixed at “0000”
n1 n2 n3 n4
n1 n2 n3 n4
n1 n2 n3 n4Fixed at “0000”
Fixed at “0000”m = (“,”) Specify datam = (“+”) Bit number to set
m = (“-“) Bit number to clear64

15. Status

ESC RS a n[Name]

Set status transmission conditions[Code]

ASCII

ESC

RS

a

n

HEX

1B

1E

61

n

27

30

97

n

DEC
[Defined Area]0≤n≤3, 48≤n≤51(‘0’≤n1≤‘3’)
n = 16, 255[Initial Value]

Memory switch setting[Function] Sets the status transmission conditions.
Settings of this command are unaffected by the ESC @ command.
Command function selection by memory switches
Status transmission condition settings
Status transmission at command input
ASB invalid･NSB Invalid
Status transmission
ASB valid･NSB Invalid
ASB invalid･NSB valid
ASB valid･NSB valid
Returns the ASB and NSB settings to theinitial state previously set by the Memory
switch.
Sends the ASB status information.

n
0, 48
1, 49
2, 50
3, 51
16
255

ESC ACK SOH[Name][Code]

Real-time printer status (ASB status)
ASCII

ESC

ACK

SOH

HEX

1B

06

01

DEC

27

6

1

[Function] Sends ASB status information to the host.
This command is not used when ASB is valid.

ETB[Name]

Update ASB ETB status[Code]

ASCII

ETB

HEX

17

DEC

23

[Function] Sets the ASB ETB status when reading this command from the reception buffer. Then, after updating the ASB ETB
counter, sends the ASB status.
The following outlines the details of processes in this command.
(1) Reads ETB command from reception buffer.
(2) Waits for printing of the print data before the ETB command to end.
(3) Increments the ASB ETB counter by 1 after checking that printing has ended, then sets the ASB ETB
status.
(4) Sends ASB (only when ASB is enabled).

65

ESC RS E n[Name]

Initialize ASB ETB counter and ETB status[Code]

ASCII

ESC

RS

E

HEX

1B

1E

45 n

DEC

27

30

69 n

[Defined Area]n=, 48 (‘0’)[Initial Value]

ASB ETB counter = 0n[Function] Clears the ASB ETB counter to zero, then clears the ETB status.
However, ASB status is not send when clearing the ETB counter to zero using this command.

ESC GS ETX s n1 n2[Name]

Send print-end counter, initialize[Code]

ASCII

ESC

GS

ETX

s

n1

n2

HEX

1B

1D

03

s

n1

n2

DEC

27

29

3

s

n1

n2

[Defined Area]0≤s≤50≤n1≤255, 0≤n2≤255[Function]

Processes the print end counter according to the s parameter.
This command is run when reading from the reception buffer.
s
Name
Function0
Print end counter reference
Sends the current print end counter to the host.
(Does not wait for print end. Does not count up.)1
Print end counter update
Runs the following operations.
(1) Prints data in line buffer, if data exists.
(2) Waits until printing ends (motor stops).
(3) Updates the print end counter (increments by 1).
(4) Sends print end counter to host.
2
Print end counter clear
Returns the print end counter to its default value (zeroclear).
(Does not wait for print end. Does not send the print end
counter to the host.)
3
Start document(1) Sets data intake mode
n1, n2 = 0(2) Initialize
4
End document(1) Prints data in line buffer, if data exists.
n1, n2 = 0(2) Waits until printing ends (motor stops).
(3) Cancels data intake mode
5
Data timeout setting
n1=0: Initializes to the content of Memory switch. (n2=0)
n1=1: Data timeout setting.
n2=0: Timeout disabled
Others:n2: Data timeout time (units: seconds 1 to 255 seconds)
n1=2: Sends the current timeout setting to the host. (n2=0)
The data formats sent to the host when s = 0 or s =1 are shown below.

<Returned Data Formats>
GS

ETX

s

n1

n2

[Print end counter]

NUL<1B>H <1D>H

ESC

<03>H

s

n1

n2

[Print end counter]00*Echoes back the specified contents from the host as is until ESC GS ETX s n1 n2, and then sends the print end
counter value and NUL.
When [Print end counter] is 1 byte in length, the initial value is 0x00.
When s = 1, increments by 1 each time the command is processed. After 0xFF, returns to 0x00.
There is one [Print end counter] in the printer that is unrelated to the n1, n2 values.
(There is no counter for the n1, n2 values.)

66

When s = 3, and s = 4 (Document start command + document end command), printer operates as though in data cancel mode.
If there is an error after receiving the document start command, reception data is received and discarded until the document
end command is received when the printer is recovered from the error.
If the document end command cannot be recognized, all reception data is destroyed. (Data intake mode)
Timeouts are 10 seconds. Automatically cancels the data intake mode.
[Restrictions](1) Throughput reduction.
(2) Erroneous printing occurs if the same data as the End command is contained in the raster data or bit image data.
(3) Invalid when in Page mode
In initialization processing when s = 3 is specified, initialization equivalent to <ESC> “@” is executed.

The interface disconnection detection function through data reception timeout is controlled when s=5 is specified.
When this function is enabled, the interface is determined to have been disconnected when no data is received for a
specified period of time at the data read section of the printer.
When a disconnection is detected during a command execution, the command parsing is stopped.

67

ESC GS ) I pL pH fn d1 d2[Name][Code]

Transmit all types of multibyte fonts
ASCII

ESC

GS

)

I

pL

pH

fn

d1

d2

HEX

1B

1D

29

49

pL

pH

fn

d1

d2

DEC

27

29

41

73

pL

pH

fn

d1

d2

[Defined Area]

pL=3, pH=0
fn=48
d1=0, d2=0

[Function] Transmits all types of multibyte fonts installed in the printer.
Information is transmitted in the following format:
ESC GS ) I pL pH fn k1 k2 [font type 1, font type 2, ･･･ ] LF NUL
k1 and k2 indicate the number of data bytes (k1 + k2 * 256) transmitted after the multibyte font type.
When two or more multibyte fonts are installed, the fonts are transmitted separated by a separator (2Ch).
The multibyte font type is transmitted as a character string.
Japanese“KANJI JAPANESE”

Simplified Chinese GB2312“GB2312 CHINA GB2312”

Simplified Chinese GB18030“GB18030 CHINA GB18030”

Simplified Chinese BIG5

“BIG5 TAIWAN BIG-5”

Korean“KOREA C-5601C”

As the standard specification does not have multi-byte fonts, the following data is sent.
ESC, GS, ), I, <03>H, 00, 48, <02>H, 00, <0A>H, 00

68

ESC GS ) I pL pH fn[Name]

Transmit printer information[Code]

ASCII

ESC

GS

)

I

pL

pH

fn

HEX

1B

1D

29

49

pL

pH

fn

DEC

27

29

41

73

pL

pH

fn

[Defined Area]

pL=1, pH=0
fn=49

[Function]

Transmits printer information to the printer.
Information is transmitted in the following format:
ESC GS ) I pL pH fn [Tag Name = parameter, Tag Name = parameter,･･･ ] LF NUL
The top of each parameter is accompanied by a tag name, and a parameter corresponding to each tag name istransmitted.
The tag name is up to the equal sign '='. After that, it will be parameters.
Each tag and parameter set are separated by the delimiters ',' <2CH>.
LF and NUL indicate the end. From then on, the tag and its parameters are not sent.
Tag Name

Information Type

Parameter

PrHwV

Printer Unit Version

In the case of Ver 1.00.00: “1.00.00”

PrSrN

Product serial number

16 digits fixed length.
If not registered: “0000000000000000”

Example: HW Ver = 1.00.00 S/No=1234567890123456
ESC, GS, ), I, <01>H, 00, 49, “PrHwV=1.00.00,PrSrN=1234567890123456”, LF, NUL

69

16. Print Settings

ESC RS d n[Name]

Set print density[Code]

ASCII

ESC

RS

d

n

HEX

1B

1E

64

n

27

30

100

n

DEC
[Defined Area]0≤n≤3, 48≤n≤51(‘0’≤n≤‘3’)[Initial Value]

Memory switch setting[Function]

Sets print density.
This command executes after stopping the printing operation.
n
0, 48
1, 49
2, 50
3, 51

Print Density+3+2+1Standard

ESC RS r n[Name]

Set print speed[Code]

ASCII

ESC

RS

HEX

1B

DEC

27

r

n

1E

72

n

30

114

n

[Defined Area]0≤n≤7, 48≤n≤55(‘0’≤n≤‘7’)[Initial Value]

Memory switch setting[Function]

Sets print speed.
This command executes after stopping the printing operation.
<SK1-211, SK1-221, SK1-311, SK1-321, SK5-31 series>
N
Print Speed
0, 48250mm/sec
1, 49
190mm/sec
2, 50
110mm/sec
3, 51
220mm/sec
4, 52
200mm/sec
5, 53
170mm/sec
6, 54
150mm/sec
7, 55
130mm/sec<SK1-41 series>
N
0, 48
1, 49
2, 50
3, 51
4, 52
5, 53
6, 54
7, 55

Print Speed
150mm/sec(Reserved)
110mm/sec(Reserved)(Reserved)(Reserved)
150mm/sec
130mm/sec

70

17. UTF Command

ESC GS ) U pL pH fn m (fn = 48)[Name]

Select UTF-8 code

[Code]

ASCII

ESC

GS

)

U

pL

pH

fn

m

HEX

1B

1D

29

55

pL

pH

fn

m

27

29

41

85

pL

pH

fn

m

DEC
[Defined Area]

pL = 2, pH = 0
fn = 48m = 0, 1[Initial Value]

m=0[Function]

Select UTF-8 code
Specify validity / invalidity of UTF-8
m0
1

Contents
UTF-8 invalid
UTF-8 valid (1byte ANK Character)7118. Black MarkThe 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

HEX

1B

64

n

DEC

27

100

n

[Defined Area]0≤n≤3, 48≤n≤51[Function] Executes the auto-cutter.
After auto-cutter is executed, the printer considers that to be the top of the page.
Print data in line buffer is printed before a cut.
n = 2, 50 or 3, 51 is a parameter whose operation is switched when the black mark is valid.
nContents

0, 48

Full cut at the current position.

1, 49Partial cut at the current position.

2, 50

After executing top of form, paper is fed to cutting position, then a full cut.

3, 51

After executing top of form, paper is fed to cutting position, then a partial cut.

When presenter is connected, cutting is executed by changing the partial-cut to full-cut.

FF[Name]

Execute top of form

[Code]

ASCII

FF

HEX

0C

DEC

12

[Function] Executes top of form.

ESC C n[Name]

Set page length to n line

[Code]

ASCII

ESC

C

n

HEX

1B

43

n

27

67

n

DEC
[Defined Area]1≤n≤127[Initial Value]

n=42[Function]

When black mark is effective, this command is ignored.

72

19. Presenter Related Command Details
The following commands control for the presenter functions.
The following commands are the effective only on models equipped with a presenter.

ESC SYN 0 n[Name]

Execute presenter paper recovery[Code]ASCIIESC SYN

0 n

HEX

1B

16

30 n

DEC

27

22

48 n

[Defined Area][Function]n=0, 48 (‘0’)

Execute presenter paper recovery
This command is ignored when a presenter is not connected.
Also, this command is executed when paper is supplied by the presenter, exists in the presenter and the paper
has been cut. This command is ignored with under all other conditions. (Ignored when paper is being recovered.)

ESC SYN 1 n[Name]

Set presenter paper automatic recovery function and automatic recovery time

[Code]ASCIIESC SYN

1 n

HEX

1B

16

31 n

DEC

27

22

49 n

[Defined Area]0≤n≤255[Initial Value]

Memory switch setting[Function]

Sets presenter paper automatic recovery function and automatic recovery time.
This command is ignored when a presenter is not connected.
The setting by this command is effective at idle time.
Settings using this command are effective from the next sheet when the printer processes this command andpaper has already been supplied to the presenter.
n01≤n≤255

Contents
Paper automatic recovery function invalid.
Paper automatic recovery function valid.
Automatic recovery time: n x 0.5 sec (0.5 sec to 127.5 sec)

73

ESC SYN 2 n[Name]

Set presenter operation mode

[Code]ASCIIESC SYN

2 n

HEX

1B

16

32 n

DEC

27

22

50 n

[Defined Area]0≤n≤4[Initial Value]

Memory switch setting[Function]

Set presenter operation modeThis command is ignored when a presenter is not connected.
The setting by this command is effective at idle time.
Settings using this command are effective from the next sheet when the printer processes this command andpaper has already been supplied to the presenter.
n
0
1
2
3
4

Contents
Stored in device (loop effective) → Wait for discharge paper → Recovered in device
Stored in device (loop effective) → Wait for discharge paper → Discharged
Stored in device invalid (loop invalid) → Wait for discharge paper → Recovered in device
Stored in device invalid (loop invalid) → Wait for discharge paper → Discharged
Stored in device invalid (loop invalid) → Discharged

ESC SYN 3 n[Name]

Acquire presenter paper counter[Code]ASCIIESC SYN

3 n

HEX

1B

16

33 n

DEC

27

22

51 n

[Defined Area]n = 0, 1, 48, 49 (‘0’,‘1’)[Initial Value]---[Function] Acquires presenter paper counter.
n
0, 48
1, 49

Contents
Acquires paper reel counter
Acquires paper recovery counter

This command is ignored when a presenter is not connected.
Counter can count to 0xFFFFFFFF sheets.
Counter is cleared to zero when the following conditions are met.
• At a printer reset• At the <CAN> command• At the <ESC> <SYN> 4 n command
The paper counter using this command sends the counter value at the time this command is processed.
<Counter transmission format from printer: When using the paper reel counter>
Printer transmission : ESC

SYN

3

n c1 c2 c3 c4<1B>H, <16>H, <33>H, 00, c1 c2 c3 c4Reel counter: c4 + (c3 x 256) + (c2 x 256 x 256) + (c1 x 256 x 256 x256)

The counter is counted up when paper is completely recovered or when pulled out.
The counter counts from when the power is turned ON, excluding the following.
• When paper is discharged because of an error• When printing using self-print• When paper in the presenter is discharged when the power is turned ON

74

ESC SYN 4 n[Name]

Initialize presenter paper counter[Code]

ASCII

ESC

SYN

4 n

HEX

1B

16

34 n

DEC

27

22

52 n

[Defined Area]

n=0[Initial Value]---[Function]

Initializes the presenter paper counter (paper reel counter/paper recovery counter).
Initialization of the paper counter using this command is executed when this command is processed.

ESC GS SUB DC3 m t1 t2[Name]

Directly execute the operation of the Presenter LED.

[Code]

ASCII

ESC

HEX
DEC
[Defined Area]

GS

SUB

DC3 m

t1

t2

1B

1D

1A

13

m

t1

t2

27

29

26

19

m

t1

t2

1≤m≤2, 49≤m≤50 (‘1’≤m≤‘2’)0≤t1≤255, 0≤t2≤255[Initial Value]---[Function] Directly execute the operation of the red and green (blue) LEDs of the Presenter LED it.
m
1, 49
2, 50

Contents
Green(Blue)LED
Red LEDt1 specifies the ON time for the Presenter LED output.
When 1 ≤ t1 ≤ 255: ON time = t1 x 100 msec
When t1 = 0: When ON time is default value
t2 specifies the OFF time for the Presenter LED output.
When 0 ≤ t2 ≤ 255: OFF time = t2 x 100 msec
When t2 = 0: When OFF time is default value
This command has priority if received while outputting the Presenter LED in the operation mode specified by the<ESC><GS><SUB><DC1> m t1 t2 command.
Only one of the LEDs can be executed. (Cannot simultaneously light green (blue) -red LED)75

20. Bezel Related Command Details
The following commands control for the bezel functions.
The following commands are the effective only on models equipped with a bezel.
<SK1-211, SK1-221, SK1-311, SK1-321 series>
Bezel related command is available with firmware version 1.1 or higher.

ESC SYN DC1 n[Name]

Set Bezel function mode

[Code]ASCIIESC SYN DC1 n

HEX

1B

16

11 n

DEC

27

22

17 n

[Defined Area]n = 0, 1, 255[Initial Value]

Memory switch setting[Function]

Specify the Bezel function mode by selecting n parameter.
m
0
1
255

Bezel Function Mode
Invalid
Valid
Memory switch setting

・Models without bezel ignore 4 bytes.
・This setting is not cleared by ESC @ command・If the paper is already fed into the bezel inside when this command is processed, this setting becomes effectivefrom next printing.

ESC SYN DC2 n[Name]

Set Bezel guide[Code]ASCIIESC SYN DC2 n

HEX

1B

16

12 n

27

22

18 n

DEC
[Defined Area]n = 0, 1, 255[Initial Value]

Memory switch setting[Function]

Specify the Bezel guide by selecting n parameter.
m
0
1
255

Bezel guide
Invalid
Valid
Memory switch setting

・When the setting is enabled, the printer operation is as follows.
When paper cut is performed by either of timeout (Printer does not receive a cut command for 10 seconds ormore after printing) or paper cut performed by paper cut command,
printer automatically feeds the paper up to 60mm paper length and then the printer performs a paper cut.
・For the operation when the setting is disabled, even if the paper is feed for 60mm or less, the cut is executedwithout the paper feed correction.
・This setting is not cleared by ESC @ command・If the paper is already fed into the bezel inside when this command is processed, this setting becomes effectivefrom next printing.

76

ESC SYN DC3 n[Name]

Set Bezel Hold Print[Code]ASCIIESC SYN DC3

n

HEX

1B

16

13

n

DEC

27

22

19

n

[Defined Area]n = 0 (‘0’), 1(‘1’), 255[Initial Value]

Memory switch setting[Function]

Specify the Bezel hold print by selecting n parameter.
m
0, 48
1, 49
255

Bezel guide
Invalid
Valid
Memory switch setting・Operation when the setting is enabled:
When the status of bezel paper detection sensor is no paper, it is possible to print the following data.
When there is a paper, the next data is on held until the bezel paper detection sensor detects "no paper",and the data held is printed after paper pulled out.
・Operation when the setting is disabled:
The following data can be printed regardless of the status of bezel paper detection sensor.
・This setting is not cleared by ESC @ command・When this command is processed, in case printer has print data in the image buffer, this command is processed
after the print data is performed.

ESC SYN DC4 n[Name][Code]

Set Bezel Paper StatusASCII

ESC SYN DC4

n

HEX

1B

16

14

n

27

22

1A

n

DEC
[Defined Area]n = 0 (‘0’), 1(‘1’), 255[Initial Value]

Memory switch setting[Function]

Specify the Bezel paper status by selecting n parameter.
m
0, 48
1, 49
255

Bezel guide
Invalid
Valid
Memory switch setting・Operation when the setting is enabled:
The condition of bezel paper detection sensor is responded with the status.
The update timing is made during standby of printer or after completing the paper cut.
・Operation when the setting is disabled:
The condition of the bezel paper detection sensor always responds with the status of “No paper”.
・This setting is not cleared by ESC @ command・When this command is processed, in case there is unprinted data in the image buffer, this command is processed
after carrying out the printing.

77

ESC GS ) s pl ph fn m[Name]

Transmits the information of bezel installed in the printer.

[Code]

ASCII

ESC

GS

)

s

pL

pH

fn

m

HEX

1B

1D

29

73

pL

pH

fn

m

DEC

27

29

41

115

pL

pH

fn

m

[Defined Area]

pL=2, pH=0, fn=48, m=1[Function] Transmits the information of bezel installed in the printer.
Information is transmitted in the following format:
ESC GS ) s pL pH fn n m LF NUL
n01

Bezel installed information
No installation
InstallationpL and pH indicate the number of data bytes (pL + pH * 256) transmitted after the bezel installation.
In the standard specification with bezel, the following data is sent.
ESC, GS, ), s, <02>H, 00, 48, 01(Installation), 01(m), <0A>H, 00
When parameters outside the definition range are received, the reply format for models that do not support thebezel is as follows.
ESC, GS, ), s, 00, 00, fn, <0A>H, 00

78

21. LED (Presenter / Bezel) Command Details<SK1-211, SK1-221, SK1-311, SK1-321, SK5-31 series>
The following commands are the effective only on models equipped with a LED Presenter or LED bezel.

ESC GS SUB DC1 m t1 t2[Name][Code]

Specify Presenter / Bezel LED operation mode
ASCII

ESC GS

SUB

DC1

m

t1

t2

HEX

1B

1D

1A

11

m

t1

t2

DEC

27

29

26

17

m

t1

t2

Version 1.1 or higher has the following specifications.
[Defined Area]0≤m≤4, 48≤m≤51 (‘0’≤m≤‘4’)
t1= 0, t2 = 0[Initial Value]

Memory switch setting[Function]

Specify the Presenter / Bezel LED operation mode using the m parameter.
m
0, 48
1, 49
2, 50
3, 51
4, 52

Presenter / Bezel LED Operating Mode
Presenter / Bezel LED output OFF
Presenter / Bezel LED output ON(while printing, or there is paper in the presenter / bezel.)
Presenter / Bezel LED output ON (during an error)
Presenter / Bezel LED output ON(while printing, or there is paper in the presenter / bezel or during an error)
Presenter / Bezel LED output ON(while printing, or there is paper in the presenter / bezel or during an error or printer Idle)

Version 1.0 has the following specifications.
[Defined Area]0≤m≤3, 48≤m≤51 (‘0’≤m≤‘3’)
t1= 0, t2 = 0[Initial Value]

Memory switch setting[Function]

Specify the Presenter LED operation mode using the m parameter.
m
0, 48
1, 49
2, 50
3, 51

Presenter LED Operating Mode
Presenter LED output OFF
Presenter LED output ON (while printing, or during presenter operation)
Presenter LED output ON (during an error)
Presenter LED output ON (while printing, or during presenter operation or an error)

79

ESC GS SUB DC2 m t1 t2[Name]

Specify the Presenter / Bezel LED ON/OFF[Code]ASCIIESC GS

SUB

DC2

m

t1

t2

HEX

1B

1D

1A

12

m

t1

t2

DEC

27

29

26

18

m

t1

t2

Version 1.1 or higher has the following specifications.
[Defined Area]1≤m≤3, 49≤m≤51 (‘1’≤m≤‘3’)0≤t1≤255, 0≤t2≤255[Initial Value]

t1=1, t2=1 (at m=1, 2)
t1=1, t2=0 (at m=3)

[Function]

Specify the Presenter / Bezel LED ON/OFF times.
m
1, 49
2, 50
3, 51

Status of the printer and Presenter / Bezel paper sensor
This command specifies the LED ON/OFF times to blink green (blue) while existing paper
in presenter / bezel. While printing, the LED lights green (blue)
This command specifies the LED ON/OFF times to blink red for recoverable andnon-recoverable.
This command specifies the LED ON/OFF times to blink green (blue) while printer Idle.

t1 specifies the LED unit ON time.
When 1 ≤ t1 ≤ 255: ON time = t1 x 100 msec
t2 specifies the LED unit OFF time.
When 1 ≤ t2 ≤ 255: OFF time = t2 x 100 msec
In case of “t1=0, t2≠0” or “t1=0, t2=0”, the presenter/bezel LED is turned off.
In case of “t1≠0”, “t2=0”, the presenter/bezel LED is turned on.
Only one of the LEDs can be executed. (Cannot simultaneously light green (blue) - red LED)

Version 1.0 has the following specifications.
[Defined Area]1≤m≤2, 49≤m≤50 (‘1’≤m≤‘2’)0≤t1≤255, 0≤t2≤255[Initial Value][Function]

t1=1, t2=1
Specify the Presenter LED ON/OFF times.
m
1, 49
2, 50

Presenter LED Operating Mode
This command specifies the LED ON/OFF times while the presenter is operating.
*LED lights green (blue)
This command specifies the LED ON/OFF times for recoverable and non-recoverable
errors.
*LED lights red

t1 specifies the LED unit ON time.
When 1 ≤ t1 ≤ 255: ON time = t1 x 100 msec
When t1 = 0: When ON time is default value
t2 specifies the LED unit OFF time.
When 1 ≤ t2 ≤ 255: OFF time = t2 x 100 msec
When t2 = 0: When OFF time is default value
Only one of the LEDs can be executed. (Cannot simultaneously light green (blue) -red LED)80

22. Network Commands<SK5-31 series>

ESC GS ) N pL pH fn [parameter][Name]

Set network parameters[Code]ASCIIESC GS)pLpH

fn [parameter]

HEX

1B

1D

29 4E pLpH

fn [parameter]

DEC

27

29

41 78 pLpH

fn [parameter][Function]N

Executes actions related to the network parameter.
・With "pL" and "pH", the parameter count after "fn" is specified to (pL + pH x 256) bytes.
・For [parameter], see the specification by function.

Some functions require login, and some require login password change.
fn

Code

Function48
ESC GS ) N pL pH fn m n
Set acquisition method for IP address
49
ESC GS ) N pL pH fn m d1 d2 d3 d4
Set IP Address
50
ESC GS ) N pL pH fn m d1 d2 d3 d4
Set subnet mask
51
ESC GS ) N pL pH fn m d1 d2 d3 d4
Set default gateway
52
ESC GS ) N pL pH fn m n
Set DHCP Timeout
54
ESC GS ) N pL pH fn m n1 n2
Set 9100 Data Timeout
58
ESC GS ) N pL pH fn m d1 d2 d3 d4
Set DNS 159
ESC GS ) N pL pH fn m d1 d2 d3 d4
Set DNS 264
ESC GS ) N pL pH fn m
Transmit acquisition method for IP address
65
ESC GS ) N pL pH fn m
Send IP Address
66
ESC GS ) N pL pH fn m
Send subnet mask
67
ESC GS ) N pL pH fn m
Send default gateway
68
ESC GS ) N pL pH fn m
Send DHCPTimeout
70
ESC GS ) N pL pH fn m
Send 9100 Data Timeout
74
ESC GS ) N pL pH fn m
Send DNS 1
75
ESC GS ) N pL pH fn m
Send DNS 280
ESC GS ) N pL pH fn m n
Set TCP#9100（Valid only）
81
ESC GS ) N pL pH fn m
Send TCP#9100
82
ESC GS ) N pL pH fn m n
Set TCP#9101（Valid only）
83
ESC GS ) N pL pH fn m
Send TCP#9101
84
ESC GS ) N pL pH fn m n
Set LPR（Valid only）
85
ESC GS ) N pL pH fn m
Send LPR86
ESC GS ) N pL pH fn m n
Set UDP#22222（Valid only）
87
ESC GS ) N pL pH fn m
Send UDP#22222
112 ESC GS ) N pL pH fn m n
Save network parameters
113 ESC GS ) N pL pH fn m nInitialize network parameters
114 ESC GS ) N pL pH fn m d1 ... dk
Execute login
115 ESC GS ) N pL pH fn m
Send login status
116 ESC GS ) N pL pH fn m n
Execute logout
128 ESC GS ) N pL pH fn m d1 ... dk
Set login password
129 ESC GS ) N pL pH fn m
Send login password change status*1: For details, refer to the relevant specification for each function.

Login

Login password
changeNot necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Necessary
Necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Necessary
Necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary*1*1
Not necessary
Not necessary
Necessary
Necessary
Necessary

Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Necessary
Necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Necessary
Necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary*1*1
Not necessary
Not necessary
Not necessary
Not necessary
Not necessary81The following shows an example of actual command transmission.
Example 1: When setting a network parameter that does not require loginfn
Host transmission data
Printer response data64

ESC GS ) N 0x02 0x00 0x40 0x01
ESC GS ) N 0x02 0x00 0x40 0x01
0x00 LF NUL

65

ESC GS ) N 0x02 0x00 0x41 0x01
ESC GS ) N 0x02 0x00 0x41 0x01
0x00 0x00 0x00 0x00 LF NUL66

ESC GS ) N 0x02 0x00 0x42 0x01
ESC GS ) N 0x02 0x00 0x42 0x01
0x00 0x00 0x00 0x00 LF NUL67

ESC GS ) N 0x02 0x00 0x43 0x01
ESC GS ) N 0x02 0x00 0x43 0x01
0x00 0x00 0x00 0x00 LF NUL68

ESC GS ) N 0x02 0x00 0x44 0x01
ESC GS ) N 0x02 0x00 0x44 0x01
0x01 LF NUL70

ESC GS ) N 0x02 0x00 0x46 0x01
ESC GS ) N 0x02 0x00 0x46 0x01
0x00 LF NUL48

ESC GS ) N 0x03 0x00 0x30 0x01 0x01

49
50
51
52
54
112

ESC GS ) N 0x06 0x00 0x31 0x01 0xC0 0xA8 0x01 0x0A
ESC GS ) N 0x06 0x00 0x32 0x01 0xFF 0xFF 0xFF 0x00
ESC GS ) N 0x06 0x00 0x33 0x01 0xC0 0xA8 0x01 0xFE
ESC GS ) N 0x03 0x00 0x34 0x01 0x00
ESC GS ) N 0x03 0x00 0x36 0x01 0x1E 0x00
ESC GS ) N 0x03 0x00 0x70 0x01 0x00

"Sending IP Address Acquisition Method"
Send command
Setting value of acquisition method of
IPAddress. Return "DHCP""Sending IP Address"
Send command
IP Address setting value
Return "0.0.0.0""Subnet Mask transmission"
Send command
Subnet Mask setting value
Return "0.0.0.0""Send Default Gateway"
Send command
Default Gateway setting value
Return "0.0.0.0""Send DHCP Timeout"
Send command
DHCP Timeout setting value
Return "Valid""Sending 9100 Data Timeout"
Send command
9100 Data Timeout setting value
Return “0 Sec.”Set IP Address acquisition method to"Static"
Set IP Address to "192.168.1.10"
Set Subnet Mask to "255.255.255.0"
Set Default Gateway to "192.168.1.254"
Set DHCPTimeout setting to "Invalid"Set 9100 Data Timeout setting to "30 Sec."
Save the above settings

Example 2: When setting a network parameter that requires loginfn
Host transmission data
Printer response data
114
115

ESC GS ) N 0x08 0x00 0x72 0x01 0x70 0x75 0x62 0x6C
0x69 0x63
ESC GS ) N 0x02 0x00 0x73 0x01
ESC GS ) N 0x02 0x00 0x73 0x01
0x01 LF NUL129

ESC GS ) N 0x02 0x00 0x81 0x01
ESC GS ) N 0x02 0x00 0x81 0x01
0x00 LF NUL

128
112

ESC GS ) N 0x0A 0x00 0x80 0x01 0x61 0x62 0x63 0x64
0x31 0x32 0x33 0x34
ESC GS ) N 0x03 0x00 0x70 0x01 0x00

Execute Login
Default password “public”“Send Login Status”
Send command
Return “Logged In”“Send Login Password Change Status”
Send command
Return “Login Password Not Changed”
Set login password to “abcd1234”
Save the above settings.

82

<Function 48>ESC GS ) N pL pH fn m n (fn=48)[Name][Code]

Set acquisition method for IP address
ASCII ESC GS )N pL pH fn
HEX
1B 1D 29 4E pL pH fn

m
m

n
n

DEC

m

n

[Defined Area]

27

29

41 78 pLpH

fn

pL = 3, pH = 0
fn = 48m = 1（Added description）
n = 0, 1[Initial Value]

n=0[Function]

Sets the acquisition method for IP address.

[Details]"n" specifies the acquisition method for IP address.
n
IP address acquisition method
0
DHCP
1
StaticWhen n = 0 is specified, the following settings are initialized.
ESC GS ) N (fn=49)

Set IP address

ESC GS ) N (fn=50)

Set subnet mask

ESC GS ) N (fn=51)

Set default gateway

The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

<Function 49>ESC GS ) N pL pH fn m d1 d2 d3 d4 (fn=49)[Name]

Set IP Address[Code]ASCIIESC GS

)

pL

pH

fn

m

d1

d2

d3

d4

HEX

1B

1D

29 4E pL

pH

fn

m

d1

d2

d3

d4

27

29

41 78 pL

pH

fn

m

d1

d2

d3

d4

DEC
[Defined Area]N

pL = 6, pH = 0
fn = 49m=10≤d1≤255, 0≤d2≤255, 0≤d3≤255, 0≤d4≤255[Initial Value]

d1 = 0, d2 = 0, d3 = 0, d4 = 0[Function]

Set IP Address.
d1, d2, d3, and d4 specifies the IP address.
Example: When setting the IP address to 192.168.1.10
d1 = 192, d2 = 168, d3 = 1, d4 = 10
This command becomes valid only when n=1 (Static) is set by ESC GS ) N (fn=48).
The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

83

<Function 50>ESC GS ) N pL pH fn m d1 d2 d3 d4 (fn=50)[Name]Set Subnet Mask

[Code]ASCIIESC GS

)

pL

pH

fn

m

d1

d2

d3

d4

HEX

1B

1D

29 4E pL

pH

fn

m

d1

d2

d3

d4

DEC

27

29

41 78 pL

pH

fn

m

d1

d2

d3

d4

[Defined Area]N

pL = 6, pH = 0
fn = 50m=10≤d1≤255, 0≤d2≤255, 0≤d3≤255, 0≤d4≤255[Initial Value]

d1 = 0, d2 = 0, d3 = 0, d4 = 0[Function]

Sets the Subnet Mask
d1, d2, d3, and d4 specifies the Subnet Mask.
Example: When setting the Subnet Mask to 255.255.255.0
d1 = 255, d2 = 255, d3 = 255, d4 = 0
This command becomes valid only when n=1 (Static) is set by ESC GS ) N (fn=48).
The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

<Function 51>ESC GS ) N pL pH fn m d1 d2 d3 d4 (fn=51)[Name]

Set Default Gateway[Code]ASCIIESC GS

)

pL

pH

fn

m

d1

d2

d3

d4

HEX

1B

1D

29 4E pL

pH

fn

m

d1

d2

d3

d4

27

29

41 78 pL

pH

fn

m

d1

d2

d3

d4

DEC
[Defined Area]N

pL = 6, pH = 0
fn = 51m=10≤d1≤255, 0≤d2≤255, 0≤d3≤255, 0≤d4≤255[Initial Value]

d1 = 0, d2 = 0, d3 = 0, d4 = 0[Function]

Sets the Default Gateway
d1, d2, d3, and d4 specifies the Default Gateway.
Example: When setting the Default Gateway to 192.168.1.254
d1 = 192, d2 = 168, d3 = 1, d4 = 254
This command becomes valid only when n=1 (Static) is set by ESC GS ) N (fn=48).
The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

84

<Function 52>ESC GS ) N pL pH fn m n (fn=52)[Name][Code]

Set DHCP Timeout
ASCII ESC GS )N pL
HEX
1B 1D 29 4E pL

pH
pH

fn
fn

m
m

n
n

DEC

pH

fn

m

n

[Defined Area]

27

29

41 78 pL

pL = 3, pH = 0
fn = 52m=1
n = 0,1[Initial Value]

n=1[Function]

Set DHCP Timeout[Details]

n specifies the DHCP Timeout.
n
DHCP Timeout
0
Invalid1
Valid
The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

<Function 54>ESC GS ) N pL pH fn m n1 n2(fn=54)[Name][Code]

Set 9100 Data Timeout
ASCII ESC GS )N pL
HEX
1B 1D 29 4E pL

pH
pH

fn
fn

m
m

n1
n1

n2
n2

DEC

pH

fn

m

n1

n2

[Defined Area]

27

29

41 78 pL

pL = 4, pH = 0
fn = 54m=1
n = 0,30,40,60,120,180,300 ( n = n1 + n2x256 )[Initial Value]

n=0[Function]

Set 9100 Data Timeout[Details]n( n = n1 + n2x256 ) specifies the 9100 Data Timeout（Sec.）.
The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

85

<Function 58>ESC GS ) N pL pH fn m d1 d2 d3 d4 (fn=58)[Name]

Set DNS 1[Code]ASCIIESC GS

)

pL

pH

fn

m

d1

d2

d3

d4

HEX

1B

1D

29 4E pL

pH

fn

m

d1

d2

d3

d4

DEC

27

29

41 78 pL

pH

fn

m

d1

d2

d3

d4

[Defined Area]N

pL = 6, pH = 0
fn = 58m=1
0≦≤d1≤255, 0≤d2≤255, 0≤d3≤255, 0≤d4≤255[Initial Value]

d1 = 8, d2 = 8, d3 = 8, d4 = 8[Function]

Set DNS 1
d1, d2, d3, and d4 specifies the DNS 1.
Example: When setting the DNS 1 to 1.2.3.4
d1 = 1, d2 = 2, d3 = 3, d4 = 4This command is enabled only when logged in with ESC GS ) N (fn=114) and the login password waschanged with ESC GS ) N (fn=128).
The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

<Function 59>ESC GS ) N pL pH fn m d1 d2 d3 d4 (fn=59)[Name][Code]

Set DNS 2ASCIIESC GS

)

pL

pH

fn

m

d1

d2

d3

d4

HEX

1B

1D

29 4E pL

pH

fn

m

d1

d2

d3

d4

27

29

41 78 pL

pH

fn

m

d1

d2

d3

d4

DEC
[Defined Area]N

pL = 6, pH = 0
fn = 59m=10≤d1≤255, 0≤d2≤255, 0≤d3≤255, 0≤d4≤255[Initial Value]

d1 = 8, d2 = 8, d3 = 4, d4 = 4[Function]

Set DNS 2
d1, d2, d3, and d4 specifies the DNS 2.
Example: When setting the DNS 2 to 1.2.3.4
d1 = 1, d2 = 2, d3 = 3, d4 = 4This command is enabled only when logged in with ESC GS ) N (fn=114) and the login password waschanged with ESC GS ) N (fn=128).
The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

86

<Function 64>ESC GS ) N pL pH fn m (fn=64)[Name][Code]

Transmits the acquisition method for IP address.
ASCII ESC GS )N pL pH fn m
HEX
1B 1D 29 4E pL pH fn m
DEC[Defined Area]

27

29

41 78 pL

pH

fn

m

pL = 2, pH = 0
fn = 64m=1[Initial Value][Function]--Transmits the acquisition method for IP address.
The transmission is performed in the format below.
ESC GS ) N pL pH fn m n LF NULn
IP address acquisition method
0
DHCP
1
Static<Function 65>ESC GS ) N pL pH fn m (fn=65)[Name]

Send IP Address[Code]ASCIIHEX

ESC GS
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

DEC

27

41 78 pL

pH

fn

m

[Defined Area]

29

pL = 2, pH = 0
fn = 65m=1[Initial Value]---[Function]

Send IP Address
The transmission is performed in the format below.
ESC GS ) N pL pH fn m d1 d2 d3 d4 LF NULExample 1: When the IP address acquisition method is set to Static, and IP address is set to 192.168.1.10
d1 = 192, d2 = 168, d3 = 1, d4 = 10
Example 2: When the IP address acquisition method is set to DHCP, and IP address of 192.168.1.10 isalready acquired from the DHCP server
d1 = 192, d2 = 168, d3 = 1, d4 = 10
Example 3: When the IP address acquisition method is set to DHCP, and IP address could not be
acquired from the DHCP server
d1 = 0, d2 = 0, d3 = 0, d4 = 0

87

<Function 66>ESC GS ) N pL pH fn m (fn=66)[Name][Code]

Send Subnet Mask
ASCII ESC GS )N pL
HEX
1B 1D 29 4E pL

pH
pH

fn
fn

m
m

DEC

pH

fn

m

[Defined Area]

27

29

41 78 pL

pL = 2, pH = 0
fn = 66
m=1[Initial Value][Function]--Send Subnet Mask
The transmission is performed in the format below.
ESC GS ) N pL pH fn m d1 d2 d3 d4 LF NULExample 1: When the IP address acquisition method is set to Static, and Subnet Mask is set to255.255.255.0
d1 = 255, d2 = 255, d3 = 255, d4 = 0
Example 2: When the IP address acquisition method is set to DHCP, and Subnet Mask of 255.255.255.0 isalready acquired from the DHCP server
d1 = 255, d2 = 255, d3 = 255, d4 = 0
Example 3: When the IP address acquisition method is set to DHCP, and Subnet Mask could not be
acquired from the DHCP server
d1 = 0, d2 = 0, d3 = 0, d4 = 0<Function 67>ESC GS ) N pL pH fn m (fn=67)[Name][Code]

Send Default Gateway
ASCII ESC GS )N pL
HEX
1B 1D 29 4E pL

pH
pH

fn
fn

m
m

DEC

pH

fn

m

[Defined Area]

27

29

41 78 pL

pL = 2, pH = 0
fn = 67m=1[Initial Value][Function]--Send Default Gateway
The transmission is performed in the format below.
ESC GS ) N pL pH fn m d1 d2 d3 d4 LF NULExample 1: When the IP address acquisition method is set to Static, and Default Gateway is set to255.255.255.0
d1 = 255, d2 = 255, d3 = 255, d4 = 0
Example 2: When the IP address acquisition method is set to DHCP, and Default Gateway of
255.255.255.0 is already acquired from the DHCP server
d1 = 255, d2 = 255, d3 = 255, d4 = 0
Example 3: When the IP address acquisition method is set to DHCP, and Default Gateway could not be
acquired from the DHCP server
d1 = 0, d2 = 0, d3 = 0, d4 = 0

88

<Function 68>ESC GS ) N pL pH fn m (fn=68)[Name][Code]

Send DHCPTimeout
ASCII ESC GS )N pL
HEX
1B 1D 29 4E pL

pH
pH

fn
fn

m
m

DEC

pH

fn

m

[Defined Area]

27

29

41 78 pL

pL = 2, pH = 0
fn = 68m=1[Initial Value]---[Function]

Send DHCPTimeout
The transmission is performed in the format below.
ESC GS ) N pL pH fn m n LF NULn
DHCP Timeout
0
Invalid1
Valid<Function 70>ESC GS ) N pL pH fn m (fn=70)[Name]

Send 9100 Data Timeout[Code]ASCIIHEX

ESC GS
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

DEC

27

41 78 pL

pH

fn

m

[Defined Area]

29

pL = 2, pH = 0
fn = 70m=1[Initial Value]---[Function]

Send 9100 Data Timeout
The transmission is performed in the format below.
ESC GS ) N pL pH fn m n1 n2 LF NUL
n1 + ( n = n1 + n2x256 ) specifies the 9100 Data Timeout (Sec.).
Example 1: When the9100 data timeout method is set 300 Sec.
n1 = 44, n2 = 1

89

<Function 74>ESC GS ) N pL pH fn m (fn=74)[Name][Code]

Send DNS 1
ASCII ESC GS
HEX
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

DEC

41 78 pL

pH

fn

m

[Defined Area]

27

29

pL = 2, pH = 0
fn = 74m=1[Initial Value]---[Function]

Send DNS 1
The transmission is performed in the format below.
ESC GS ) N pL pH fn m d1 d2 d3 d4 LF NULExample: When setting the DNS 1 to 1.2.3.4
d1 = 1, d2 = 2, d3 = 3, d4 = 4This command is enabled only when logged in with ESC GS ) N (fn=114) and the login password waschanged with ESC GS ) N (fn=128).
At other times, transmission is performed in the format below.
ESC GS ) N pL pH fn m LF NUL<Function 75>ESC GS ) N pL pH fn m (fn=75)[Name][Code]

Send DNS 2
ASCII ESC GS
HEX
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

DEC

41 78 pL

pH

fn

m

[Defined Area]

27

29

pL = 2, pH = 0
fn = 75m=1[Initial Value]---[Function]

Send DNS 2
The transmission is performed in the format below.
ESC GS ) N pL pH fn m d1 d2 d3 d4 LF NULExample: When setting the DNS 2 to 1.2.3.4
d1 = 1, d2 = 2, d3 = 3, d4 = 4This command is enabled only when logged in with ESC GS ) N (fn=114) and the login password waschanged with ESC GS ) N (fn=128).
At other times, transmission is performed in the format below.
ESC GS ) N pL pH fn m LF NUL

90

<Function 80>ESC GS ) N pL pH fn m n (fn=80)[Name][Code]

Set TCP#9100
ASCII ESC GS
HEX
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

n
n

DEC

41 78 pL

pH

fn

m

n

[Defined Area]

27

29

pL = 3, pH = 0
fn = 80m=1
n = 0,1[Initial Value]

n=1[Function]

Set the TCP#9100[Details]

n specifies TCP#9100 setting.
*SK5-31 are fixed to valid.
n
TCP#91000Invalid1
Valid
The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

<Function 81>ESC GS ) N pL pH fn m (fn=81)[Name][Code]

Send TCP#9100
ASCII ESC GS
HEX
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

DEC

41 78 pL

pH

fn

m

[Defined Area]

27

29

pL = 2, pH = 0
fn = 81m=1[Initial Value]---[Function]

Send TCP#9100 setting.
The transmission is performed in the format below.
ESC GS ) N pL pH fn m n LF NULn
TCP#91000Invalid
1
Valid

91

<Function 82>ESC GS ) N pL pH fn m n (fn=82)[Name][Code]

Set TCP#9101
ASCII ESC GS
HEX
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

n
n

DEC

41 78 pL

pH

fn

m

n

[Defined Area]

27

29

pL = 3, pH = 0
fn = 82m=1
n = 0,1[Initial Value]

n=1[Function]

Set the TCP#9101[Details]

n specifies TCP#9101 setting.
*SK5-31 are fixed to valid.
n
TCP#91010Invalid1
Valid
The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

<Function 83>ESC GS ) N pL pH fn m (fn=83)[Name][Code]

Send TCP#9101
ASCII ESC GS
HEX
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

DEC

41 78 pL

pH

fn

m

[Defined Area]

27

29

pL = 2, pH = 0
fn = 83
m=1[Initial Value]---[Function]

Send TCP#9101 setting.
The transmission is performed in the format below.
ESC GS ) N pL pH fn m n LF NULn
TCP#91010Invalid
1
Valid

92

<Function 84>ESC GS ) N pL pH fn m n (fn=84)[Name][Code]

Set LPRASCII ESC GS
HEX
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

n
n

DEC

41 78 pL

pH

fn

m

n

[Defined Area]

27

29

pL = 3, pH = 0
fn = 84
m=1
n = 0,1[Initial Value]

n=1[Function]

Set the LPR[Details]

n specifies LPR setting.
*SK5-31 are fixed to valid.
n
LPR
0
Invalid1
Valid
The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

<Function 85>ESC GS ) N pL pH fn m (fn=85)[Name][Code]

Send LPRASCII ESC GS
HEX
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

DEC

41 78 pL

pH

fn

m

[Defined Area]

27

29

pL = 2, pH = 0
fn = 85m=1[Initial Value]---[Function]

Send LPR setting.
The transmission is performed in the format below.
ESC GS ) N pL pH fn m n LF NULn
LPR0Invalid
1
Valid

93

<Function 86>ESC GS ) N pL pH fn m n (fn=86)[Name][Code]

Set UDP#22222
ASCII ESC GS
HEX
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

n
n

DEC

41 78 pL

pH

fn

m

n

[Defined Area]

27

29

pL = 3, pH = 0
fn = 86m=1
n = 0,1[Initial Value]

n=1[Function]

Set the UDP#22222.

[Details]

n specifies UDP#22222 setting.
*SK5-31 are fixed to valid.
n
UDP#22222
0Invalid1
Valid
The setting of this command is stored in the nonvolatile memory by ESC GS ) N (fn=112), and will bereflected to the operation after a hardware reset is executed.

<Function 87>ESC GS ) N pL pH fn m (fn=87)[Name][Code]

Send UDP#22222
ASCII ESC GS )N pL
HEX
1B 1D 29 4E pL

pH
pH

fn
fn

m
m

DEC

pH

fn

m

[Defined Area]

27

29

41 78 pL

pL = 2, pH = 0
fn = 87m=1[Initial Value]---[Function]

Send UDP#22222 setting.
The transmission is performed in the format below.
ESC GS ) N pL pH fn m n LF NULn
UDP#22222
0Invalid
1
Valid

94

<Function 112>ESC GS ) N pL pH fn m n (fn=112)[Name][Code]

Save network parameter
ASCII ESC GS )N pL
HEX
1B 1D 29 4E pL

pH
pH

fn
fn

m
m

n
n

DEC

pH

fn

m

n

[Defined Area]

27

29

41 78 pL

pL = 3, pH = 0
fn = 112m=1
n = 0,1[Initial Value]---[Function]

In the cases above, the network parameter set by the command below is stored in the nonvolatile memory,and a hardware reset is executed.
ESC GS ) N (fn=48)

Set acquisition method for IP address

ESC GS ) N (fn=49)

Set IP Address

ESC GS ) N (fn=50)

Set Subnet Mask

ESC GS ) N (fn=51)

Set Default Gateway

ESC GS ) N (fn=52)

Set DHCPTimeout

ESC GS ) N (fn=54)

Set 9100 Data Timeout

ESC GS ) N (fn=58)

Set DNS 1 *1

ESC GS ) N (fn=59)

Set DNS 2 *1

ESC GS ) N (fn=80)

Set TCP#9100

ESC GS ) N (fn=82)

Set TCP#9101

ESC GS ) N (fn=84)

Set LPR

ESC GS ) N (fn=86)

Set UDP#22222

ESC GS ) N (fn=128) Set log in password *1*1 : Saved only when logged in with ESC GS ) N (fn=114) and the login password was changed with
ESC GS ) N (fn=128).
After this command was sent, the next data must not be sent until the printer becomes online (becomesable to receive data).
"n" specifies whether or not the self print is performed after the hardware reset.
N
Self print after hardware reset0
Without self print
1
With self print

95

<Function 113>ESC GS ) N pL pH fn m n (fn=113)[Name][Code]

Initialize network parameter
ASCII ESC GS )N pL
HEX
1B 1D 29 4E pL

pH
pH

fn
fn

m
m

n
n

DEC

pH

fn

m

n

[Defined Area]

27

29

41 78 pL

pL = 3, pH = 0
fn = 113
m=1
n = 0,1[Initial Value]---[Function]

Initializes the network parameter stored in the nonvolatile memory, and executes a hardware reset.
ESC GS ) N (fn=48)

Set acquisition method for IP address

ESC GS ) N (fn=49)

Set IP Address

ESC GS ) N (fn=50)

Set Subnet Mask

ESC GS ) N (fn=51)

Set Default Gateway

ESC GS ) N (fn=52)

Set DHCPTimeout

ESC GS ) N (fn=54)

Set 9100 Data Timeout

ESC GS ) N (fn=58)

Set DNS 1 *1

ESC GS ) N (fn=59)

Set DNS 2 *1

ESC GS ) N (fn=80)

Set TCP#9100

ESC GS ) N (fn=82)

Set TCP#9101

ESC GS ) N (fn=84)

Set LPR

ESC GS ) N (fn=86)

Set UDP#22222

ESC GS ) N (fn=128) Set log in password *1*1 : Initialized only when logged in with ESC GS ) N (fn=114) and the login password was changed with
ESC GS ) N (fn=128).
"n" specifies whether or not the self print is performed after the hardware reset.
nSelf print after hardware reset0
Without self print
1
With self print96

<Function 114>ESC GS ) N pL pH fn m d1 ... dk (fn=114)[Name][Code]

Execute Login
ASCII ESC GS
HEX
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

d1 ... dk
d1 ... dk

DEC

41 78 pL

pH

fn

m

d1 ... dk[Defined Area]

27

29

3≤pL＋pH×256 = k＋2≤33
fn = 114m=1
k = (pL＋pH×256)32≤d≤126[Initial Value]---[Function]

Execute login.
d1 ... dk specifies the login password.
Example: When specifying password “abcd1234”
d1 = 97(0x61), d2 = 98(0x62), d3 = 99(0x63), d4 = 100(0x64), d5 = 49(0x31), d6 = 50(0x32),
d7 = 51(0x33), d8 = 52(0x34)
Depending on the function, the network parameter setting command may be enabled only when logged in.
For details, refer to the network parameter setting command.

<Function 115>ESC GS ) N pL pH fn m (fn=115)[Name][Code]

Send Login Status
ASCII ESC GS )N pL
HEX
1B 1D 29 4E pL

pH
pH

fn
fn

m
m

DEC

pH

fn

m

[Defined Area]

27

29

41 78 pL

pL = 2, pH = 0
fn = 115m=1[Initial Value][Function]--Send Login Status.
The transmission is performed in the format below.
ESC GS ) N pL pH fn m n LF NULnLogin status0
Not logged in
1
Logged in97

<Function 116>ESC GS ) N pL pH fn m n (fn=116)[Name][Code]

Execute Logout
ASCII ESC GS
HEX
1B 1D

)
N pL
29 4E pL

pH
pH

fn
fn

m
m

n
n

DEC

41 78 pL

pH

fn

m

n

[Defined Area]

27

29

pL = 3, pH = 0
fn = 116m=1
n=0[Initial Value]---[Function]

Execute Logout.
This command is enabled only when logged in with ESC GS ) N (fn=114).
Depending on the function, the network parameter setting command may be enabled only when logged in.
For details, refer to the network parameter setting command.

98

<Function 128>ESC GS ) N pL pH fn m d1 ... dk (fn=128)[Name][Code]

Set Login Password
ASCII ESC GS )N pL
HEX
1B 1D 29 4E pL

pH
pH

fn
fn

m
m

d1 ... dk
d1 ... dk

DEC

pH

fn

m

d1 ... dk[Defined Area]

27

29

41 78 pL

3≤pL + pH x 256 = k + 2≤33
fn = 128
m=1
pL＋pH x 256 = k + 2
32≤d≤126[Initial Value]“public”
k = 6, d1 = 112(0x70), d2 = 117(0x75), d3 = 98(0x62), d4 = 108(0x6C), d5 = 105(0x69), d6 = 99(0x63)[Function]

Set Login Password.
d1 ... dk specifies the login password.
Example: When setting password to “abcd1234”
d1 = 97(0x61), d2 = 98(0x62), d3 = 99(0x63), d4 = 100(0x64), d5 = 49(0x31), d6 = 50(0x32),
d7 = 51(0x33), d8 = 52(0x34)
This command is enabled only when logged in with ESC GS ) N (fn=114).
The setting of this command is applied to operation when this command is processed, and is saved in
nonvolatile memory by ESC GS ) N (fn=112).
Depending on the function, the network parameter setting command may be enabled only when the login
password was changed.
For details, refer to the network parameter setting command.

<Function 129>ESC GS ) N pL pH fn m (fn=129)[Name][Code]

Send Login Password Change Status
ASCII ESC GS )N pL pH fn
HEX
1B 1D 29 4E pL pH fn

m
m

DEC

m

[Defined Area]

27

29

41 78 pLpH

fn

pL = 2, pH = 0
fn = 129m=1[Initial Value]---[Function]

Send Login Password Change Status.
The transmission is performed in the format below.
ESC GS ) N pL pH fn m n LF NULnLogin password change status0
Login password not changed
1
Login password changed
This command is enabled only when logged in with ESC GS ) N (fn=114).
At other times, transmission is performed in the format below.
ESC GS ) N pL pH fn m LF NUL99

APPENDIX-1. Diffrence between SK1 StarPRNT and Native StarPRNTThe following list describes the difference between SK1/5 StarPRNT mode and Native StarPRNT.
Command Category
Character Font

Command/Function

ESC GS t n

Native StarPRNT
ANK character (Font-A)
Upper base line: 20 dots
Lower base line: 4 dots
Font-A size: 12 x 32
Font-B size: 9 x 32
Supported
Size of Spec Font-B:
9x24 dots
52 code pages

ESC GS t n (n=0)
ESC GS =ESC R nOriginal code page
Supported
16 international characters

ANK character base line
IBM Block
Font style andcharacter set

Page control
Commands
Bit image Graphics
Logo

Chinese Character commands
ESC RS F n

ESC C 0 n

Supported

Not-supported
Registration memory
size / number:
512 KByte / 254 pcs
9 barcodes(See Table.3 below)
Not-supported

Supported

Not-supported

ESC ACK CANESC RS r n

Supported0≤n≤3, 48≤n≤51

UTF Commands

ESC GS ) U pL pH fn m (fn=64)
ESC GS ) U pL pH fn m (fn=48)

Supported
All supported

2 color printing relatedcommands
Presenter relatedcommands

ESC RS c n
ESC RS C n
ESC GS SUB DC1 m t1 t2
ESC GS SUB DC2 m t1 t2Not-supported
0≤n≤7, 48≤n≤55(See Table.4 below)
Not-supported
Partially not-supported(CodePage874, CodePage869)
Not-supported
Not-supported0≤m≤4, 48≤m≤52
0≤m≤3, 48≤n≤51
LED unit ON/OFF times
t1 x 100 msec
t2 x 100 msec
LED unit ON/OFF times
t1 x 100 msec
t2 x 100 msec

BarcodeQR Code commands

2D GS1 code,
Compound symbol
Commands
Initialization Command
Print settings

ESC GS c h v
ESC GS ( L pL pH m fn a kc1 kc2
b xL xH yL yH [c d1 ･･･ dk]1 ･･･[c d1･･･ dk]b (fn=67)
ESC b n1 n2 n3 n4 d1 ･･･ dk RS

SupportedESC GS y D 2 a m1 n1L n1H
d11 d12 ･･･ d1k m2 n2L n2H
d21 d22 ･･･ d2k ml ･･･ d1k
ESC GS ( k pL pH on fn[parameter]

ESC GS SUB DC3 m t1 t2

Supported
Registration memory
size / number:
512 KByte / 9025 pcs
14 barcodes

SK1/5 StarPRNT mode
ANK character (Font-A)
Upper base line: 21 dots
Lower base line: 3 dots
Font-A size: 12 x 24
Font-B size: 8 x 16
Not-supported
Size of Spec Font-B:
8x16 dots
18 code pages(See Table.1 below)
CodePage437
Not-supported
9 international characters(See Table.2 below)
Not-supported

Supported
Supported0≤m≤3, 48≤n≤51
0≤m≤2, 48≤n≤50
LED unit ON/OFF times
t1 x 50 msec
t2 x 50 msec
LED unit ON/OFF times
t1 x 50 msec
t2 x 50 msec

100Command Category
Bezel relatedcommands

Command/Function
ESC SYN DC1 n
ESC SYN DC2 n
ESC SYN DC3 n
ESC SYN DC4 n
ESC GS ) s pl ph fn m
ESC GS SUB DC1 m t1 t2
ESC GS SUB DC2 m t1 t2

LAN

ESC GS ) N pL pH fn m n(fn=53)
ESC GS ) N pL pH fn m n(fn=55)
ESC GS ) N pL pH fn m n(fn=56)
ESC GS ) N pL pH fn m n(fn=57)
ESC GS ) N pL pH fn m(fn=69)
ESC GS ) N pL pH fn m(fn=71)
ESC GS ) N pL pH fn m(fn=72)
ESC GS ) N pL pH fn m(fn=73)
ESC GS ) N pL pH fn m n(fn=88)
ESC GS ) N pL pH fn m(fn=89)
ESC GS ) N pL pH fn m n(fn=130)
ESC GS ) N pL pH fn m(fn=131)
ESC GS ) N pL pH fn m d1 ... dk(fn=132)
ESC GS ) N pL pH fn m(fn=133)
ESC GS ) N pL pH fn m n1 n2(fn=134)
ESC GS ) N pL pH fn m(fn=135)
ESC GS ) N pL pH fn m d1 ... dk(fn=136)
ESC GS ) N pL pH fn m(fn=137)
ESC GS ) N pL pH fn m d1 ... dk(fn=138)
ESC GS ) N pL pH fn m(fn=139)
ESC GS ) N pL pH fn m n d1 ... dk(fn=140)
ESC GS ) N pL pH fn m(fn=141)
ESC GS ) N pL pH fn m n
d1 ... dk(fn=142)
ESC GS ) N pL pH fn m(fn=143)
ESC GS ) N pL pH fn m n(fn=144)
ESC GS ) N pL pH fn m(fn=145)
ESC GS ) N pL pH fn m n(fn=146)
ESC GS ) N pL pH fn m(fn=147)
ESC GS ) N pL pH fn m n(fn=148)
ESC GS ) N pL pH fn m(fn=149)
ESC GS ) N pL pH fn m d1 ... dk(fn=150)

Native StarPRNT
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported

Supported
Supported
Supported
Supported
Supported
Supported
Supported
Supported
Supported
Supported
Supported
Supported
Supported

SK1/5 StarPRNT mode
Supported
Supported
Supported
Supported
Supported0≤m≤4, 48≤m≤52
0≤m≤3, 48≤n≤51
LED unit ON/OFF times
t1 x 100 msec
t2 x 100 msec
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported

Supported
Supported

Not-supported
Not-supported

Supported
Supported

Not-supported
Not-supported

Supported
Supported

Not-supported
Not-supported

Supported
Supported

Not-supported
Not-supported

Supported
Supported

Not-supported
Not-supported

Supported
Supported
Supported
Supported
Supported
Supported
Supported
Supported

Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported
Not-supported

Bezel related command is available with firmware version 1.1 or higher.
LAN command is available with SK5-31 model.

101

Table1. Code Page Listn
Code Page
0
Normal*1
CodePage437 (USA,Std. Europe)2
Katakana
3
CodePage437 (USA,Std. Europe)
4
Codepage 858 (Multilingual)5
Codepage 852 (Latin-2)
6
Codepage 860 (Portuguese)7
Codepage 861 (Icelandic)
8
Codepage 863 (Canadian French)
9
Codepage 865 (Nordic)
10
Codepage 866 (Cyrillic Russian)11
Codepage 855 (Cyrillic Bulgarian)
12
Codepage 857 (Turkey)
13
Codepage 862 (Israel (Hebrew))
14
Codepage 864 (Arabic)
15
Codepage 737 (Greek)
16
Codepage 851 (Greek)
17
Codepage 869 (Greek)
18
Codepage 928 (Greek)
19
Codepage 772 (Lithuanian)20
Codepage 774 (Lithuanian)21
Codepage 874 (Thai)
32
Codepage 1252 (Windows Latin-1)
33
Codepage 1250 (Windows Latin-2)
34
Codepage 1251 (Windows Cyrillic)
64
Codepage 3840 (IBM-Russian)65
Codepage 3841 (Gost)
66
Codepage 3843 (Polish)
67
Codepage 3844 (CS2)68
Codepage 3845 (Hungarian)69
Codepage 3846 (Turkish)
70
Codepage 3847 (Brazil-ABNT)
71
Codepage 3848 (Brazil-ABICOMP)
72
Codepage 1001 (Arabic)
73
Codepage 2001 (Lithuanian-KBL)
74
Codepage 3001 (Estonian-1)
75
Codepage 3002 (Estonian-2)
76
Codepage 3011 (Latvian-1)
77
Codepage 3012 (Latvian-2)
78
Codepage 3021 (Bulgarian)79
Codepage 3041 (Maltese)
96
Thai Character Code 42 (Thai)
97
Thai Character Code 11 (Thai)
98
Thai Character Code 13 (Thai)
102 Thai Character Code 18 (Thai)
255 User Setting (Blank Code Page)

Native StarPRNT
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O

SK1 StarPRNT mode
O
O
O
O
O
O
O
X
O
O
O
X
O
O
O
O
X
X
X
X
X
X
O
O
O
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X

102

Table2. International Characters List
nInternational Characters
0, 48
USA
1, 49
France2, 50Germany
3, 51
UK
4, 52
Denmark5, 53
Sweden
6, 54
Italy
7, 55
Spain
8, 56
Japan
9, 57
Norway10, 65 Denmark I I
11, 66 Spain I I
12, 67 Latin America
13, 68 Korea
14, 69 Ireland
64
Legal

Native StarPRNT SK1 StarPRNT mode
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
X
O
X
O
X
O
X
O
X
O
X
O
X

Table3. Barcode Listn
Barcode type
0, 48
UPC-E
1, 49
UPC-A
2, 50
JAN/EAN8
3, 51
JAN/EAN13
4, 52
Code39
5, 53
ITF
6, 54
Code1287, 55
Code93
8, 56
NW-7
9, 57
GS1-128
10, 65 GS1 DataBar Omnidirectional11, 66 GS1 DataBar Truncated12, 67 GS1 DataBar Limited
13, 68 GS1 DataBar Expanded

Native StarPRNT SK1 StarPRNT mode
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
X
O
X
O
X
O
X
O
X

Table4. Printing Speed<SK1-211, SK1-221, SK1-311, SK1-321, SK5-31 series>n
Native StarPRNT SK1 StarPRNT mode
0, 48
High
250mm/sec
1, 49Middle190mm/sec
2, 50
Low
110mm/sec
3, 51
X
220mm/sec
4, 52X
200mm/sec
5, 53X
170mm/sec
6, 54X
150mm/sec
7, 55
X
130mm/sec<SK1-41 series>n
Native StarPRNT SK1 StarPRNT mode
0, 48
High
150mm/sec
1, 49Middle130mm/sec
2, 50
Low
110mm/sec

103

APPENDIX-2. Bar Code Specification Details
A-2.1. Bar Code Specification Details
Refer to the dedicated manuals for characteristics and methods of use for each bar code symbol.
This section describes precautions and methods for setting when printing with the printer.
Bar code widths are set for each bar code according to the mode. The following describes each mode and the dot counts.
The user must ensure the specified printing position and quiet zone at the position where the bar code begins.
A-2.1.1. Code 39
Code 39 represents numbers 0 to 9 and the letters of the alphabet from A to Z.
These are the symbols most frequently used today in industry.
1. Length of characters in each mode
Items
Mode1
Mode2
Narrow Width
2 dots3 dotsWide Width
6 dots9 dots
Ratio
1:3
1:3
Character2 dots3 dotsSpacing
Length of 1
4 mm
6 mm
CharacterMode3
4 dots12 dots
1:3
4 dotsMode4
2 dots5 dots
1 : 2.5
2 dotsMode5
3 dots
8 dots
1 : 2.7
3 dotsMode6
4 dots
10 dots
1 : 2.5
4 dotsMode7
2 dots4 dots
1:2
2 dotsMode8
3 dots
6 dots
1:2
3 dotsMode9
4 dots
8 dots
1:2
4 dots

8 mm

3.625mm5.625mm

7.25mm

3.25mm

4.875mm

6.5mm(*) The length of 1 character includes the character spacing.
2. Regulations
The start and stop bar code (*) in Code 39 are automatically inserted.

A-2.1.2. Interleaved 2 of 5
Interleaved 2 of 5 represents numbers 0 to 9. Higher density of characters is possible and with JIS and EAN, and printing to
cardboard for distribution has been standardized.
1.Narrow element width and length of symbols per 2 characters
Items
Mode1
Mode2
Mode3
Mode4
Narrow Width
2 dots4 dots
6 dots2 dotsWide Width
5 dots
10 dots
15 dots
4 dotsRatio
1 : 2.5
1 : 2.5
1 : 2.5
1:2
Length of 1
4 mm
8 mm
12 mm
3.5mm
CharacterMode5
4 dots
8 dots
1:2
7mm

Mode6
6 dots12 dots
1:2
10.5mmMode7
2 dots
6 dots
1:3
4.5mm

Mode8
3 dots9 dots1:3
6.75mmMode9
4 dots12 dots
1:3
9mm

2. Regulations• By selecting interleaved 2 of 5 bar code symbols, start and stop patterns are automatically inserted.
• When the bar code data digit count is odd, a zero is added to the highest value digit.
• Details conform to standards for AIM, USS-12/5, ANSI and JIS x 0502.

104

A-2.1.3. JAN/EAN/UPC
Used numbers, not only the bar code symbols, are controlled using JAN, EAN and UPC as shared common commercial codes.
Mainly, they are used for supermarkets such as shops and grocery stores.
1. Each mode and bar code width
Items
Module Width
Bar code width (*)
JAN/EAN-8
JAN/EAN-13
UPC-A
UPC-E

Mode 1
2 dots
16.75mm23.75mm23.75mm
12.75mmMode 23 dots25.125mm
35.625mm
35.625mm
19.125mm

Mode3
4 dots33.5mm
47.5mm
47.5mm
25.5mm(*) Includes the guard bar (left/right/center) but not the white space.

2. Regulations• JAN/EAN-8:
Data is in 7 or 8 digits. The command is ignored for others.
The check digit uses a modulus weight of 10/3 and is automatically applied.
When the calculated value and the numerical value of the 8thdigit differ, the calculated value has priority.
• JAN/EAN-13:
Data is in 12 or 13 digits. The command is ignored for others.
The check digit uses a modulus weight of 10/3 and is automatically applied.
When the calculated value and the numerical value of the 13thdigit differ, the calculated value has priority.
• UPC-A:
Data is in 11 or 12 digits. The command is ignored for others.
The check digit uses a modulus weight of 10/3 and is automatically applied.
When the calculated value and the numerical value of the 12thdigit differ, the calculated value has priority.
• UPC-E:
Data is in 11 or 12 digits. The command is ignored for others.
The check digit uses a modulus weight of 10/3 and is automatically applied.
When the calculated value and the numerical value of the 12thdigit differ, the calculated value has priority.
Data conversion to rectangles is automatic.
Data that cannot be shortened is processed as invalid data.

105

A-2.1.4. Code 128
These are bar code symbols that can print ASCII 128 characters.
1. Each module and module width
Items
Module Width
Length of 1 Character (*)

For that reason, use thereof is increasing.

Mode 1
2 dots2.75 mmMode 23 dots4.125 mmMode3
4 dots
5.5 mm(*) Start and stop bars not included.
2.

Regulations
When using <LF> with the command, control codes are not sent by the host PC, so the control codes are sent as data,
as shown below.
• When sending the following data, it represents 2 characters set.
% (25H) represents %0 (25H 30H).
Control codes (00H to 1FH) represent 40H to 5FH applied behind %.
Control code (7FH) represents %5 (25H 35H).
Function codes represent 1 to 4 (31H to 34H) applied behind %.
Start codes represent 6 to 8 (36H to 38H) applied behind %.
• Stop code (SC)/Check character (CK) are automatically applied.
• When start code is omitted:
Uses START C when more than 4 digits continue after header.
Uses START A when initial data other than numbers are the control code.
Uses START B for other cases.

106• 2 Character set code table<Control Codes><Control Codes>
Code
FormatNUL 00H%@ 25H 40H
SOH 01H%A 25H 41H
STX 02H%B 25H 42H
ETX 03H%C 25H 43H
EOT 04H%D 25H 44H
ENQ 05H%E 25H 45H
ACK 06H%F 25H 46H
BEL 07H%G 25H 47H
BS 08H%H 25H 48H
HT 09H%I 25H 49H
LF 0AH%J 25H 4AH
VT 0BH%K 25H 4BH
FF 0CH%L 25H 4CH
CR 0DH%M 25H 4DH
SO 0EH%N 25H 4EH
SI 0FH%O 25H 4FH
DLE 10H%P 25H 50H
DC1 11H%Q 25H 51H
DC2 12H%R 25H 52H
DC3 13H%S 25H 53H
DC4 14H%T 25H 54H
NAK 15H%U 25H 55H
SYN 16H%V 25H 56H
ETB 17H%W 25H 57H
CAN 18H%X 25H 58H
EM 19H%Y 25H 59H
SUB 1AH%Z 25H 5AH
ESC 1BH%[ 25H 5BH
FS 1CH%\ 25H 5CH
GS 1DH%] 25H 5DH
RS 1EH%^ 25H 5EH
US 1FH%_ 25H 5FH

Code
% 25H
DEL 7FH

Code
FNC1
FNC2
FNC3
FNC4

<Control Codes>
Format%0 25H 30H%5 25H 35H<Function Codes>
Format%1 25H 31H%2 25H 32H%3 25H 33H%4 25H 34H

*
*
*
*

<Start Codes>
Format%6 25H 36H%7 25H 37H%8 25H 38H

*
*
*

Code
START A
START B
START C107

A-2.1.5. Code 93
1. Each mode and module width
Items
Module Width
Length of 1 Character (*)

Mode 1
2 dots2.25 mmMode 23 dots3.375 mmMode3
4 dots
4.5 mm(*) Start and stop bars not included.
2. Regulations• Start/stop codes are automatically applied.
• Check character (C, K) is automatically applied.
• 2 characters set expression conforms to Code 128.
However, items marked with ‘*’ are codes that can only be used with Code 128, and not with Code 93.

A-2.1.6. NW-7 (CODABAR)
NW-7 normally uses either A through D as the start/stop codes and represents special symbols (-(minus sign)/$ (dollar sign)/:(colon)// (slash)/. (period)/+ (plus sign) between 0 to 9.
These are used as carrier package marking bar codes, DPE (photo prints) and for medical related industries (USA).
1. Length of 1 character in each mode
Items
Narrow Element Width
Wide Element Width
Ratio
Character Spacing (dots)(Normally mm)
Length of 1 Character(Width mm)

Mode 1
2
6
1:3
2
3
3.5

Mode 2
3
9
1:3
3
4.5
5.25

Mode 3
4
12
1:3
4
6
7

Mode 4
2
5
1:2.5
2
2.75
3.125

Items
Narrow Element Width
Wide Element Width
Ratio
Character Spacing (dots)(Normally mm)
Length of 1 Character(Width mm)

Mode 6
4
10
1:2.5
4
5.5
6.25

Mode 7
2
4
1:2
2
2.5
2.75

Mode 8
3
6
1:2
3
3.75
4.125

Mode 9
4
8
1:2
4
5
5.5

Mode 5
3
8
1:27
3
4.25
5.125

• With NW-7, lengths differ because narrow elements and wide elements are included according to the characters.
• Normal characters (narrow: 5, wide: 2) and numbers (0 to 9), -and $• Wide characters (narrow: 4, wide: 3) , /, . , + , A to D
• Character spaces are included in 1 Character length.

108

APPENDIX-3. Automatic Status
A-3. 1. Automatic Status
Automatic status is a group of states that are automatically returned from the printer to the host when the printer’s status haschanged.

Automatic status is composed of “Header-1,” “Header-2” and “plurality of bytes of the printer status and iscontinuously returned to the host.

The host always uses an identifying method to identify the data for every byte received. (It is

possible that Xon/Xoff codes are exceptionally mixed in the automatic status in the Xon/Xoff mode (when using a serial I/F), so it
is necessary to consider that on the receiving side). The valid/invalid conditions of the automatic status abide by the DIPSW
settings for the initial values.
It is possible to change the conditions using the ESC RS a n command after turning ON the power.
Also, it is possible to get the automatic status using the ESC ACK SOH command, regardless of the valid/invalid conditions.
1. Header-1
Header-1is the 1-byte length information transmitted at the headof the automatic status.
The table below shows the composition of the Header-1.
including Header-1, using bit 1 to bit 3 and bit 5.
data for that amount transmission bytes.

Header-1 represents the entire status transmission byte count,

The host gets the transmission byte information and always receives the status

For reference, the table below shows the relationship of actual transmissionbytes andthe Header-1. Because the bit 0 that indicates that this is the Header-1 is normally 1 (the second byteand beyond is 0), to detect
the Header-1, it is acceptable to verify that bit 0 is 1 and bit 4 = 0 for this data.

Note that bit 6 is for future expansion and isignored in host-side processes.

<Header-1 (First Byte)>
StatusBit

Status

7
6
5
4
3
2
1
0

Fixed at “0”Reserved (Fixed at “0”)Printer Status Byte Count (BIT3)
Fixed at “0”Printer Status Byte Count (BIT2)
Printer Status Byte Count (BIT1)
Printer Status Byte Count (BIT0)
Fixed at “1”0

1Applicable models *1
Without PresenterWith Presenter
model
model
OK
OK
OK
OK
OK
OK
OK
OK
-

*1. Applicable models
Without Presenter – SK1 printers which do not equip a presenter option. (PR-SK1-x1 or PR2-SK1-x1)
With Presenter –SK1 printers which equip a presenter option. (PR-SK1-x1 or PR2-SK1-x1)

Actual transmission byte count and header-1 table
Transmission Byte Count n
Header-1
900100011B (23 Hex)

Model
Without Presenter modelWith Presenter model109

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 bit3 and bit 5.
For reference, the table below shows the relationship of actual version bytes and the Header-2.

The automatic status version

will be used as new information is added to the printer status bit positions that were empty, by adding new functions in the future.
When the host does not control the automatic status version, it is acceptable to ignore Header-2 received.

<Header-2 (Second Byte)>
StatusBit

Status

7
6
5
4
3
2
1
0

Fixed at “0”Fixed at “0”Version No. (BIT3)
Fixed at “0”Version No. (BIT2)
Version No. (BIT1)
Version No. (BIT0)
Fixed at “0”0Actual automatic status version and header -2 table
Version No. n
1
2
3
4
5
6
7
8
9
Printer Status Version
Model Name
Without Presenter modelWith Presenter model

Version No
3 (06 Hex)

1

Applicable models
Without PresenterWith Presenter
model
model
OK
OK
OK
OK
OK
OK
OK
OK
-

Header-2
0000 0010B (02 Hex)
0000 0100B (04 Hex)
0000 0110B (06 Hex)
0000 1000B (08 Hex)
0000 1010B (0A Hex)
0000 1100B (0C Hex)
0000 1110B (0E Hex)
0010 0000B (20 Hex)
0010 0010B (22 Hex)

StatusUp to printer status (9th byte) loaded110

3. Printer Status
Printer status is the status of the printer sent from the third byte of the automatic status.
Printer status is returned for (transmitted byte count -2 in Header-1).
Printer status is always updated for new information (No log exists). The following shows the composition of the status.
<Printer status 1: Printer status (Third Byte)>
StatusBit

Status

7
6
5
4
3
2
1
0

Fixed at “0”Fixed at “0”Head up lever
Fixed at “0”ON-LINE / OFF-LINE Status
Fixed at “0”<ETB > Command
Fixed at “0”

0

1

CLOSE
ON-LINE
Not Executed-

OPEN
OFF-LINE
Executed-

Applicable models
Without PresenterWith Presenter
model
model
OK
OK
OK
OK
OK
OK
-

• <ETB> Command
Cleared when received at the host (by clearing bit 1 to 0, automatic status is not targeted to occur).

<Printer status 2: Error Information (Fourth Byte)>
StatusBit

Status

7
6
5
4
3
2
1
0

Fixed at “0”Stopped by high head temperature
Non-recoverable Error
Fixed at “0”Auto-cutter Error
Head Thermistor Error
Fixed at “0”Fixed at “0”01

Not stopped
No
No
No
-

Stopped
Yes
Yes
Yes
-

Applicable models
Without PresenterWith Presenter
model
model
OK
OK
OK
OK
OK
OK
OK
OK
-

111

<Printer status 3: Error Information (Fifth Byte)>
StatusBit

Status

0

1

7
6
5
4
3
2
1
0

Fixed at “0”Receive Buffer Overflow
Reserved (Fixed at “0”)Fixed at “0”BM Error/Label Error
Presenter/Bezel Paper Jam Error
Electric Voltage Error
Fixed at “0”

No
No
No
No
-

Yes
Yes
Yes
Yes
-

Applicable models
Without PresenterWith Presenter
model
model
OK
OK
OK
OK
OK
OK
OK
OK
-

Label Error and Bezel Paper Jam Error status is available with firmware version 1.1 or higher.

•Receive Buffer Overflow
Overflow errors cleared to 0 when returned to host.
• BM Error
On models that use a common PE and BM sensor, if a continuous error is detected beyond a determined amount, it indicates nota black mark error, but a paper out error.

<Printer status 4: Sensor Information (Sixth Byte)>
StatusBit

Status

7
6
5
4
3
2
1
0

Fixed at “0”Fixed at “0”Fixed at “0”Fixed at “0”Paper end
Paper Near-end
Fixed at “0”Fixed at “0”

0

1

Paper
Paper
-

No paperNo paper-Applicable models
Without PresenterWith Presenter
model
model
OK
OK
OK
OK
-

<Printer status 5: Sensor Information (Seventh Byte)>
StatusBit

Status

7
6
5
4
3
2
1
0

Fixed at “0”Fixed at “0”Fixed at “0”Fixed at “0”Reserved (Fixed at “0”)Reserved (Fixed at “0”)Bezel paper sensor
Fixed at “0”01

No paper
-

Paper
-

Applicable models
Without PresenterWith Presenter
model
model
OK
-

Bezel paper sensor status is available with firmware version 1.1 or higher.

112

<Printer status 6: ETB Counter (Eighth Byte)>
StatusApplicable models
Without PresenterWith Presenter
model
model
-

Bit

Status

0

1

7
6
5
4
3
2
1
0

Fixed at “0”ETB Counter BIT-4
ETB Counter BIT-3
Fixed at “0”ETB Counter BIT-2
ETB Counter BIT-1
ETB Counter BIT-0
Fixed at “0”

-

-

-

-

-

-

-

-

-

-

(*) ETB Counter
This counter is the 5-bit ETB counter.
(It counts from 0 to 31. When the counter overflows, it counts up from 31 to 0.)This counter is incremented by 1 using the <ETB> command.
The ETB counter is initialized by the following commands.

When doing so, ASB ETB status is cleared.

However, when initializing the ETB counter, ASB is not transmitted.
<ETB Counter Initialization Commands>• <ESC> <RS> E n: ETB Counter Initialization<Printer status 7: Position for Presenter Paper (Ninth Byte)>
StatusBit

Status

0

1

7
6
5
4
3
2
1
0

Fixed at “0”Fixed at “0”Fixed at “0”Fixed at “0”Presenter Paper Position
Presenter Paper Position
Presenter Paper Position
Fixed at “0”--See table below--

Applicable models
Without PresenterWith Presenter
model
model
OK
OK
OK
-

•This status is valid only on models provided with a presenter.
Models not provided with a presenter should send this status fixed at “0.”•This status is made valid and invalid using the memory switch only on models provided with a presenter.
When valid, the presenter paper position status is updated, but when invalid, the presenter paper position status is fixedat “0” and there is no change in status.
Details of the Presenter Paper Position
Bit3-1
0
1
2
3
4
5
6
7

Presenter Paper Position
Paper Position 0 State where there is no paper in presenter
Paper Position 1 State where paper is supplied (Loop, start of clamp)
Paper Position 2 (Reserved)
Paper Position 3 State where paper is discharged (after cut)
Paper Position 4 (Reserved)
Paper Position 5 (Reserved)
Paper Position 6 State where paper is recovered
Paper Position 7 State where paper is pulled out.

113

5. Status Identification Method
Command/Function
XON
XOFF
ASB (header 1)
ASB (Other than header 1)

Bit7

Bit6

Bit5

Status
Bit4
Bit3

Bit2

Bit1

Bit0

0
0
0
0

0
0
*
*

0
0
*
*

1
1
0
0

0
0
*
*

0
1
*
*

1
1
1
0

0
0
*
*

0 = Indicates a bit fixed to “0”. / 1 = Indicates a bit fixed to “1”. / * = Indicates a variable bit.

114

A-3. 2. Printer Status Transmission Specification for Ethernet I/F
Describes the printer status transmission specification for the Ethernet I/F
1) Transmission format• If you want to send only STAR ASB
STAR ASB (2nd byte Bit-7=1) + Length （Length = 0x0000 ）• If you want to send printer status transmission other than STAR ASB
STAR ASB (2nd byte Bit-7=1) + Length + Status Data
<Length details>• 2-byte value indicating the number of bytes of status data (0x0000 ≤ Length ≤ 0x0200)• If Status data is 10 bytes, Length = 0x000a• If sending only STAR ASB, add Length = 0x0000• If length is added to STAR ASB second byte Bit-7, then is set to Bit-7 = 1
Detect whether analysis of status detects all the bytes for ASB for the first byte STAR ASB, and length is added to the bit-7
for the 2nd byte for STAR ASB.
Furthermore by obtaining the number of bytes of subsequent Status Data with the length, analyzed status is possible.
2) Status Data Transmission format
Status Type + delimiter 1 + Data Type + Status Length + Printer Status + delimiter 2
1. Status Type (2byte or 4Byte)• < Header 1 (the second byte) >It indicates the cause of printer status
2. Delimiter 1 (1 byte)
Transmit “：”
3. Data Type (1 byte)
Indicate the data type of the Printer Status, and send "B" (the binary type)
4. Status Length (2byte)
2-byte value that indicates the number of bytes in the Printer Status
5. Printer Status (variable length)
Status transmitted by the printer
Status contents are different due to the occurrence factor
For more information on status content, refer to cause of command, and automatic status
6. Delimiter 2 (1 byte)
Transmit “；”

1153) Status transmission specification list
Status Data
Status causes
ASB
Automatic status (*1)
ESC ACK SOH
Request printer status
ESC # *
Request printer version
ESC GS ETX s n1 n2Request print end counter

Request other command
response

Status TypeThe first and second
byte occurrence factor

Delimiter
1

Data
Type

StatusLengthPrinter
StatusDelimiter
20x0000

--

--

--

--

--

--

ASB

0x0000

--

--

--

--

--

--

ASB

Variablelength

“11”

“：”

“B”

VariablelengthStatus“；”ASB

0x000F

“20”

“：”

“B”

0x0008

Status“；”ASB

Variablelength

“A1”

“：”

“B”

Variablelength

Block
Data

“；”

STAR
ASB

LengthASB*1) For automatic status it is delivered to all hosts in the TCP # 9100 port connection.
Note) Depending on a model, the installed memory switch region differs.

116

APPENDIX-4. Maximum Number of Input Characters for Each Version of QR Code1) Model 1 Version and Maximum Number of Input Characters
Version

Cell Count on
One Side

MistakeCorrection Level

Number ofCharacters

EnglishCharacters

Binary

Kanji

1

21

2

25

3

29

4

33

5

37

6

41

7

45

8

49

9

53

10

57

11

61

12

65

13

69

14

73

L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H

40
33
25
16
81
66
52
33
131
100
81
52
186
138
114
76
253
191
157
105
321
249
201
133
402
311
253
167
493
378
301
203
585
441
369
239
690
526
433
291
800
608
493
342
915
694
579
390
1030
790
656
454
1167
877
738
498

24
20
15
10
49
40
31
20
79
60
49
31
113
84
69
46
154
116
95
63
194
151
122
81
244
188
154
101
299
229
183
123
354
267
223
145
418
319
262
176
485
368
299
207
555
421
351
236
624
479
398
275
707
531
447
302

17
14
11
7
34
28
22
14
55
42
34
22
78
58
48
32
106
80
66
44
134
104
84
56
168
130
106
70
206
158
126
85
244
184
154
100
287
219
180
121
333
253
205
142
381
289
241
162
429
329
273
189
486
365
307
207

10
8
6
4
20
17
13
8
33
25
20
13
48
35
29
19
65
49
40
27
82
64
51
34
103
80
65
43
126
97
77
52
150
113
94
61
177
135
111
74
205
156
126
87
234
178
148
100
264
202
168
116
299
225
189
127

117

2) Model 2 Version and Maximum Number of Input Characters
Version

Cell Count on
One Side

MistakeCorrection Level

Number ofCharacters

EnglishCharacters

Binary

Kanji

1

21

2

25

3

29

4

33

5

37

6

41

7

45

8

49

9

53

10

57

11

61

12

65

13

69

14

73

L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H

41
34
27
17
77
63
48
34
127
101
77
58
187
149
111
82
255
202
144
106
322
255
178
139
370
293
207
154
461
365
259
202
552
432
312
235
652
513
364
288
772
604
427
331
883
691
489
374
1022
796
580
427
1101
871
621
468

25
20
16
10
47
38
29
20
77
61
47
35
114
90
67
50
154
122
87
64
195
154
108
84
224
178
125
93
279
221
157
122
335
262
189
143
395
311
221
174
468
366
259
200
535
419
296
227
619
483
352
259
667
528
376
283

17
14
11
7
32
26
20
14
53
42
32
24
78
62
46
34
106
84
60
44
134
106
74
58
154
122
86
64
192
152
108
84
230
180
130
98
271
213
151
119
321
251
177
137
367
287
203
155
425
331
241
177
458
362
258
194

10
8
7
4
20
16
12
8
32
26
20
15
48
38
28
21
65
52
37
27
82
65
45
36
95
75
53
39
118
93
66
52
141
111
80
60
167
131
93
74
198
155
109
85
226
177
125
96
262
204
149
109
282
223
159
120

118

Version

Cell Count on
One Side

MistakeCorrectionLevel

Number ofCharacters

EnglishCharacters

Binary

Kanji

15

77

16

81

17

85

18

89

19

93

20

97

21

101

22

105

23

109

24

113

25

117

26

121

27

125

28

129

L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H

1250
991
703
530
1408
1082
775
602
1548
1212
876
674
1725
1346
948
746
1903
1500
1063
813
2061
1600
1159
919
2232
1708
1224
969
2409
1872
1358
1056
2620
2059
1468
1108
2812
2188
1588
1228
3057
2395
1718
1286
3283
2544
1804
1425
3514
2701
1933
1501
3669
2857
2085
1581

758
600
426
321
854
656
470
365
938
734
531
408
1046
816
574
452
1153
909
644
493
1249
970
702
557
1352
1035
742
587
1460
1134
823
640
1588
1248
890
672
1704
1326
963
744
1853
1451
1041
779
1990
1542
1094
864
2132
1637
1172
910
2223
1732
1263
958

520
412
292
220
586
450
322
250
644
504
364
280
718
560
394
310
792
624
442
338
858
666
482
382
929
711
509
403
1003
779
565
439
1091
857
611
461
1171
911
661
511
1273
997
715
535
1367
1059
751
593
1465
1125
805
625
1528
1190
868
658

320
254
180
136
361
277
198
154
397
310
224
173
442
345
243
191
488
384
272
208
528
410
297
235
572
438
314
248
618
480
348
270
672
528
376
284
721
561
407
315
784
614
440
330
842
652
462
365
902
692
496
385
940
732
534
405

119

Version

Cell Count on
One Side

MistakeCorrectionLevel

Number ofCharacters

EnglishCharacters

Binary

Kanji

29

133

30

137

31

141

32

145

33

149

34

153

35

157

36

161

37

165

38

169

39

173

40

177

L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H
L
M
Q
H

3909
3035
2181
1677
4158
3289
2358
1782
4417
3486
2473
1897
4686
3693
2670
2022
4965
3909
2805
2157
5253
4134
2949
2301
5529
4343
3081
2361
5836
4588
3244
2524
6153
4775
3417
2625
6479
5039
3599
2735
6743
5313
3791
2927
7089
5596
3993
3057

2369
1839
1322
1016
2520
1994
1429
1080
2677
2113
1499
1150
2840
2238
1618
1226
3009
2369
1700
1307
3183
2506
1787
1394
3351
2632
1867
1431
3537
2780
1966
1530
3729
2894
2071
1591
3927
3054
2181
1658
4087
3220
2298
1774
4296
3391
2420
1852

1628
1264
908
698
1732
1370
982
742
1840
1452
1030
790
1952
1538
1112
842
2068
1628
1168
898
2188
1722
1228
958
2303
1809
1283
983
2431
1911
1351
1051
2563
1989
1423
1093
2699
2099
1499
1139
2809
2213
1579
1219
2953
2331
1663
1273

1002
778
559
430
1066
843
604
457
1132
894
634
486
1201
947
684
518
1273
1002
719
553
1347
1060
756
590
1417
1113
790
605
1496
1176
832
647
1577
1224
876
673
1661
1292
923
701
1729
1362
972
750
1817
1435
1024
784

120

APPENDIX-5. Expalanation of Page Mode
A-5.6.1. Overview
This printer is equipped with two print modes. They are standard and page mode.
In standard mode, the printer prints and feeds paper each time it receives the print and paper feed instructions, but the print andpaper feed instructions received in page mode are executed on the print region on the specified memory and the printer does notoperate. Then, when the ESC GS P6 or ESC GS P7 commands are executed, the printer batch expands data to the printing region
and prints. In other words, when printing and performing a line feed for data of “ABCDEF” <LF>, in standard mode, “ABCDEF” isprinted and paper is fed one line. In page mode, however, “ABCDEF” is written to the print region specified on the memory, andone line is moved on the memory to write the next print data. This printer will enter page mode using ESC GS P 0. Commands
received thereafter are all processed as page mode. By running ESC GS P 6, you can lump-print received data. Also, by running
ESC GS P 7, you can return to standard mode after lump printing received data. You can return to standard mode without printing
page mode print data using ESC GS P 1. However, print data will be cleared.
<Transitioning to Standard Mode and Page Mode>

A-5.6.2. Setting Values Using Each Command in Standard Mode and Page Mode
• The values set by each command are shared by both standard and page modes. However, only the settings of the following
commands are independently set.
-> ESC 0, ESC SP, ESC z, ESC D, ESC s, ESC t• The following commands are invalid in page mode.
->ESC GS c, ESC RS m, ESC RS A, ESC GS M, ESC GS r, ESC RS C, ESC *, ESC RS r, FF, ESC GS S
• The maximum number of dots is prescribed in standard mode, but the y directions (the x direction when there is no rotation)
when printing is rotated 90 or 270º are larger than that. For details, see the setting (ESC GS P 3) command of the print
region in page mode.
A-5.6.3. Print Data Expansion to the Print Region
Expanding print data to the print region is performed in the following way.
(1) The print region is set by ESC GS P 3, but when all printing and paper feeds are ended before the printer receives ESC GS
P 3 the left edge when facing the printer becomes the origin of the print region (x0, y0). The print region is a square shapeusing dx pitch for the x direction (horizontal direction) and by pitch for the y direction (perpendicular direction) as sides,
including the origin point from the origin points (x0, y0). (When ESC GS P 3 is not set, the initial value is the print region.)(2) When the print region is set by ESC GS P 3, and the printer receives print data after the print direction is set by ESC GS P
2, point A (Fig A) becomes the starting point initial value, and the print data is expanded in the print region. For characters,
this starting point is the base line. Downloaded bit images and bar codes are expanded using the lower left-hand point of theimage data as the baseline (Fig B). However, HRI characters with a bottom bar code are printed below the base line. When
expanding characters (double-tall characters) higher than the standard character height and download bit images and the likeat the starting point, the portion higher than the standard characters is not printed.
(3) If the print data is out of the print region (including character right spaces) before receiving commands that accompany line
feeds (LF, ESC J and the like), the line feed is automatically performed in the print region, and the expansion position of theprint data is moved one line so the next expansion position is at the top of the line. The line feed amount at that time uses
the line feed amount set by ESC 0.

121

Fig A. Expansion Position of Character Data

Fig B. Expansion Position of Print Data122

A-5.6.4. Page Mode Print Maximum Region
Page mode print region initial value, Maximum Value. (ESC GS P 3 xL xH yL yH dxL dxH dyL dyH)

Model
SK1-211

SK1-311/ SK5-31

SK1-41Print region

dxL

dxH

Initial Value
dyL
dyH

54mm
56mm
54mm
56mm
68mm
72mm
80mm
72mm
80mm
104mm

176
192
176
192
32
64
128
64
128
64

1
1
1
1
2
2
2
2
2
3

170
170
170
170
170
170
170
170
170
170

3
3
3
3
3
3
3
3
3
3

Print region
X Dir
Y Dir
54mm
117.3mm
56mm
117.3mm
54mm
117.3mm
56mm
117.3mm
68mm
117.3mm
72mm
117.3mm
80mm
117.3mm
72mm
117.3mm
80mm
117.3mm
104mm 117.3mm

Maximum Value
Print region
X Dir
Y Dir
54mm
300mm
56mm
300mm
54mm
300mm
56mm
300mm
68mm
300mm
72mm
300mm
80mm
300mm
72mm
350mm
80mm
350mm
104mm
350mm

Basic calculated pitch initial value: X=1/203(inch), Y=1/203(inch)

123

APPENDIX-6. Print Startup Control Starting Pinting When Set to Page Unitse
When print startup control is set to page units, printing starts when the image buffer length is full or the following
commands are run.
If data with vertical movement such as line feed is received, printing starts after a 1-second timeout.
For details on image buffer length and how to set print startup control, see the product specifications manual.

Print starting trigger• Cutter command: <ESC> d n• FF command: <FF>• BM detection command: <ESC> d n, <FF>124