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

ESC D


[Name]

Set horizontal tab positions

[Format]

ASCII
   
ESC
  
D
  
n1
  
...
  
nk
  
NUL
Hex
1B
44
n1
...
nk
00
Decimal
27
68
n1
...
nk
0

[Range]

n = 1 – 255
k = 0 – 32

[Default]

n = 8, 16, 24, 32, ..., 232, 240, 248 (Every eight characters for the default font set)

[Description]

Sets horizontal tab positions.
  • n specifies the number of digits from the setting position to the left edge of the print area.
  • k indicates the number of horizontal tab positions to be set.

[Notes]

  • The horizontal tab position is stored as a value of [character width × n] measured from the beginning of the line. The character width includes the right-side character spacing, and double-width characters are selected with twice the width of normal characters.
  • The character width should be set before using this command. Settings of character fonts, space width, and enlargement affect the setting of character width.
  • A maximum of 32 horizontal tab positions can be set. Data exceeding 32 horizontal tab positions is processed as normal data.
  • This command cancels any previous horizontal tab settings.
  • Transmit [n]k in ascending order and place a NUL code at the end. ESC D NUL cancels all horizontal tab positions.
  • When [n]k is less than or equal to the preceding value [n]k-1, horizontal tab setting is finished, and the following data is processed as normal data.
  • k is not transmission data to the printer.
  • Even if the character width is changed after setting the horizontal tab positions, the setting of the horizontal tab positions will not be changed.
  • Horizontal tab position settings are effective until ESC @ is executed, the printer is reset, or the power is turned off.
  • Print position can be changed by HT.
  • When the left margin setting is changed, the horizontal tab position is also changed.
  • Horizontal tab positions that exceed the print area can be set. In this case, when the print area width is changed, available horizontal tab positions are changed.
 

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