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-T20X
  • TM-T70
  • TM-T70II
  • TM-T81III
  • TM-T82II
  • TM-T82III
  • TM-T82IIIL
  • TM-T82X
  • TM-T83III
  • 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.

[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:
  • Step
    Host process
    Printer process
    1
    Start processing of Function 2.
    2
    Receive data from printer.
    Send data.
    3
    Send response code. (∗1)
    Continue processing (∗2) (∗3) according to response.
  • (∗1) Response code
  • ASCII
    Hex
    Decimal
    Request
    ACK
    06
    6
    Send next data.
    NAK
    15
    21
    Resend previously sent data.
    CAN
    18
    24
    Cancel send process.
  • (∗2) Processing according to response (unsent data exists, identified by send data set "Identification status")
  • Response code
    Process
    ACK
    Start send processing for next data.
    NAK
    Resend previously sent data.
    CAN
    End processing for this command.
  • (∗3) Processing according to response (no unsent data, identified by send data set "Identification status")
  • Response code
    Process
    ACK, CAN
    End processing for this command.
    NAK
    Resend 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.


ESC/POS® Command Reference for TM Printers

Jump to the top