Specifications

Programming Guide/Tips 4-25
TM-H6000/H6000P Developer’s Guide
Confidential
After the printer sends a maximum of 83 bytes, it waits for instructions from the host.
Therefore, it is necessary to send the following instructions:
Command Usage Example
This section describes the procedure to write the data, read the data you have written, and to
delete the data.
Step 1: writing of data
“SEIKO EPSON” (11 characters) is saved as data in the record identified with the “
K1
” key, and
a 150-character address is saved with the “
K2
” key.
Send the following command (in decimal numbers):
Step 2: reading of data 1
To read the data stored as “
K1,
” send the following command (in decimal numbers):
GS ( C 5 0 0 2 0 75 49
When the printer receives this command, it sends back 15 bytes, consisting of the header (37h) +
identifier (70h) + status (40h) + data + terminator (00h), and then the printer waits for a response
from the host. The host sends ACK (6) to the printer when it receives data normally, and NAK
(21 decimal or 15h) to request resending of the data.
Step 3: reading of data 2
Next, to read the data stored as “
K2
,” send the following command (in decimal numbers):
GS ( C 5 0 0 2 0 75 50
Response Procedure
ASCII Decimal Hexadecimal
ACK 6 6 Send next data/End process
NAK 21 15 Resend previous data
CAN 24 18 Cancel process
GS ( C 16 0 0 1 0 75 49 83 69 73 75 79 32 69 80 83 79 78
K 1 S E I K O E P S O N
GS ( C 155 0 0 1 0 75 50 ¨¨¨¨150 characters of data¨¨¨
K 2 ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