0% found this document useful (0 votes)
58 views60 pages

POS80 Thermal Printer Command Guide

The document provides a comprehensive command set for the POS80 Thermal Printer, detailing various commands for printing, character formatting, barcode generation, and status reporting. It includes specific command formats, descriptions, and examples for each command. The content is structured into sections covering print commands, character commands, bit image commands, barcode commands, QR code commands, and other functionalities.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views60 pages

POS80 Thermal Printer Command Guide

The document provides a comprehensive command set for the POS80 Thermal Printer, detailing various commands for printing, character formatting, barcode generation, and status reporting. It includes specific command formats, descriptions, and examples for each command. The content is structured into sections covering print commands, character commands, bit image commands, barcode commands, QR code commands, and other functionalities.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

POS80 Thermal Printer Command Set

POS80 Thermal Printer

Command Set

1
POS80 Thermal Printer Command Set

Contents
1 List of Commands......................................................................................................... 5
2 Command in details ...................................................................................................... 7
① Print and feed command ..................................................................................... 7
Print and line feed .............................................................................................. 7
Print and carriage return...................................................................................... 7
Print and feed paper ............................................................................................ 8
Print and feed n lines .......................................................................................... 8
② Character command ............................................................................................ 9
Set line spacing .................................................................................................. 9
Select default line spacing ................................................................................... 9
Set absolute print position ................................................................................. 10
Set left space .................................................................................................... 10
Set horizontal and vertical movement unit ......................................................... 11
Set right-side character spacing ......................................................................... 11
Select character font ......................................................................................... 11
Select print mode(s) .......................................................................................... 12
Select character size ......................................................................................... 13
Turn white/black reverse printing mode ............................................................. 13
Turn underline mode on/off............................................................................... 14
Turn 90°clockwise rotation mode on/off .......................................................... 15
Turn emphasized mode on/off ........................................................................... 15
Turn double-strike mode on/off ......................................................................... 16
Select justification(Left justification、centering、Right justification) ............ 16
Select Chinese character mode .......................................................................... 17
Cancel Chinese character mode ......................................................................... 17
Select print mode(s) for Chinese characters ........................................................ 18
Select/cancel user-defined character set ............................................................. 18
Define user-defined characters .......................................................................... 19
Cancel user-defined characters .......................................................................... 21
Define user-defined Chinese characters(POS83x/POS82x support) ..................... 21
Select an international character set ................................................................... 22
Select character code table ................................................................................ 24
③ Bit image command ........................................................................................... 25
Print MSB BITMAP ......................................................................................... 25
Print LSB bitmap.............................................................................................. 25
Select bit-image mode ...................................................................................... 26
Define downloaded bit image ............................................................................ 28
Print downloaded bit image ............................................................................... 30
Define NV bit image......................................................................................... 30
Print NV bit image ........................................................................................... 34
Print raster bit image ......................................................................................... 35
④ Tab command .................................................................................................... 36

2
POS80 Thermal Printer Command Set

Horizontal tab .................................................................................................. 36


Set horizontal tab positions ............................................................................... 36
⑤ Bar code command ............................................................................................ 37
Select printing position for HRI characters ......................................................... 37
Select bar code height ....................................................................................... 38
Set bar code width ............................................................................................ 38
Print bar code ................................................................................................... 39
⑥ QR CODE COMMAND .................................................................................... 44
Set the model type ............................................................................................ 44
Set the QR code error correction level error (ECC)............................................. 44
Set the QR code graphic data ............................................................................ 45
Print store QR codes graphics ........................................................................... 45
PDF417: Set the number of columns in the data region(POS83x/POS82x support)46
PDF417: Set the number of rows(POS83x/POS82x support)............................... 46
PDF417: Set the width of the module(POS83x/POS82x support) ........................ 46
PDF417: Set the row height(POS83x/POS82x support) ...................................... 47
PDF417: Set the error correction level(POS83x/POS82x support) ....................... 47
PDF417: Select the options(POS83x/POS82x support) ....................................... 48
PDF417: Store the data in the symbol storage area(POS83x/POS82x support) ..... 49
PDF417: Print the symbol data in the symbol storage area (POS83x/POS82x
support) ........................................................................................................... 49
PDF417: Transmit the size information of the symbol data in the symbol storage
area(POS83x/POS82x support) ......................................................................... 49
⑦ STATUS COMMAND ....................................................................................... 50
Transmit status ................................................................................................. 50
Real-time transmission status ............................................................................ 51
Send real-time request to printer ........................................................................ 53
Enable/Disable Automatic Status Back (ASB) .................................................... 54
Set the process ID response ............................................................................... 54
⑧ Other command................................................................................................. 55
Initialize printer ................................................................................................ 55
Printing test paper............................................................................................. 55
Select cut mode and cut paper ........................................................................... 55
Partial cut (one point left uncut) ........................................................................ 56
Partial cut (three points left uncut) ..................................................................... 56
Produce a cash drawer impulse(Only For Drawer) ......................................... 56
Set the print concentration................................................................................. 57
⑨ Page code command(POS83x/POS82x support) ................................................. 58
Print and return to standard mode (in page mode) ............................................... 58
Cancel print data in page mode.......................................................................... 58
Print data in page mode..................................................................................... 58
Select page mode.............................................................................................. 58
Select standard mode ........................................................................................ 59
Select print direction in page mode .................................................................... 59

3
POS80 Thermal Printer Command Set

Set print area in page mode ............................................................................... 59


Set absolute vertical print position in page mode ................................................ 60
Set relative vertical print position in page mode ................................................. 60

4
POS80 Thermal Printer Command Set

