ESC/ P Command Reference

Table Of Contents
ESC D Specify horizontal tab position
[ASCII] ESC D n
k
NUL
[Decimal] 27 68 n
k
0
[Hexadecimal] 1B 44 n
k
00h
[Parameters] 1n255
0k32
[Description]
The position of the horizontal tab is the character width * n (at the time that the
horizontal tab is set) from the left margin.
Enter n values in ascending order and end the setting with NUL.
If an n value is smaller than the previous one, the tab setting is finished.
Even if the character width is changed after the horizontal tab positions are set, those
horizontal tab setting positions do not change.
ESC D NUL deletes all horizontal tab positions.
If the left margin is moved, the horizontal tab positions are moved along with it.
Up to 32 horizontal tab positions can be set. However, horizontal tab positions beyond
the right margin are invalid and only become valid when a change in the right margin
setting or left margin setting moves the print area to those tab positions.
The character width at the time that the horizontal tabs are set includes the command
settings for specifying character spacing, full-width character spacing, or half-width
character spacing. In addition, when the 10 cpi, 12 cpi, or15 cpi pitch, reduced
characters, or double-width characters are specified, that character width is considered
the unit.
When proportional pitch is specified with ESC p, horizontal tab positions are set at 10
cpi.
When the unit is switched on, horizontal tab positions are set every 8 columns at 10 cpi.
47
Even if the character width is changed before the horizontal tab positions are set, the
horizontal tab positions do not change.