ESC/ P Command Reference
Table Of Contents
- Control Code List
- Print area
- Characters
- Print position
- Line feed amount
- Document creation flow
- Control command details
- Character/style selection commands
- Text printing commands
- ESC 4 Apply italic style
- ESC 5 Cancel italic style
- ESC E Apply bold style
- ESC F Cancel bold style
- ESC G Apply double-strike printing
- ESC H Cancel double-strike printing
- ESC P Specify pica pitch
- ESC M Specify elite pitch
- ESC g Specify micron pitch
- ESC p Specify proportional characters
- ESC W Specify double width characters
- SO Specify auto-cancelling enlarged characters
- ESC SO Specify auto-cancelling enlarged characters
- SI Specify reduced characters
- ESC SI Specify reduced characters
- DC2 Cancel reduced characters
- DC 4 Cancel auto-cancelling double-width characters
- ESC – Applies/cancels underlining
- ESC ! Global formatting
- ESC SP Specify character spacing
- ESC X Specify character size
- Line feed commands
- Horizontal direction movement commands
- Vertical movement commands
- Paper formatting
- Printer control commands
- Graphics commands
- Advanced commands
- ESC i B Bar code
- ESC i Q 2D Bar code QR codes
- ESC i P QR code version setting
- ESC i V 2D bar code PDF417
- ESC i D 2D bar code DataMatrix control
- ESC i M 2D bar code MaxiCode control
- ESC i F Print downloaded data
- ESC i a Switch command mode
- ESC i S Request printer status
- ESC i L Select landscape orientation
- ESC i C Specify cutting
- ESC iXQ2 Select default character style
- ESC iXQ1 Retrieve default character style
- ESC iXk2 Select default font
- ESC iXk1 Retrieve default font
- ESC iXX2 Specify default character size
- ESC iXX1 Retrieve default character size
- ESC iX32 Specify default line feed
- ESC iX31 Retrieve default line feed
- ESC iXA2 Select default alignment
- ESC iXA1 Retrieve default alignment
- ESC iX(2 Specify default page length
- ESC iX(1 Retrieve default page length
- ESC iXL2 Select default landscape orientation
- ESC iXL1 Retrieve default landscape orientation
- ESC iXj2 Select default international character set
- ESC iXj1 Retrieve default international character set
- ESC iXm2 Select default character code table
- ESC iXm1 Retrieve default character code table
- Character codes
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] 1≤n≤255
0≤k≤32
[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.










