TM-T20X supported commands


Command
Description
HT Horizontal tab
LF Print and line feed
FF (in Page mode) Print and return to Standard mode (in Page mode)
CR Print and carriage return
DLE EOT Transmit real-time status
DLE ENQ Send real-time request to printer
DLE DC4 (fn=1) Generate pulse in real-time
DLE DC4 (fn=2) Execute power-off sequence
DLE DC4 (fn=3) Sound buzzer in real-time
DLE DC4 (fn=7) Transmit specified status in real time
DLE DC4 (fn=8) Clear buffer(s)
CAN Cancel print data in Page mode
ESC FF Print data in Page mode
ESC SP Set right-side character spacing
ESC ! Select print mode(s)
ESC $ Set absolute print position
ESC % Select/cancel user-defined character set
ESC & Define user-defined characters
ESC ( A Control beeper tones
ESC ( A <fn=97> Model specific buzzer control (fn=97)
ESC * Select bit-image mode
ESC - Turn underline mode on/off
ESC 2 Select default line spacing
ESC 3 Set line spacing
ESC = Select peripheral device
ESC ? Cancel user-defined characters
ESC @ Initialize printer
ESC D Set horizontal tab positions
ESC E Turn emphasized mode on/off
ESC G Turn double-strike mode on/off
ESC J Print and feed paper
ESC L Select Page mode
ESC M Select character font
ESC R Select an international character set
ESC S Select Standard mode
ESC T Select print direction in Page mode
ESC V Turn 90° clockwise rotation mode on/off
ESC W Set print area in Page mode
ESC \ Set relative print position
ESC a Select justification
ESC c 3 Select paper sensor(s) to output paper-end signals
ESC c 5 Enable/disable panel buttons
ESC d Print and feed n lines
ESC i (∗2) Partial cut (one point left uncut)
ESC m (∗2) Partial cut (three points left uncut)
ESC p Generate pulse
ESC t Select character code table
ESC u (∗2) Transmit peripheral device status
ESC v (∗2) Transmit paper sensor status
ESC { Turn upside-down print mode on/off
FS ! Select print mode(s) for Kanji characters
FS & Select Kanji character mode
FS ( E Group of commands for receipt enhancement control
FS ( E <fn=60> Cancel set values for top/bottom logo printing
FS ( E <fn=61> Transmit set values for top/bottom logo printing
FS ( E <fn=62> Set top logo printing
FS ( E <fn=63> Set bottom logo printing
FS ( E <fn=64> Make extended settings for top/bottom logo printing
FS ( E <fn=65> Enable/disable top/bottom logo printing
FS g 1 (∗2) Write to NV user memory
FS g 2 (∗2) Read from NV user memory
FS p (∗2) Print NV bit image
FS q (∗2) Define NV bit image
GS ! Select character size
GS $ Set absolute vertical print position in Page mode
GS ( A Execute test print
GS ( D Enable/disable real-time command
GS ( E Set user setup commands
GS ( E <fn=1> Change into the user setting mode
GS ( E <fn=2> End the user setting mode session
GS ( E <fn=3> Change the memory switch
GS ( E <fn=4> Transmit the settings of the memory switch
GS ( E <fn=5> Set the customized setting values
GS ( E <fn=6> Transmit the customized setting values
GS ( E <fn=11> Set the configuration item for the serial interface
GS ( E <fn=12> Transmit the configuration item for the serial interface
GS ( E <fn=15> Set conditions for USB interface communication
GS ( E <fn=16> Transmit conditions for USB interface communication
GS ( H Request transmission of response or status
GS ( H <fn=48> Specifies the process ID response
GS ( K Select print control method(s)
GS ( K <fn=48> Select the print control mode
GS ( K <fn=50> Select the print speed
GS ( L / GS 8 L Set graphics data
GS ( L <fn=48> Transmit the NV graphics memory capacity
GS ( L <fn=50> Print the graphics data in the print buffer
GS ( L <fn=51> Transmit the remaining capacity of the NV graphics memory
GS ( L <fn=52> Transmit the remaining capacity of the download graphics memory
GS ( L <fn=64> Transmit the key code list for defined NV graphics
GS ( L <fn=65> Delete all NV graphics data
GS ( L <fn=66> Delete the specified NV graphics data
GS ( L / GS 8 L <fn=67> Define the NV graphics data (raster format)
GS ( L <fn=69> Print the specified NV graphics data
GS ( L <fn=80> Transmit the key code list for defined download graphics
GS ( L <fn=81> Delete all download graphics data
GS ( L <fn=82> Delete the specified download graphics data
GS ( L / GS 8 L <fn=83> Define the download graphics data (raster format)
GS ( L <fn=85> Print the specified download graphics data
GS ( L / GS 8 L <fn=112> Store the graphics data in the print buffer (raster format)
GS ( k Set up and print the symbol
GS ( k <fn=065> PDF417: Set the number of columns in the data region
GS ( k <fn=066> PDF417: Set the number of rows
GS ( k <fn=067> PDF417: Set the width of the module
GS ( k <fn=068> PDF417: Set the row height
GS ( k <fn=069> PDF417: Set the error correction level
GS ( k <fn=070> PDF417: Select the options
GS ( k <fn=080> PDF417: Store the data in the symbol storage area
GS ( k <fn=081> PDF417: Print the symbol data in the symbol storage area
GS ( k <fn=082> PDF417: Transmit the size information of the symbol data in the symbol storage area
GS ( k <fn=165> QR Code: Select the model
GS ( k <fn=167> QR Code: Set the size of module
GS ( k <fn=169> QR Code: Select the error correction level
GS ( k <fn=180> QR Code: Store the data in the symbol storage area
GS ( k <fn=181> QR Code: Print the symbol data in the symbol storage area
GS ( k <fn=182> QR Code: Transmit the size information of the symbol data in the symbol storage area
GS ( k <fn=265> MaxiCode: Select the mode
GS ( k <fn=280> MaxiCode: Store the data in the symbol storage area
GS ( k <fn=281> MaxiCode: Print the symbol data in the symbol storage area
GS ( k <fn=282> MaxiCode: Transmit the size information of the symbol data in the symbol storage area
GS ( k <fn=367> 2-dimensional GS1 DataBar: Set the width of the module
GS ( k <fn=371> 2-dimensional GS1 DataBar: GS1 DataBar Expanded Stacked maximum width setting
GS ( k <fn=380> 2-dimensional GS1 DataBar: Store data in the symbol storage area
GS ( k <fn=381> 2-dimensional GS1 DataBar: Print the symbol data in the symbol storage area
GS ( k <fn=382> 2-dimensional GS1 DataBar: Transmit the size information of the symbol data in the symbol storage area
GS ( k <fn=467> Composite Symbology: Set the width of the module
GS ( k <fn=471> Composite Symbology: GS1 DataBar Expanded Stacked maximum width setting
GS ( k <fn=472> Composite Symbology: Select HRI character font
GS ( k <fn=480> Composite Symbology: Store the data in the symbol storage area
GS ( k <fn=481> Composite Symbology: Print the symbol data in the symbol storage area
GS ( k <fn=482> Composite Symbology: Transmit the size information of the symbol data in the symbol storage area
GS * (∗2) Define downloaded bit image
GS / (∗2) Print downloaded bit image
GS : Start/end macro definition
GS B Turn white/black reverse print mode on/off
GS D Specify Windows BMP graphics data
GS D <fn=67> Define Windows BMP NV graphics data
GS D <fn=83> Define Windows BMP download graphics data
GS H Select print position of HRI characters
GS I Transmit printer ID
GS L Set left margin
GS P Set horizontal and vertical motion units
GS T Set print position to the beginning of print line
GS V Select cut mode and cut paper
GS W Set print area width
GS \ Set relative vertical print position in Page mode
GS ^ Execute macro
GS a Enable/disable Automatic Status Back (ASB)
GS b Turn smoothing mode on/off
GS f Select font for HRI characters
GS g 0 Initialize maintenance counter
GS g 2 Transmit maintenance counter
GS h Set barcode height
GS k Print barcode
GS r Transmit status
GS v 0 (∗2) Print raster bit image
GS w Set barcode width
(∗1):  Not supported by some models
(∗2):  Obsolete command
 

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