个人精心整理的ESC/POS指令集,希望能帮助到打印机及打印机相关开发者
TM-T88V
TM-U220
●TM-U230
ame
Print and return to Standard mode (in Page mode
ASCII
Forma t
Hex
Decimal
12
DEscription
n Page mode, prints all the data in the print buffer
collectively and swi tches from Page modeto standard mode.
This command is enabled only in Page mode. See FF
(in Standard mode) to use this command in Standard
mode. Page mode can be sclected by ESC L
The data is deleted in the print area after being
printed
This command returns the values set by esc w to the
INotes
default values
The value set by esc t is maintained
After printing, the printer returns to Standard
mode and moves the print position to left side of
the printable area. also, the printer is in the
status beginning of the line
CR
TMJ2000
TM-J2100
TM-L90
TM-P20
●TM-P60
TM-P6OLI
MOdels
TM-P80
TM-T20
TM-T2OLI
●TM-T70
TM-T7OLL
TM-182l1
TM-T88IV
TM-t90
TM-U220
TM-0230
Name
Print and carriage return
ASCII
CR
FOrmat
Hex
OD
Decimal
Executes one of the following operations.
Print head When auto When auto line feed is
alignment line feed is
disabled
enabled
Horizontal Executes
This command is ignored
alignment printing and
one line feed
as lF
Vertical
Executes
In Standard mode, prints
alignment printing and the data in the print
DEscription
one line feed buffer and moves the print
as
position to the beginning
of the print line
in Page mode, moves the
print position to the
beginning of the print
Ine
LHorizontal alignment] is applied to Line thermal
head or Shuttle head
Vertical alignment] is applied to Serial dot head
With a serial interface, the command performs as
if auto line feed is disabled
Enabling or disabling the auto line feed can be
selected by the dip switch or the memory switch
Memory switch can be changed with GS(E
NOtes
3>
After printing, the print postion is moved to left
side of the printable area. Also, the printer is
in the status beginning of the line
When this command is processed in Page mode, only
the print position moves, and the printer does not
perform actual printing
DLE EOT
TM J2000
TM-J2100
TM-L90
TM-P20
●TM-P60
TM-P6OIL
●TM-P80
TM-T20
TM-T2OLL
MOdels
●TM-T70
TM-T7OIL
TM-T82LI
TM-T88IV
TM-T88V
●TM-T90
TM-U220
TM-0230
Name
Transmit real-time status
ASCII
DLE
COT
a
FOrmat
Hex
04
a
Decimal
16
4
a
LRange
n, a: different depending on the printers
Transmits the real-time status, using n as follows
n
a
Function
Transmit Printer status
Transmit Offline cause status
[Description]
Transmit error cause status
Transmit Roll paper sensor
tatus
Transmit Ink status a
Transmit ink status b
Transmit peeler status
The parameter a is needed only when n=7 or 8
DLE EOT BEL is DLE EOT (n=7); for some previous printer
models this command is called dle eot bel
This is a real-time command. Refer to notes of
Real-time commands for usage note
Each status consists of 1 byte, and the value is
OxxIxxlOb
The real time status can be different iated by the
bits o, 14, and 7 from other transmission data
except for data in block data(Header- NUL
Printer status (n= 1)
Bit Binary
Status
Hex Decimal
Fixed
000
Ixe
022
0
Drawer kick-out connector000
3 iS LOW
Drawer kick-out connector 044
pin 3 is HigH
30
Online
000
Offlin
Fixed
1016
Not waiting for online
oleS
recoverv
Waiting for online
2032
recovery
Paper feed button is not 000
being pressed
Paper feed button is being 64
pressed
0
Ixe
Online recovery wait (bit 5)is changed when GS
is executed or the printer is waiting for the paper
feed button to be pressed for removing a label or
for roll paper to be replaced for some models.
offline cause status (n=2)
Bit Binary
Status
Hex Decimal
00
Fixed
Fixed
20
Cover is closed
000
Cover 1s open
044
30
Paper is not being fed by 000
the paper feed button
Paper is being fed by the 088
paper fced button
1xe
50
No paper-end stop
Printing stops due t
paper-end
60
No error
rror occurre
4064
Fixed
000
Error cause status (n =3)
Bit Binary
Status
Hex Decimal
00
Fixed
02
No recoverable error
000
Recoverable error occurred 011
0
No autocutter error
Autocutter error occurred 08 8
Fixed
10|16
50
No unrecoverable error
Unrecoverable error
2032
occurre
d
No auto-recoverable error 000
Auto-recoverable error
4064
occurre
d
70
Fixed
000
o If recoverable error (bit 2)or autocutter
error(bit 3) occurs due to paper jams or the
like, it is possible to recover by correcting
the cause of the error and executing DLE ENQ
(n=2)
o If an unrecoverable error (bit 5) occurs
turn off the power as soon as possibl
The cause of the error can be checked by the
offline response (when an offline cause is
added). Scc Function 49 of GS (H
Roll paper sensor status (n= 4)
Bit Binary
Status
Hex Decimal
010
Fixed
000
Fixed
2,300
Roll paper near-end
Sensor: paper adequate
Roll paper near-end
0C12
sensor: paper near-end
Fixcd
5,600
Roll paper end sensor
paper present
Roll paper end sensor
6096
paper not prescnt
1xe
o Some paper sensors are not present,
depending on the printer model. The names of
some paper sensors are different, depending
on the printer model
Ink status A(n=7
Bit Binary
Status
Hex Decimal
Fixed
000
1
02
No ink near-end detected 0
(Ist color
Ink near-end detected (lst 044
colOr
No ink end detected (lst000
Ink end detected(lst
CO⊥Or
Fixed
1016
Ink cartridge detected
(1st color
Ink cartridge not detected 20 32
(1st color)
60
Cleaning is not being
performed
Cleaning is being
1064
performed
Ink status B(n
Bit Binary
Status
Hex Decimal
Fixed
000
Fixed
0
No ink near-end detected 000
(2nd color)
Ink near-end detected (2nd 044
No ink end detected (2nd000
Ink end detected(2nd
colOr
Fixed
1016
Ink cartridge detected
(2nd color
Ink cartridge not detected 20 32
(2nd color)
60
(Reserved)
000
70
Fixed
000
Peeler status B (1
Bit Binary
Status
Hex Decimal
00
1xe
000
Fixcd
022
Not waiting for a label to 00
be removed
Waiting for a label to be 044
removed
0
(Reserved)
Fixed
1016
Paper present in label
peeling detecto
r
No paper present in label 2032
peeling detector
(Reserved)
70
Fixed
TM-T88V
· Printer status(n=1
o Bits 5 and 6 are not supported
Error cause status(n=3)
o Bit 2 is not supported
Roll paper sensor status(n= 4)
o When the cover is open the status of the roll paper end sensor( bit 5, 6 retain
the value when the cover was closed immediately before
DLE ENQ
[Models
TM-J2000
TM-J2100
TM-90
TM-P20
TM-P60
TM-P60ll
TM-P80
TM-20
TM-T20ll
TM-T70
TM-T70ll
TM-T82
TM-T88V
TM-T88V
e TM-T90
TM-0220
●TMU230
ame
Send real-time request to printer
Format
ASC‖
PLE
H
05
Decimal
16
Range] n: different depending on the printers
Default None
[Description] Responds to a request in real time from the host computer, using n as follows
Request
o The printer operates the same as pressing of the FEED button, during online recovery waiting
stati
1 Recovers from a recoverable error and restarts printing from the line where the error
occurred
2 Recovers from a recoverable error after clearing the receive and print buffers
INotes
This is a Real-time command. Refer to Notes of Real-time commands for usage note
DLE ENQ 0 can be used in the following online recovery waiting status
Online recovery after roll paper insertion in TM-U230(See GSz 0
Online recovery for the TM-L90 with Peeler(See GS z0(Peeler)
Status waiting for the button to be pressed, while Gs A is executed
DLE ENQ 1 or DLE ENQ 2 is enabled only when a recoverable error occurs, with the