1 List of Commands
LF Print and line feed
CR Print and carriage return
Print and feed command
ESC J Print and feed n points
ESC d Print and feed n lines
ESC 3 Set n points line spacing
ESC 2 Select default line spacing
ESC $ nL nH Set absolute print position
GS L nL nH Set left space
ESC SP n Set right-side character spacing
ESC M n Select character font
ESC ! n Select print mode(s)
GS ! n Select character size
GS B n Turn white/black reverse printing mode
ESC - n Turn underline mode on/off
ESC V n Turn 90°clockwise rotation mode on/off
ESC E n Turn emphasized mode on/off
ESC G n Turn double-strike mode on/off Character command
ESC { n Turn upside-down print mode on/off
ESC a n Select justification
FS & Select Chinese character mode
FS . Cancel Chinese character mode
FS ! n Select print mode(s) for Chinese characters
ESC % n Select/cancel user-defined character set
ESC & Define user-defined characters
ESC ? n Cancel user-defined characters
FS 2 Define user-defined Chinese characters
(POS83x/POS82x support)
ESC R n Select an international character set
ESC t n Select character code table
DC2 V Printer MSB Bitmap
DC2 v Printer LSB Bitmap
ESC * Select bit-image mode
GS * Define downloaded bit image
Bit image command
GS / m Print downloaded bit image
FS q Define NV bit image
FS p n m Print NV bit image
GS v 0 m Print raster bit image
HT Horizontal tab
Tab command
ESC D Set horizontal tab positions

5
POS80 Thermal Printer Command Set

GS H Select printing position for HRI characters


GS h Select bar code height
Bar code command
GS w Set bar code width
GS k Print bar code
GS ( k pL pH cn fn
Set the module type
n (fn=67)
GS ( k pL pH cn fn Set the QR code error correction level error
n (fn=69) (ECC)
GS ( k pL pH cn fn Set the QR code graphic data
QR code command
m d1…dk (fn=80)
GS ( k pL pH cn fn
Print store QR codes graphics
m (fn=81)
GS (k pL pH cn fn n PDF417: Print the symbol data in the symbol
storage area(POS83x/POS82x support)
GS r n Transmit status
DLE EOT n Real-time transmission status
DLE ENQ n Send real-time request to printer STATUS command
GS a n Enable/Disable Automatic Status Back (ASB)
GS a n Set the process ID response
ESC @ Initialize printer
DC2 T Printing test paper
GS V Select cut mode and cut paper
ESC i Partial cut (one point left uncut) Other command
ESC m Partial cut (three points left uncut)
ESC p m Produce a cash drawer impulse
ESC 7 Set the print concentration
FF Print and return to standard mode (in page
mode)
CAN Cancel print data in page mode
ESC FF Print data in page mode
ESC L Select page mode Page code command
ESC S Select standard mode (POS83x/POS82x support)
ESC T n Select print direction in page mode
ESC W Set print area in page mode
GS $ n Set absolute vertical print position in page mode
GS \ n Set relative vertical print position in page mode

6
POS80 Thermal Printer Command Set

2 Command in details

① Print and feed command

Print and line feed

Name Print and line feed


ASCII :LF
Format Decimal :10
Hex :0A
Prints the data in the print buffer and feeds one line, based on the
Description
current line spacing.
Range
Default
Support model All the printers
Note
1B 40 1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a
1b 4a 10
For Example 1B 40 1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a
1b 4a 30
1B 40 1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a

Print and carriage return

Name Print and carriage return


ASCII :CR
Format Decimal :13
Hex :0D
When automatic line feed is enabled, this command functions the same as LF; when
Description
automatic line feed is disabled, this command is ignored.
Range
Default
Support model All the printers
This command line feed is ignored with a serial interface model.
Note
Sets the print starting position to the beginning of the line.
For Example

7
POS80 Thermal Printer Command Set

Print and feed paper

Name Print and feed paper


ASCII :ESC J n
Format Decimal :27 74 n
Hex :1B 4A n
Description
Range 0 ≤ n ≤ 255
Default
Support modal All the printers

beginning of the line.


Note
ESC 2 or ESC 3.

For example 1b 40 30 31 32 1b 4a 10

Print and feed n lines

Name Print and feed n lines


ASCII :ESC d n
Format Decimal :27 100 n
Hex :1B 64 n
Description Prints the data in the print buffer and feeds n lines.
Range 0 ≤ n ≤ 255
Default
Support modal All the printers
g of the line.
ESC 2 or ESC 3.
Note

printer feeds the paper only 1016 mm (40 inches).


1b 40 1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 1b 64 01
For example 1b 40 1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 1b 64 02
1b 40 1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 1b 64 00

8
POS80 Thermal Printer Command Set

② Character command

Set line spacing

Name Set line spacing


ASCII :ESC 3 n
Format Decimal :27 51 n
Hex :1B 33 n
Description Sets the line spacing to [n×0.125 mm].
Range 0 ≤ n ≤ 255
Default n = 33
Support modal All the printers

Note less than the maximum character height in a line, so


the bank line spacing is equal to the maximum character level.
default values,when appear ESC 2,ESC @, reset
the printer and printer power
1b 40
1b 33 30
1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a
For example 1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a
1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a
1b 32
1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a

Select default line spacing

Name Select default line spacing


ASCII :ESC 2
Format Decimal :27 50
Hex :1B 32
Description
Range
Default 33 Dots
Support modal All the printers
With reference to ESC 3 command.
Note If set the line spacing is less than the maximum character height in a line, so
the bank line spacing is equal to the maximum character level.
For example

9
POS80 Thermal Printer Command Set

Set absolute print position

Name Set absolute print position


ASCII :ESC $ nL nH
Format Decimal :27 36 nL nH
Hex :1B 24 nL nH
The distance from the beginning of the line to the print position is[(nL +
Description
nH×256)×0.125 mm].
Range 0 ≤ nL ≤ 255,0 ≤ nH ≤ 255
Default
Support modal All the printers

Note
standard mode, the horizontal motion unit (x) is used.
1b 40 1b 24 20 00
For example 1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a
1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a

Set left space

Name Set left space


ASCII :GS L nL nH
Format Decimal :29 76 nL nH
Hex :1D 4C nL nH
Description Set left space(nL + nH ×256) dots.
Range 0 ≤ nL ≤ 255,0 ≤ nH ≤ 255
Default
Support modal All the printers
This command is only effective in a line of the starting position of the
treatment.
As shown in the figure:

Note

If set outside the printable area, use the maximum printing unit.
1b 40 1d 4c 50 00
For example 1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a
1C 26 30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a

10
POS80 Thermal Printer Command Set

Set horizontal and vertical movement unit

Name Set horizontal and vertical movement unit


ASCII :GS P x y
Format Decimal :29 80 x y
HEX :1D 50 x y
• Set approximation horizontal movement unit 25.4/ x mm( 1/ x inch); set
Description approximation vertical movement unit 25.4/ y mm(1/ y inch).
•When x and y is 0,the x and y is set to default.
Range 0 ≤ x ≤ 255, 0 ≤ y ≤ 255
x = 200, y = 380,a movement unit is the point of a print. The horizontal
Default
distance is about 1/8mm ; the vertical distance is about 1/15mm.
Support modal 80XXX
Note
1d 50 c8 c8
1B 4C
1B 57 30 00 00 00 78 00 30 00
1B 33 18
For example
1B 57
30 31 32 30 31 32 30 31 32 30 31 32 30 31 32 30 31 32 30 31 32 30 31 32 30 31
32 30 31 32 30 31 32 30 31 32 30 31 32 30 31 32 30 31 32 30 31 32 30 31 32
0C

Set right-side character spacing

[Name] Set right-side character spacing


[Format] ASCII ESC SP n
Hex 1B 20 n
Decimal 27 32 n
[Range] 0 ≤ n ≤ 255
[Default] n = 0
[Description] • Sets the right-side character spacing to [n × (horizontal or vertical motion unit)].
[Note] • The maximum right-side spacing is 35.98 mm {255/180"}.

Select character font

[Name] Select character font


[Format] ASCII ESC M n
Hex 1B 4D n
Decimal 27 77 n
[Range] n = 0, 1, 48, 49
[Default] n = 0

11
POS80 Thermal Printer Command Set

[Description] • Selects a character font.


n Character font
0, 48 Character font A (12 × 24)
1, 49 Character font B (9×24) 。
2,50 Character font C (9×17)
3,51 Character font D (8×16)
[Note] • When auto replacement of the font with the customized value, ESC ! is set for the
selected font, the font to be replaced is enabled.

Select print mode(s)

Name Select print mode(s)


ASCII :ESC ! n
Format Decimal :27 33 n
Hex :1B 21 n
Selects print mode(s) using n as follows:(Font、white/black reverse、Inversion、
Bold、double-height、double-width、underline)
bit function value
0 1
0 font normal small
1 inverse cancel set
Description
2 inversion cancel set
3 bold cancel set
4 double-height cancel set
5 double-width cancel set
6 underline cancel set
7 undefined
Range
Default n=0
Supprot modal All the printers
The command for Chinese fonts and foreign fonts are effective
Note
ESC @,dump and restart,Reset the printer,This command setting failure
1B 40 1B 21 01 30 31 32 0D 0A
1B 40 1B 21 02 30 31 32 0D 0A
1B 40 1B 21 04 30 31 32 0D 0A
1B 40 1B 21 08 30 31 32 0D 0A
For example
1B 40 1B 21 10 30 31 32 0D 0A
1B 40 1B 21 20 30 31 32 0D 0A
1B 40 1B 21 40 30 31 32 0D 0A
1B 40 1B 21 80 30 31 32 0D 0A

12
POS80 Thermal Printer Command Set

Select character size

Name Select character size


ASCII :GS ! n
Formal Decimal :29 33 n
HEX :1d 21 n

Selects the character height using bits 0 to 2 and selects the character width
using bits 4 to 7, as follows:
Table 1 Table 2
Set the width of character Set the height of character

HEX Decim width HEX Decimal width


al
Description 00 0 1(normal) 00 0 1(normal)
10 16 2(double-w 01 1 2(double-hei
idth) ght)
20 32 3 02 2 3
30 48 4 03 3 4
40 64 5 04 4 5
50 80 6 05 5 6
60 96 7 06 6 7
70 112 8 07 7 8
Range
Default n=0
Suuport modal All the printers
This command is effective for all characters (alphanumeric and Chinese), except
Note for HRI characters.
ESC @,dump and restart,Reset the printer,This command setting failure.
1b 40 1c 26
1d 21 10
30 31 32 B0 AE CE D2 D6 D0 BB AA 0d 0a
1B 40 1c 26
For example 1d 21 01
30 31 32 B0 AE CE D2 D6 D0 BB AA 0d 0a
1B 40 1c 26
1d 21 11
30 31 32 B0 AE CE D2 D6 D0 BB AA 0d 0a

Turn white/black reverse printing mode

Name Turn white/black reverse printing mode

13
POS80 Thermal Printer Command Set

ASCII :GS B n
Format Decimal :29 66 n
HEX :1d 42 n
Turns on or off white/black reverse printing mode.
Description
on.
Range
Default n=0
Support modal All the printers

-in characters and user-defined characters.


acter
spacing set by ESC SP.
-defined bit images, bar
Note
codes,HRI characters, and spacing skipped by HT, ESC $.

ority than underline mode. Even if


underline mode is on, it is disabled (but not canceled) when white/black reverse
mode is selected.
1b 40 1c 26 1d 42 00
30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a
For example
1b 40 1c 26 1d 42 01
30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a

Turn underline mode on/off

Name Turn underline mode on/off


ASCII :ESC - n
Format Decimal :27 45 n
HEX :1B 2D n
Turns underline mode on or off, based on the following values n:

n Function
Description 0, 48 Turns off underline mode
1, 49 Turns on underline mode (1 dot thick)
2, 50 Turns on underline mode (2 dots thick)
Range 0 ≤ n ≤ 2, 48 ≤ n ≤ 50
Default n=0
Support modal All the printers
-side character spacing),
but cannot underline the space set by HT.
Note

white/black inverted characters.

14
POS80 Thermal Printer Command Set

following data is not underlined, and the underline thickness set before the mode is
turned off does not change. The default underline thickness is 1 dot.

d on or off by using ESC !. Note,


1b 40 1c 26 1b 2d 01
30 31 32 41 42 43 B0 AE CE D2 D6 D0 BB AA 0D 0A
1b 40 1c 26 1b 2d 02
For example
30 31 32 41 42 43 B0 AE CE D2 D6 D0 BB AA 0D 0A
1b 40 1c 26 1b 2d 00
30 31 32 41 42 43 B0 AE CE D2 D6 D0 BB AA 0D 0A

Turn 90°clockwise rotation mode on/off

Name
ASCII :ESC V n
Format Decimal :27 86 n
HEX :1B 56 n

n Function
Description
0,48 wise rotation mode
1,49
Range 0 ≤ n ≤ 1, 48 ≤ n ≤ 49
Default n=0
Support modal All the printers

always effective.

Note clockwise-rotated characters.


-width and double-
characters in the opposite directions from double-height and double- width
commands in normal mode.
1b 40 1c 26 1b 56 01
30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a
For example
1b 40 1c 26 1b 56 00
30 31 32 41 42 43 CFC3C3C5BFAAB4CFB5E7D7D3 0d 0a

Turn emphasized mode on/off

[Name] Turn emphasized mode on/off


[Format] ASCII ESC E n
Hex 1B 45 n

15
POS80 Thermal Printer Command Set

Decimal 27 69 n
[Range] 0 ≤ n ≤ 255
[Default] n = 0
[Description] • Turns emphasized mode on or off.
• When the LSB of n is 0, turns off emphasized mode.
• When the LSB of n is 1, turns on emphasized mode.

Turn double-strike mode on/off

[Name] Turn double-strike mode on/off


[Format] ASCII ESC G n
Hex 1B 47 n
Decimal 27 71 n
[Range] 0 ≤ n ≤ 255
[Default] n = 0
[Description] • Turns double-strike mode on or off.
• When the LSB of n is 0, turns off double-strike mode.
• When the LSB of n is 1, turns on double-strike mode.

Turn upside-down print mode on/off


[Name] Turn upside-down print mode on/off
[Format] ASCII ESC { n
Hex 1B 7B n
Decimal 27 123 n
[Range] 0 ≤ n ≤ 255
[Default] n = 0
[Description] • In standard mode, turns upside-down print mode on or off.
• When the LSB of n is 0, turns off upside-down print mode.
• When the LSB of n is 1, turns on upside-down print mode.

Select justification(Left justification、centering、Right justification)

Name Select justification(left、center、right)


ASCII :ESC a n
Format Decimal :27 97 n
HEX :1B 61 n
Aligns all the data in one line to the specified position.n selects the justification as
follows:
Description n Justification
0,48 Left justification
1, 49 Centering

16
POS80 Thermal Printer Command Set

2, 50 Right justification
Range 0 ≤ n ≤ 2 or 48 ≤ n ≤ 50
Default n=0
Support modal All the printers
Note ESC @,dump and restart,Reset the printer,This command setting failure.
1B 40 1B 61 02
30 31 32 0D 0A
1B 40 1B 61 01
Example
30 31 32 0D 0A
1B 40 1B 61 00
30 31 32 0D 0A

Select Chinese character mode

Name Select Chinese character mode


ASCII :FS &
Format Decimal :28 38
HEX :1C 26
Description Selects Chinese character mode.
Range
Default
Support modal All the printers
For Chinese model:

Note code as two bytes each.

inese character mode is not selected when the power is turned on.
1b 40 1C 26 B0 AE C9 CF D7 D4 BC BA 0d 0a
For example
1C 2E B0 AE C9 CF D7 D4 BC BA 0d 0a

Cancel Chinese character mode

Name Cancel Chinese character mode


ASCII :FS .
Format Decimal :28 46
HEX :1C 2E
Description Cancel Chinese character mode
Range
Default
Support modal All the printers
For Chinese model:
Note

17
POS80 Thermal Printer Command Set

processed one byte at a time as ASCII code.

For example

Select print mode(s) for Chinese characters

[Name] Select print mode(s) for Chinese characters


[Format] ASCII FS ! n
Hex 1C 21 n
Decimal 28 33 n
[Range] 0 ≤ n ≤ 255
[Default] n = 0
[Description] • Selects the character styles (double-height, double-width, and Chinese-underlined)
together for multi-byte code character.
(n)
Off/On Hex Decimal Function
Bit
0 - - - Reserved.
1 - - - Reserved.
2 Off 00 0 Double-width canceled.
On 04 4 Double-width selected.
3 Off 00 0 Double-height canceled.
On 08 8 Double-height selected.
4 - - - Reserved.
5 - - - Reserved.
6 - - - Reserved.
7 Off 00 0 Underline mode is turned off.
On 80 128 Underline mode is turned on.

Select/cancel user-defined character set

Name Select/cancel user-defined character set


ASCII :ESC % n
Format Decimal :27 37 n
HEX :1B 25 n
Selects or cancels the user-defined character set.
Description , the user-defined character set is canceled.
-defined character set is selected.
Range 0 ≤ n ≤ 255
Default 0
Support modal All the printers
Note -defined character set is canceled, the built-in character set is

18
POS80 Thermal Printer Command Set

automatically selected.
1B 40
1b 26 03 20 20 0C 0F 03 00 30 80 00 40 40 20 80 40 10 80 40 10 80 20 10 80 20 10
40 20 20 30 10 C0 0C 00 00 00 00 00 00 00 00
For example 1b 25 01
20 0D 0A
1b 3f 20
30 20 30 20 0d 0a

Define user-defined characters

Name Define user-defined characters


ASCII :ESC & y c1 c2 [x1 d1 ... d (yx1)] ... [xk d1 ... d(y x k)]
Format Decimal :27 38 y c1 c2 [x1 d1 ... d(yx1)] ...[xk d1 ... d(yxk)]
HEX :1B 26 y c1 c2 [x1 d1...d(y x1)]...[xk d1...d(yxk)]
Defines user-defined characters.
number of bytes in the vertical direction.
Description
final code.

y=2
ted)
y=3
Range

Default
Support modal All the printers

characters).
le to define multiple characters for consecutive character codes. If
only one character is desired, use c1 = c2.

from the left side. Any remaining dots on the right side are blank.
-defined characters is (y×x) bytes.
Note
-defined character patterns for each
font. To select a font, use ESC !
-defined characters and a downloaded bit image cannot be defined
simultaneously. When this command is executed, the downloaded bit image is
cleared.
-defined character definition is cleared when:
1)ESC @ is executed.

19
POS80 Thermal Printer Command Set

2)
3)ESC ? is executed.
4)The power is turned off.

d1= <0F>H d4 = <30>H d7 = <40>H . . . .


d2 = <03>H d5 = <80>H d8 = <40>H . . . .
d3 = <00>H d6 =<00>H d9 = <20>H . . . .

①y = 2
1B 40
1b 26 02 20 20 06 FF FF FF FF FF FF FF FF FF FF FF FF
1b 25 01
For example 20 20 0D 0A
1b 3f 20
30 20 30 20 0d 0a
②y = 3
1B 40

20
POS80 Thermal Printer Command Set

1b 26 03 20 20 0C 0F 03 00 30 80 00 40 40 20 80 40 10 80 40 10 80 20 10 80 20 10
40 20 20 30 10 C0 0C 00 00 00 00 00 00 00 00
1b 25 01
20 0D 0A
1b 3f 20
30 20 30 20 0d 0a

Cancel user-defined characters

Name Cancel user-defined characters


ASCII :ESC ? n
Format Decimal :27 63 n
HEX :1B 3F n
Description Cancels user-defined characters.
Range 32 ≤ n ≤ 126
Default
Support modal All the printers

n. After the user-defined characters are canceled, the corresponding patterns for the
internal characters are printed.
Note fied code in the font
selected by ESC !.
-defined characters have not been defined, the printer ignores this
command.
For example

Define user-defined Chinese characters(POS83x/POS82x support)

[Name] Define user-defined Chinese characters


[Format] ASCII FS 2 c1 c2 d1...dk
Hex 1C 32 c1 c2 d1...dk
Decimal 28 50 c1 c2 d1...dk
[Range] The ranges of c1 and c2 differ, depending on the models and the character code system
used.
Hexadecimal
Model c1 c2
Japanese (JIS code) c1 = 77 21 ≤ c2 ≤ 7E
Japanese (SHIFT JIS code) c1 = EC 40 ≤ c2 ≤ 7E
80 ≤ c2 ≤ 9E
Simplified Chinese (GB18030) c1 = FE A1 ≤ c2 ≤ FE
Traditional Chinese
0 ≤ d ≤ 255

21
POS80 Thermal Printer Command Set

k = 72
[Description] • Defines the user-defined Chinese character pattern (d1...dk) specified by the
character codes (c1 and c2).
[For example] 1C 32 FE A1
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF
FE A1 C1 C1 0D 0A

Select an international character set

Name Select an international character set


ASCII :ESC R n
Format Decimal :27 82 n
HEX :1B 52 n
Selects international character set n from the following table:
n Character set
0 U.S.A
1 France
2 Germany
3 U.K
4 Denmark I
5 Sweden
6 Italy
Description
7 Spain I
8 Japan
9 Norway
10 Denmark II
11 Spain II
12 Latin America
13 Korea
14 Slovenia/Croatia
15 China
Range 0 ≤ n ≤ 15
Default 0
Support modal All the printers
Note
1B 40 1C 26 c3 c0 b9 fa 0d 0a
For example 1B 40 1B 52 00
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a

22
POS80 Thermal Printer Command Set

1B 40 1C 26 B7 A8 B9 FA 0d 0a
1B 40 1B 52 01
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 B5 C2 B9 FA 0d 0a
1B 40 1B 52 02
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 D3 A2 B9 FA 0d 0a
1B 40 1B 52 03
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 B5 A4 C2 F3 0d 0a
1B 40 1B 52 04
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 C8 F0 B5 E4 0d 0a
1B 40 1B 52 05
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 D2 E2 B4 F3 C0 FB 0d 0a
1B 40 1B 52 06
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 CE F7 B0 E0 D1 C0 0d 0a
1B 40 1B 52 07
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 C8 D5 B1 BE 0d 0a
1B 40 1B 52 08
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 C5 B2 CD FE 0d 0a
1B 40 1B 52 09
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 B5 A4 C2 F3 32 0d 0a
1B 40 1B 52 0A
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 CE F7 B0 E0 D1 C0 32 0d 0a
1B 40 1B 52 0B
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 C0 AD B6 A1 C3 C0 D6 DE 0d 0a
1B 40 1B 52 0C
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 BA AB B9 FA 0d 0a
1B 40 1B 52 0D
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 CB B9 C2 E5 CE C4 C4 E1 D1 C7 0d 0a
1B 40 1B 52 0E
7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a
1B 40 1C 26 D6 D0 B9 FA 0d 0a
1B 40 1B 52 0F

23
POS80 Thermal Printer Command Set

7b 23 24 40 5b 5c 5c 5d 5e 60 7b 7c 7d 7e 7d 0d 0a

Select character code table

Name Select character code table


ASCII :ESC t n
Format Decimal :27 116 n
HEX :1B 74 n
n :select code page.

N Code Page N Code Page


0 CP437 [U.S.A., Standard Europe] 26 Thai
1 KataKana 27 CP720[Arabic]
2 CP850 [Multilingual] 28 CP855
3 CP860 [Portuguese] 29 CP857[Turkish]
4 CP863 [Canadian-French] 30 WCP1250[Central Europe]
5 CP865 [Nordic] 31 CP775
6 WCP1251 [Cyrillic] 32 WCP1254[Turkish]
7 CP866 Cyrilliec #2 33 WCP1255[Hebrew]
8 MIK[Cyrillic /Bulgarian] 34 WCP1256[Arabic]
9 CP755 [East Europe,Latvian 2] 35 WCP1258[Vietnam]
10 Iran 36 ISO-8859-2[Latin 2]
11 reserve 37 ISO-8859-3[Latin 3]
Description 12 reserve 38 ISO-8859-4[Baltic]
13 reserve 39 ISO-8859-5[Cyrillic]
14 reserve 40 ISO-8859-6[Arabic]
15 CP862 [Hebrew] 41 ISO-8859-7[Greek]
16 WCP1252 Latin I 42 ISO-8859-8[Hebrew]
17 WCP1253 [Greek] 43 ISO-8859-9[Turkish]
18 CP852 [Latina 2] 44 ISO-8859-15 [Latin 3]
19 CP858 Multilingual Latin Ⅰ+Euro) 45 Thai2
20 Iran II 46 CP856
21 Latvian 47 Cp874
22 CP864 [Arabic] 255 GBK2312
23 ISO-8859-1 [West Europe]
24 CP737 [Greek]
25 WCP1257 [Baltic]

