Select your printer model
Parameters are refined by the selected printer.
- EU-m30
- TM-J2000
- TM-J2100
- TM-L90
- TM-L90 LFC
- TM-L100
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30III
- TM-m30III-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60
- TM-P60II
- TM-P80
- TM-P80II
- TM-T20
- TM-T20II
- TM-T20III
- TM-T20IIIL
- TM-T20IV-L
- TM-T20X
- TM-T20X-II
- TM-T70
- TM-T70II
- TM-T81III
- TM-T82II
- TM-T82III
- TM-T82IIIL
- TM-T82IV-L
- TM-T82X
- TM-T82X-II
- TM-T83III
- TM-T83IV
- TM-T88IV
- TM-T88V
- TM-T88VI
- TM-T88VII
- TM-T90
- TM-T100
- TM-U220
- TM-U220II
- TM-U230
GS ( C
[Name]
Edit NV user memory
[Format]
ASCII
|
|
GS
|
|
(
|
|
C
|
|
pL
|
|
pH
|
|
m
|
|
fn
|
|
[parameters]
|
Hex
|
1D
|
28
|
43
|
pL
|
pH
|
m
|
fn
|
[parameters]
|
||||||||
Decimal
|
29
|
40
|
67
|
pL
|
pH
|
m
|
fn
|
[parameters]
|
[Description]
Edits the data in the NV user memory.
-
Function code fn specifies the function.
-
fnFunction No.Function name0, 48Delete the specified record1, 49Store the data in the specified record2, 50Transmit the data in the specified record3, 51Transmit capacity of the NV user memory currently being used4, 52Transmit the remaining capacity of the NV user memory5, 53Transmit the key code list6, 54Delete all data in the NV user memory
-
pL and pH specify the number of bytes following m as (pL + pH × 256).
-
The [parameters] are described in each function.
[Notes]
-
The command function is defined by the function code (fn). The command operation differs, depending on the function.
-
The NV user memory area is especially provided for storing character data in the non-volatile memory built into the printer.
-
The NV user memory data configuration is as follows: key code + data + terminator. This unit is called a record.
-
-
A record is one data processing unit in the NV user memory. It is controlled by a key code.
-
The key code is a 2-byte ID code used to identify records and is created with parameters c1, c2 in the command (Character codes: Hex = 20h – 7Eh / Decimal = 32 – 126.)
-
Data is the character string specified by d1 ... dk in GS ( C <Function 1> . (Control codes: Hex = 00h – 1Fh, 7Fh / Decimal = 0 – 31, 127.)
-
The terminator is a code, automatically assigned when the printer stores data.
-
-
NV user memory data remains valid until the host sends a deletion or storage function command.
-
Data is written to the non-volatile memory by GS ( C <Function 0> , GS ( C <Function 1> , or GS ( C <Function 6> . When using those commands, note the following:
-
-
Do not turn off the power or reset the printer from the interface when the relevant functions are being executed.
-
The printer may be BUSY while the functions are performing. The printer does not process any received data while it is BUSY; therefore, under no circumstances should the host send data at this time.
-
Excessive use of this function may destroy the non-volatile memory. As a guideline, do not use any combination of the following commands more than 10 times per day for writing data to the non-volatile memory: GS ( A (part of functions), GS ( C (part of functions), GS ( E (part of functions), GS ( L / GS 8 L (part of functions), GS ( M (part of functions), GS g 0, FS g 1 [obsolete command] , FS q [obsolete command] .
-
-
Note the rules below for the operating NV memory (store data / cancel data):
-
-
Even if the paper feed button is pressed, the printer does not feed paper.
-
The printer does not process Real-time commands.
-
Even if "ASB is enabled" is specified, the printer does not send ASB status.
-
-
You can use the NV user memory as an index of note for the following:
-
-
Customize information: index of the NV bit image definition contents, title of setting by GS ( M
-
Maintenance information: ink ribbon replacement date, telephone number of repair company, etc.
-
-
As a rough guide, the number of items in NV user memory that are registered should be 50 or fewer to make the execution time ofthis function short enough.
-
-
The activationtime is up to 1 second longerwhen the number of items registered is 50 or fewer.
-
[Notes for transmission process]
-
Data is sent by Function 2, 3, 4, or 5. When you use these functions, obey the following rules.
-
-
When the host PC transmits the function data, transmit the next data after receiving the corresponding data from the printer.
-
With serial interface printers, use this function when the host is READY.
-
With a parallel interface printer, data sent (excluding ASB status) with this command ("Header to NUL") is temporarily stored in the printer send buffer, as with other data. When the host goes into Reverse mode, the printer then sends the data sequentially from the beginning of the send buffer. Send buffer capacity is 99 bytes. Data exceeding this amount is lost. Therefore, when using this command, promptly change into Reverse mode to start the data receive process.
-
-
When communication with the printer uses XON/XOFF control with serial interface, the XOFF code may interrupt the "Header to NUL" data string.
-
The transmission information for each function can be identified to other transmission data according to specific data of the transmission data block. When the header transmitted by the printer is [Hex = 37h / Decimal = 55], treat NUL [Hex = 00h / Decimal = 0] as a data group and identify it according to the combination of the header and the identifier.
[Notes for ESC/POS Handshaking Protocol]
-
Use ESC/POS Handshaking Protocol below for Functions 2 and 5:
-
StepHost processPrinter process1Send GS ( C <Function 2> >.Start processing of Function 2.2Receive data from printer.Send data.3Send response code. (∗1)Continue processing (∗2) (∗3) according to response.
-
(∗1) Response code
-
ASCIIHexDecimalRequestACK066Send next data.NAK1521Resend previously sent data.CAN1824Cancel send process.
-
(∗2) Processing according to response (unsent data exists, identified by send data set "Identification status")
-
Response codeProcessACKStart send processing for next data.NAKResend previously sent data.CANEnd processing for this command.
-
(∗3) Processing according to response (no unsent data, identified by send data set "Identification status")
-
Response codeProcessACK, CANEnd processing for this command.NAKResend previously sent data.
-
Processing the codes except for ACK, NAK, and CAN performs the same processing as CAN.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
ESC/POS® includes patented or patent pending commands. The contents must not be disclosed
to third parties.
- Introduction
- Command Lists
- Commands in Code Order
- Applicable printers
- Command List by Model
- EU-m30
- TM-J2000, TM-J2100
- TM-L90
- TM-L90 LFC
- TM-L100
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60
- TM-P60II
- TM-P80
- TM-P80II
- TM-T100
- TM-T20
- TM-T20II
- TM-T20III
- TM-T20IIIL
- TM-T20IV-L
- TM-T20X
- TM-T20X-II
- TM-T70
- TM-T70II
- TM-T81III
- TM-T82II
- TM-T82III
- TM-T82IIIL
- TM-T82IV-L
- TM-T82X
- TM-T82X-II
- TM-T83III
- TM-T83IV
- TM-T88IV
- TM-T88V
- TM-T88VI
- TM-T88VII
- TM-T90
- TM-U220
- TM-U220II
- TM-U230
- Obsolete Commands
- Commands Arranged by Function
- Print Commands
- Line Spacing Commands
- Character Commands
- Printing Paper Commands
- Label and black mark control
- Print Position Commands
- Paper Sensor Commands
- Mechanism Control Commands
- Bit Image Commands
- Bit Image
- GS ( L / GS 8 L
- GS D
- Graphics
- NV Graphics
- Download Graphics
- Panel Button Commands
- Status Commands
- Barcode Commands
- Two-dimensional Code Commands
- GS ( k
- PDF417
- QR Code
- MaxiCode
- 2-dimensional GS1 DataBar
- Composite Symbology
- Aztec Code
- DataMatrix
- Macro Function Commands
- Kanji Commands
- Miscellaneous Commands
- DLE ENQ
- DLE DC4 <fn=1>
- DLE DC4 <fn=2>
- DLE DC4 <fn=3>
- DLE DC4 <fn=7>
- DLE DC4 <fn=8>
- ESC ( Y
- ESC =
- ESC @
- ESC L
- ESC S
- ESC p
- GS ( A
- GS ( D
- GS I
- GS P
- GS g 0
- GS g 2
- GS z 0
- Response or status transmission
- Print control methods
- Beeper tone control
- Graphics drawing
- Receipt enhancement control
- Page mode control
- Customize Commands
- User setup
- GS ( E
- GS ( E <fn=1>
- GS ( E <fn=2>
- GS ( E <fn=3>
- GS ( E <fn=4>
- GS ( E <fn=5>
- GS ( E <fn=6>
- GS ( E <fn=7>
- GS ( E <fn=8>
- GS ( E <fn=9>
- GS ( E <fn=10>
- GS ( E <fn=11>
- GS ( E <fn=12>
- GS ( E <fn=13>
- GS ( E <fn=14>
- GS ( E <fn=15>
- GS ( E <fn=16>
- GS ( E <fn=48>
- GS ( E <fn=49>
- GS ( E <fn=50>
- GS ( E <fn=51>
- GS ( E <fn=52>
- GS ( E <fn=99>
- GS ( E <fn=100>
- Printer customization
- NV user memory
- User setup
- Counter Printing Commands
- Programming Examples
- Appendixes