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
・The p
arameter “parentheses deletion” is available only when GS1-128(UCC/EAN-128)
is selected.
・The parameter “ratio between thick and thin bars” is available only when t0, t1 or t9 is
selected.
・The parameter “equalize bar lengths” is available only when t5 or t6 is selected.
・When another type is selected, these parameters are ignored.
・When there is no type command or an invalid type command is specified, CODE39 is
set.
・The number of bar code characters that can be entered for each type is as follows:
t0: 1–50 characters (* is not included)
t1: 1–64 characters
t5: 7 characters (for EAN-8)
12 characters (for EAN-13)
11 characters (for UPC-A)
t6: 6 characters
t9: 3–64 characters (Must begin and end with A, B, C, or D.)
ta: 1–64 characters
tb: 1–64 characters
tc: 3–15 characters (begins with “01”) (except with RSS Expanded)
1–64 numbers or 1–40 letters* (for RSS Expanded)
* ISO646 characters can be printed.
(numbers, letters, spaces, !, ”, %, &, ’, (, ), *, +, ,, -, ., /, :, ;, <, =,
>, ? and _)
2 B or b : Beginning of bar code data
3 [Bar code data]: Bar code data
? (Generate check digit)
Generates a check digit if there is “?” in the bar code data.
The position of “?” is irrelevant as long as “?” is within the bar code data.
With CODE128 and GS1-128(UCC/EAN-128), no check digit is generated.
If "?" is inserted, it is treated as bar code data.
4 Backslash: End of bar code data
[When the type is CODE39, ITF(I-2/5), EAN-8, EAN-13, UPC-A, UPC-E,
CODABAR or RSS symbols]
ESC i [Parameter] B or b [Bar code data]
\
71
[When the type is CODE128 or GS1-128(UCC/EAN-128)]