Range 0 ≤ n ≤ 255
Default 0
Support modal All the printers

24
POS80 Thermal Printer Command Set

Note
1B 40 1C 2E 1B 74 00
80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F 90 91 92 93 94 95 96 97 98
9A 9B 9C 9D 9E 9F A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF
For example B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF C0 C1 C2 C3 C4 C5
C6 C7 C8 C9 CA CB CC CD CE CF D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA
DB DC DD DE DF E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF F0
F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF 0D 0A

③ Bit image command

Print MSB BITMAP

Name Print MSB Bitmap


ASCII : DC2 V nL nH [d1 … d48]
Format Hex : 12 56 nL nH [d1 … d48]
Decimal : 18 86 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:

Description

Range
Default
Support modal All the printers
Note
12 56 01 00
For example FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

Print LSB bitmap


Name Print LSB Bitmap
Format ASCII : DC2 v nL nH [d1 … d48]

25
POS80 Thermal Printer Command Set

Hex : 12 76 nL nH [d1 … d48]


Decimal : 18 118 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
Bitmap format:

Description

Range
Default
Support modal All the printers
Note
For example

Select bit-image mode

Name Select bit-image mode


ASCII :ESC * m Hl Hh [d]k
Format Decimal :27 42 m Hl Hh [d]k
HEX :1B 2A m Hl Hh [d]k
Selects a bit-image mode using m for the number of dots specified by nL and nH, as
follows:

