Specifications
4-26 Programming Guide/Tips
Confidential
When the printer receives this, it sends back 84 bytes, consisting of the header (37h) + identifier
(70h) + status (41h) + data (80 characters) + terminator (00h), and then the printer waits for a
response from the host.
The status of 41h in the paragraph above indicates there is more data. When the host receives
data normally from the printer, it sends an ACK (6) code, requesting the subsequent data. The
host sends NAK (21 decimal or 15h) to request resending of data, and CAN (24 decimal or 18h)
to tell the printer to cancel the send procedure.
Step 3: reading of data 3
Three types of errors are possible when reading data:
❏
The specified key has not been stored.
❏
The key exists, but there is no data (0 bytes).
❏
NV memory malfunction.
In the first case above, FFh (1 byte) is sent as the data. Specifically, the following five bytes are
sent: header (37h) + identifier (70h) + status (40h) + data (FFh) + terminator (00h). For the
second and third cases above, where there is no data, four bytes are sent: header (37h) +
identifier (70h) + status (40h) + terminator (00h).
Step 5: overwriting of data
You can overwrite data in the same way it is written. There are no particular limitations.
Overwriting is performed if the key code is the same but the data differs.
Step 6: deletion of a record
Send the following command to delete the record “
K1
” (in decimal numbers):
This command causes the entire area occupied by record “
K1
” in the memory to be overwritten
with FFh.
Case 1 Cases 2, 3
Header 37 h 37 h
Identifier 70 h 70 h
Status 40 h 40 h
Data FF h None
Terminator 00 h 00 h
GS ( C 5 0 0 0 0 75 49
K 1