Documente Academic
Documente Profesional
Documente Cultură
Version1.0
2/67
Content
CAUTIONS ........................................................................................................................... 3
1 Outline ................................................................................................................................ 4
1.1General Specifications ................................................................................................ 4
1.2 Features .................................................................................................................... 4
1.3 APPLICATION ......................................................................................................... 5
2 Printer outline pictures and dimension ................................................................................... 5
2.1 Outline pictures ......................................................................................................... 5
2.2 Dimension................................................................................................................. 5
3 How to use .......................................................................................................................... 6
3.1 Printing test ............................................................................................................... 6
3.2 Panel LED Indicators ................................................................................................. 6
4 Connector ........................................................................................................................... 6
4.1 Power supply connector and Serial communication connector (J2) ................................ 7
4.2 USB connector .......................................................................................................... 7
5 Define of the FPC cable for the prinrer mechanism (FPC 30PINs) ........................................... 8
6 Using attention .................................................................................................................... 9
7 ESC/POS Printing Command Set .......................................................................................... 9
7.1 Command list ............................................................................................................ 9
7.2 Command Detail...................................................................................................... 11
7.2.1 Print Commands ............................................................................................ 11
7.2.2 Line spacing setting commands....................................................................... 14
7.2.3 Character Setting Commands .......................................................................... 16
7.2.4 Bit Image Command ...................................................................................... 28
7.2.5 Init command ................................................................................................ 38
7.2.6 Status Command............................................................................................ 38
7.2.7 Bar Code Command....................................................................................... 40
7.2.8 Miscellaneous Function Command.................................................................. 45
7.2.9 New commands ............................................................................................. 47
Appendix 1 Code page .......................................................................................................... 51
Appendix 2 International character set: .................................................................................. 66
3/67
CAUTIONS
1. This document shall apply only to the product(s) identified herein.
2. No part of this document may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, electronic, mechanical, photocopying, recording,
or otherwise, without the prior written permission of Kashino Technology Limited.
3. The contents of this document are subject to change without notice. Please contact us
for the latest information.
4. While every precaution has been taken in the preparation of this document, Kashino
Technology Limited assumes no responsibility for errors or omissions.
5. Neither is any liability assumed for damages resulting from the use of the information
contained herein.
6. Kashino Technology Limited shall be not liable to the purchaser of this product or third
parties for damages, losses, costs, or expenses incurred by the purchaser or third parties
as a result of: accident, misuse, or abuse of this product or unauthorized modifications,
repairs, or alterations to this product, or failure to strictly comply with Kashino Technology
Limited 's operating and maintenance instructions.
7. Kashino Technology Limited shall not be liable against any damages or problems
arising from the use of any options or any consumable products other than those
designated as Original Kashino Products or Kashino Approved Products by Kashino
Technology Limited.
4/67
1 Outline
1.1General Specifications
Character
Paper Spec
Reliability
Printing Method
Printing Speed
Resolution
Effective Printing Width
Character Set
Print Font
50-80mm/s
8 dots/mm, 384 dots/line
48mm
ASCII,GB2312-80(Chinese)
ANK:9X17,12X24, GBK:2424
Paper Type
Thermal paper
Paper Width
57.5 0.5mm
Paper Thickness
0.06 to 0.07mm
13mm(min.)
Max: 22mm
MCBF
5 million lines
Interface
RS232/TTL/USB
Insert Depth
40mm
DC5V-9V or 12VDC
Physical
Environment
Color
Black/Beige
Operating Temp
Operating Humidity
Storage Temp
5C ~ 50C
10% ~ 80%
-20C ~ 60C
Storage Humidity
10% ~ 90%
1.2 Features
Smart appearance
Easy paper loading
Low noise thermal printing
Different interfaces optional
Front panel make paper replacement easily
Easily embedded to any kinds of instruments and meters
Printer control panel built-in GB18030 Chinese character, thoroughly remove the
uncommon words of anguish. and it can be updated with different language fonts
Can support Max.22MM (diameter) paper roll, around 16-20 meter.
Optional serial interface (RS-232C, TTL, USB)
Rich of graphics / curves / characters print function
Support 5V-9V wide power voltage, or 12V
1.3 APPLICATION
2.2 Dimension
Outline is as follows:
5/67
6/67
3 How to use
3.1 Printing test
After power up, press K1 button, and disconnect on the controller board, one test page will
be printed.
Note: The name of short-circuit point is different from each board.
7/67
Blink twice:
Blink three times:
Blink four times:
Blink five times:
Blink six times:
Blink ten times:
4 Connector
Please refer to chart printing control board size and interface definition.
You can choose use RS232, TTL level, USB before leaving factory.
Pin number
Signal name
VH
RTS/DTR(printer output)
GND
8/67
Signal name
Function
PHK
VSEN
Photo-sensor power
PHE
MT/B
--
MT/B
MT/A
--
MT/A
VH
VH
10
DI
Data input
11
CLK
12
GND
13
GND
14
STB6
15
STB5
16
STB4
17
VDD
Logic power
18
TM
19
TM
20
STB3
21
STB2
22
STB1
23
GND
24
GND
25
\LAT
Data Latch
9/67
DO
Data output
27
VH
28
VH
29
N.C(101)SW1(103)
30
N.C(101)SW2(103)
6 Using attention
6.1 Please notice, the ESD wrist ring and the humidity manufatures ETC, when using the
printer, to protect the inner elctrontic parts of the printer from the damage of ESD, because
the TPH of the Printer and photoelectric sensor are ESD Sensitive parts.
6.2 For protecting plastic shaft, dont smear any oil or others on the rubber parts.
6.3 Dont touch the TPH, TPH having the palm oil, will induce the usage of the printer.If
any oil or others in the TPH, pls using an alcohol cotton stick clean the area between
plastic shaft and printer head at once.PS,Dont strike the TPH.
6.4 Due to the printer is easy-paper structure,you need pick up the rubber stick only push
the rubber stick.So,if the paper jam,push harder will cause the rubber stick gearwheel
damaged.so pls dont push the paper harder, pls do open the cover and re-fill the paper
6.5 The temperature of the TPH protection must be below 65 , if you print
continously,Because the exterior of the temperature of the IC protection & motor cant not
over 90 to protect the motor thread ring.
6.6 Pls use the good quality paper, because the sensetive of the paper will infuence print
effect, meanwhile, rough paper will incease the excessive wear to the printer head, and
reduce the life of the printer.
Print Commands
Command
Name
LF
CR
HT
FF
ESC D
ESC J n
ESC d n
ESC = n
10/67
Character Setting
Commands
Bit
Image
Commands
Init Commands
Status Commands
Bar
Commands
Code
ESC 2
ESC 3 n
ESC a n
GS L nL nH
ESC $ nL nH
ESC B n
ESC ! n
GS ! n
GS B n
ESC V n
ESC G n
ESC E n
ESC SP n
ESC SO n
ESC DC4 n
ESC { n
ESC - n
ESC % n
FS &
FS .
FS ! n
ESC &
ESC ? n
ESC R n
ESC t n
ESC *
GS *
GS / n
GS v
DC2 *
DC2 V
DC2 v
FS p n m
FS q n
ESC @
GS r n
GS a n
ESC v n
ESC u n
GS H n
GS h n
GS w n
GS k
11/67
Miscellaneous
function commands
GS x n
ESC 7 n1 n2 n3
ESC 8 n1 n2
ESC 9 n
DC2 # n
DC2 T
FS t n
DC2 E
DC2 m d lL lH
ESC C n
GS FF
New commands
ESC i
ESC m
GS V
ESC p m
ESC c 5
GS ( F
FS C
FS S
FS s
FS d
[Description]
[Note]
[Reference]
LF
Decimal:
10
Hexadecimal:
0A
Prints the data in the print buffer and feeds one line, based on the current
line spacing.
This command sets the print position to the beginning of the line.
ESC 2, ESC 3
CR
[Name]
[Format]
CR
Decimal:
13
12/67
[Description]
[Notes]
[Reference]
Hexadecimal:
0D
When automatic line feed is enabled, this command functions the same
as LF; when automatic line feed is disabled, this command is ignored.
This command line feed is ignored with a serial interface model.
Sets the print starting position to the beginning of the line.
LF
HT
[Name]
[Format]
[Description]
[Notes]
[Reference]
Horizontal tab
ASCII:
HT
Decimal:
9
Hexadecimal:
09
Moves the print position to the next horizontal tab position.
This command is ignored unless the next horizontal tab position has
been set.
If the next horizontal tab position exceeds the printing area, the
printer sets the printing position to [printing area width+1].
Horizontal tab positions are set with ESC D.
If this command is received when the printing position is at [printing
area width+1], the printer executes print buffer-full printing of the
current line and horizontal tab processing from the beginning of the
next line.
ESC D
FF
[Name]
[Format]
Print the data in buffer and locate to the next black mark
ASCII:
FF
[Description]
Decimal:
12
Hexadecimal:
0c
Print the data in the buffer.
Locate to the black mark.
Only board with black mark function support this command.
[Note]
[Range]
Decimal:
27 68 n1nk 00
Hexadecimal:
1B 44 n1nk 00
1n255
0k32
Set horizontal tab positions.
[Description]
13/67
[Note]
[Default]
[Reference]
ESC J n
[Name]
[Format]
[Range]
[Description]
[Notes]
ESC
Decimal:
27 74 n
Hexadecimal:
1B 4A n
0n255
Prints the data in the print buffer and feeds the paper [n0.125 mm
(0.0049)].
After printing is completed, this command sets the print starting
position to the beginning of the line.
The paper feed amount set by this command does not affect the
values set by ESC 2 or ESC 3.
In standard mode, the printer uses the vertical motion unit (y).
ESC d n
[Name]
[Format]
ESC
Decimal:
27
100 n
14/67
[Range]
[Description]
[Notes]
[Reference]
Hexadecimal:
1B
64 n
0n255
Print the data in the buffer and feed paper n lines.
This command sets the print starting position to the beginning of the
line.
This command does not affect the line spacing set by ESC 2 or ESC
3.
The maximum paper feed amount is 1016 mm (40 inches). If the
paper feed amount (nline spacing) of more than 1016 mm (40
inches) is specified, the printer feeds the paper only 1016 mm (40
inches).
ESC 2, ESC 3
ESC = n
[Name]
[Format]
[Description]
ESC
Decimal:
Hexadecimal:
Set peripheral device:
27
1B
=
61
3d
n
n
n
Bit
Off/On
Hex
Decimal Function
Off
00
On
01
Undefined.
1-7
[Description]
[Note]
[Reference]
Decimal:
27 50
Hexadecimal:
1B 32
Selects 3.75 mm (300.125 mm) line spacing.
The line spacing can be set independently in standard mode.
ESC 3 n
ESC 3 n
[Name]
[Format]
[Range]
Decimal:
Hexadecimal:
0n255
ESC 3 n
27 51 n
1B 33 n
15/67
ESC a n
[Name]
[Format]
[Range]
[Description]
Select justification
ASCII:
Decimal:
27 97 n
Hexadecimal:
1B 61 n
0n2, 48n50
Aligns all the data in one line to the specified position.
n selects the justification as follows:
Justification
0,48
Left justification
1, 49
Centering
2, 50
Right justification
[Note]
[Default]
[Example]
ESC a n
n=0
Left justification
ABC
ABCD
ABCDE
Centering
Right justification
ABC
ABCD
ABCDE
GS L nL nH
[Name]
[Format]
[Range]
[Description]
GS L nL nH
Decimal:
29 76 nL nH
Hexadecimal:
1D 4c nL nH
0nL255
0nH255
Sets the left margin using nL and nH.
The left margin is set to [(nL+nH256) 0.125 mm].
ABC
ABCD
ABCDE
16/67
[Note]
[Default]
ESC B n
[Name]
[Format]
[Range]
27 66 n
1B 42 n
ESC $ nL nH
[Name]
[Format]
[Range]
[Description]
[Note]
[Reference]
ESC
Decimal:
27
33 n
17/67
[Range]
[Description]
Bit
Off/On
Hex
Decimal
Function
Off
00
On
01
Off
00
On
02
Off
00
On
04
Off
00
On
08
Off
00
On
10
16
Off
00
On
20
32
Off
00
On
40
64
Undefined.
1
2
3
4
5
6
7
GS ! n
[Name]
[Format]
[Range]
[Description]
GS ! n
Decimal:
29 33 n
Hexadecimal:
1D 21 n
0n255
(1vertical number of times8, 1horizontal number of times8)
Selects the character height using bits 0 to 2 and selects the character
width using bits 4 to 7, as follows:
Bit
Off/On
Hex
Decimal
Function
1
2
3
4
5
6
7
Table 1
Character Width Selection
Hex
Decimal
Width
Table 2
Character Height Selection
Hex
Decimal
Width
18/67
1(normal)
00
1(normal)
10
16
2(double-width)
01
2(double-height)
20
32
02
30
48
03
40
64
04
50
80
05
60
96
06
70
112
07
[Note]
[Default]
[Reference]
n=0
ESC !
GS B n
[Name]
[Format]
[Range]
[Description]
Decimal:
29 66 n
Hexadecimal:
1D 42 n
0n255
Turns on or off white/black reverse printing mode.
When the LSB of n is 0, white/black reverse mode is turned off.
When the LSB of n is 1, white/black reverse mode is turned on.
[Default]
19/67
n=0
ESC V n
[Name]
[Format]
[Range]
[Description]
Function
0,48
1,49
[Note]
[Default]
[Reference]
n=0
ESC !, ESC
ESC G n
[Name]
[Format]
[Range]
[Description]
20/67
[Note]
[Default]
[Reference]
n=0
ESC E n
ESC E n
[Name]
[Format]
[Range]
[Description]
[Note]
[Default]
[Reference]
ESC SP n
[Name]
[Format]
[Range]
[Description]
[Note]
[Default]
ESC SO n
[Name]
[Format]
27 14 n
[Description]
21/67
Hexadecimal:
1B 0E n
Select Double Width mode
To turn double width off, use LF or DC4 command.
ESC DC4 n
[Name]
[Format]
[Description]
Decimal:
27 20 n
Hexadecimal:
1B 14 n
Disable Double Width mode
ESC { n
[Name]
[Format]
[Range]
[Description]
[Note]
[Default]
[Example]
22/67
ESC - n
[Name]
[Format]
[Range]
[Description]
Decimal:
27 45 n
Hexadecimal:
1B 2D n
0n2, 48n50
Turns underline mode on or off, based on the following values n
Function
0, 48
1, 49
2, 50
[Note]
[Default]
[Reference]
ESC % n
[Name]
[Format]
[Range]
[Description]
[Note]
[Default]
[Reference]
23/67
FS &
[Name]
[Format]
[Description]
[Note]
[Reference]
FS.
[Name]
[Format]
[Description]
[Note]
[Reference]
Decimal:
28 46
Hexadecimal:
1C 2E
Cancels Kanji character mode.
For Kanji model:
When the Kanji character mode is not selected, all character codes
are processed one byte at a time as ASCII code.
Kanji character mode is not selected when the power is turned on.
FS &
FS ! n
[Name]
[Format]
[Range]
[Description]
Decimal:
28 33 n
Hexadecimal:
1C
21 n
0n255
Sets the print mode for Kanji characters, using n as follows:
24/67
Off/On
Hex
Decimal
Function
Undefined.
Undefined.
Off
00
On
04
Off
00
On
08
Undefined.
Undefined.
Undefined.
Off
00
On
80
128
[Note]
[Default]
[Reference]
n=0
GS !
[Range]
[Description]
[Note]
[Default]
[Reference]
[Example]
25/67
26/67
ESC? n
[Name]
[Format]
[Range]
[Description]
[Note]
[Reference]
Decimal:
27
37 n
Hexadecimal:
1B
3F
n
32n126
Cancels user-defined characters.
This command cancels the patterns defined for the character codes
specified by n. After the user-defined characters are canceled, the
corresponding patterns for the internal characters are printed.
This command deletes the pattern defined for the specified code in
the font selected by ESC !.
If user-defined characters have not been defined, the printer ignores
this command.
ESC &, ESC %
ESC R n
[Name]
[Format]
[Range]
[Description]
Decimal:
27 82 n
Hexadecimal:
1B 52 n
0n13
Select an internal character set n as follows:
Character set
Character set
U.S.A
Japan
France
Norway
27/67
Germany
10
Denmark II
U.K
11
Spain II
Denmark I
12
Latin America
Sweden
13
Korea
Italy
14
Slovenia/Croatia
Spain I
15
China
[Default]
n=0
ESC t n
[Name]
[Format]
[Range]
[Description]
Decimal:
27 116 n
Hexadecimal:
1B 74 n
0n5, 16n19, n=255
Select page n from the character code table as follows:
Code Page
Code Page
24
CP737 [Greek]
Katakana
25
WCP1257 [Baltic]
CP850 [Multilingual]
26
Thai
CP860 [Portuguese]
27
CP720[Arabic]
CP863 [Canadian-French]
28
CP855
CP865 [Nordic]
29
CP857[Turkish]
WCP1251 [Cyrillic]
30
WCP1250[Central Eurpoe]
CP866 Cyrilliec #2
31
CP775
MIK[Cyrillic /Bulgarian]
32
WCP1254[Turkish]
33
WCP1255[Hebrew]
10
Iran
34
WCP1256[Arabic]
11
reserve
35
WCP1258[Vietnam]
12
reserve
36
ISO-8859-2[Latin 2]
13
reserve
37
ISO-8859-3[Latin 3]
14
reserve
38
ISO-8859-4[Baltic]
15
CP862 [Hebrew]
39
ISO-8859-5[Cyrillic]
16
CP1252 Latin I
40
ISO-8859-6[Arabic]
17
WCP1253 [Greek]
41
ISO-8859-7[Greek]
18
CP852 [Latina 2]
42
ISO-8859-8[Hebrew]
19
43
ISO-8859-9[Turkish]
20
Iran II
44
ISO-8859-15 [Latin 3]
21
Latvian
45
Thai2
22
CP864 [Arabic]
46
CP856
23
47
Cp874
[Default]
[Reference]
n=0
Character Code Tables
28/67
ESC 9 n
[Name]
[Format]
[Description]
[Note]
[Reference]
9 n
Decimal:
27 57 n
Hexadecimal:
1B 39 n
Select Chinese code format, n from the character code table as follows:
0: GBK code.
1: UTF-8 code.
3: BIG5 code.
This version is not support English.
[Range]
[Description]
ESC * m n1 n2 d1 d2 dk
Decimal:
27 42 m n1 n2 d1 d2 dk
Hexadecimal:
1B 2A m n1 n2 d1 d2 dk
m =0,1,32,33
nL=0-255
nH=0-3
dx=0-255
Selects a bit-image mode using m for the number of dots specified by nL
and nH, as follows:
Vertical Direction
Mode
Horizontal Direction
Number
of Dots
Dot
Density
Dot
Density
Number of Data
(K)
8-dot
single-density
67.7 dpi
101.6 dpi
nL+nH256
8-dot
double-density
67.7 dpi
203.2 dpi
nL+nH256
32
24-dot
single-density
24
203.2 dpi
101.6 dpi
(nL+nH256)3
33
24-dot
double-density
24
203.2 dpi
203.2 dpi
(nL+nH256)3
[Note]
29/67
Figure 3.11.3.
When 24-dot bit image is selected:
30/67
Figure 3.11.3.
GS * x y d1...d(x y 8)
[Name]
[Format]
[Range]
[Description]
[Note]
31/67
[Reference]
GS /
GS / n
[Name]
[Format]
[Range]
[Description]
Decimal:
29 47 n
Hexadecimal:
1D 2F n
0n3, 48n51
Prints a downloaded bit image using the mode specified by n.
n selects a mode from the table below:
Mode
0, 48
Normal
203.2 dpi
203.2 dpi
1, 49
Double-width
203.2 dpi
101.6 dpi
2, 50
203.2 dpi
3, 51
Quadruple
101.6 dpi
[Note]
101.6 dpi
32/67
GS *
GS v 0 m xL xH yL yH d1....dk
[Name]
[Format]
[Range]
[Description]
GS v
0 m
xL xH yL yH
Decimal:
29 118 48 m xL xH yL yH d1...dk
Hexadecimal:
1D 76 30 m xL xH yL yH d1...dk
0m3, 48m51
0xL255
0xH255, where 1(xL+xH256)48
0yL255
0yH8, where 1(yL+yH256)4095
0d255
k=(xL+xH256)(yL+yH256) (k0)
Selects raster bit-image mode. The value of m selects the mode, as
follows:
Mode
Vertical
Dot Density
Horizontal
Dot Density
0, 48
Normal
203.2 dpi
203.2 dpi
1, 49
Double-width
203.2 dpi
101.6 dpi
2, 50
Double-height
101.6 dpi
203.2 dpi
3, 51
Quadruple
101.6 dpi
101.6 dpi
[Note]
[Example]
d1...dk
33/67
(xL+xH256)8dots=512dots
**** *
62
63
64
65
66
67
**** *
126
127
128
**** *
yL+yH256dots
**** *
MSB
K-2
K-1
LSB
DC2 * r n [d1dn]
[Name]
[Format]
[Description]
Print bitmap
ASCII:
Decimal:
18 42 r n [d1 dn]
Hexadecimal:
12 2A r n [d1 dn]
Printing bitmap with width & height
r: Bitmap height
n: Bitmap width
Bitmap format:
DC2 V nL nH [d1dn]
[Name]
[Format]
[Description]
Decimal:
18 86 nL nH [d1 d48]
Hexadecimal:
12 56 nL nH [d1 d48]
This command use to print MSB format bitmap,
The width of bitmap must the same as the printer mechanism
Bitmap height: nL+nH*256
Bitmap format:
34/67
FS p n m
[Name]
[Format]
[Range]
[Description]
Mode
048
Normal
203.2 dpi
203.2 dpi
149
Double-width
203.2 dpi
101.6 dpi
250
Double-height
101.6 dpi
203.2 dpi
351
Quadruple
101.6 dpi
101.6 dpi
n is the number of the NV bit image (defined using the FS q
[Details]
command).
m specifies the bit image mode.
NV bit image is a bit image defined in non-volatile memory by FS q
and printed by FS p.
This command is not effective when the specified NV bit image has
not been defined.
In standard mode, this command is effective only when there is no
data in the print buffer.
This command is not affected by print modes (emphasized,
underline, character size, white/black reverse printing, or 90 rotated
characters, etc.), except upside-down printing mode.
If the downloaded bit-image to be printed exceeds one line, the
excess data is not printed.
This command feeds dots (for the height n of the NV bit image) in
normal and double-width modes and (for the height n2 of the NV bit
image) in doubleheight and quadruple modes, regardless of the line
spacing specified by ESC 2 or ESC 3.
After printing the bit image, this command sets the print position to
the beginning of the line and processes the data that follows as
[Reference]
35/67
normal data.
ESC *, FS q, GS /, GS v
[Range]
[Description]
[Note]
[Reference]
[Example]
36/67
37/67
DC2 v nL nH [d1dn]
[Name]
[Format]
[Description]
Decimal:
18 118 nL nH [d1 d48]
Hexadecimal:
12 76 nL nH [d1 d48]
This command use to print LSB format bitmap,
The width of bitmap must the same as the printer mechanism
Bitmap height: nL+nH*256
38/67
[Description]
[Note]
ESC @
Decimal:
27 64
Hexadecimal:
1B 40
Initializes the printer.
The print buffer is cleared.
Reset the parametric to default value.
return to standard mode
Delete user-defined characters
The DIP switch settings are not checked again.
The data in the receive buffer is not cleared.
[Description]
Decimal:
27 118 n
Hexadecimal:
1B 76 n
The return value is 1 bytes,It is a different on behalf of the status:
Bit
0
1
2
3
4
Off/On
Hex
Decimal
Function
Off
00
Offline.
On
01
Online.
Undefined.
Off
00
Paper has.
On
04
Paper out.
Off
00
Voltage is normal.
On
08
Voltage9.5V.
Undefined.
39/67
Undefined.
Off
00
Temperature is normal.
On
40
64
Temperature60.
Undefined.
GS a n
[Name]
[Format]
[Range]
[Description]
Bit
Disable/Enable ASB
Disable
Enable
3-4
Disable
Enable
6-7
Decimal:
27 117 n
Hexadecimal:
1B 75 n
[Range]
0=0, 48
[Description]
Transmits the status of the drawer kick-out connector pin 3 as 1byte of
data when n=0, 48.this allows the host to determine the status of a
peripheral device.
n is used as follows:
Bit
On/off
Hex
Decimal
Function
Off
00
On
01
1-3
Undefined
Off
00
5-6
Undefined
Off
00
40/67
GS r n
[Name]
[Format]
Transmit status
ASCII:
[Range]
[Description]
Decimal:
29 114 n
Hexadecimal:
1D 72 n
n=1, 49
Transmits the status specified by n as follows:
GS
Function
1, 49
Bit
Off/On
Hex
Decimal
0,1
Undefined.
2,3
Off
00
On
(0C)
(12)
Off
00
5,6
Undefined.
Off
00
Bits 2 and 3:
[Reference]
When the paper end sensor detects a paper end, the printer goes offline
and does not execute this command. Therefore, bits 2 and 3 do not
transmit the status of paper end.
GS a
41/67
[Range]
[Description]
Decimal:
29 72 n
Hexadecimal:
1D 48 n
0n3, 48n51
Selects the printing position of HRI characters when printing a bar code. n
selects the printing position as follows:
Printing position
0, 48
Not printed
1, 49
2, 50
3, 51
[Note]
[Default]
[Reference]
GS h n
[Name]
[Format]
[Range]
[Description]
[Default]
[Reference]
GS h n
Decimal:
29 104 n
Hexadecimal:
1D 68 n
0n255
Selects the height of the bar code.
n specifies the number of dots in the vertical direction.
n=162
GS k
GS w n
[Name]
[Format]
[Range]
[Description]
GS w
Decimal:
29 119 n
Hexadecimal:
1D
77 n
2n6
Sets the horizontal size of the bar code.
n specifies the bar code width as follows:
0.250
0.250
0.625
0.375
0.375
1.000
0.560
0.500
1.250
0.625
0.625
1.625
42/67
0.750
[Default]
[Reference]
0.750
2.000
GS k m d1 d2 dk NUL
GS k m n d1 d2 dn
[Name]
[Format ]
[Format ]
[Range ]
[Range ]
[Description]
m
GS k
d1 d2 dk NUL
Decimal:
29 107 m
d1 d2 dk 0
Hexadecimal:
1D
6B m
d1 d2 dk 00
ASCII:
GS k m
n d1 d2 dn
Decimal:
29 107 m
n d1 d2 dn
Hexadecimal:
1D
6B m
n d1 d2 dn
0m6(k and d depend on the bar code system used)
65m73(n and d depend on the bar code system used)
Selects a bar code system and prints the bar code.
m selects a bar code system as follows:
Number of Characters
Remarks
UPC-A
11k12
48d57
UPC-E
11k12
48d57
JAN13 (EAN13)
12k13
48d57
JAN 8 (EAN8)
7k8
48d57
CODE39
1k
ITF
1k (even number)
48d57
CODABAR
1k
65
UPC-A
11k12
48d57
66
UPC-E
11k12
48d57
67
JAN13 (EAN13)
12k13
48d57
68
JAN 8 (EAN8)
7k8
48d57
69
CODE39
1n255
70
ITF
1n255 (even
number)
48d57
71
CODABAR
1n255
72
CODE93
1n255
0d127
43/67
CODE128
[Notes for ]
2n255
0d127
Hex
Decimal
NUL
00
SOH
01
STX
HRI character
Control character
HRI character
ASCII
Hex
Decimal
DEL
10
16
DC1
11
17
02
DC2
12
18
ETX
03
DC3
13
19
EOT
04
DC4
14
20
ENQ
05
NAK
15
21
ACK
06
SYN
16
22
BEL
07
ETB
17
23
BS
08
CAN
18
24
44/67
09
EM
19
25
LF
0A
10
SUB
1A
26
VT
0B
11
ESC
1B
27
FF
0C
12
FS
1C
28
CR
0D
13
GS
1D
29
SO
0E
14
RS
1E
30
SI
0F
15
US
1F
31
DEL
7F
127
[Example]
Specific
character
ASCII
Hex
Decimal
SHIFT
{S
7B, 53
123,83
CODE A
{A
7B, 41
123,65
CODE B
{B
7B,42
123,66
CODE C
{C
7B,43
123,67
FNC1
{1
7B,31
123,49
FNC2
{2
7B,32
123,50
FNC3
{3
7B,33
123,51
FNC4
{4
7B,34
123,52
"{"
{{
7B,7B
123,123
[Example]
45/67
[Others]
[Reference]
If the top of the bar code data is not the code set selection character,
the printer stops command processing and processes the following
data as normal data.
If the combination of "{" and the following character does not apply
any special character, the printer stops command processing and
processes the following data as normal data.
If the printer receives characters that cannot be used in the special
code set, the printer stops command processing and processes the
following data as normal data.
The printer does not print HRI characters that correspond to the shift
characters or code set selection characters.
HRI character for the function character is space.
HRI characters for the control character (<00>H to <1F>H and
<7F>H) are space.
Be sure to keep spaces on both right and left sides of a bar code.
(Spaces are different depending on the types of the bar code.)
GS H, GS h, GS w
GS x n
[Name]
[Format]
[Description]
Decimal:
29 120 n
Hexadecimal:
1D 78 n
The print bar code staring positions is: 0255
27
1B
55 n1 n2 n3
37 n1 n2 n3
46/67
ESC 8 n1 n2
[Name]
[Format]
[Description]
[Note]
Sleep parameter
ASCII:
ESC
8 n1 n2
Decimal:
27 56 n1 n2
Hexadecimal:
1B 38 n1 n2
Setting the time for control board to enter sleep mode.
n1+n2*256 The time waiting for sleep after printing finished, Unit
(Second), Default: 0 (dont sleep).
When control board is in sleep mode, host must send one byte (0xff) to
wake up control board. And waiting 50ms, then send printing command
and data.
The command is useful when the system is powered by battery.
DC2 # n
[Name]
[Format]
[Description]
DC2 # n
Decimal:
18 35 n
Hexadecimal:
12 23 n
D4..D0 of n is used to set the printing density
Density is 50% + 5% * n(D4-D0)
D7..D5 of n is used to set the printing break time
Break time is n(D7-D5)*250us
DC2 T
[Name]
[Format]
[Description]
Decimal:
Hexadecimal:
Printing the test page
DC2 T
18
12
84
54
47/67
FS t n (for CB105B)
[Name]
[Format]
Select Timeout
ASCII:
[Description]
Decimal:
28 116 n
Hexadecimal:
1C
74 n
Set Timeout for one byte, t= n10 ms; so if There are 100 bytes needed
for a command, the printer will wait 1000n ms, when n=0, the printer will
wait until all chars needed have received.
FS
[Description]
Decimal:
18 69
Hexadecimal:
12 45
Feed paper to the Mark position
DC2 E
DC2 m d 1l 1h
[Name]
[Format]
[Description]
DC2 m d 1l 1h
Decimal:
18 109 d 1l 1h
Hexadecimal:
12 6d d 1l 1h
d = 0,1
1:stop at mark position
0:go on 3 steps after mark position detected
0 ll 255
0 lh 255
Paper length is (ll+lh*256) steps, means (ll+lh*256)/8 mm
[Description]
Set BM Max
ASCII:
ESC
Decimal:
27
67 n
Hexadecimal:
1B
43 n
With the current row spacing of unit, the line number to define the scope
of testing black mark, the default value is 4 inches.
48/67
GS FF (for BM)
[Name]
[Format]
[Description]
[Note]
[Reference]
[Description]
Decimal:
27 105
Hexadecimal:
1B
69
ESC i select a paper cutting mode and then full cut the paper.
ESC
[Description]
Decimal:
27 105
Hexadecimal:
1B
69
ESC m selects a paper cutting mode and then partial cut the paper.
ESC
GS V m GS V m n(for cut)
[Name]
[Format]
[Range]
[Description]
49/67
Print mode
1, 49
66
Feeds paper (cutting position + [n 0.125 mm]), and cuts the paper
partially (one point left uncut).
Generate pulse
ASCII:
[Range]
Decimal:
27 112 m t1 t2
Hexadecimal:
1B 70 m t1 t2
m=0,1,48,49
0t1255, 0t2255
Outputs the pulse specified by t1 to connector pin m as follows:
[Description]
ESC
Function
0,48
1,49
[Note]
p m
t1
t2
[Range]
[Description]
[Default]
5 n
Decimal:
27 99 53 n
Hexadecimal:
1B 03 35 n
0n255
Enable/disable panel buttonssupport the panel buttons
When the LSB of n is 0, the panel buttons are enabled.
When the LSB of n is 1, the panel buttons are disabled.
n=0
50/67
GS ( F pL pH a m nL nH (for 701BM)
[Name]
[Format]
ASCII:
GS (
F pL pH
a m
nL nH
Decimal:
29 40 70 pL pH a m nL nH
Hexadecimal:
1D 28 46 pL pH a m nL nH
(pL+(pH256))=4 (where pL=4, pH=0)
1a2
m = 0, 48 or 1, 49
0( nL+nH256) 65535 (where 0nL255, 0nH255)
This command is effective only when the BM sensor is enabled.
Sets adjustment values(s) for the printer operations specified by a.
pL and pH specifies the number of the parameter such as a to
(pL+(pH256))bytes.
a specifies setting values for the positions to start printing and cutting
Function
[Range]
[Description]
Function
0,48
1,49
[Default]
[Reference]
The adjustment value for the paper cutting position (a=2) is affected
with thefollowing commands:GS V m n
FS C (for CB65C)
[Name]
[Format]
[Description]
Decimal:
28 67
Hexadecimal:
1C 43
Start receiving buffer count.
FS S (for CB65C)
[Name]
FS C
51/67
ASCII:
FS S
[Description]
Decimal:
28 83
Hexadecimal:
1C 53
Send count of receive buffer, include this command's 2 bytes.
FS s (for XBLY)
[Name]
[Format]
[Description]
Decimal:
28 115
Hexadecimal:
1C 73
Save print parater. (only for XBLY)
FS s
FS d (for XBLY)
[Name]
[Format]
[Description]
Decimal:
28 100
Hexadecimal:
1C 64
Load default leaving factory set .(only for XBLY)
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
_D
_E
_F
8_
9_
A_
B_
C_
D_
E_
F_
52/67
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
_D
_E
_F
8_
9_
A_
B_
C_
D_
E_
F_ -
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
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
_F
8_
9_
ZWNJ ZWJ
A_ NBSP
SHY
B_
C_
D_
E_
LRM RLM
F_
62/67
_1
_3
_4
_5
_6
_7
_8
_9
_2
_A
_B
_C
_D
_E
_F
9_
A_
NBSP
SHY
B_
C_
D_
E_
F_
_E
_F
Page36 ISO-8859-2[Latin 2]
Code page-8859-2
_0
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
_D
8_
9_
A_
NBSP
SHY
B_
C_
D_
E_
F_
_E
_F
Page37 ISO-8859-3[Latin 3]
Code page-8859-3
_0
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
_D
SHY
8_
9_
A_
NBSP
B_
C_
D_
E_
F_
63/67
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
_D
_E
_F
8_
9_
A_
NBSP
SHY
B_
C_
D_
E_
F_
_E
_F
Page39 ISO-8859-5[Cyrillic]
Code page-8859-5
_0
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
_D
8_
9_
A_
NBSP
SHY
B_
C_
D_
E_
F_
_A
_B
_C
_D
_E
_F
SHY
Page40 ISO-8859-6[Arabic]
Code page-8859-6
_0
_1
_2
_3
_4
_5
_6
_7
_8
_9
8_
9_
A_
NBSP
B_
C_
D_
E_
64/67
Page41 ISO-8859-7[Greek]
Code page-8859-7
_0
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
_D
_E
_F
8_
9_
A_
NBSP
SHY
B_
C_
D_
E_
F_
_E
Page42ISO-8859-8[Hebrew]
Code page-8859-8
_0
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
_D
SHY
_F
8_
9_
A_
NBSP
B_
C_
D_
E_
F_
LRM RLM
Page43 ISO-8859-9[Turkish]
Code page-8859-9
_0
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
_D
_E
_F
8_
9_
A_
NBSP
SHY
B_
C_
D_
E_
F_
65/67
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
_D
_E
_F
8_
9_
A_
NBSP
SHY
B_
C_
D_
E_
F_
Page45 Thai2
Page46 CP856 ()
Code page 856
_0
_1
_2
_3
_4
_5
_6
_7
_8
_9
_A
_B
_C
_D
_E
_F
8_
9_
A_
B_
C_
D_
66/67
F_
NBSP
Page47 Cp874
Code page 874
_0
_1
_2
_3
_4
8_
_5 _6
_7
_8
_9
_A
_B
_C
_D
_E
_F
9_
A_
B_
C_
D_
E_
F_
NBSP
ASCII Code(Hex)
23
24
40
5B
5C
5D
5E
60
7B
7C
7D
7E
U.S.A.
France
Germany
U.K.
Denmark
Sweden
Italy
Spain
Pt
Japan
Norway
Denmark
Spain
Latin
Korea
Slovenia/Croatia
China
67/67