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 ( Q <Function 48>
[Name]
Draw line
[Format]
ASCII
|
|
GS
|
|
(
|
|
Q
|
|
pL
|
|
pH
|
|
fn
|
|
x1L
|
|
x1H
|
|
y1L
|
|
y1H
|
|
x2L
|
|
x2H
|
|
y2L
|
|
y2H
|
|
c
|
|
m1
|
|
m2
|
Hex
|
1D
|
28
|
51
|
0C
|
00
|
30
|
x1L
|
x1H
|
y1L
|
y1H
|
x2L
|
x2H
|
y2L
|
y2H
|
c
|
m1
|
m2
|
|||||||||||||||||
Decimal
|
29
|
40
|
81
|
12
|
0
|
48
|
x1L
|
x1H
|
y1L
|
y1H
|
x2L
|
x2H
|
y2L
|
y2H
|
c
|
m1
|
m2
|
[Range]
(pL + pH × 256) = 12
fn = 48
x1L, x1H, y1L, y1H, x2L, x2H, y2L, y2H, c, m1, m2: different depending on the printers
[Description]
Saves line data in the print buffer when Page mode is selected.
-
x1L, x1H, y1L, y1H set the line 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 line 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).
-
m1Line type1Continuous line: Thin2Continuous line: Moderately thick3Continuous 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 a start coordinate [X start position, Y start position] and end coordinate [X end position, Y end position] that are the same coordinate.
-
Lines that can be drawn are lines horizontal in relation to characters (Y start position = Y end position) and lines vertical in relation to characters (X start position = X end position). Diagonal lines cannot be specified.
-
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 positionStart position / end positionHorizontal and vertical motion units usedTop left or bottom rightX: 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 leftX: 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 according to the rules shown in the table below, based on the relationship between the specified start coordinate and end coordinate. However, line data that exceeds the printing area is not saved in the print buffer.
-
Condition 1Condition 2Line thickening methodY start position = Y end position(Lines horizontal in relation to characters)X start position < X end positionThickened downward as seen with the start position at top leftX start position > X end positionThickened upward as seen with the start position at top leftX start position = X end position(Lines vertical in relation to characters)Y start position < Y end positionThickened rightward as seen with the start position at top leftY start position > Y end positionThickened leftward as seen with the start position at top left
-
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.
- Introduction
- Command Lists
- Commands in Code Order
- Applicable printers
- Command List by Model
- EU-m30
- TM-J2000, TM-J2100
- TM-L90
- TM-L90 LFC
- TM-L100
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60
- TM-P60II
- TM-P80
- TM-P80II
- TM-T100
- 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-U220
- TM-U220II
- TM-U230
- Obsolete Commands
- Commands Arranged by Function
- Print Commands
- Line Spacing Commands
- Character Commands
- Printing Paper Commands
- Label and black mark control
- Print Position Commands
- Paper Sensor Commands
- Mechanism Control Commands
- Bit Image Commands
- Bit Image
- GS ( L / GS 8 L
- GS D
- Graphics
- NV Graphics
- Download Graphics
- Panel Button Commands
- Status Commands
- Barcode Commands
- Two-dimensional Code Commands
- GS ( k
- PDF417
- QR Code
- MaxiCode
- 2-dimensional GS1 DataBar
- Composite Symbology
- Aztec Code
- DataMatrix
- Macro Function Commands
- Kanji Commands
- Miscellaneous Commands
- DLE ENQ
- DLE DC4 <fn=1>
- DLE DC4 <fn=2>
- DLE DC4 <fn=3>
- DLE DC4 <fn=7>
- DLE DC4 <fn=8>
- ESC ( Y
- ESC =
- ESC @
- ESC L
- ESC S
- ESC p
- GS ( A
- GS ( D
- GS I
- GS P
- GS g 0
- GS g 2
- GS z 0
- Response or status transmission
- Print control methods
- Beeper tone control
- Graphics drawing
- Receipt enhancement control
- Page mode control
- Customize Commands
- User setup
- GS ( E
- GS ( E <fn=1>
- GS ( E <fn=2>
- GS ( E <fn=3>
- GS ( E <fn=4>
- GS ( E <fn=5>
- GS ( E <fn=6>
- GS ( E <fn=7>
- GS ( E <fn=8>
- GS ( E <fn=9>
- GS ( E <fn=10>
- GS ( E <fn=11>
- GS ( E <fn=12>
- GS ( E <fn=13>
- GS ( E <fn=14>
- GS ( E <fn=15>
- GS ( E <fn=16>
- GS ( E <fn=48>
- GS ( E <fn=49>
- GS ( E <fn=50>
- GS ( E <fn=51>
- GS ( E <fn=52>
- GS ( E <fn=99>
- GS ( E <fn=100>
- Printer customization
- NV user memory
- User setup
- Counter Printing Commands
- Programming Examples
- Appendixes