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 0


[Name]

Initialize maintenance counter

[Format]

ASCII
   
GS
  
g
  
0
  
m
  
nL
  
nH
Hex
1D
67
30
00
nL
nH
Decimal
29
103
48
0
nL
nH

[Range]

m = 0
nL, nH: different depending on the printers

[Description]

Sets the resettable maintenance counter specified by (nL + nH × 256) to 0.
(nL + nH × 256)
Maintenance counter
10 – 19
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

[Notes]

  • In Standard mode, this command is effective only when processed in the beginning of a line.
  • Unsupported counter numbers cannot be specified.
  • This command cannot be included in a macro definition. Do not use this command when defining a macro.
  • There are two types of maintenance counters: resettable counters and accumulation counters. A resettable counter is a maintenance counter that can be initialized, and an accumulation counter indicates the counter value from when the printer starts operation. An accumulation counter cannot be initialized (see GS g 2 for details of the accumulation counter.)
  • Types of counters differ, depending on the printer models. See the model specific information of GS g 2.
  • The maintenance counter value can be transmitted by GS g 2.
  • The maintenance counter value can be used for establishing the time for replacing consumed parts or cleaning.
  • Take the following into account when writing data to a non-volatile memory.
    • Do not turn off the power or reset the printer from the interface when this command is being executed.
    • The printer may be in BUSY state when processing this command. In this case, be sure not to send a command from the host to the printer, because the printer will not receive the command.
    • Frequent write command executions by an NV memory write command may damage the NV memory. Therefore, it is recommended to limit using the commands to no more than 10 times a day.
  • Note the rules below for the operating NV memory (store data / cancel data):
    • Even if the paper feed button is pressed, the printer does not feed paper.
    • The printer does not process Real-time commands.
    • Even if "ASB is enabled" is specified, the printer does not send ASB status.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ESC/POS® includes patented or patent pending commands. The contents must not be disclosed to third parties.


ESC/POS® Command Reference for TM Printers

Jump to the top