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 ( E


[Name]

Set user setup commands

[Format]

ASCII
   
GS
  
(
  
E
  
pL
  
pH
  
fn
  
[parameters]
Hex
1D
28
45
pL
pH
fn
[parameters]
Decimal
29
40
69
pL
pH
fn
[parameters]

[Description]

Controls the user setting modes.

[Notes]

  • The value of parameter fn determines the function number for this command. Command operation differs, depending on the function number.
  • User setting mode is a special mode to change settings for the printer's built-in non-volatile memory.
  • To change a setting, you must change the printer into user setting mode, using <Function 1>.
  • Execute <Function 2> of this command after making the setting. The setting value is effective after executing the software reset of <Function 2>.
  • Note the rules below for the user setting mode:
    • The printer does not process character data.
    • The printer does not process commands other than this command and the GS I command.
    • The printer does not process Real-time commands.
    • Even if the ASB function is enabled, the printer does not transmit the ASB status.
  • Functions 4, 6, 12, 14, 16, 50 and 100, the functions used to transmit the current settings to the host, can be used at any time, without changing into the user setting mode.
  • Data is written to the non-volatile memory by Functions 3, 5, 7, 11, 13, 15, 48, 49 and 99. Note the following when using those functions:
    • Do not turn off the power or reset the printer from the interface when the relevant functions are being executed.
    • The printer might be BUSY. In this case, be sure not to transmit a command from the host because the printer will not receive the data.
    • 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] .

[Notes for transmission process]

  • Data is transmitted by Functions 1, 4, 6, 12, 14, 16, 50, 98 and 100. 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 a serial interface printer, be sure to use this function when the host can receive data.
    • With a parallel interface printer, data transmitted (excluding ASB status) with this command ("Header to NUL") is temporarily stored in the printer transmit buffer, as with other data. When the host goes into reverse mode, the printer then transmits the data sequentially from the beginning of the transmit buffer. Transmit 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 14 (a=65) .
  • Step
    Host process
    Printer process
    1
    Start processing of Function 14.
    2
    Receive data from printer.
    Send device 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
    Processing
    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
    Processing
    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