Specifications

4-24 Programming Guide/Tips
Confidential
This command is also valid after printing on the front of a slip is selected with the
ESC c 0
command.
NV User Memory
Since a Flash ROM is used for the NV memory, the data is not lost when power is turned off.
Therefore, saving the data for bit images that are printed regularly eliminates the need to
download the data, saving time. There is also an NV user area for data in the memory that can
be used for a memo or other purposes.
The initial values for the memory areas are as follows: 384 KB for the NV bit image area and
1 KB for the NV user area. You can change these sizes with the
GS ( E
command, depending on
the particular application.
Editing of NV User Memory
You can store a variety of data in the NV user memory, but there are the following limitations:
You can specify a data size between 1 byte and 65530 bytes, but data that exceeds the
remaining memory capacity cannot be saved. In this case, the command is ignored.
You can add a two-byte key code to identify the stored data and a 1-byte code to divide data
added. Therefore, stored data uses the total data amount + 3 bytes of memory. This group
of data is called a record.
Key codes are defined as
K1
,
K2
, etc., in the example command, but you can actually use any
ASCII codes from 32 to 126. These correspond to the characters from “Space” to “~.”
ASCII codes from 32 to 254 can be handled as data. These correspond to characters starting
with “Space.”
When the same key already exists, it is overwritten.
If you send a command containing key input only (without any data), it cannot be written as
a record.
The printer sends data every 80 bytes. (In actual practice, a maximum of 83 bytes are sent at
a time, which consist of the data, plus 1 byte for the header, 1 byte for the identifier, 1 status
byte, and 1 terminator byte following the data.)
There are two types of status when data is sent: 40h and 41h. 40h indicates no data follows,
and 41h indicates there is more data.