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


[Name]

Request transmission of response or status

[Format]

ASCII
   
GS
  
(
  
H
  
pL
  
pH
  
fn
  
[parameters]
Hex
1D
28
48
pL
pH
fn
[parameters]
Decimal
29
40
72
pL
pH
fn
[parameters]

[Description]

Various process are performed as the response.
  • Function code fn specifies the function.
  • fn
    Function No.
    Function name
    48
    Specifies the process ID response
    49
    Specifies the offline response
  • pL and pH specify the number of bytes following fn as (pL + pH × 256).
  • The [parameters] are described in each function.

[Notes]

  • Do not use this command in a system in which the printer is used with the OPOS driver and Java POS driver that are provided by Seiko Epson Corporation.
  • The function of this command is defined by function code fn and the operation differs depending on the function selected.
  • "Response" is a data block to inform the host of the processing status. There are three kinds of "Response" as shown in the following table. Untransmitted multi-kind responses are stored in the printer and transmitted in the order of priority shown in the following table, ignoring the order of occurrence.
  • Kind of Response
    Related Command
    Priority
    Process ID response
    1
    Offline response
    2
    Clear response
    3

[Notes for response transmission process]

  • When the host PC isn't able to receive when the response is transmitted, the response is reserved and the printer starts processing the next data. The reserved response is processed again at the next time for transmitting responses.
    • When specifying any response with a serial interface, make sure that the host PC is able to receive data. When host is unable to receive data, responses cannot be received correctly.
    • When operating with a parallel interface, the data sent by this function (starting with Header and ending with NUL), as with other data, is first stored in the send buffer, then output in sequential order when the host computer changes to the reverse mode. Note that the send buffer capacity is 99 bytes, and any data exceeding this volume limit will be lost; therefore, when using this command, it is important to configure the operation so that the host computer's change to the reverse mode and the subsequent status send/receive process is performed quickly.
  • The printer enters the BUSY state just before the data header is sent. After NUL has been sent, the printer enters the READY state (except when other factors cause it to enter the BUSY state).
  • When communication with the printer uses XON/XOFF control with a serial interface, the XOFF code may interrupt the "Header to NUL" data string.
  • The response 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.
 

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