Selects an international character set according to the value of n,
as shown below:
nCharacter setnCharacter set
0U.S.A.8Japan
1France9Norway
2Germany10Denmark II
3England11Spain II
4Denmark I12Latin America
5Sweden13Korea
6Italy14Ireland
7Spain I64Legal
Select zero style
<ESC> “/”n
1B2Fn
Causes subsequent zero characters to be printed with a slash when
n is 1, and without a slash when n is 0.
The value of n can be set to 0(00H) or “0”(30H), or 1(01H) or
“1”(31H).
– 6 –
FUNCTION
CODE
HEX
REMARKS
Select bar code printing
<ESC> “b”n1n2n3n4di...dk <RS>
1B62n1n2n3n4di...dk1E
Prints bar code according to the value of n1, as shown below:
When either of UPC-E, UPC-A, JAN/EAN-8, JAN/EAN-13,
CODE128 or CODE93 is selected, 1(01H) to 3(03H) or “1”(31H)
to “3”(33H) can be set. When either of CODE39, NW-7 or ITF is
selected, 1(01H) to 9(09H) or “1”(31H) to “9”(39H) can be set.
n4: Height of bar code
Can be up to 255 dots (31.9mm).
If the bar code height is larger than the line feed amount, the
line feed amount is automatically multiplied by an integer.
di...dk: Bar code data
UPC-E: k = 11 (or 12)
The check digit at the 12th digit is automatically added,
and ignored even if it is specified.
If the data cannot be abbreviated, the command is
ignored. Data conversion to the abbreviation is automatically executed.
UPC-A: k = 11 (or 12)
The check digit at the 12th digit is automatically added,
and ignored even if it is specified.
JAN/EAN-8: k = 7 (or 8)
The check digit at the 8th digit is automatically added,
and ignored even if it is specified.
JAN/EAN-13: k = 12 (or 13)
The check digit at the 13th digit is automatically added,
and ignored even if it is specified.
– 8 –
CODE39:The value of k is optional, and the maximum
value also differs according to the modes.
The start/stop code (“
ITF:The value of k is optional, and the maximum
value also differs according to the modes.
If the data is number of an odd digits, 0 is
automatically added at the beginning of the data.
CODE 128: The value of k is optional, and the maximum
value also differs according to the modes and the
types of character number.
The check character is automatically added.
CODE93:The value of k is optional, and the maximum value
also differs according to the modes and the types
of character.
The check characters (C and K) are automatically
added.
NW-7:The value of k is optional, and the maximum
value also differs according to the modes and the
types of character number .
The start/stop code is also contained in the data (it
is not automatically added).
”) is automatically added.
*
LINE MODE
The bar code printing start position is at the upper end of the
current line.
If the bar code is positioned beyond the right margin, neither
the bar code nor the character below the bar code will be
printed.
Data of CODE 128 and CODE 93
When <LF> is used in a command, some kinds of control code
cannot be sent by the host PC. The control code should be sent
as the data as shown below:
• When sending the following data, express as a set of two
characters.
– 9 –
LINE MODE
Express “% (25H)” as “%0 (25H30H)”.
Add “40H - 5FH” after “%” for the control codes (00H - 1FH).
Express the control code (7FH) as “%5(25H35H)”.
Add “1 - 4 (31H - 34H)” after “%” for the function code.
Add “6 - 8 (36H - 38H)” after “%” for the start code.
Sets the page length using the current line spacing, where n is
between 1 and 127.
Changing the line spacing later does not alter the physical page
length.
The current line becomes the top of the page.
Resets the bottom margin.
Invalid when start position detect is ON.
Set page length in inches
<ESC> “C”<0>n
1B4300n
Sets the page length to n × 24 mm, where n is between 1 and 22.
Changing the line spacing later does not alter the physical page
length.
The current line becomes the top of the page.
Resets the bottom margin.
Invalid when start position detect is ON.
FUNCTION
CODE
HEX
REMARKS
Set bottom margin
<ESC> “N”n
1B4En
Sets the bottom margin to n lines at the current line spacing, where
n is between 0 and 255.
Changing the line spacing later does not alter the bottom margin.
Bottom margin is reset when you change the page length.
Setting is invalid if the printing area on one page is 36 mm or less.
Invalid when start position detect is ON.
– 16 –
FUNCTION
CODE
Cancel bottom margin
<ESC> “O”
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
1B4F
Cancels the bottom margin.
Invalid when start position detect is ON.
Set left margin
<ESC> “l”n
1B6Cn
Sets the left margin at column n (where n is between 0 and 255) at
the current character pitch.
The left margin does not move if the character pitch is changed
later.
Setting is invalid if the printing area for one line would be 36mm
or less.
Set right margin
<ESC> “Q”n
1B51n
Sets the right margin at column n (where n is between 0 and 255)
at the current character pitch.
The right margin does not move if the character pitch is changed
later.
Setting is invalid if the printing area for one line would be 36mm
or less.
LINE MODE
– 17 –
Commands to Move the Print Position
FUNCTION
CODE
HEX
REMARKS
FUNCTION
LINE MODE
CODE
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
Line feed
<LF>
0A
Prints the current line and feeds the paper to the next line.
If there is no data to print, only line feed is performed.
Carriage return
<CR>
0D
Prints the current line and feeds the paper to the next line.
This command is ignored when CR code is invalid.
Feed paper n lines
<ESC> “a”n
1B61n
Prints the current line and feeds the paper n lines (where n is
between 1 and 127).
Form feed
<FF>
0C
Feeds the paper to the top of the next page, according to the page
length set by <ESC>“C”n or <ESC>“C”<0>n when print start
position detect is ON, and according to the sensor output when print
start detect is OFF. The print position is at the left margin in both
cases.
FUNCTION
CODE
HEX
REMARKS
Horizontal tab
<HT>
09
Moves the print position to the next horizontal tab stop. Ignored if
there is no next horizontal tab stop on the current line.
– 18 –
FUNCTION
CODE
HEX
REMARKS
Vertical tab
<VT>
0B
When start position detect is invalid, feeds the paper to the next
vertical tab stop and moves the print position to the left margin.
If no vertical tabs are set, this command is ignored.
Performs a line feed if the current line is at or below the last vertical
tab stop.
This command is ignored when start position detect is valid.
FUNCTION
CODE
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
Set line spacing to 4 mm
<ESC> “z”“1”or <ESC> “z”<1>
1B7A31or1B7A01
Sets the distance the paper advances in subsequent line feeds to
4 mm.
Set line spacing to 3 mm
<ESC> “0”
1B30
Sets the distance the paper advances in subsequent line feeds to
3 mm.
One time n/4 mm feed
<ESC> “J”n
1B4An
Performs a line feed of n/4mm once only.
The value of n is 1 to 255.
Space setting for lines is not changed.
LINE MODE
– 19 –
FUNCTION
CODE
HEX
REMARKS
One time n/8 mm feed
<ESC> “I”n
1B49n
Performs a line feed n/8mm once only.
The value of n is 1 to 255.
Space setting for lines is not changed.
FUNCTION
CODE
LINE MODE
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
Set vertical tab stops
<ESC> “B”n1n2...<0>
1B42n1n2...00
Cancels all current vertical tab stops and sets new vertical tab stops
at lines n1, n2, etc., where n1, n2, etc. are numbers between 1 and
255. A maximum of 16 vertical tab stops can be set.
The tab stops must be specified in ascending order; any violation
of ascending order terminates the tab stop list. Standard termina-
tion is by the <0> control code.
The vertical tab stops are set in terms of the current line spacing and
do not move if the line spacing is changed later.
Invalid when start position detect is valid.
<ESC> "B" <0> cancels all vertical tab.
Set horizontal tab stops
<ESC> “D”n1n2...<0>
1B44n1n2...00
Cancels all current horizontal tab stops and sets new tab stops at
columns n1, n2, etc. at the current character pitch, where n1, n2,
etc. are numbers between 1 and 255. A maximum of 16 horizontal
tab stops can be set.
The tab stops must be specified in ascending order; any violation
of ascending order terminates the tab stop list. Standard termina-
tion is by the <0> control code.
The horizontal tab stops are set in terms of the current character
pitch and do not move if the character pitch is changed later.
<ESC> "D" <0> cancels all horizontal tab.
– 20 –
FUNCTION
CODE
HEX
REMARKS
Absolute position setting
<ESC> <GS> “A”n1n2
1B1D41n1n2
Sets the absolute position based on the left margin position for
starting the next printing.
n1, n2 255
0
The start of the next printing is the (n1 + n2 × 256 dot) position from
the left margin position.
Settings that exceed the print area are ignored.
FUNCTION
CODE
HEX
REMARKS
Relative position setting
<ESC> <GS> “R”n1n2
1B1D52n1n2
Sets the relative position based on the current position for starting
the next printing.
n1, n2 255
0
The start of the next printing is the (n1 + n2 × 256 dot) position from
the current position.
1. Settings that exceed the printing area are ignored.
2. When set in the right direction from the current position with
regard to the character direction, this specifies positive integers and when set in the left direction, this specifies negative
integers.
3. Negative integers are shown with the compliment 65536.
For example, if moving N pitches in the left direction:
n1 + n2× 256 = 65536 – N.
LINE MODE
– 21 –
FUNCTION
CODE
HEX
REMARKS
LINE MODE
Alignment
<ESC> <GS> “a”n
1B1D61n
Lines up all print data in one line to the specified position.
Alignment positions are shown below.
nAlignment Position
0Left
1Center
2Right
The value of n can be set to 0 (00H) to 2 (02H) or "0" (30H) to
"2"(32H).
ABC
ABCD
ESC GS a 0
}
ABCDE
ABC
ESC GS a 1
ABCD
{
ABCDE
ABC
ESC GS a 2
{
1. Enabled only when input at the beginning of the line.
2. Aligns positions in the set printing width.
3. Position alignment occurs for the data that is skipped using the
following commands.
a. Horizontal tab (HT)
b. Absolute position (ESC GS A)
c. Relative position (ESC GS R)
– 22 –
ABCD
ABCDE
Commands to Print Dot Graphics
FUNCTION
CODE
HEX
Print normal density graphics
<ESC> “K”n1n2d1...dk [k = n1+ n2× 256]
1B4Bn1n2d1...dk [k = n1+ n2× 256]
Prints normal density dot graphics. The graphics image is 24 dots
high and (n1+n2 × 256 ) × 3 dots wide.
d1, d2, ... are the dot data, each a 1-byte value from 0 to 255
representing 24 vertical dots, with the most significant bit representing the top three and the least significant bit representing the
bottom three.
<Print area>
104mm(TSP800):1 n1 + n2 × 256 277
72mm(TSP600/700):1 n1 + n2 × 256 192
52.5mm (TSP700):1 n1 + n2 × 256 140
80mm(TSP700):1 n1 + n2 × 256 213
50.8mm (TSP600/700):1 n1 + n2 × 256 135
Dots beyond the right margin are ignored.
Relationship between image data and print dots
DOT Position
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
MSB
D8
23
Image dataLSB
D7D6D5D4D3D2D1
LINE MODE
– 23 –
EXAMPLE
We will create the design below using a bit image.
d 1 d 2 d 3 d 4 d 5 d 6 d 7 d 8 d 9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30
D8
D7
D6
D5
D4
D3
D2
D1
LINE MODE
Printing Sample
First, since the volume of data is 30, n1 = (1E)
H. If the data d1 ~ d30
is converted to hexadecimal, it appears as shown below.
DataBinary
Hexa-
decimal
d1 00000001 01
d2 00011110 1E
d3 00111110 3E
d4 01011111 5F
d5 00011111 1F
d6 01011110 5E
d7 00011110 1E
d8 00111111 3F
d9 00101111 2F
d10 00111110 3E
DataBinary
d11 00111110 3E
d12 00000010 02
d13 00000010 02
d14 00111110 3E
d15 00111110 3E
d16 00101111 2F
d17 00101111 2F
d18 00111110 3E
d19 00101110 2E
d20 00101110 2E
Hexa-
decimal
DataBinary
d21 00111110 3E
d22 00101110 2E
d23 00101110 2E
d24 00111110 3E
d25 00101111 2F
d26 00101111 2F
d27 00111110 3E
d28 00111110 3E
d29 00000010 02
d30 00000010 02
Hexa-
decimal
– 24 –
FUNCTION
CODE
Print high density graphics
<ESC> “L”n1n2d1...dk [k = n1+ n2× 256]
HEX
REMARKS
1B4Cn1n2d1...dk [k = n1+ n2× 256]
Prints high density dot graphics. The graphics image is 24 dots
high and n1 + n2× 256 dots wide.
d1, d2, ... are the dot data, each a 1-byte value from 0 to 255
representing 24 vertical dots, with the most significant bit representing the top three and the least significant bit representing the
bottom three.
The number of data bytes must be n1 + n2 × 256.
<Print area>
104mm(TSP800):1 n1 + n2 × 256 832
72mm(TSP600/700):1 n1 + n2 × 256 576
50.8mm (TSP600/700):1 n1 + n2 × 256 406
Dots beyond the right margin are ignored.
Relationship between image data and print dots
DOT Position
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
MSB
D8
Image dataLSB
D7D6D5D4D3D2D1
LINE MODE
– 25 –
EXAMPLE
LINE MODE
We will create the design below using a bit image.
d 1 d 2 d 3 d 4 d 5 d 6 d 7 d 8 d 9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30
D8
D7
D6
D5
D4
D3
D2
D1
First, since the volume of data is 30, n1 = (1E)
H. If the data d1 ~ d30
is converted to hexadecimal, it appears as shown below.
DataBinary
Hexa-
decimal
d1 00000001 01
d2 00011110 1E
d3 00111110 3E
d4 01011111 5F
d5 00011111 1F
d6 01011110 5E
d7 00011110 1E
d8 00111111 3F
d9 00101111 2F
d10 00111110 3E
DataBinary
d11 00111110 3E
d12 00000010 02
d13 00000010 02
d14 00111110 3E
d15 00111110 3E
d16 00101111 2F
d17 00101111 2F
d18 00111110 3E
d19 00101110 2E
d20 00101110 2E
Hexa-
decimal
DataBinary
d21 00111110 3E
d22 00101110 2E
d23 00101110 2E
d24 00111110 3E
d25 00101111 2F
d26 00101111 2F
d27 00111110 3E
d28 00111110 3E
d29 00000010 02
d30 00000010 02
Hexa-
decimal
Printing Sample
FUNCTION
CODE
HEX
REMARKS
Horizontal density is three times that of the bit image for <ESC>“k”.
(Compare the print samples.)
Print fine density bit image
<ESC>“k”n<0>d1...dk [k = n× 24]
1B6Bn00d1...dk [k = n × 24]
Prints a bit image using 1 horizontal dot and 1 vertical dot for 1 dot
of input data.
<Print area>
104mm(TSP800):1 n 104
72mm(TSP600/700): 1 n 72
Print fine density graphics
<ESC>“X”n1n2d1...dk [k = (n1+n2×256)×3]
1B5n1n2d1...dk [k = (n1+n2×256)×3]
Prints a bit image of the input data using horizontal and vertical
resolutions of 8 dots/mm.
Data extending past the right margin is ignored.
The relationship between the input data and the actual printing is
shown below.
<Print area>
104mm(TSP800):1 n1 + n2 × 256 832
72mm(TSP600/700):1 n1 + n2 × 256 576
Note) This command is specified at the beginning of the line.
This command cancels all logo images that have already been
defined by this command. The printer cannot redefine only one of
several data definitions previously defined. Is this case, all data
needs to be sent again.
Total defined data area is 480K bytes for TSP800 (256K bytes for
TSP600 / 700).
If there is not enough empty area that was specified with the
parameter, or if any mistake in the parameter is turned out, the
processing of this command is terminated. (However, the logo
images whose definition had been completed before termination
are effective.)
When the processing of this command is completed, or terminated,
the printer will be initialized.
Form the beginning of processing of this command till the finish
of hardware reset, error process, mechanical operations and status
processes cannot be performed.
– 30 –
xn = xn1 + xn2 × 256, yn = yn1 + yn2 × 256
(yn1 + yn2× 256) bytes
(yn1 + yn2× 256) × 8dot
(xn1 + xn2× 256) × 8dot
d [11]
d [21]
d [12]
d [22]
d [n1]
d [n2]
Data
MSB
LSB
LINE MODE
d [x1]
d [x2]
– 31 –
d [xn]
FUNCTION
CODE
HEX
REMARKS
LINE MODE
Print logo image
<ESC> <FS> “p”nm
1B1C70nm
Prints the logo image n using the mode specified by m.n 1
n 255
Logo image number defined by the command <ESC> <FS>
“q” is specified.
m 0 m 3 or “0” m “3”
m = 0 or “0”Normal
m = 1 or “1”Double-width
m = 2 or “2”Double-height
m = 3 or “3”Quadruple ( double-width, double height )
Note) If there is unprinted data in the line buffer, this command will be
executed after the data in the line buffer is printed out.
This command is not affected by print modes (emphasized, under-
line, character size, etc.) except inverted printing.
Print start position in the horizontal direction is the left margin
position. Horizontal print area follows the left and right margin
settings.
If the horizontal size of the logo image exceeds the horizontal print
area, the exceeded data is not printed.
– 32 –
Commands to Print Download Characters
FUNCTION
CODE
HEX
REMARKS
EXAMPLE
Define download character
<ESC> “&”<1><1>nm1m2...m48
1B260101nm1m2...m48
Defines one new character and stores it in RAM for later use.
n is the character code of the character defined and must be
between 32 and 127.
The character matrix is 12 dots wide and 24 dots high.
Relationship between the character pattern and the character data
is shown below.
Deletes the download character which was assigned the value n.
Enable download character set
<ESC> “%”“1”or <ESC> “%” <1>
1B2531or1B2501
Enables the download character set.
Disable download character set
<ESC> “%”“0”or <ESC> “%” <0>
1B2530or1B2500
Disables the selected download character set and returns to the
built-in ROM character set.
– 34 –
Commands to Control Peripheral Devices
FUNCTION
CODE
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
Define drive pulse width for peripheral device
<ESC><BEL> n1n2
1B07n1n2
Defines the drive pulse width for peripheral devices requiring
other than standard 200 ms pulse time and delay time.
n1 indicates the energizing time and n2 indicates the delay time,
using 10ms units.
The values of n1, n2 are 1 to 127.
Control peripheral device #1
<BEL>
07
Executes drive pulse for peripheral device #1.
Control peripheral device #1
<FS>
1C
Executes drive pulse for peripheral device #1.
LINE MODE
FUNCTION
CODE
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
Control peripheral device #2
<EM>
19
Drives peripheral device #2. The drive pulse width and delay time
are fixed at 200 ms.
Control peripheral device #2
<SUB>
1A
Drives peripheral device #2. The drive pulse width and delay time
are fixed at 200 ms.
– 35 –
Commands to Control Auto Cutter
FUNCTION
CODE
HEX
REMARKS
LINE MODE
Cut command to the auto cutter
<ESC> “d”n
1B64n
n = “0” or <0> : TSP700/800
Cuts the paper fully immediately.
n = “1” or <1> : TSP600/700/800
Cuts the paper leaving one point uncut immediately.
n = “2” or <2> : TSP700/800
Cuts the paper fully after feeding the paper to
the cutting position.
When print start position detect is ON, feeds the
paper to the next print start position first, feeds
the paper to the cutting position, then cuts the
paper fully.
n = “3” or <3> : TSP600/700/800
Cuts the paper fully after feeding the paper to
the cutting position.
When print start position detect is ON, feeds the
paper to the next print start position first, feeds
the paper to the cutting position, then cuts the
paper leaving one point uncut.
FUNCTION
CODE
HEX
REMARKS
Feed to the tear bar position (TSP600 only)
<ESC> “d”“t”
1B6474
Feeds the paper to the tear bar position.
– 36 –
Other Commands
FUNCTION
CODE
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
Cancel last line & Initialize printer
<CAN>
18
Clears the line buffer, and initializes the commands set already.
Does not affect the external equipment drive conditions set by the
code <ESC> <BEL> n1 n2. (This is the same during a mechanical
error.)
Set memory switch
<ESC> <GS>“# m N n1 n2 n3 n4”<LF> <NUL>
1B 1D 23 m N 2C n1 n2 n3 n40A00
Set the memory switch. In order to enable changed memory switch
setting, turn the printer OFF and ON again or send printer reset
command (<ESC> “?”) to the printer. Changed memory switch
settings are stored in EEPROM and these setting will be stored as
long as the time when they are changed again.
N:Memory switch number (1 or 4)
n1n2n3n4 :Mode settings (For details see below)
1)Use N=1 to set printer conditions. Parameters are follows.
n1 :Always “0”
n2 :Start-position detect
n3 :Zero style
n4 :International character set
(Default)
Parammeter
n1
n2
n3
n4
Always “0”
Start-position delect (*1)
Zero style
International character set
Reinitializes the printer. Clears the print buffer and returns settings
to their power-up values.
Does not clear the input buffer, downloaded characters, or conditions for peripheral devices.
FUNCTION
CODE
HEX
REMARKS
Status byte
b7b6b5b4b3b2b1b0
Request status
<ENQ>
05
Causes the printer to transmit a status byte.
0
Constantly
set at 0Vertical Parity error
1 : error
Framing error
1 : error
Mechanical error
1 : error
Paper empty
1 : empty
Buffer empty
1 : empty
Buffer overflow
1 : overflow
Compulsion switch
High level
(Switch is set to ON)
LINE MODE
– 41 –
FUNCTION
CODE
Request Status
<EOT>
HEX
REMARKS
Status byte
LINE MODE
04
Causes the printer to transmit a status byte.
b7b6b5b4b3b2b1b0
0
0
0
Constantly
set at 0
0
0
0
Constantly
set at 0
Constantly
set at 0
Near-end sensor
1: Near-end
Paper empty
1 : empty
Constantly
set at 0
Constantly
set at 0
Constantly
set at 0
FUNCTION
CODE
HEX
REMARKS
Request status
<ESC> <ACK> <SOH>
1B0601
Causes the printer to transmit a status byte.
Header #1 (1st byte )
BitContents01
0Always“1”
1
2Number of printer status byte
3
4Always“0”
5Number of printer status byte
6Always“0”
7Always“0”
Status transmission condition is set according to the value of n.
n = 0 : ASB is invalid
n = 1 : ASB is valid
Reset the printer hardware
<ESC> “?” <LF><NUL>
1B3F0A00
Resets the printer hardware.
– 45 –
3. STAR PAGE MODE (TSP800 ONLY)
3-1. Command Summary
The printer has the following control commands. Each control code starts with
<ESC> code and ends with <LF> <NUL> codes, except for the Request status
command <ENQ> and the Call Download Character command <ESC> “G”.
Format Definition
Control codes
<ESC> “C”<LF> <NUL>
<ESC> “D n1n2n3n4” <LF>
00
1B 3F 0A 00
05
04
1B 06 01
1B 1E 61 n
1B 4E n1n2 0A 00
1B 46 n1n2 3B d1.…d48
0A 00
1B 5A n 0A 00
Function
Print Label
Print Label
Enable cutter
Set Memory Switch
Reset printer
Request status
Request status
Request status
Set status transmission condition
Select international character set
Register download character
Select “zero”style
Pages
59
59
60
60
61
62
63
63
67
67
68
68
PAGE MODE
– 47 –
3-2. Command Specification
Format Definition
FUNCTION
CODE
Clear format
<ESC> “C” <LF><NUL>
HEX
REMARKS
PAGE MODE
FUNCTION
CODE
HEX
REMARKS
1B430A00
When the printer receives this command, all defined format and
image data are cleared.
The format defined by the following commands will be cleared.
<ESC> “D”
<ESC> “E”<ESC> “L”<ESC> “PC”<ESC> “PB”
<ESC> “Y”<ESC> “RC”<ESC> “RB”<ESC> “Q”
<ESC> “H”<ESC> “K”<ESC> “B”
Define print area
<ESC> “Dn1n2n3n4” <LF> <NUL>
1B44n1n2n3n40A00
This command defines the print area(page length) according to the
value of n1n2n3n4 in 1/10 mm unit.
n1n2n3n4:Print area 0001 to 2000 (0.1 mm to 200 mm)
Note:When a value greater than the size of the label is set,
two or more labels are assumed to be one label.
For example, when 50 mm is set for a label whose
pitch is 40 mm, one print pattern is printed using two
labels.
To avoid such a case, approx. 5 mm of each top and
bottom margins should be considered.
ABCD
EFG
ABCD
EFG
40 mm
ABCD
EFG
50 mm
ABCD
EFG
– 48 –
FUNCTION
CODE
Define ruled line format
<ESC> “L n1n2;x1x2x3x4 , y1y2y3y4 , x5x6x7x8 ,
y5y6y7y8 , d , w” <LF> <NUL>
HEX
REMARKS
1B4C n1n2 3B x1x2x3x4 2C y1y2y3y4 2C x5x6x7x8 2C
y5y6y7y82C d 2C w0A00
This command defines ruled line format.
n1n2:Line number(00 to 63)
x1x2x3x4 :Position of the starting point in the X direction (0000
to 1040 × 0.1 mm)
y1y2y3y4 :Position of the starting point in the Y direction (0000
to 2000 × 0.1 mm)
x5x6x7x8 :Position of the ending point in the X direction (0000
to 1040 × 0.1 mm)
y5y6y7y8 :Position of the ending point in the Y direction (0000
to 2000 × 0.1 mm)
These four parameters work in 1/10 mm unit, and should be given
with four digit numbers.
d:Line directiond=0 : Horizontal line
d=1 : Vertical line
When d=0, then y1y2y3y4 = y5y6y7y8. When d=1,
then x1x2x3x4 = x5x6x7x8.
w:Line width 1 to 9 dots
Note:a) This command is used to define lines for label fram-
ing.
b) Up to 64 lines can be defined.
c) Lines must be vertical or horizontal (no diagonal
line).
d) The width of one dot is about 0.125 mm, and so four
dots make 0.5 mm width.
PAGE MODE
FUNCTION
CODE
HEX
REMARKS
Cancel ruled line format
<ESC> “E n1n2” <LF><NUL>
1B45n1n20A00
This command cancels the line previously defined by<ESC> “L
<LF>.…nm1nm2.…nmk”0A 00
This command stores graphic data into image memory.
n:“;” : OR mode
“:” : Overwrite mode
x1x2x3x4 :Print start position in the X direction. (0000 to 1040 ×
0.1 mm)
y1y2y3y4 :Print start position in the Y direction. (0000 to 2000 ×
0.1 mm)
h1h2h3h4 :Defines the length (Y direction) of the graphic area.
(0001 to 1600 dots)
w1w2w3: Defines the width (X direction) of the graphic area.
(001 to 104 dots)
n11.…nmk:n11 represents data in the 1st line. Each line ends with
<LF>.
Data (X direction) appears in the same way as bit
image data. n21 represents data in the 2nd line.
Note:a) This command can be used any number of times.
b) Size of graphic data is set in 1 mm units (byte units
(8 bits/bytes)) in the X direction and 0.125 mm units
(dot units) in the Y direction.
c) <ESC> “X” cancels data that was set using the
command.
d) If “;” or “,” is missing, printer goes into an error
condition.
– 56 –
FUNCTION
CODE
Copy BMP file to printer
<ESC>“Hnx1x2x3x4,y1y2y3y4,
(BMP file data),”<LF> <NUL>
HEX
REMARKS
1B48nx1x2x3x4 2C y1y2y3y4 2C
(BMP file data)2C0A00
This command copies BMP file to the printer(Image buffer). BMP
file can be scanned by scanner and edited by a program such as the
PAINT BRUSH in the WINDOWS. The printer can accept noncompressed monochrome BMP file only.
BMP file contains white pixel (dots). There are two mode in this
command depending on how to handle these white pixels when
there are black pixels already set in the area to be printed on.
n : Mode“;” 3B(hex) “OR” mode : White pixels (area) of
BMP file do not erase black pixels previously set.
“:” 3A(hex) “OVERWRITE” : White pixels (area) of
BMP file erase(overwrite) black pixels previously set.
x1x2x3x4:Print start position in the X direction
y1y2y3y4:Print start position in the Y direction
BMP file data :Command accepts BMP non-compressed mono-
chrome graphic file as binary file.
Note :Printer will result in an error on the following condi-
tions:
a) Error in command format structure
b) If either start position or image data is located out of
print area.
c) If a BMP file does not meet command specification.
(Printer can only accept non-compressed, monochrome BMP file)
– 57 –
FUNCTION
CODE
HEX
REMARKS
Call download character
<ESC> “Gn1n2,n3n4”<ESC> “0”
1B47n1n22Cn3n41B30
This command calls download character.
n1n2,n3n4 : Reference numbers of defined download characters(00
to 31).
Note :Only standard size characters (16 (W) × 24 (H) dots) can
be defined as download characters.
FUNCTION
CODE
HEX
PAGE MODE
REMARKS
FUNCTION
CODE
HEX
REMARKS
Store logo data into image memory
<ESC> “K nx1x2x3x4,y1y2y3y4,d1d2d3”
<LF><NUL>
1B51 nx1x2x3x4 2C y1y2y3y4 2C d1d2d3
0A00
This command stores logo data into image memory.
n :“;” : OR mode
“:” : Overwrite mode
x1x2x3x4 : Print start position in the X direction (0000 to 1040 ×
0.1mm)
y1y2y3y4 : Print start position in the Y direction (0000 to 2000 ×
0.1mm)
d1d2d3 :Logo registration number (001 to 255)
Note :Logo data is registered in Line mode.
Clear image data
<ESC> “X” <LF><NUL>
1B580A00
When the printer receives this command, the defined image data
are cleared.
The following commands will be cleared by<ESC> “X”
<ESC> “RC”<ESC> “RB”<ESC> “Q”<ESC> “H”<ESC> “K”
– 58 –
Other commands
FUNCTION
CODE
Print Label
<ESC> “I” <LF><NUL>
HEX
REMARKS
FUNCTION
CODE
HEX
REMARKS
1B490A00
This command prints out one label according to the previously
defined format and data.
When print start position detect is ON, the paper will be fed to the
next print start position after printing.
If unrecoverable error occurs during printing, a series of these
operation will be repeated after the printer recovers from the error
condition.
Print Label
<ESC> “W s1s2s3s4, h1h2h3h4” <LF> <NUL>
1B57 s1s2s3s4 2C h1h2h3h40A00
This command prints out the data within the defined print area.
Print area defined by <ESC>“D” is ignored.
When print start position detect is ON, the paper will be fed to the
next print start position after printing.
If unrecoverable error occurs during printing, a series of these
operation will be repeated after the printer recovers from the error
condition.
s1s2s3s4 :Print start position in the Y direction (unit: 0.1 mm)
h1h2h3h4: Print length from the print start position (unit: 0.1
mm)
PAGE MODE
– 59 –
FUNCTION
CODE
HEX
REMARKS
PAGE MODE
Enable cutter
<ESC> “Bdn1n2” <LF><NUL>
1B42dn1n20A00
This command defines cut position and enables cutter. This
command does not energize cutter.
Cutter will be operated only when receiving<ESC> “I” command.
d:“+” or “-” indicates the direction of the cut position
from the normal position.
“+” indicates a forward feed, and “-” indicates a
reverse feed from the normal cut position.
n1n2:Indicates the value to move in 1/10 mm unit.(00 to 50)
Note:a) If these parameters (d and n1n2) are omitted, then the
cut position is set at the default position.
b) Default cut position , or normal position, is at the
bottom edge of the print area.
c) d:“@” means that cutting operation is omitted one
time. In this case, n1n2 is not specified.
FUNCTION
CODE
HEX
REMARKS
Set Memory Switch
<ESC>“#N,n1n2n3n4”<LF> <NUL>
1B23N2C n1n2n3n4 0A00
Set the memory switch. In order to enable changed memory switch
settings, turn the printer OFF and ON again or send printer reset
command (<ESC>“?”) to the printer. Changed memory switch
settings are stored in EEPROM and these setting will be stored as
long as the time when they are changed again.
N:Memory switch number (1 only)
n1n2n3n4 : Mode settings (For details see below)
1) Use N=1 to set printer conditions. Parameters are as follows.
n1 : Always “0”
n2 : Start-position detect
n3 : Zero style
n4 : International character set
– 60 –
Parameter
Setting
(Default)
0
1
FUNCTION
CODE
HEX
REMARKS
EXAMPLE
Always “0”
n1
n2
Start-position detect
n3
Zero style
n4
International character set
n4 Country
0USA
1France
2Germany
n4 Country
C Latin America
n4 Country
3UK
4Denmark #1
5Sweden
-
OFF
Normal zero
n4 Country
6Itary
7Spain #1
8Japan
-
ON
Slashed zero
See below
n4 Country
9Norway
A Denmark #2
B Spain #2
Reset printer
<ESC>?<LF><NUL>
1B3F0A00
Resets the printer and prints self-test. This command will also set
memory switch conditions without the need to turn the printer
power OFF and ON again.
LPRINT CHR$(&H1B);“?”;CHR$(&H0A);CHR$(&H00);
PAGE MODE
– 61 –
FUNCTION
CODE
HEX
REMARKS
Status byte
Request status
<ENQ>
05
When the printer receives this command, the printer sends back a
status byte for the current printer condition immediately to the
host.
Note:Printer conditions are reported by the following status
bytes:
b7b6b5b4b3b2b1b0
0
PAGE MODE
Constantly
set at 0Vertical Parity error
1 : error
Framing error
1 : error
Mechanical error
1 : error
Paper empty
1 : empty
Buffer empty
1 : empty
Buffer overflow
1 : overflow
Compulsion switch
High level
(Switch is set to ON)
– 62 –
FUNCTION
CODE
HEX
REMARKS
Status byte
Request status
<EOT>
04
When the printer receives this command, the printer sends back a
status byte for the current printer condition immediately to the
host.
Note:Printer conditions are reported by the following status
bytes:
b7b6b5b4b3b2b1b0
0
Constantly
set at 0
01
Constantly
set at 1
Constantly
set at 0
Near-end sensor
1: Near-end
Paper empty
1 : empty
Constantly
set at 0
Constantly
set at 0
Constantly
set at 0
PAGE MODE
FUNCTION
CODE
HEX
REMARKS
Request status
<ESC> <ACK> <SOH>
1B0601
When the printer receives this command, the printer sends back a
status byte for the current printer condition to the host.
– 63 –
Header #1 (1st byte )
BitContents01
0Always“1”
1
2Number of printer status byte
3
4Always“0”
5Number of printer status byte
6Always“0”
7Always“0”
0Always“0”
1
2Version No. of the Automatic status
3
4Always“0”
5
Version No. of the Automatic status
6
7Always“0”
-
-
-
– 64 –
Version No. n
100000010B (02 Hex)
200000100B (04 Hex)
300000110B (06 Hex)
400001000B (08 Hex)
500001010B (0A Hex)
600001100B (0C Hex)
700001110B (0E Hex)
800100000B (20 Hex)
900100010B (22 Hex)
1000100100B (24 Hex)
...
Header #2
...
1601000000B (40 Hex)
...
3001101100B (6C Hex)
3101101110B (6E Hex)
...
Printer status #1 (3rd byte )
BitContents01
0Always“0”
1<ETB> commandUnexecutedExecuted
2Compulsion switchOpenClose
3ON Line / OFF LineON LineOFF Line
4Always“0”
5Cover openCloseOpen
6OFF Line due to ON Line switch pushedOFF Line
7Always“0”
This command sets the status transmission condition.
n = “0” or <0> : ASB is invalid
n = “1” or <1> : ASB is valid
Select international character set
<ESC> “N n1n2” <LF><NUL>
1B4En1n20A00
This command defines temporary change of the international
character set.
For permanent change of the international character set, change
memory switch settings by using<ESC> “#”.
n1n2
Country
00 U.S.A
01 France
02 Germany
n1n2
Country
12 Latin America
n1n2
Country
03 UK
04 Denmark #1
05 Sweden
n1n2
Country
06 Itary
07 Spain #1
08 Japan
n1n2
Country
09 Norway
10 Denmark #2
11 Spain #2
PAGE MODE
– 67 –
FUNCTION
CODE
HEX
REMARKS
Register download character
<ESC> “Fn1n2; d1.…d48” <LF><NUL>
1B46n1n23Bd1.…d480A00
This command defines one download character.
n1n2:Download character reference number.(00 to 31).
d1.…d48 :Character bit map data.
Note:Only standard size character (16 (W) × 24 (H) dots)
can be defined as download characters.
MSBLSB MSBLSB
d1
d3
d5
d7
d9
d2
d4
d6
d7
d10
PAGE MODE
FUNCTION
CODE
HEX
REMARKS
d45
d47
d46
d48
Select “zero” style
<ESC> “Zn”<LF><NUL>
1B5An0A00
This command selects zero style, normal zero slashed zero.
n=0 : Select normal zero.
n=1 : Select slashed zero.
– 68 –
4. DP8340 MODE (TSP800 ONLY)
4-1. Command Summary
Control codes
<LF>0APrint and line feed instruction70
<CR>0DPrint and line feed instruction70
<SO>0EExpanded character instruction70
<DC4>14Expanded character release70
<ESC> “–” “1”1B 2D 31
<DC2>12Inverted print release71
<ESC> “E”1B 45Emphasized print instruction71
<ESC> “F”1B 46Emphasized print release71
<ESC> “4”1B 34Highlighted character print instruction71
<ESC> “5”1B 35Highlighted character print release71
<ESC> “R” n1B 52 nInternational Character set selection72
<ESC> “a” n1B 61 nn-line feed instruction72
<ESC> “C” n1B 43 nSets page length in lines72
<ESC> “N” n1B 4E nSet bottom margin in lines73
<ESC> “O”1B 4FCancel bottom margin73
<FF>0CForm feed73
<ESC> “@”1B 40Printer initialization instruction73
<ESC> <BEL> n1 n21B 07 n1 n2Set peripheral unit drive pulse duration73
<BEL>07Trigger peripheral unit drive #174
<FS>1CTrigger peripheral unit drive #174
<SUB>1ATrigger peripheral unit drive #274
<ENQ>05Enquiry74
<CAN>18Clears print buffer74
Hexadecimal
codes
FunctionPage
(Same as LF)
Underline isrtruction
Underline release
70
70
DP8340 MODE
– 69 –
4-2. Command Specification
CODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
DP8340 MODE
CODE
FUNCTION
LF
H
(0A)
Print and line feed instruction
The LF code causes the data in the line buffer to be printed,
followed by a single line feed. When the line buffer is empty,
only the feed takes place.
CR
H
(0D)
Print and line feed instruction
Same function as of LF code.
However, when the DIP switch 1-3 is ON, the CR code
becomes invalid.
SO
H
(0E)
Expanded character instruction
This code causes the printer to print expanded characters
twice as wide as the regular ones. This remains in effect until
a DC4 code is received.
DC4
H
(14)
Release from expanded characters
OUTLINE
CODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
The expanded character instruction is released by the DC4
code, and the succeeding data is printed as regular width
characters.
ESC-1
H (2D)H (01)H or (1B)H (2D)H (31)H
(1B)
Underline mode selection
All data received after this code is underlined until a ESC-0
is received.
ESC-0
H (2D)H (00)H or (1B)H (2D)H (30)H
(1B)
Release from underline mode
The underline mode selection is released by this code.
– 70 –
CODE
FUNCTION
SI
H
(0F)
Inverted print instruction
OUTLINE
CODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
This function causes the printing to be inverted. This code
must be received at the beginning of a line. If this code is
received anywhere other than at the beginning of a line, it is
disregarded. Accordingly, normal characters and inverted
characters, can not be mixed on the same line.
DC2
H
(12)
Release from inverted print instruction
The inverted print instruction is released by this code. This
code must be received at the beginning of a line.
ESC E
H (45)H
(1B)
Emphasized print mode instruction
Data following this command is printed with emphasized
characters.
ESC F
H (46)H
(1B)
Release from emphasized print instruction
Emphasized print is released.
DP8340 MODE
CODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
ESC 4
H (34)H
(1B)
Highlighted character print instruction
This command causes subsequent data to be printed with
highlighted characters.
The instruction is released by the code, ESC 5.
ESC 5
H (35)H
(1B)
Release from highlighted character print instruction
The highlighted character print instruction is released by this
code.
– 71 –
CODE
FUNCTION
ESC R n
H (52)H n
(1B)
International character set selection
OUTLINE
CODE
FUNCTION
OUTLINE
DP8340 MODE
CODE
FUNCTION
OUTLINE
Selects an international character set according to the value of
n, as shown bolow:
n :Character setn :Character set
0 :U.S.A.8 :Japan
1 :France9 :Norway
2 :Germany10 : Denmark II
3 :England11 : Spain II
4 :Denmark I12 : Latin America
5 :Sweden13 : Korea
6 :Italy14 : Ireland
7 :Spain I64 : Legal
ESC a n
H (61)H n
(1B)
n-line feed
After printing the data in the current line, n lines are fed by this
code. The value of n ranges from 1 to 127.
ESC C n
H (43)H n
(1B)
Sets page length in lines
This code sets the length of a page to n lines. The value of n
ranges from 1 to 127. On initialization, the page length
default condition will be 42 lines. The line feed pitch is onesixth inch.
– 72 –
CODE
FUNCTION
OUTLINE
ESC N n
H (4E)H n
(1B)
Sets bottom margin in lines
Upon receiving this code, the bottom margin is set to n lines.
n 255; Default Value n = 0
0
CODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
ESC O
H (4F)H
(1B)
Cancels bottom margin.
Upon input of this code, bottom margin setting is cleared.
FF
H
(0C)
Form feed
The FF code prints the data in the current line and transports
the paper to the start of the next page.
ESC @
(1B)
H (40)H
Printer initialization
All printing conditions except ESC BEL n1 n2, the line buffer
and data buffer are set to the power on default condition.
ESC BEL n1 n2
This command sets the pulse duration for peripheral unit
drive (Paper Cutter, Take-Up Device, cash drawer, etc.)
Pulse Duration = 10 × n
Delay = 10 × n
n1 127; 1 n2 127
1
Default value: n
2 (ms)
1 = n2 = 20
1 (ms)
– 73 –
DP8340 MODE
Executed by BEL code and FS code after printing.
CODE
FUNCTION
OUTLINE
CODE
DP8340 MODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
CODE
FUNCTION
OUTLINE
BEL
H
(07)
Trigger peripheral unit drive #1
Causes a peripheral drive pulse to be generated. This code is
normally stored in the buffer and is performed as it is received
from the data queue.
FS
H
(1C)
Trigger peripheral unit drive #1
Causes a peripheral drive pulse to be generated immediately.
SUB
H
(1A)
Trigger peripheral unit drive #2
Causes a peripheral drive pulse to be generated. The drive
pulse width and delay time are fixed at 200 ms.
ENQ
H
(05)
Enquiry
When this code is received, the printer outputs status data.
If it is input after text data input in the STX-ETX mode, the
printer outputs status data and the check byte.
CODE
FUNCTION
OUTLINE
CAN
H
(18)
Clears print buffer
Upon input of this code the data buffer and line buffer is
cleared.
– 74 –
5 : ESC/POS Mode Command Summary
Control CodeHexadecimal CodeFunction
HT09Horizontal tab
LF0APrint line feed
CR0DCarriage return
FF0CPage mode print and return
DLE EOT1004Real time transmission of status
DLE ENQ1005Real time request to printer
DLE DC41014Generate pulse at real time
CAN18Cancel print data in page mode
ESC FF1B FFPrint page mode data
ESC SP1B 20Set right space amount of character
ESC !1B 21Select print mode
ESC $1B 24Designate absolute printing
ESC %1B 25Designate/cancel download character set
ESC &1B 26Define download characters
ESC
*
ESC -1B 2DDesignate/cancel underline
ESC 21B 32Set 1/6 inch line feed amount
ESC 31B 33Set line feed amount
ESC =1B 3DSelect peripheral equipment
ESC ?1B 3FDelete download characters
ESC @1B 40Initialize printer
ESC D1B 44Set horizontal tab position
ESC E1B 45Designate/cancel emphasized print
ESC G1B 47Designate/cancel double print
ESC J1B 4APrint and paper feed
ESC L1B 4CSelect page mode
ESC M1B 4DSelect character
ESC R1B 52Select an international character set
ESC S1B 53Select standard mode
ESC T1B 54Select character print direction in page mode
ESC V1B 56Designate/cancel 90° character rotation
ESC W1B 57Set print range in page mode
ESC \1B 5CDesignate relative position
ESC a1B 61Align position
ESC c 3IB6333Select no-paper detector for output of no-paper signal
ESC c 41B 6334Select no valid paper detector at print stop
ESC c 51B 6335Enable/disable panel switch
ESC d1B 64Print and paper feed “n” lines
1B 2ADesignate bit image mode
ESC/POS
– 75 –
ESC p1B 70Designate pulse generation
ESC t1B 74Select character code table
ESC {1B 7BDesignate/cancel inverted printing
FS g 11C 6731Write to user NV memory
FS g 21C 6732Read from user NV memory
FS p 1C70Print NV bit image
FS q n1C 71Define NV bit image
GS !1D 21Designate character size
GS $1D 24Designate absolute position of vertical direction of
GS
GS ( A1D 2841Execute test print
GS /1D 2FPrint download bit image
GS :1D 3AStart/finish macro definition
GS B1D 42Designate/cancel reverse printing
GS E1D 45Select print speed and head energizing time
GS H1D 48Select print position of HRI characters
GS I1D 49Printer ID transmission
GS L1D 4CSet left margin
GS P1D 50Set basic calculated pitch
GS V1D 56Paper cut
GS W1D 57Set print range
GS \1D 5CDesignate the relative position of vertical characters when
GS ^1D 5EExecute macro
GS a1D 61Enable/disable automatic status transmission
ESC/POS
Gs b1D 62Smoothing setting/cancel
GS f1D 66Select HRI character font
GS h1D 68Set bar code height
GS k1D 6BPrinting of bar code
GS r1D 72Transmission of status
GS v 01D 7600Print raster bit image
GS w1D 77Set lateral size of bar code
ESC GS =1B 1D 3DWrite to space code page
ESC GS t1B 1D 74Select character code table
ESC GS #1B 1D 23Set memory switch
Control CodeHexadecimal CodeFunction
characters in page mode
*
1D 2ADefine download bit image
printing in the page mode
– 76 –
Appendix 1 : How to set various bar codes
Refer to the industry standards reference material for the features and applications of each bar code symbology.
This section of this document covers the proper commands to select the bar code
symbology required.
(1) CODE 39
CODE 39 can represent numeric characters from 0 to 9 and alphabetical
characters A to Z. Width of each bar of bar code depends on the mode.
The number of dots for each element of the bar code in each mode is shown as
below. The number of dots depends on whether the print direction is horizontal
or vertical.
1) Length of each element in each mode
a) Horizontal printing
Item
Width of narrow
elements
Width of wide
elements
Ratio
Inter-character
space
Length of one
character (mm)
In vertical printing, one dot is added to each white bar which is horizontally
printed. (This is because the width of black bars is made wider due to the
change of printing characteristics caused by heating of the printing head. As
a result, the number of dots for white bars and for black bars are different
even when white and black bars have the same narrow-element width.
Length of each element is as shown below.
a) The Start code and the Stop code of CODE 39 are automatically added.
b) The position defined by the control command locates the bar code symbols.
It is necessary to provide space for a quiet zone for bar code symbol.
3) ANSI and AIM specifications (for reference only)
a) Width of narrow elements:
Minimum 0.0075 inch (0.191 mm)
b) Ratio of narrow-element width to width-element width:
1 : 2.2 (the width of narrow elements is 0.508 mm or smaller)
1 : 2 (the width of narrow elements is 0.508 mm or greater)
c) Inter-element space:
Minimum is the same as the narrow-element width.
Maximum is three times the narrow-element width or 1.524 mm, whichever
is greater.
d) Bar height:
For hand scanners, the minimum is 0.25 inch (6.35 mm) or 15% of the bar
code-length, whichever is greater.
For non-hand scanners, the minimum is 0.8 inch (20.3 mm) or 25% of the
bar code-length, whichever is greater.
e) Quiet zone:
EXAMPLE Bar code string number 11 ,starting position of bar code (X,Y)
APPENDIX
Minimum is ten times the narrow-element width or 0.10 inch (2.54 mm),
whichever is greater.
For hand scanners, the minimum is 0.25 inch (6.35 mm) or greater.
= 10 mm, 10 mm, use Mode 2 of CODE39, Bar code height
10mm data:ABCDEFG, bar code rotation direction 0 degree.
This code can represent numeric characters from 0 to 9. This code can be used for
an application that requires higher character density.
JIS and EAN specify that this code be used for printing on corrugated boxes.
1) Width of narrow elements and length of two characters
a) Horizontal printing
Item
Width of narrow
elements
Width of wide
element
Ratio
Length of one
character (mm)
a) The start and stop patterns are automatically inserted.
b) The check characters are automatically inserted.
c) 2-character set codes are same as CODE 128. (Expect FNC1-4, and START
EXAMPLE Bar code number 00, starting position of bar code (X, Y) = 40
APPENDIX
Item
Module width
Width of one
character (mm)
A-C)
Mode 1Mode 2 Mode 3
2 dots 3 dots 4 dots
2.6253.754.875
mm, 16 mm Mode 2 of CODE 93, Bar code rotation: 0 degree.
Bar code height 10 mm, Data “ABCDefg”
These codes are common commodity codes, mainly used for miscellaneous
goods or groceries sold at supermarkets.
1) Each mode and bar code width
a) Horizontal printing
Item
Module width
Bar code width
JAN/EAN-8
JAN/EAN-13, UPC
Mode 1Mode 2Mode 3
2 dots3 dots4 dots
16.75 mm 25.125 mm33.5 mm
23.75 mm 36.625 mm47.5 mm
Note: Right and left guard bars are included, white spaces are not included.
b) Vertical printing
Item
Module width
Bar code width
JAN/EAN-8
JAN/EAN-13, UPC
Mode 1Mode 2Mode 3
2 dots3 dots4 dots
13.375 mm 27.75 mm36.125 mm
27.624 mm39.5 mm51.375 mm
Note: Right and left guard bars are included, white spaces are not included.
2) REQUIREMENTS
a) JAN/EAN-8
Must consist of a 7 or 8 numeric digits, otherwise, the command is ignored.
The check digit is automatically added using modules 10/3 weight.
When the calculated value and the value in the 8th digit differ, the former
value has precedence over the latter values.
b) JAN/EAN-13
Must consist of a 12 or 13 numeric digits; otherwise, the command is
ignored. The check digit is automatically added using modules 10/3 weight.
When the calculated value and the value in the 13th digit differ, the former
value has precedence over the latter values.
c) UPC-A Must consist of a 11 or 12 numeric digits, otherwise, the command
is ignored. The check digit is automatically added using modules 10/3
weight.
When the calculated value and the value in the 12th digit differ, the former
value has precedence over the latter values.
– 81 –
APPENDIX
EXAMPLE Bar code string number 10, starting position of bar code (X, Y)
= 5 mm, 10 mm, use Mode 1 of EAN-13, Bar code height 10 mm
data:246801357956, bar code rotation direction 0 degree
a) Horizontal printing Note: The start and stop bars are not included.
Item
Module width
Width of one
character
Mode 1Mode 2Mode 3
2 dots3 dots4 dots
2.75 mm4.125 mm5.5 mm
b) Vertical printing
2) REQUIREMENTS
%(25 H) is sent as data %0(25H 35H). Control codes 00H to 1FH and 7FH are
sent as data % followed by 40H to 5FH and 35 H. For example, control code 7FH
is sent as data %5 (25H 35H). Function codes are sent as data % followed by 1
to 4 (31H to 34H). The start code is sent as data % followed by 6 to 8(36H to 38H).
APPENDIX
Although CODE 128 data requires START CODE, the printer automatically adds
START CODE. Please omit START CODE when sending data to the printer.
EXAMPLE Bar code string number 00, starting position of bar code (X, Y)
= 15 mm, 5 mm, use Mode 1 of CODE128, Bar code height 15
mm, data: 1213477657, and CR (carriage return)
LPRINT CHR$(&H1B);“PB00;0150,0050,1,7,0150”;
CHR$(&H0A);CHR$(&H00);
LPRINT CHR$(&H1B);“RB00;1213477657%M”;
CHR$(&H0A);CHR$(&H00);
– 83 –
APPENDIX
(8) NW-7
NW-7 bar code can represent numeric characters 0 to 9 and special characters
such as - , $ , : , / , . , + with one of character from A to D as Start or Stop code
in NW-7.
1) Width of character in each mode
Width of each bar code character varies since number of narrow bars and wide
bars are different in each character.
Normal character
(number of narrow element : 5 , number of wide element : 2)
0 to 9 , $ , -
Wide character
(number of narrow element : 4 , number of wide element : 3)
: , / , . , + , A to D
Length of each bar code character includes a space between characters.
a) Horizontal direction print
Item
Width of narrow
elements
Width of wide
element
Ratio
Space between
characters
1) Select sensor adjustment mode with DIP switch setting.
2) Turn the power ON.
3) With the paper roll installed, turn and adjust VR2 until both POWER /
ERROR LEDs light.
4) Turn the power OFF.
5) Select standard mode with DIP switch setting.
(2) Near-end sensor adjustment
Operation Procedure
1) Select sensor adjustment mode with DIP switch setting.
2) Turn the power ON while holding FEED switch pushed (POWER LED
will lights), then release FEED switch immediately.
3) With the paper roll uninstalled, turn fully VR1 counterclockwise.
If ERROR LED lights, adjustment is not necessary.
If not, adjust VR1 until both POWER / ERROR LED
4) Install the paper roll and confirm that only POWER LED lights.
5) Turn the power OFF.
6) Select standard mode with DIP switch setting.
s light.
– 85 –
APPENDIX
Appendix 3 : Character code tables
A3-1. STAR Line Mode
(Character table: Normal)
APPENDIX
Note: The (7F)H code is a space when neither normal nor katakana.
– 86 –
STAR Line Mode
(Character table: Normal)
– 87 –
APPENDIX
STAR Line Mode
(Character table: Code page 437 )
APPENDIX
Note: Other characters are the same as those for Character table: Normal.
– 88 –
STAR Line Mode
(Character table: Katakana)
Note: Other characters are the same as those for Character table: Normal.
– 89 –
APPENDIX
STAR Line Mode
Code Page #858Code Page #852
Multi-lingualLatin-2
Code Page #860Code Page #861
PortugueseIcelandic
APPENDIX
Note: Other characters are the same as those for Character table: Normal.
– 90 –
STAR Line Mode
Code Page #863Code Page #865
Canadian FrenchNordic
Code Page #866
Cyrillic Russian
Note: Other characters are the same as those for Character table: Normal.