m mode Horizontal Scale Vertical Scale


0 8-dot single-density ×2 ×3
Description 1 8-dot double-density ×1 ×3
32 24-dot single-density ×2 ×1
33 24-dot double-density ×1 ×1
Hl、Hh specifies the number of dots in the horizontal direction.
(Hl+256×Hh)
[d]k is bit-image mode datas
XX58:
m = 0、1、32、33
Range 1 ≤ Hl + Hh × 256 ≤ 384
0 ≤ d ≤ 255
k = Hl + Hh ×256(当 m = 0、1)

26
POS80 Thermal Printer Command Set

k = ( Hl + Hh ×256 ) × 3(当 m = 32、33)


XX80:
m = 0、1、32、33
1 ≤ Hl + Hh × 256 ≤ 576
0 ≤ d ≤ 255
k = Hl + Hh ×256(当 m = 0、1)
k = ( Hl + Hh ×256 ) × 3(当 m = 32、33)
Default
Support modal All the printers

are processed as normal data.


in the

-image data input exceeds the number of dots to be printed on a


line, the excess data is ignored.
-image data. Set a corresponding bit to 1 to print a dot or
to 0 not to print a dot.

mode.
-strike,
underline, character size, or white/black reverse printing), except upside-down
printing mode.

described in Figure 3.11.3.


-dot bit image is selected:
Note

3.11.3
-dot bit image is selected:

27
POS80 Thermal Printer Command Set

3.11.3

1B 40
1b 2a 00 0C 00 FF FF FF FF FF FF FF FF FF FF FF FF
For example
1B 33 00
0A

Define downloaded bit image

Name Define downloaded bit image


ASCII :GS * x y d1...d(x×y×8)
Format Decimal :29 42 x y d1 ...d(x×y×8)
HEX :1D 2A x y d1...d(x×y×8)
Defines a downloaded bit image using the number of dots specified by x and y.
Description

1 ≤ x ≤ 255
1 ≤ y ≤ 48
Range
x*y ≤ 1536
0 ≤ d ≤ 255
Default
Support modal All the printers

-image data. Data (d) specifies a bit printed as 1 and not


printed as 0.
Note
1) ESC @ is executed.
2) ESC & is executed.
3) Printer is reset or the power is turned off.

28
POS80 Thermal Printer Command Set

and the printed data.

1B 40
1D 2A 0a 08
ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00
ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00
ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff 00
00 00 00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00
ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00
ff ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00
00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00
00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff
00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00
00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00
For example
00 ff ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00
00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00
00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00
ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00
00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00
00 00 ff ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00
00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00
00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00 00 00
00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00
00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00
00 00 00 ff ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00
00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00

29
POS80 Thermal Printer Command Set

00 00 00 00 ff 00 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00 00
00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00
00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00 00 00 00 00 00 ff 00
00 00 00 00 ff
1D 2F 03

Print downloaded bit image

Name Print downloaded bit image


ASCII :GS / m
Format Decimal :29 47 m
HEX :1D 2F m
Prints a downloaded bit image using the mode specified by m. m selects a mode
from the table below:

n Mode
Description 0, 48 Normal
1, 49 Double-width
2, 50 Double-height
3, 51 Quadruple
0≤m≤3
Range
48 ≤ m ≤ 51
Default
Support modal All the printers

print buffer.
-strike,
Note
underline, character size, or white/black reverse printing), except for upsidedown
printing mode.
-image to be printed exceeds the printable area, the excess
data is not printed.
For example

Define NV bit image

Name Define NV bit image


ASCII :FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n
Format Decimal :28 113 n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n
HEX :1C 71 n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n
Define the NV bit image specified by n.
Description
xH 256) 8 dots in the horizontal direction for the NV bit

30
POS80 Thermal Printer Command Set

image you are defining.


H specifies (yL yH 256) 8 dots in the vertical direction for the NV bit
image you are defining.
1 ≤ n ≤ 255
0 ≤ xL ≤ 255
0 ≤ xH ≤ 3
(1 ≤ (xL+xH*256) ≤ 1023)
0 ≤ yL ≤ 255)
Range
0 ≤ yH ≤ 1
(1 ≤ (yL+yH*256) ≤ 288)
0 ≤ d ≤ 255)
k = (xL+xH*256)*(yL+yH*256)*8
Total defined data area = 64K Bytes
Default
Support modal All the printers

Therefore, it is recommended to write the NV memory 10 times or less a day.


are reset after the procedure to place the image
into the NV memory. Therefore, user-defined characters, downloaded bit images
should be defined only after completing this command. The printer clears the
receive and print buffers and resets the mode to the mode that was in effect at
power on. (this version is not support hardware reset )

this command.

hardware reset, mechanical operations (including initializing the position of the


print head when the cover is open, paper feeding using the FEED button, etc.)
cannot be performed.

