Specifications

Programming Guide/Tips 4-27
TM-H6000/H6000P Developer’s Guide
Confidential
Step 7: confirming usage amount
Send the following command to confirm the amount of NV user memory currently being used
(in decimal numbers):
GS ( C 3 0 0 3 0
The printer sends the following data: header (37h) + identifier (28h) + data (max. 8 bytes) +
terminator (00h). Numbers are converted into ASCII codes and sent in byte units. For example,
when 271 bytes are used, “32h + 37h + 31h” is sent.
Step 8: confirming available memory
Send the following command to confirm the amount of NV user memory currently available (in
decimal numbers):
GS ( C 3 0 0 4 0
The printer sends the following data: header (37h) + identifier (29h) + data (max. 8 bytes) +
terminator (00h). Numbers are converted into ASCII codes and sent in byte units. For example,
when 753 bytes is available, “37h + 35h + 33h” is sent.
Step 9: overview of data sent
The data sent from the printer is compiled in the table below:
Usage of GS ( C (NV User Memory Editing Commands)
There are a variety of parameters for NV user memory commands. This allows for future
expansion. The basic parameter specification rules for this command are explained briefly
below.
GS ( C
pL
pH
m
a
b
[
c1
c2
] [
d1
d2
d3
¨¨¨¨
dk
]
The pL,
pH
parameters specify the number of data bytes following parameter
m
. The maximum
value that
pL
,
pH
can handle is FFh (255). The byte calculation formula is
pL
+
pH
x 256,
allowing a maximum of 65535 bytes to be specified.
The value of
m
when using this function is always 0.
Data sent from TM
Confirm
memory used
Confirm
memory available
Normal data Record end
detect
Memory error
Header 37 h 37 h 37 h 37 h 37 h
Identifier 70 h 70 h 70 h 28 h 29 h
Status 40 h / 41 h 40 h 40 h None None
Data (Up to 80 bytes) FF h None (Up to 8 bytes) (Up to 8 bytes)
Terminator 00 h 00 h 00 h 00 h 00 h