POS80 Thermal Printer Command Guide
POS80 Thermal Printer Command Guide
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
3
POS80 Thermal Printer Command Set
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
6
POS80 Thermal Printer Command Set
2 Command in details
7
POS80 Thermal Printer Command Set
For example 1b 40 30 31 32 1b 4a 10
8
POS80 Thermal Printer Command Set
② Character command
9
POS80 Thermal Printer Command Set
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
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
11
POS80 Thermal Printer Command Set
12
POS80 Thermal Printer Command Set
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
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
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
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.
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.
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.
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
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
17
POS80 Thermal Printer Command Set
For example
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
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.
①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
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
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
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
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
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
25
POS80 Thermal Printer Command Set
Description
Range
Default
Support modal All the printers
Note
For example
26
POS80 Thermal Printer Command Set
mode.
-strike,
underline, character size, or white/black reverse printing), except upside-down
printing mode.
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
1 ≤ x ≤ 255
1 ≤ y ≤ 48
Range
x*y ≤ 1536
0 ≤ d ≤ 255
Default
Support modal All the printers
28
POS80 Thermal Printer Command Set
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
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
30
POS80 Thermal Printer Command Set
this command.
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.
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.
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
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
34
POS80 Thermal Printer Command Set
defined.
ve only when there is no data in the
print buffer.
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
35
POS80 Thermal Printer Command Set
④ Tab command
Horizontal tab
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.
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.
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
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
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
38
POS80 Thermal Printer Command Set
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
39
POS80 Thermal Printer Command Set
② 65 UPC-A
66 UPC-E
67 JAN13
(EAN13)
68 JAN 8 (EAN8)
69 CODE39
[Notes for ①]
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 ②]
40
POS80 Thermal Printer Command Set
normal data.
41
POS80 Thermal Printer Command Set
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
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
For example
44
POS80 Thermal Printer Command Set
45
POS80 Thermal Printer Command Set
support)
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.
47
POS80 Thermal Printer Command Set
• 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
48
POS80 Thermal Printer Command Set
support)
(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
[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
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:
50
POS80 Thermal Printer Command Set
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
52
POS80 Thermal Printer Command Set
10 04 01
10 04 02
For example
10 04 03
10 04 04
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.
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
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).
56
POS80 Thermal Printer Command Set
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
57
POS80 Thermal Printer Command Set
58
POS80 Thermal Printer Command Set
59
POS80 Thermal Printer Command Set
60