ESC/ P Legacy Command Reference

Table Of Contents
ESC/P Legacy Command Reference
- 24 -
5. Control Command Details
ESC D Specify horizontal tab position
ASCII: ESC D n n... NUL
Decimal: 27 68 n n... 0
Hexadecimal: 1B 44 n n... 00
Function
Specifies a horizontal tab position.
Details
Specifies a horizontal tab at the position where (character width when the tab is performed) * (specified
number of columns) + (left margin position).
Ignored if (character width when this command is specified) * (n columns) + (left margin) extends past
the right margin position.
Horizontal tab settings can be specified between 44h and 00h; settings that exceed the maximum of 32
positions are ignored.
The character width when proportional characters are applied is 10 cpi.
All horizontal tabs are cancelled with ESC D 0.
HT Perform horizontal tab
ASCII: HT
Decimal: 9
Hexadecimal: 09
Function
Moves the print position to the next horizontal tab position.
Details
Horizontal tab position = Character width when the tab is performed * Specified number of columns +
Left margin position.
This command is ignored if there is no space to perform a tab at the right of the current position.