Specifications
TH230/TH230+ Programmers Guide
167
• 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 transmission data for “120”
is 3 bytes, consisting of 49, 50 and 48.
• The printer becomes BUSY immediately before transmitting a header and
recovers to READY after transmitting a NUL (unless there are other causes
of the printer being BUSY).
• The resettable maintenance counter can be initialized by GS g 0.
• The maintenance counter can be used for establishing the time for
replacing consumed parts or cleaning.
• Maintenance counter data can be differentiated from other transmission
data by the header of the block data. After outputting GS g 2 to the
printer, if the data transmitted from the printer is
[Hex=0x5F/Decimal=95], the host should process the data up to NUL
[Hex=0x00/Decimal=0] as maintenance counter data. There is an
exception, described below:
• When the host is communicating with the printer by XON/XOFF control,
the XOFF code might interrupt [Header ~ NUL].
• When transmitting data [Header ~ NUL] with this command, ASB status
and real-time commands cannot be used.
• Be sure to use this function when the host is in the READY state.
• The counter values may be different from actual counting depending on
the time difference or the error occurring.
• (n
L
+ n
H
× 256) = 21, 149: The counter value for fired dots must be
multiplied by 1000.
• A detailed description how statistical information is saved can be found
on page 278.
• (n
L
+ n
H
× 256) = 20, 148: Example for calculating the Linefeed Counter if a
receipt is printed with 12 mm backward feed after cutting. Let’s assume
the high of the printed graphics is 768 dots.
• Height of the printed graphics = 768 dots
+ Distance between thermal print lines and cutter = 17 mm * 8 = 136
steps
+ Backward feed to reduce the head loss = 12 mm * 8 = 96 steps
+ compensation of the mechanical clearance = 2 * 32 = 64 steps
Steps per receipt = 1064 steps
Linefeeds per receipt = 1064 / 34 = 31,29 LF/receipt