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 ( k
[Name]
Set up and print the symbol
[Format]
ASCII
|
|
GS
|
|
(
|
|
k
|
|
pL
|
|
pH
|
|
cn
|
|
fn
|
|
[parameters]
|
Hex
|
1D
|
28
|
6B
|
pL
|
pH
|
cn
|
fn
|
[parameters]
|
||||||||
Decimal
|
29
|
40
|
107
|
pL
|
pH
|
cn
|
fn
|
[parameters]
|
[Description]
Performs data processing related to 2-dimensional codes (PDF417, QR Code, MaxiCode,
2-dimensional GS1 DataBar, Composite Symbology).
-
Symbol type is specified by cn
-
Function code fn specifies the function.
-
cnfnFunction No.Function name4865PDF417: Set the number of columns in the data region66PDF417: Set the number of rows67PDF417: Set the width of the module68PDF417: Set the row height69PDF417: Set the error correction level70PDF417: Select the options80PDF417: Store the data in the symbol storage area81PDF417: Print the symbol data in the symbol storage area82PDF417: Transmit the size information of the symbol data in the symbol storage area4965QR Code: Select the model67QR Code: Set the size of module69QR Code: Select the error correction level80QR Code: Store the data in the symbol storage area81QR Code: Print the symbol data in the symbol storage area82QR Code: Transmit the size information of the symbol data in the symbol storage area5065MaxiCode: Select the mode80MaxiCode: Store the data in the symbol storage area81MaxiCode: Print the symbol data in the symbol storage area82MaxiCode: Transmit the size information of the symbol data in the symbol storage area51672-dimensional GS1 DataBar: Set the width of the module712-dimensional GS1 DataBar: GS1 DataBar Expanded Stacked maximum width setting802-dimensional GS1 DataBar: Store data in the symbol storage area812-dimensional GS1 DataBar: Print the symbol data in the symbol storage area822-dimensional GS1 DataBar: Transmit the size information of the symbol data in the symbol storage area5267Composite Symbology: Set the width of the module71Composite Symbology: GS1 DataBar Expanded Stacked maximum width setting72Composite Symbology: Select HRI character font80Composite Symbology: Store the data in the symbol storage area81Composite Symbology: Print the symbol data in the symbol storage area82Composite Symbology: Transmit the size information of the symbol data in the symbol storage area5366Aztec Code: Set the number of mode types and data layers67Aztec Code: Set the size of the module69Aztec Code: Set the error correction level80Aztec Code: Store the data in the symbol storage area81Aztec Code: Print the symbol data in the symbol storage area82Aztec Code: Transmit the size information of the symbol data in the symbol storage area5466DataMatrix: Set the symbol type, number of columns, number of rows67DataMatrix: Set the size of the module80DataMatrix: Store the data in the symbol storage area81DataMatrix: Print the symbol data in the symbol storage area82DataMatrix: Transmit the size information of the symbol data in the symbol storage area
-
pL and pH specify the number of bytes following cn as (pL + pH × 256).
-
The [parameters] are described in each function.
-
"Symbol data" refers to the data received with <Function 080, 180, 280, 380, 480, 580 or 680> before encoding.
-
"Symbol storage area" refers to the range for storing data received with <Function080, 180, 280, 380, 480, 580 or 680> before encoding.
[Notes]
-
The function is specified with the function code (fn). Details of the performance differ according to the function.
-
2-dimensional codes are printed with appropriate printing speed regardless of the printer's maximum printing speed or the setting of GS ( K <Function 48> .
[Notes for processing of PDF417 symbol (when cn = 48)]
-
The symbol data specified by GS ( k <Function 080> d1...dk is stored in the printer and is printed by GS ( k <Function 081> .
-
When processing GS ( k <Function 081> or GS ( k <Function 082> , the setting values of Functions GS ( k <Function 065> to GS ( k <Function 070> are used. If the printable area is not large enough, the symbol may not be printed.
-
Executing GS ( k <Function 081> after executing GS ( k <Function 080> repeatedly prints the same symbol.
-
By using Functions GS ( k <Function 065> to GS ( k <Function 070> combined with GS ( k <Function 081> , the same symbol data d1...dk is printed differently.
-
By using GS ( k <Function 082> , the symbol size printed by GS ( k <Function 081> is available.
-
When printing PDF417, note the following:
-
-
The recognition rate of the symbol is affected by the height of the symbol, module height, module width ratio, and the performance of the reader.
-
It is recommended that the module height and the width of a module be set so that the height of the symbol is bigger than 5 mm {0.2 inch}.
-
It is recommended that the module height be set to three to five times the width of the module.
-
The module height is specified by GS ( k <Function 068> . The width of a module is specified by GS ( k <Function 067> . The number of the rows is specified by GS ( k <Function 066> .
-
The size of the symbol is confirmed by the transmission data of GS ( k <Function 082> .
-
[Notes for process of QR Code symbol (when cn = 49)]
-
The symbol data specified by GS ( k <Function 180> d1...dk is stored in the printer and is printed by GS ( k <Function 181> .
-
When processing GS ( k <Function 181> or GS ( k <Function 182> , the setting values of Functions GS ( k <Function 165> , GS ( k <Function 167> , GS ( k <Function 169> are used. If the printable area is not enough, the symbol may not be printed.
-
Executing GS ( k <Function 181> after executing GS ( k <Function 180> repeatedly prints the same symbol.
-
By using Functions GS ( k <Function 165> , GS ( k <Function 167> , GS ( k <Function 169> combined with GS ( k <Function 181> , the same symbol data d1...dk is printed differently.
-
By using GS ( k <Function 182> , the symbol size printed by GS ( k <Function 181> is available.
[Notes for process of MaxiCode symbol (when specify cn = 50)]
-
The symbol data specified by GS ( k <Function 280> d1...dk is stored in the printer and is printed by GS ( k <Function 281> .
-
When processing GS ( k <Function 281> or GS ( k <Function 282> , the setting values of GS ( k <Function 265> are used. If the printable area is not enough, the symbol may not be printed.
-
Executing GS ( k <Function 281> after executing GS ( k <Function 280> repeatedly prints the same symbol.
-
By using Functions GS ( k <Function 265> combined with GS ( k <Function 281> , the same symbol data d1...dk is printed differently.
-
By using GS ( k <Function 282> , the symbol size printed by GS ( k <Function 281> is available.
[Notes for 2-dimensional GS1 DataBar processing (when cn = 51 is specified)]
-
The 2-dimensional GS1 DataBar symbol data specified by GS ( k <Function 380> of this command (d1...dk) is temporarily stored in the storage area of the printer and is printed by GS ( k <Function 381> .
-
The setting value of GS ( k <Function 367> is used when processing GS ( k <Function 381> and GS ( k <Function 382> of this command. Furthermore, the setting value of GS ( k <Function 371> is used when processing GS1 DataBar Expanded Stacked. If the printing area is narrow, it may not be possible to print the symbol.
-
The same symbol can be printed by executing GS ( k <Function 381> repeatedly after executing GS ( k <Function 380> of this command.
-
Using GS ( k <Function 382> of this command, the size of the symbol printed with GS ( k <Function 381> can be acquired.
[Notes for Composite Symbology processing (when cn = 52 is specified)]
-
The composite symbol (line element/2D composite element) data specified by GS ( k <Function 480> of this command (d1...dk) is temporarily stored in the archive area of the printer and is printed by GS ( k <Function 481> .
-
The setting values of GS ( k <Function 467> and GS ( k <Function 472> are used when processing GS ( k <Function 481> and GS ( k <Function 482> of this command. Furthermore, the setting value of GS ( k <Function 471> is used when processing GS1 DataBar Expanded Stacked. If the printing area is narrow, it may not be possible to print the symbol.
-
The same symbol can be printed by executing GS ( k <Function 481> repeatedly after executing GS ( k <Function 480> of this command.
-
Composite Symbology with a different combination can be printed by resending other symbol data with either of the line element or 2D composite element as it is.
-
Step 1) Specify <GS ( k <Function 480> : (a = 49, b = 65)>, and send the 2D composite element data.Step 2) Specify <GS ( k <Function 480> : (a = 48, b = 70)>, and send the line element data.Step 3) Print Composite Symbology of which GS1 DataBar Omnidirectional is the line element with GS ( k <Function 481> .Step 4) Specify <GS ( k <Function 480> : (a = 48, b = 74)>, and send the line element data.Step 5) Print Composite Symbology of which GS1 DataBar Limited is the line element with GS ( k <Function 481> .
-
Using GS ( k <Function 482> of this command, the size of the symbol printed with GS ( k <Function 481> can be acquired.
[Notes for process of Aztec Code symbol (when cn = 53 is specified)]
-
The symbol data specified by GS ( k <Function 580> of this command (d1...dk) is temporarily stored in the storage area of the printer and is printed by GS ( k <Function 581> .
-
The setting values of GS ( k <Function 566> , GS ( k <Function 567> , and GS ( k <Function 569> are used when processing GS ( k <Function 581> and GS ( k <Function 582> of this command. If the printing area is narrow, it may not be possible to print the symbol.
-
The same symbol can be printed by executing GS ( k <Function 581> repeatedly after executing GS ( k <Function 580> of this command.
-
Using GS ( k <Function 582> of this command, the size of the symbol printed with GS ( k <Function 581> can be acquired.
[Notes for process of DataMatrix symbol (when cn = 54 is specified)]
-
The symbol data specified by GS ( k <Function 680> of this command (d1...dk) is temporarily stored in the storage area of the printer and is printed by GS ( k <Function 681> .
-
The setting values of GS ( k <Function 666> and GS ( k <Function 667> are used when processing GS ( k <Function 681> and GS ( k <Function 682> of this command. If the printing area is narrow, it may not be possible to print the symbol.
-
The same symbol can be printed by executing GS ( k <Function 681> repeatedly after executing GS ( k <Function 680> of this command.
-
Using GS ( k <Function 682> of this command, the size of the symbol printed with GS ( k <Function 681> can be acquired.
[Notes for transmission process]
-
Transmission process is performed by GS ( k <Function 082> , GS ( k <Function 182> , GS ( k <Function 282> , GS ( k <Function 382> , GS ( k <Function 482> , GS ( k <Function 582> , and GS ( k <Function 682> . When you use this command, follow these rules.
-
-
After the host PC transmits the function data, the printer will send response data or status data back to the PC. Do not transmit more data from the PC until the corresponding data is received from the printer.
-
When operating with a serial interface, be sure to configure operation so that the host computer uses these functions only when it is READY.
-
With a parallel interface, a [Header – NUL] is stored at first in the transmission buffer of the printer with the other transmission data (except for ASB status). When the host enters Reverse Mode, the data is transmitted in order from the beginning. Data that exceeds the transmission buffer size (99 bytes) is ignored. When using the command, the host should enter Reverse Mode immediately and execute receive processing of status.
-
-
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.
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