Specifications
Programmers Guide TH230/TH230+
166
GS g 2
Function: Transmit maintenance counter
Code ASCII: GS g 2 m n
L
n
H
Code HEX:
0x1D 0x67 0x32 0x00 n
L
n
H
Range: m = 0
(n
L
+ n
H
× 256) = 20, 21, 50, 52~57, 59, 148, 149, 178, 198~200, 238~240
Description:
Transmits the value of the counter specified by the number.
• n
L
and n
H
specify a maintenance counter number as (n
L
+ n
H
× 256).
Counter
(n
L
+ n
H
x 256)
Type Description
20 Resettable
LF counter – 1/7.52 inch (current
mechanic)
21
Resettable
Fired dots (current print head)
50
Resettable
Cutter operations (current unit)
52 Resettable Cutter Errors
53 Resettable Black Mark Errors
54
Resettable
Thermistor Errors
55
Resettable
Low Voltage Errors
56 Resettable High Voltage Errors
57 Resettable Cover Open Counter
59
Resettable
Maximum Head Temperature
148
Accumulation
LF counter – 1/7.52 inch (total)
149 Accumulation Counts all fired dots (total)
178 Accumulation Cutter operations (total)
198
Accumulation
Power on time in hours (total)
199
Accumulation
Power on cycles
200 Accumulation EEPROM update cycles
238 Accumulation Paper feeding mechanism changes
239
Accumulation
Print head changes
240
Accumulation
Cutter changes
Notes:
• There are two kinds 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.
• Unsupported counter numbers cannot be specified.
• The maintenance counter value consists of [Header + data + NUL], as
follows:
• Header: Hexadecimal = 0x5F/Decimal = 95: 1-byte data
• Data: Counter value = 0x30~ 0x39/Decimal = 48~ 57: 1-byte data
• NUL: Hexadecimal = 0x00/Decimal = 0: 1-byte data