ESC/ P Command Reference

Table Of Contents
Left edge Left margin position Tab position Tab position
Right margin position
HT Apply horizontal tab
[ASCII] HT
[Decimal] 9
[Hexadecimal] 09
[Parameters] None
[Description]
Moves the horizontal print position to the nearest horizontal tab position to the right of
the input position.
If there is no horizontal tab position to the right of the input position or the next
horizontal tab position is beyond the right margin, the HT command is ignored.
When underlining is specified, no underline is applied between the current position and
the next horizontal tab position.
When the unit is switched on, horizontal tab positions are set every 8 columns at 10 cpi.
Even if the character width is changed before the horizontal tab positions are set, the
horizontal tab positions do not change.
This command is available only with left alignment.
[Example] Specifying horizontal tabs at Column 4, Column 8, and Column 12, and applying
a horizontal tab
Code
ESC D 04h 08h 0Ch 00h
123456789012 CR A HT B HT C HT D FF
Print result
123456789012
A B C D
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Column
Unprinted area
HT code
Printable area
Example: After the left margin is set to Column 3 and the right
margin to Column 15, horizontal tabs are set at Column 5 and
Column 10, and an HT is performed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
HT code
Unprinted area
48