Specifications

Programmers Guide TH230/TH230+
164
GS g 0
Function: Initialize maintenance counter
Code ASCII:
GS g 0 m n
L
n
H
Code HEX: 0x1D 0x67 0x30 0x00 n
L
n
H
Range: m = 0
(n
L
+ n
H
× 256) = 20, 21, 50, 52~57, 59
Description: Sets the resettable maintenance counter specified by n
L
and n
H
to 0.
n
L
and n
H
specify a resettable maintenance counter number as (n
L
+ n
H
×
256).
In addition, the associated change counter (if existing) is increased by one.
This is only possible by n
L
+ n
H
x 256 = 20, 21 and 50.
Example: If the Cutter is replaced and GS g 0 0 50 00 is executed, the cutter
change counter CUTC is increased by one (command GS g 2 see page 166).
Counter
(n
L
+ n
H
x 256)
Specification
20 Paper feed of 1/7.52 inch as one line
21 All fired dots
50
Cutter operations
52 Cutter Errors
53 Black Mark Errors
54 Thermistor Errors
55
Low Voltage Errors
56 High Voltage Errors
57 Cover Open Counter
59 Maximum Head Temperature
Notes:
In standard mode, this command is effective only when processed at the
beginning of a line.
Unsupported counter numbers cannot be specified.
Do not use this command while a macro is being defined, because the
command cannot be included in the macro.
There are two kinds 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.)
Take the following into account when writing data to a non-volatile
memory.
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.