Select your printer model
Parameters are refined by the selected printer.
- EU-m30
- TM-J2000
- TM-J2100
- TM-L90
- TM-L90 LFC
- TM-L100
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30III
- TM-m30III-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60
- TM-P60II
- TM-P80
- TM-P80II
- TM-T20
- TM-T20II
- TM-T20III
- TM-T20IIIL
- TM-T20IV-L
- TM-T20X
- TM-T20X-II
- TM-T70
- TM-T70II
- TM-T81III
- TM-T82II
- TM-T82III
- TM-T82IIIL
- TM-T82IV-L
- TM-T82X
- TM-T82X-II
- TM-T83III
- TM-T83IV
- TM-T88IV
- TM-T88V
- TM-T88VI
- TM-T88VII
- TM-T90
- TM-T100
- TM-U220
- TM-U220II
- TM-U230
GS g 2
[Name]
Transmit maintenance counter
[Format]
ASCII
|
|
GS
|
|
g
|
|
2
|
|
m
|
|
nL
|
|
nH
|
Hex
|
1D
|
67
|
32
|
00
|
nL
|
nH
|
||||||
Decimal
|
29
|
103
|
50
|
0
|
nL
|
nH
|
[Range]
m = 0
nL, nH: different depending on the printers
[Description]
Transmits the value of the maintenance counter specified by the number.
(nL + nH × 256)
|
Type
|
Maintenance counter
|
---|---|---|
10 – 19
|
Resettable
|
Counter for Serial impact head
|
20 – 29
|
Counter for Thermal head
|
|
30 – 39
|
Counter for Ink jet head
|
|
40 – 49
|
Counter for Shuttle head
|
|
50 – 59
|
Counter for Standard devices
|
|
60 – 69
|
Counter for Optional devices
|
|
70 – 79
|
Counter for Time
|
|
138 – 147
|
Cumulative
|
Counter for Serial impact head
|
148 – 157
|
Counter for Thermal head
|
|
158 – 167
|
Counter for Ink jet head
|
|
168 – 177
|
Counter for Shuttle head
|
|
178 – 187
|
Counter for Standard devices
|
|
188 – 197
|
Counter for Optional devices
|
|
198 – 207
|
Counter for Time
|
[Notes]
-
There are two types of maintenance counters: resettable counters and accumulation counters. A resettable counter is a maintenance counter that can be initialized by GS g 0, and an accumulation counter indicates the counter value from when the printer starts operation.
-
When a counter reaches its maximum value, its value is reset to 0 in the next updating process. Units and maximum values of counters differ, depending on the printer model and function. See the model specific information for details.
-
Unsupported counter numbers cannot be specified.
-
This command transmits [Header – NUL], as shown below:
-
Send dataHexDecimalNumber of bytesHeader5Fh951 byteCounter value (∗1)30h – 39h48 – 571 – 10 byteNUL00h01 byte
-
-
(∗1) When the counter values are transmitted, the printer converts them to character codes corresponding to the decimal value and transmits from the most significant bit.
-
Example: When the counter value is 120, the "120" (expressed hexadecimally as 31h, 32h, 30h. Decimally as 49, 50, and 48) is converted to 3 bytes of data.
-
-
The resettable maintenance counter can be initialized by GS g 0.
-
The maintenance counters built in the printer are standard; therefore, their values will be different, depending on the timing of occurring errors or turning off the power.
-
The maintenance counter can be used for establishing the time for replacing consumed parts or cleaning.
-
When you use this command, follow these rules.
-
-
When the host PC transmits the function data, transmit the next data after receiving the corresponding data (the header – NUL) from the printer.
-
With serial interface printers, be sure to use this function when the host is in the READY state.
-
With a parallel interface, the data sent by this function [Header – NUL], as with other data, is first stored in the send buffer, then output in sequential order when the host computer changes to the reverse mode. Note that the send buffer capacity is 99 bytes, and any data exceeding this volume limit will be lost; therefore, when using this command, it is important to configure the operation so that the host computer's change to the reverse mode and the subsequent status send/receive process is performed quickly.
-
-
Types of maintenance counters differ, depending on the printer models.
-
When the host is communicating with the printer by XON/XOFF control, the XOFF code might interrupt [Header – NUL].
-
The maintenance counter data can be identified to other transmission data according to specific data of the transmission data block. When the header transmitted by the header is [hex = 5Fh/decimal = 95], treat NUL [hex = 00h/decimal =0] as a data group and identify it according to the header.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
ESC/POS® includes patented or patent pending commands. The contents must not be disclosed
to third parties.
- Introduction
- Command Lists
- Commands in Code Order
- Applicable printers
- Command List by Model
- EU-m30
- TM-J2000, TM-J2100
- TM-L90
- TM-L90 LFC
- TM-L100
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60
- TM-P60II
- TM-P80
- TM-P80II
- TM-T100
- TM-T20
- TM-T20II
- TM-T20III
- TM-T20IIIL
- TM-T20IV-L
- TM-T20X
- TM-T20X-II
- TM-T70
- TM-T70II
- TM-T81III
- TM-T82II
- TM-T82III
- TM-T82IIIL
- TM-T82IV-L
- TM-T82X
- TM-T82X-II
- TM-T83III
- TM-T83IV
- TM-T88IV
- TM-T88V
- TM-T88VI
- TM-T88VII
- TM-T90
- TM-U220
- TM-U220II
- TM-U230
- Obsolete Commands
- Commands Arranged by Function
- Print Commands
- Line Spacing Commands
- Character Commands
- Printing Paper Commands
- Label and black mark control
- Print Position Commands
- Paper Sensor Commands
- Mechanism Control Commands
- Bit Image Commands
- Bit Image
- GS ( L / GS 8 L
- GS D
- Graphics
- NV Graphics
- Download Graphics
- Panel Button Commands
- Status Commands
- Barcode Commands
- Two-dimensional Code Commands
- GS ( k
- PDF417
- QR Code
- MaxiCode
- 2-dimensional GS1 DataBar
- Composite Symbology
- Aztec Code
- DataMatrix
- Macro Function Commands
- Kanji Commands
- Miscellaneous Commands
- DLE ENQ
- DLE DC4 <fn=1>
- DLE DC4 <fn=2>
- DLE DC4 <fn=3>
- DLE DC4 <fn=7>
- DLE DC4 <fn=8>
- ESC ( Y
- ESC =
- ESC @
- ESC L
- ESC S
- ESC p
- GS ( A
- GS ( D
- GS I
- GS P
- GS g 0
- GS g 2
- GS z 0
- Response or status transmission
- Print control methods
- Beeper tone control
- Graphics drawing
- Receipt enhancement control
- Page mode control
- Customize Commands
- User setup
- GS ( E
- GS ( E <fn=1>
- GS ( E <fn=2>
- GS ( E <fn=3>
- GS ( E <fn=4>
- GS ( E <fn=5>
- GS ( E <fn=6>
- GS ( E <fn=7>
- GS ( E <fn=8>
- GS ( E <fn=9>
- GS ( E <fn=10>
- GS ( E <fn=11>
- GS ( E <fn=12>
- GS ( E <fn=13>
- GS ( E <fn=14>
- GS ( E <fn=15>
- GS ( E <fn=16>
- GS ( E <fn=48>
- GS ( E <fn=49>
- GS ( E <fn=50>
- GS ( E <fn=51>
- GS ( E <fn=52>
- GS ( E <fn=99>
- GS ( E <fn=100>
- Printer customization
- NV user memory
- User setup
- Counter Printing Commands
- Programming Examples
- Appendixes