Note to the user NV memory and stops receiving data. Therefore it is prohibited to
transmit the data, including real-time commands, during the execution of this
command.
-volatile memory by FS q and
printed by FS p.
dard mode, this command is effective only when processed at
thebeginning of the line.

areprocessed normally.

xL, xH, yL, yH, the printer processes xL, xH, yL, yH out of the defined range.

yH is out of the definition range, this command is disabled.


irst one, when the printer
encounters xL, xH, yL, yH out of the defined range, it stops processing this

31
POS80 Thermal Printer Command Set

command and starts writing into the NV images. At this time, NV bit images that
haven’t been defined are disabled (undefined), but any NV bit images before that
are enabled.

printed and a 0 bit specifies a dot not to be printed.

order from NV bit image 01H. Therefore, the first data group [xL xH yL yH
d1...dk] is NV bit image 01H, and the last data group [xL xH yL yH d1...dk] is
NV bit image n. The total agrees with the number of NV bit images specified by
the command FS p.
V bit image consists of [xL xH yL yH d1...dk].
Therefore, when only one NV bit image is defined n=1, the printer processes a
data group [xL xH yL yH d1...dk] once. The printer uses ([data: (xL

memory.

command can define several NV bit images, but cannot define bit image data

or perform status detection during


processing of this command even when ASB is specified.

reset, and power off.


t
perform printing. Printing of the NV bit image is performed by the FS
pcommand.
For example : xL = 64, xH = 0, yL = 96, yH = 0

32
POS80 Thermal Printer Command Set

1B 40
1C 71 01 10 00 08 00
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff
ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff
For example ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00
00 ff ff ff ff 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00
00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00
00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff

33
POS80 Thermal Printer Command Set

ff 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00
00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff
ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff
ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00
00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 ff
ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00
00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00
00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00 00 00 00 ff ff ff ff 00
00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff
ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff
ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff 00 00 00 00 ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff
1C 70 01 00

Print NV bit image

Name Print NV bit image


ASCII :FS p n m
Format Decimal :28 112 n m
HEX :1C 70 n m
Prints NV bit image n using the mode specified by m.
m Mode
0,48 Normal
Description
1,49 Double-width
2,50 Double-height
3,51 Quadruple
0≤m≤3
Range 48 ≤ m ≤ 51
1 ≤ n ≤ 255
Default
Support modal All the printers
-volatile memory by FS q and
Note printed by FS p.

34
POS80 Thermal Printer Command Set

defined.
ve only when there is no data in the
print buffer.

upside-down printing mode.


it-image to be printed exceeds one line, the excess data is
not printed.

double-
doubleheight and quadruple modes, regardless of the line spacing specified by ESC
2 or ESC 3.

beginning of the line and processes the data that follows as normal data.
For example

Print raster bit image

[Name] Print raster bit image


[Format] ASCII GS v 0 m x L x H y L y H d1...dk
Hex 1D 76 30 m x L x H y L y H d1...dk
Decimal 29 118 48 m x L x H y L y H d1...dk
[Range] 0 ≤ m ≤ 3, 48 ≤ m ≤ 51
1 ≤ (x L + x H × 256) ≤ 65535 (0 ≤ x L ≤ 255, 0 ≤ x H ≤ 255)
1 ≤ (y L + y H × 256) ≤ 2303 (0 ≤ y L ≤ 255, 0 ≤ y H ≤ 8)
0 ≤ d ≤ 255
k = (x L + x H ×256) ×(y L + y H × 256)
[Description] • Prints a raster bit image using the mode specified by m.
m Mode Vertical direction(DPI) Horizontal direction(DPI)
0,48 Normal 200 200
1,49 Double-width 200 100
2,50 Double-height 100 200
3,51 Quadruple 100 100
• x L , x H specify the number of bytes in the horizontal direction as (x L + x H ×256).
• y L , y H specify the number of dots in the vertical direction as (y L + y H × 256).
• d specifies the defined data (raster format).

35
POS80 Thermal Printer Command Set

④ Tab command

Horizontal tab

Name Horizontal tab


ASCII :HT
Format Decimal :9
HEX :09
Description Moves the print position to the next horizontal tab position.
Range
Default
Support modal All the printers
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].
Note 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.
For example

Set horizontal tab positions

Name Set horizontal tab positions


ASCII :ESC D [d]k NUL
Format Decimal :27 68 [d]k 0
HEX :1B 44 [d]k 00
Sets horizontal tab positions.

Description beginning of the line.

NULL is end mark.


XX58:1 ≤ d ≤ 46(d1 <d2 < …… dk ,1 ≤ k ≤ 16)
XX80:1 ≤ d ≤ 70(d1 < d2 < …… dk ,1 ≤ k ≤ 16)
Default [d]k = 0
Support modal All the printers
Note Set the Tab position:

36
POS80 Thermal Printer Command Set

measured from the beginning of the line. The character width includes the
right-side character spacing, and double-width characters are set with twice the
width of normal characters.

ed to column 9 by
sending HT.

is processed as normal data.

When [n]k is less than or equal to the preceding value [n]k-1, tab setting is
finished and the following data is processed as normal data.

character width changes.


cter width is memorized for each standard mode.

1B 40 1C 26 1B 44 10 18 00
B1 E0 BA C5 09 C3 FB B3 C6 09 BC DB B8 F1 28 D4 AA 29 0D 0A
1B 44 10 18 00
31 09 B0 D7 B2 CB 09 31 2E 35 0D 0A
For example
1B 44 10 18 00
32 09 C7 D1 D7 D3 09 32 0D 0A
1B 44 10 18 00
33 09 B6 B9 D1 BF 09 31 0D 0A

⑤ Bar code command

Select printing position for HRI characters

Name Select printing position for HRI characters


Format ASCII:GS H n

37
POS80 Thermal Printer Command Set

Decimal:29 72 n
HEX:1D 48 n
Selects the printing position of HRI characters when printing a bar code. n
selects the printing position as follows:

n Printing position
Description 0, 48 Not printed
1, 49 Above the bar code
2, 50 Below the bar code
3, 51 Both above and below the bar code
Range 0 ≤ n ≤ 3 or 48 ≤ n ≤ 51
Default n=0
Support modal All the printers
Note ESC @,dump and restart,Reset the printer,This command setting failure.
For example

Select bar code height

Name Select bar code height


ASCII :GS h n
Format Decimal :29 104 n
HEX :1D 68 n
Selects the height of the bar code.
n specifies the number of dots in the vertical direction.

Description

Range 1 ≤ n ≤ 255
Default n = 64
Support modal All the printers
Note ESC @,dump and restart,Reset the printer,This command setting failure.
For example

Set bar code width

Name Set bar code width


ASCII :GS w n
Format Decimal :29 119 n
HEX :1D 77 n

38
POS80 Thermal Printer Command Set

Set bar code width unit to n,Parameters n meaning as follow:

Description

Range 1≤n≤6
Default n=2
Support modal All the printers
Note ESC @,dump and restart,Reset the printer,This command setting failure.
For example

Print bar code

Name Print bar code


(A) ASCII :GS k m [d]k NUL
Decimal :29 107 m [d]k NUL
HEX :1D 6B m [d]k NUL
Format
(B) ASCII :GS k m n [d]k
Decimal :29 107 m n [d]k
HEX :1D 6B m n [d]k
Selects a bar code system and prints the bar code.
m selects a bar code system as follows:

m Bar Code Number of Characters Remarks


System
① 0 UPC-A
1 UPC-E
2 JAN13
(EAN13)
Description 3 JAN 8 (EAN8)
4 CODE39

32, 36, 37, 43, 45,


46, 47
5 ITF
6 CODABAR

36, 43, 45, 46, 47,


58

39
POS80 Thermal Printer Command Set

② 65 UPC-A
66 UPC-E
67 JAN13
(EAN13)
68 JAN 8 (EAN8)
69 CODE39

32, 36, 37, 43, 45,


46, 47
70 ITF
number)
71 CODABAR

36, 43, 45, 46, 47,


58
72 CODE93
73 CODE128

[Notes for ①]

-A or UPC-E, the printer prints the


bar code data after receiving 12 bytes of bar code data and processes the
following data as normal data.

bar code after receiving 13 bytes of bar code data and processes the following
data as normal data.

code after receiving 8 bytes of bar code data and processes the following data as
normal data.
F bar code must be even numbers. When an
odd number of bytes of data is input, the printer ignores the last received data.
[Notes for ②]

bytes from the next character data as bar code data.

and processes the following data as normal data.


[Notes in standard mode]

processes the following data as normal data.

code,regardless of the line spacing specified by ESC 2 or ESC 3.


nabled only when no data exists in the print [Link]
data exists in the print buffer, the printer processes the data following m as

40
POS80 Thermal Printer Command Set

normal data.

beginning of the line.


mmand is not affected by print modes (emphasized,
double-strike,underline, character size, white/black reverse printing, or
-down printing mode.
[Example] Printing GS k 72 7 67 111 100 101 13 57 51
Control character Control character
ASCII Hex Decimal HRI ASC Hex Decima HRI
character II l character
NUL 00 0 ■U DEL 10 16 ■P
SOH 01 1 ■A DC1 11 17 ■Q
STX 02 2 ■B DC2 12 18 ■R
ETX 03 3 ■C DC3 13 19 ■S
EOT 04 4 ■D DC4 14 20 ■T
ENQ 05 5 ■E NAK 15 21 ■U
ACK 06 6 ■F SYN 16 22 ■V
BEL 07 7 ■G ETB 17 23 ■W
BS 08 8 ■H CAN 18 24 ■X
HT 09 9 ■I EM 19 25 ■Y
LF 0A 10 ■J SUB 1A 26 ■Z
VT 0B 11 ■K ESC 1B 27 ■A
FF 0C 12 ■L FS 1C 28 ■B
CR 0D 13 ■M GS 1D 29 ■C
SO 0E 14 ■N RS 1E 30 ■D
SI 0F 15 ■O US 1F 31 ■E
DEL 7F 127 ■T

When CODE128 (m = 73) is used:

for data transmission:


① The top of the bar code data string must be the code set selection character
(CODE A, CODE B, or CODE C), which selects the first code set.
②Special characters are defined by combining two characters "{" and one
character. The ASCII character "{" is defined by transmitting "{" twice
consecutively.

Specific character Transmit data

41
POS80 Thermal Printer Command Set

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] Example data for printing "No. 123456"


In this example, the printer first prints "No." using CODE B, then prints the
following numbers using CODE C.
GS k 73 10 123 66 78 111 46 123 67 12 34 56

CODE 128:
1b 40 1d 48 02 1d 68 64 1d 77 03
1d 6b 49 0A 7B 42 4E 6F 2E 7B 43 0C 22 38

ode data is not the code set selection character, the


printer stops command processing and processes the following data as normal
data.

special character, the printer stops command processing and processes the
following data as normal data.

the printer stops command processing and processes the following data as
normal data.
t HRI characters that correspond to the shift
characters or code set selection characters.

space.

(A) 0 ≤ m ≤ 6
Range
(B) 65 ≤ m ≤ 74
Default
Support modal All the printers

42
POS80 Thermal Printer Command Set

Note
1b 40 1d 48 02 1d 68 64 1d 77 03
30 0D 0A
1d 6b 00 30 31 32 33 34 35 36 37 38 39 31 00
31 0D 0A
1d 6b 01 30 31 32 33 34 35 36 37 38 39 31 00
32 0D0A
1d 6b 02 30 31 32 33 34 35 36 37 38 39 31 32 00
33 0D 0A
1d 6b 03 30 31 32 33 34 35 36 37 00
34 0D 0A
1D 6B 04 30 31 32 41 42 20 24 25 2B 2D 2E 2F 00
35 0D 0A
1d 6b 05 30 31 32 33 34 35 36 37 38 39 31 32 00
36 0D 0A
1d 6b 06 2D 31 32 42 24 2B 2D 2E 00
1d 6b 06 43 31 32 33 34 35 36 34 38 39 00

For example 36 35 0D 0A
1d 6b 41 0c 31 32 33 34 35 36 37 38 39 30 31 32
36 36 0D 0A
1d 6b 42 0c 30 32 33 34 35 36 30 30 30 30 38 39
36 37 0D 0A
1d 6b 43 0c 30 32 33 34 35 36 30 30 30 30 38 39
36 38 0D 0A
1d 6b 44 08 30 32 33 34 35 36 30 30
36 39 20 20 4e 4f 20 24 25 2b 2d 2e 2f 31 32 33 34 35 36 30 30 0D 0A
1d 6b 45 11 4e 4f 20 24 25 2b 2d 2e 2f 31 32 33 34 35 36 30 30
37 30 20 20 20 30 32 33 34 35 36 30 30 C5 BC CA FD 0D 0A
1d 6b 46 09 30 31 32 33 34 35 36 30 30
37 31 0d 0a
1d 6b 47 05 32 33 34 35 36
37 32 0d 0a
1d 6b 48 0b 32 33 34 35 36 41 42 2e 2f 2b 2c
37 33 0d0a
1d 6b 49 0A 7B 42 4E 6F 2E 7B 43 0C 22 38

43
POS80 Thermal Printer Command Set

⑥ QR CODE COMMAND

Set the model type

Name Set the model type


ASCII :GS ( k pL pH cn fn n
Format Decimal :29 40 107 pL pH cn fn n
HEX :1D 28 6b pL pH cn fn n
Description Set the model type
pL=3, pH=0
cn=49
Range
fn=67
0 ≤ n ≤ 16
Default n=3
Support modal All the printers
Note
For example

Set the QR code error correction level error (ECC)

Name Set the QR code error correction level error (ECC)


ASCII :GS ( k pL pH cn fn n
Format Decimal:29 40 107 pL pH cn fn n
HEX :1D 28 6b pL pH cn fn n
Description Set the QR code error correction level error
pL=3, pH=0
cn=49
Range
fn=69
48 ≤ n ≤ 51
Default n=48
Support modal All the printers
Set the QR code error correction level error

n function The general proportion of


recovery (%)
48 Error correction level L 7
Note
49 Error correction level m 15
50 Error correction level q 25
51 Error correction level h 30

For example

44
POS80 Thermal Printer Command Set

Set the QR code graphic data

Name Set the QR code graphic data


ASCII :GS ( k pL pH cn fn m d1…dk
Format Decimal :29 40 107 pL pH cn fn m d1…dk
HEX :1D 28 6b pL pH cn fn m d1…dk
Description Set the QR code graphic data.
4 ≤ (pL + pH×256 ) ≤ 7092 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 28)
cn=49
fn=80
Range
m=48
0 ≤ d ≤ 255
k = (pL + pH×256 ) - 3
Default
Support modal All the printers
Set the QR code graphic data(d1...dk)to QR code buffer.
Note
(d1...dk) ((pL + pH×256 )-3)Byte as a graphic data is processed.
For example

Print store QR codes graphics

Name Print store QR codes graphics


ASCII :GS ( k pL pH cn fn m
Format Decimal :29 40 107 pL pH cn fn m
HEX :1D 28 6b pL pH cn fn m
Description Print store QR codes graphics
pL=3, pH=0
cn=49
Range
fn=81
m=48
Default
Support modal All the printers
Print store QR codes graphics.
Note The user must consider QR code graphic space(QR code graphics about spacing and
the spacing of up and down).
1b 40
1d 28 6b 03 00 31 43 03
1d 28 6b 03 00 31 45 30
For example 1d 28 6b 06 00 31 50 30 41 42 43
1b 61 01
1d 28 6b 03 00 31 52 30
1d 28 6b 03 00 31 51 30

45
POS80 Thermal Printer Command Set

PDF417: Set the number of columns in the data region(POS83x/POS82x

support)

[Name] PDF417: Set the number of columns in the data region


[Format] ASCII GS ( k p L p H cn fn n
Hex 1D 28 6B p L p H cn fn n
Decimal 29 40 107 p L p H cn fn n
[Range] (p L + p H ×256) = 3 (p L = 3, p H = 0)
cn = 48
fn = 65
0 ≤ n ≤ 30
[Default] n = 0
[Description] • Sets the number of columns in the data region for PDF417.
• When n = 0, specifies automatic processing. In this case, the number of columns in
the data region is calculated from the number of codewords or the range of the print area.
• When n ≠ 0, sets the number of columns in the data region to n codewords:
[Notes] • The following data is not included in the number of columns.
• Start pattern and stop pattern
• Left-row indicator codewords and right-row indicator codewords

PDF417: Set the number of rows(POS83x/POS82x support)

[Name] PDF417: Set the number of rows


[Format] ASCII GS ( k p L p H cn fn n
Hex 1D 28 6B p L p H cn fn n
Decimal 29 40 107 p L p H cn fn n
[Range] (p L + p H ×256) = 3 (p L = 3, p H = 0)
cn = 48
fn = 66
n = 0, 3 ≤ n ≤ 90
[Default] n = 0
[Description] • Sets the number of rows for PDF417.
• When n = 0, specifies automatic processing. In this case, the number of rows in the
data region is calculated from the number of codewords or the range of the print area.
• When n ≠ 0, sets the number of rows to n rows.

PDF417: Set the width of the module(POS83x/POS82x support)

[Name] PDF417: Set the width of the module


[Format] ASCII GS ( k p L p H cn fn n
Hex 1D 28 6B p L p H cn fn n

46
POS80 Thermal Printer Command Set

Decimal 29 40 107 p L p H cn fn n
[Range] (p L + p H ×256) = 3 (p L = 3, p H = 0)
cn = 48
fn = 67
2≤n≤8
[Default] n = 3
[Description] • Sets the width of the module for PDF417 to n dots.

PDF417: Set the row height(POS83x/POS82x support)

[Name] PDF417: Set the row height


[Format] ASCII GS ( k p L p H cn fn n
Hex 1D 28 6B p L p H cn fn n
Decimal 29 40 107 p L p H cn fn n
[Range] (p L + p H ×256) = 3 (p L = 3, p H = 0)
cn = 48
fn = 68
2≤n≤8
[Default] n = 3
[Description] • Sets the row height for PDF417 to [n × (the width of the module)].

PDF417: Set the error correction level(POS83x/POS82x support)

[Name] PDF417: Set the error correction level


[Format] ASCII GS ( k p L p H cn fn m n
Hex 1D 28 6B p L p H cn fn m n
Decimal 29 40 107 p L p H cn fn m n
[Range] (p L + p H ×256) = 4 (p L = 4, p H = 0)
cn = 48
fn = 69
m = 48, 49
48 ≤ n ≤ 56 [when m = 48]
1 ≤ n ≤ 40 [when m = 49]
[Default] m = 49, n = 1
[Description] • Sets the error correction level for PDF417.
• When m = 48, the error correction level is set by the “Level Setting” and the error
correction level set by “Ratio Setting” is canceled. The number of error correction
codewords are as follows:
n Function Number of error correction codewords
48 Select error correction level 0 2
49 Select error correction level 1 4
50 Select error correction level 2 8

47
POS80 Thermal Printer Command Set

51 Select error correction level 3 16


52 Select error correction level 4 32
53 Select error correction level 5 64
54 Select error correction level 6 128
55 Select error correction level 7 256
56 Select error correction level 8 512

• When m = 49, the error correction level is set by the “Ratio Setting” to the level
indicated by the number for encoded data, and the error correction level set by the
“Level Setting” is canceled. The rate is set to [n × 10%].
The error correction levels in the following table are determined by the calculation
[Data codeword ×n × 0.1 = (A)] (Fractions of 0.5 and over are rounded up, and
others are truncated.)
Result (A) Use the error correction level Number of error correction codeword
Result (A) Use the error correction level Number of error correction codeword
0 to 3 Error correction level 1 4
4 to 10 Error correction level 2 8
11 to 20 Error correction level 3 16
21 to 45 Error correction level 4 32
46 to 100 Error correction level 5 64
101 to 200 Error correction level 6 128
201 to 400 Error correction level 7 256
401 or more Error correction level 8 512

PDF417: Select the options(POS83x/POS82x support)

[Name] PDF417: Select the options


[Format] ASCII GS ( k p L p H cn fn m
Hex 1D 28 6B p L p H cn fn m
Decimal 29 40 107 p L p H cn fn m
[Range] (p L + p H ×256) = 3 (p L = 3, p H = 0)
cn = 48
fn = 70
m = 0, 1
[Default] m = 0
[Description] • Selects the options for PDF417.
m Function
0 Selects the standard PDF417.
1 Selects the truncated PDF417.

48
POS80 Thermal Printer Command Set

PDF417: Store the data in the symbol storage area(POS83x/POS82x

support)

[Name] PDF417: Store the data in the symbol storage area


[Format] ASCII GS ( k p L p H cn fn m d1…dk
Hex 1D 28 6B p L p H cn fn m d1…dk
Decimal 29 40 107 p L p H cn fn m d1…dk
[Range] 4 ≤ (p L + p H × 256) ≤ 65535 (0 ≤ p L ≤ 255, 0 ≤ p H ≤ 255)
cn = 48
fn = 80
m = 48
0 ≤ d ≤ 255
k = (p L + p H ×256) – 3
[Description] • Stores the PDF417 symbol data (d1...dk) in the symbol storage area.

PDF417: Print the symbol data in the symbol storage area

(POS83x/POS82x support)

[Name] PDF417: Print the symbol data in the symbol storage area
[Format] ASCII GS ( k p L p H cn fn m
Hex 1D 28 6B p L p H cn fn m
Decimal 29 40 107 p L p H cn fn m
[Range] (p L + p H ×256) = 3 (p L = 3, p H = 0)
cn = 48
fn = 81
m = 48
[Description] • Encodes and prints the PDF417 symbol data in the symbol storage area with GS
(k
[Notes] • User must secure the quiet zone (left, right, upward, and downward space areas
defined by the PDF417 symbol specifications) for PDF417 printing.
• In standard mode, symbols higher than 831 dots cannot be printed with this printer.

PDF417: Transmit the size information of the symbol data in the symbol

storage area(POS83x/POS82x support)

[Name] PDF417: Transmit the size information of the symbol data in the symbol storage area
[Format] ASCII GS ( k p L p H cn fn m
Hex 1D 28 6B p L p H cn fn m
Decimal 29 40 107 p L p H cn fn m

49
POS80 Thermal Printer Command Set

[Range] (p L + p H ×256) = 3 (p L = 3, p H = 0)
cn = 48
fn = 82
m = 48
[Description] • Transmits the size information for the encoded PDF417 symbol data in the symbol
storage area with GS ( k <Function 080>.
[Notes] • This function does not print.
• The size information does not include the quiet zone (left, right, upward, and
downward space areas defined by the PDF417 symbol specifications).

⑦ STATUS COMMAND

Transmit status

Name Transmit status


ASCII :GS r n
Format Decimal :29 114 n
HEX :1D 72 n
Transmits the status specified by n as follows:
n Function
Description 1.49 Transmits paper sensor status

Range n = 1, 49
Default
Support modal All the printers
When using a serial interface
When DTR/DSR control is selected, the printer transmits only 1 byte after
confirming the host is ready to receive data (DSR signal is SPACE). If the host
computer is not ready to receive data (DSR signal is MARK), the printer waits
until the host is ready.
When XON/XOFF control is selected, the printer transmits only 1 byte without
confirming the condition of the DSR signal.
This command is executed when the data in the receive buffer is developed.
Note
Therefore, there may be a time lag between receiving this command and
transmitting the status, depending on the receive buffer status.
When Auto Status Back (ASB) is enabled using GS a, the status transmitted
by GS r and the ASB status must be differentiated using.
The status types to be transmitted are shown below:

Bit Off/On Hex Decimal Status for ASB


0,1 - - - Undefined.

50
POS80 Thermal Printer Command Set

2,3 Off 00 0 Paper roll end sensor: paper adequate.


On (0C) (12) Paper roll end sensor: paper near end.
4 Off 00 0 Not used. Fixed to Off.
5,6 - - - Undefined.
7 Off 00 0 Not used. Fixed to Off.
Paper sensor status (n = 1, 49):
Bits 2 and 3: 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.
For example

Real-time transmission status

Name Real-time transmission status


ASCII :DLE EOT n
Format Decimal :16 4 n
HEX :10 04 n
n = 1:printer status
n = 2:send offline status
Description
n = 3:Transmission error status
n = 4:Transmission paper sensor status
Range 1≤n≤4
Default
Support modal All the printers

51
POS80 Thermal Printer Command Set

n=1:printer status
bit 0/1 HEX Decimal Function
0 0 00 0 0
1 1 02 2 1
2 0 00 0 Open one or two cash drawer
(No cash drawer is fixed to 0)
1 04 4 Close cash drawer
3 0 00 0 On-line
1 08 8 Off-line
4 1 10 16 1
5, -- -- Undefined
6
7 0 00 00 The paper has been torn away
1 80 96 Paper not to tear away

n=2:send offline status


位 0/1 HEX Decimal function
0 0 00 0 0
1 1 02 2 1
2 0 00 0 Close paper warehouse
1 04 4 Open paper warehouse
Note 3 0 00 0 Not push Feed button
1 08 8 Push feed button
4 1 10 16 1
5 0 00 0 Paper normal
1 20 32 Paper out
6 0 00 00 Normal status
1 40 64 Error status
7 0 00 0 0

n=3:Transmission error status


bit 0/1 HEX Decimal function
0 0 00 0 0
1 1 02 2 1
2 -- -- Undefined
3 0 00 0 cutter normal
1 08 8 Cutter error
4 1 10 16 1
5 0 00 0 Unrecoverable Error
1 20 32 Unrecoverable Error
6 0 00 00 Print head temperature and voltage are
normal

52
POS80 Thermal Printer Command Set

1 40 64 Print head temperature and voltage are


over range.
7 0 00 0 0

n=4:Transmission paper sensor status


bit 0/1 HEX Decimal Function
0 0 00 0 0
1 1 02 2 1
2, 0 00 0 normal status
3 1 0C 12 paper will out
4 1 10 16 1
5, 0 00 0 normal status
6 1 60 96 Paper out
7 0 00 0 0

10 04 01
10 04 02
For example
10 04 03
10 04 04

Send real-time request to printer

[Name] Send real-time request to printer


[Format] ASCII DLE ENQ n
Hex 10 05 n
Decimal 16 5 n
[Range] n = 1, 2
[Description] • Responds to a request in real-time from the host PC.
n Function
1 Recovers from a recoverable error and restarts printing from the line where the error
occurred.

53
POS80 Thermal Printer Command Set

2 Recovers from a recoverable error after clearing the receive and print buffers.
• This command is ignored unless a recoverable error has occurred.
[Notes] • Use this command after removing the cause of the error.
• Take the following into consideration:
• If the received data includes a data string matching this command, the printer
performs the command. Users must consider this.
Example: Graphic data might accidentally include a data string matching this
command.
• Do not embed this command within another command.
Example: Graphic data might include this command.

Enable/Disable Automatic Status Back (ASB)

Name Enable/Disable Automatic Status Back (ASB)


ASCII :GS a n
Format Decimal :29 97 n
HEX :1d 61 n
When ASB is enabled, the printer will send the changed status to PC
automatically.
bit off/on HEX Decimal ASB status
0 - - - Undefined
1 - - - Undefined
Description
2 off 00 0 error status prohibition
on 04 4 Error status allows
3 off 00 0 Paper sensor status prohibition
on 08 8 Paper sensor status allows
4-7 - - - Undefined
Range 0≤n≤255
Default
Support modal All the printers
Note
For example 1D 61 08

Set the process ID response

[Name] Set the process ID response


[Format] ASCII GS ( H p L p H fn m d1 d2 d3 d4
Hex 1D 28 48 p L p H fn m d1 d2 d3 d4
Decimal 29 40 72 p L p H fn m d1 d2 d3 d4
[Range] (p L + p H ×256) = 6 (p L =6, p H = 0)
fn = 48
m = 48

54
POS80 Thermal Printer Command Set

32 ≤ d ≤ 126
[Description] • Saves the process ID specified by (d1, d2, d3, d4) for the data processed
immediately before this function.

⑧ Other command

Initialize printer

Name Initialize printer


ASCII:ESC @
Format Decimal:27 64
HEX:1B 40
Clears the data in the print buffer and resets the printer mode to the mode that
Description
was in effect when the power was turned on.
Range
Default
Support modal All the printers
Note
For example

Printing test paper

Name Printing test paper


ASCII:DC2 T
Format Decimal:18 94
HEX:12 54
Description Printing test page
Range
Default
Support modal All the printers
Note
For example 1B 40 12 54

Select cut mode and cut paper

[Name] Select cut mode and cut paper


[Format] <A> ASCII GS V m
Hex 1D 56 m
Decimal 29 86 m
<B> ASCII GS V m n
Hex 1D 56 m n

55
POS80 Thermal Printer Command Set

Decimal 29 86 m n
[Range] <A> m = 0, 1, 48, 49
<B> m = 65, 66, 0 ≤ n ≤ 255
[Description] • Executes paper cutting specified by m.
m Paper cutting patterns
<A> 0, 48 Full-cut
1, 49 Semi-cut
<B> 65, 66 Feeds paper to (cutting position + [n × (vertical motion unit)]) and cuts
the paper.
[Note] • This printer executes a partial cut (one point left uncut).

Partial cut (one point left uncut)

[Name] Partial cut (one point left uncut)


[Format] ASCII ESC i
Hex 1B 69
Decimal 27 105
[Description] • Executes a partial cut of the roll paper.
[Note] • This printer executes a partial cut (one point left uncut).

Partial cut (three points left uncut)

[Name] Partial cut (three points left uncut)


[Format] ASCII ESC m
Hex 1B 6D
Decimal 27 109
[Description] • Executes a partial cut of the roll paper.
[Note] • This printer executes a partial cut (one point left uncut).

Produce a cash drawer impulse(Only For Drawer)

Name Produce a cash drawer impulse


ASCII:ESC p m t1 t2
Format Decimal:27 112 m t1 t2
HEX:1B 70 m t1 t2
Description Output pulse to the specified pin
m=0,1,48,49
Range 0 ≤ t1 ≤ 255
0 ≤ t2 ≤ 255
Default
Support modal All the printers

56
POS80 Thermal Printer Command Set

1、Cash drawer pin designated by m

m function
Note 0,48 Off / On signal(Connected to pin 2)
1,49 Off / On signal (Connected to pin 5)
2、Open the cash drawer [t1×2ms],Close the cash drawer [t2×2ms]。
3、If t2 < t1,Close the cash drawer [t1×2ms]。
1B 40
For example 1B 70 00 60 60
1B 70 01 60 60

Set the print concentration

Name Set the print concentration


ASCII:ESC 7 n1 n2 n3
Format Decimal:27 55 n1 n2 n3
HEX:1B 37 n1 n2 n3
Set “max heating dots”,”heating time”, “heating interval” ;
• n1 = 0-255 Max printing dots,Unit(8dots),Default:9(80 dots);
• n2 = 3-255 Heating time,Unit(10us),Default:80(800us);
• n3 = 0-255 Heating interval,Unit(10us),Default:2(20us);
Description The more max heating dots, the more peak current will cost when printing, the
faster printing speed. The max heating dots is 8*(n1+1);
The more heating time, the more density , but the slower printing speed. If
heating time is too short, blank page may occur.
The more heating interval, the more clear, but the slower printing speed.
Range
Default
Support modal All the printers
‘heating time’、’heating interval’ PCB will automatically adjust according to
Note
the input voltage
Heating dots:80dots,heating time:800us,heating interval:200us。
1B 40
1B 37 09 50 02
12 54

For example Heating dots:80dot,heating time:1600us,heating interval:200us。


1B 40
1B 37 09 A0 02
12 54

It is observed that the more heating time,the more printing dark.

57
POS80 Thermal Printer Command Set

⑨ Page code command(POS83x/POS82x support)

Print and return to standard mode (in page mode)

[Name] Print and return to standard mode (in page mode)


[Format] ASCII FF
Hex 0C
Decimal 12
[Description] • Prints all the data in the print buffer collectively and switches from page mode to
standard mode.

Cancel print data in page mode

[Name] Cancel print data in page mode


[Format] ASCII CAN
Hex 18
Decimal 24
[Description] • In page mode, deletes all the print data in the current print area.

Print data in page mode

[Name] Print data in page mode


[Format] ASCII ESC FF
Hex 1B 0C
Decimal 27 12
[Description] • In page mode, prints all the data in the print buffer collectively.

Select page mode

[Name] Select page mode


[Format] ASCII ESC L
Hex 1B 4C
Decimal 27 76
[Description] • Switches from standard mode to page mode.

58
POS80 Thermal Printer Command Set

Select standard mode

[Name] Select standard mode


[Format] ASCII ESC S
Hex 1B 53
Decimal 27 83
[Description] • Switches from page mode to standard mode.

Select print direction in page mode

[Name] Select print direction in page mode


[Format] ASCII ESC T n
Hex 1B 54 n
Decimal 27 84 n
[Range] 0 ≤ n ≤ 3, 48 ≤ n ≤ 51
[Default] n = 0
[Description] • In page mode, selects the print direction and starting position.
n Print direction Starting position
0, 48 Left to right Upper left
1, 49 Bottom to top Lower left
2, 50 Right to left Lower right
3, 51 Top to bottom Upper right

Set print area in page mode

[Name] Set print area in page mode


[Format] ASCII ESC W x L x H y L y H dx L dx H dy L dy H
Hex 1B 57 x L x H y L y H dx L dx H dy L dy H
Decimal 27 87 x L x H y L y H dx L dx H dy L dy H
[Range] 0 ≤ (x L + x H × 256) ≤ 65535 (0 ≤ x L ≤ 255, 0 ≤ x H ≤ 255)
0 ≤ (y L + y H × 256) ≤ 65535 (0 ≤ y L ≤ 255, 0 ≤ y H ≤ 255)
1 ≤ (dx L + dx H × 256) ≤ 65535 (0 ≤ dx L ≤ 255, 0 ≤ dx H ≤ 255)
1 ≤ (dy L + dy H × 256) ≤ 65535 (0 ≤ dy L ≤ 255, 0 ≤ dy H ≤ 255)
[Default] (x L + x H × 256) = 0 (x L = 0, x H = 0)
(y L + y H × 256) = 0 (y L = 0, y H = 0)
(dx L + dx H × 256) = 512 (dx L = 0, dx H = 2) [When paper width is set to 80 mm]
(dx L + dx H × 256) = 360 (dx L = 104, dx H = 1) [When paper width is set to 58 mm]
(dy L + dy H × 256) = 1662 (dy L = 126, dy H = 6)
[Description] • In page mode, sets the size and the logical origin of the print area.
• x L , x H specify the horizontal logical origin as [(x L + x H × 256) × (horizontal

59
POS80 Thermal Printer Command Set

motion unit)] from absolute origin.


• y L , y H specify the vertical logical origin as [(y L + y H × 256) × (vertical motion
unit)] from absolute origin.
• dx L , dx H specify the horizontal dimension of print area as [(dx L + dx H × 256) ×
(horizontal motion unit)].
• dy L , dy H specify the vertical dimension of print area as [(dy L + dy H × 256) ×
(vertical motion unit)].
[Note] • The vertical dimension of the print area can be set to 234.53 mm {3324/360"}

Set absolute vertical print position in page mode

[Name] Set absolute vertical print position in page mode


[Format] ASCII GS $ n L n H
Hex 1D 24 n L n H
Decimal 29 36 n L n H
[Range] 0 ≤ (n L + n H × 256) ≤ 65535 (0 ≤ n L ≤ 255, 0 ≤ n H ≤ 255)
[Description] • In page mode, moves the vertical print position to [(n L + n H × 256) ×
(vertical or horizontal motion unit)] from the starting position set with ESC T.

Set relative vertical print position in page mode

[Name] Set relative vertical print position in page mode


[Format] ASCII GS \ n L n H
Hex 1D 5C n L n H
Decimal 29 92 n L n H
[Range] -32768 ≤ (n L + n H × 256) ≤ 32767
[Description] • In page mode, moves the vertical print position to [(n L + n H × 256) ×
(vertical or horizontal motion unit)] from the current position.
• A positive number specifies downward movement, and a negative number
specifies upward movement.

60

You might also like