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 ( L   /   GS 8 L


[Name]

Set graphics data

[Format]

ASCII
   
GS
  
(
  
L
  
pL
  
pH
  
m
  
fn
  
[parameters]
Hex
1D
28
4C
pL
pH
m
fn
[parameters]
Decimal
29
40
76
pL
pH
m
fn
[parameters]
ASCII
   
GS
  
8
  
L
  
p1
  
p2
  
p3
  
p4
  
m
  
fn
  
[parameters]
Hex
1D
38
4C
p1
p2
p3
p4
m
fn
[parameters]
Decimal
29
56
76
p1
p2
p3
p4
m
fn
[parameters]

[Description]

Processes graphics data.

[Differences between GS ( L and GS 8 L]

[Recommended Functions]

[Notes]

  • The functions of this command are determined by the (fn) setting. Actual command operation varies according to function.
  • The NV graphics and download graphics data is managed using key codes.
  • Note that it is not possible to create definitions for both NV graphics data (this command) and NV bit image data (FS q   [obsolete command] ). NV bit image data definitions are deleted when this command is used.
  • Note that it is not possible to create definitions for both download graphics data (this command) and download bit image data (GS *   [obsolete command] ). Download bit image data definitions are deleted when this command is used.
  • With certain printers, it is not possible to create definitions for both download graphics data (this command) and download character data (ESC &).
    • Defined download character data is deleted when this command is used.
    • Executing ESC & deletes download graphics data.
  • When printing the various types of graphics data, using the ESC U command will ensure that the printed results are properly aligned vertically by printing in a single direction.
  • GS ( L   <Function 65> , GS ( L   <Function 66> , GS ( L   /   GS 8 L   <Function 67> , or GS ( L   /   GS 8 L   <Function 68> write data to a non-volatile memory. Note the following items when using the function.
    • 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 when storing data and will not receive any data. In this case, be sure not to transmit data from the host.
    • 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] .
  • The following restrictions apply when performing non-volatile memory operations (including data store and delete).
    • The paper cannot be fed by paper feed switch.
    • The real time command is not processed.
    • The ASB status will not be sent, even when the ASB function is set to enable.

[Notes for transmission process]

  • Data send operations are performed using GS ( L   <Function 48> , GS ( L   <Function 51> , GS ( L   <Function 52> , GS ( L   <Function 64> , and GS ( L   <Function 80> . 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 (Header – NUL) from the printer.
    • When operating with a serial interface, be sure to configure operation so that the host computer uses the printer only when it is READY.
    • 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.
  • During the interval between the sending of the data header and NUL, ASB status and the real time commands are rendered invalid.
  • When communication with the printer uses XON/XOFF control with serial interface, the XOFF code may interrupt the "Header to NUL" data string.
  • The 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]

  • It will be necessary to perform the ESC/POS Handshaking Protocol procedures listed below when using GS ( L   <Function 64> and GS ( L   <Function 80> .
  • Procedure
    Host operation
    Printer operation
    1
    This command sends GS ( L   <Function 64> .
    2
    Data is received from printer.
    Key code list is sent.
    3
    Response code (∗1) is sent.
    Procedures (∗2 and ∗3) are performed according to response code.
  • (∗1) Response Code
  • ASCII
    Hex
    Decimal
    Request definition
    ACK
    06
    6
    Send next data group.
    NAK
    15
    21
    Resend just-received data group.
    CAN
    18
    24
    Cancel send operation.
  • (∗2) Processing According to Response Code (When Send Data Remains (indicated by identification status of send data group))
  • Response code
    Processing
    ACK
    Initiates operation to send next data.
    NAK
    Resends the just-received data.
    CAN
    Cancels processing initiated by this command.
  • (∗3) Processing According to Response Code (When No More Send Data Remains (indicated by identification status of send data group))
  • Response code
    Processing
    ACK, CAN
    Cancels procedure initiated by this command.
    NAK
    Resends the just-received data.
  • When codes other than the ACK, NAK, or CAN codes are received, the CAN procedure is executed.
 

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