TS1700/TK18 PRINTERS OPERATION MANUAL
FS
GS
ESC
n
[Name]
Historic counters transmission
[Format]
ASCII
FS
GS
ESC
n
Hex
1C
1D
1B
n
Decimal
28
29
27
n
n
Type of
counter
Description
Bytes
returned
<31>H On/off times Number of times the printer has been turned on
2
<32>H Time On
Number of seconds the printer has been working
4
<33>H Meters
Number of meters the printer has printed
2
<34>H Cuts
Number of cuts performed
2
[Range]
<31>H
≤
n
≤
<34>H
[Description]
Each of the counters consist of a 16 bits register except the “Time On” counter that has
32 bits. The transmission of each counter starts by the LSB and ends at MSB. In order
to obtain any counter it is required to send the correspondent command and
immediately read 2 or 4 bytes
(b0, b1, b2, b3)
depending on the counter required.
Finally in order to obtain the absolute value of the counter proceed as follow:
counter value = 16777216 x
b3
+ 65536 x
b2
+ 256 x
b1
+
b0
[Notes]
●
The “Meters” counter only registers complete meters, any portion of a meter that has
been printed before turning the printer off will be discard.
●
For the “Cuts” counter to increment the full cut or partial cut command has to be sent
to the printer.
●
The maximum number of each counter is 65536 counts except “Time On” counter
that records up to 2
32
seconds → 1193046 hours → 49710 days uninterruptedly.
54/62