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 X Specify character size
[ASCII] ESC X m nL nH
[Decimal] 27 88 m nL nH
[Hexadecimal] 1B 58 m nL nH
[Parameters] Character width : The value of m is irrelevant.
character size:
<Bit-map fonts> nL = 24, 32, 48 dots
Available only when nH=0
<Out-line fonts>
nL=33, 38, 42, 46, 50, 58, 67, 75,
nL=83, 92, 100, 117, 133, 150,
nL=167, 200 233
nH =0
nL=11, 44, 77, 111, 144
Available only when nH = 1
[Description]
・This command is used only to change the size.
・Outline must not be specified.
・Character width cannot be set.
・The character size is set to n = nL + nH * 256 dots.
・Width and height are the same.
・In case of bit-map fonts, only n = 24, 32, and 48 are available. In case of out-line fonts,
only n = 33, 38, 42, 46, 50, 58, 67, 75, 83, 92, 100, 117, 133, 150, 167, 200, 233, 267,
300, 333, 367, 400 are available.
・The commands for specifying enlarged characters, reduced characters, character
spacing (SO, ESC W, ESC !, ESC SP) remain available.
[Example] ABC in 24-dot font and DEF in 48-dot font
Code
ESC X 00h 18h 00h ABC
ESC X 00h 30h 00h DEF FF
Print result
ABC
DEF
38










