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 ( Q   <Function 49>


[Name]

Draw rectangle

[Format]

ASCII
   
GS
  
(
  
Q
  
pL
  
pH
  
fn
  
x1L
  
x1H
  
y1L
  
y1H
  
x2L
  
x2H
  
y2L
  
y2H
  
c
  
m1
  
m2
  
m3
  
m4
Hex
1D
28
51
0E
00
31
x1L
x1H
y1L
y1H
x2L
x2H
y2L
y2H
c
m1
m2
m3
m4
Decimal
29
40
81
14
0
49
x1L
x1H
y1L
y1H
x2L
x2H
y2L
y2H
c
m1
m2
m3
m4

[Range]

(pL + pH × 256) = 14
fn = 49
x1L, x1H, y1L, y1H, x2L, x2H, y2L, y2H, c, m1, m2, m3, m4: different depending on the printers

[Description]

Saves rectangle data in the print buffer when Page mode is selected.
  • x1L, x1H, y1L, y1H set the rectangle drawing start coordinate [X start position, Y start position] as the start position reference.
    • X start position: [(x1L + x1H × 256) × horizontal and vertical motion units]
    • Y start position: [(y1L + y1H × 256) × horizontal and vertical motion units]
  • x2L, x2H, y2L, y2H set the rectangle drawing end coordinate [X end position, Y end position] as the start position reference.
    • X end position: [(x2L + x2H × 256) × horizontal and vertical motion units]
    • Y end position: [(y2L + y2H × 256) × horizontal and vertical motion units]
  • m1 sets the type of line. The line width differs according to the model (refer to the model information).
  • m1
    Line type
    1
    Continuous line: Thin
    2
    Continuous line: Moderately thick
    3
    Continuous line: Thick

[Notes]

  • This function can be used when Page mode is selected. Select Page modewith ESC L.
  • You cannot specify a start coordinate [X start position, Y start position] and end coordinate [X end position, Y end position] that exceed the printing area set with ESC W.
  • You cannot specify [X start position ≥ X end position] or [Y start position ≥ Y end position].
  • X and Y and the horizontal and vertical motion units used for the start position specified with ESC T are changed as shown in the table below.
  • ESC T start position
    Start position / end position
    Horizontal and vertical motion units used
    Top left or bottom right
    X: Vertical in relation to paper feed direction (horizontal direction of characters)
    X: Horizontal (vertical in relation to paper feed direction)
    Y: Paper feed direction (vertical direction of characters)
    Y: Vertical (paper feed direction)
    Top right or bottom left
    X: Paper feed direction (horizontal direction of characters)
    X: Vertical (paper feed direction)
    Y: Vertical in relation to paper feed direction (vertical direction of characters)
    Y: Horizontal (vertical in relation to paper feed direction)
  • If the line width is 2 dots or more, the line is thickened towards the center of the rectangle. However, if the specified rectangle size is smaller than the line width, the line is not thickened in excess of the size of the rectangle.
  • When this function is executed, the printing position does not change.
 

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