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 W Specify double-width characters
- SI Specify compressed characters
- ESC SI Specify compressed characters
- DC2 Cancel compressed characters
- ESC - Apply/cancel underlining
- ESC ! Global formatting
- ESC X Specify character size
- ESC i f Apply/cancel a frame (global)
- CAN Clear text
- DEL Delete one character
- ESC CR Not available
- Line feed commands
- Horizontal movement commands
- Vertical movement commands
- Paper formatting
- Printer control commands
- Graphics commands
- Kanji commands
- Advanced commands
- ESC i B Bar code
- ESC i Q 2D bar code (QR Code)
- ESC i P Specify QR Code version
- ESC i V 2D bar code (PDF417)
- ESC i D 2D bar code (DataMatrix)
- ESC i M 2D bar code (MaxiCode)
- ESC i F Print transferred data
- ESC i a Switch command mode
- ESC i S Request printer status
- ESC i L Apply/cancel rotated printing
- ESC i C Specify cut setting
- ESC i U B Specify baud rate
- ESC i U b Specify bit length
- ESC i U P Specify parity setting
- ESC i U C Specify busy control
- Character code
- BROTHER PT-9800PCN/9700PC ESC/P specifications
42
Advanced commands
ESC i B Bar code
[ASCII] ESC i [parameters] B or b [bar code data] backslash
[Decimal] 27 105 [parameters] 66 or 98 [bar code data] 92
[Hexadecimal] 1B 69 [parameters] 42 or 62 [bar code data] 5C
[Parameters]
① [Parameters]: Bar code parameters
T or t (type)
t0: CODE39
t1: ITF (I-2/5)
t2: EAN-13
t3: EAN-8
t4: UPC-A
t5: EAN-8 (when the bar code data contains 7 characters)
UPC-A (when the bar code data contains 11 characters)
EAN-13 (when the bar code data contains 12 characters)
* The check digit mark “?” is not included in the number of
characters.
t6: UPC-E
t9: CODABAR
ta: CODE128
tb: GS1-128 (UCC/EAN-128)
tc: RSS symbols
s (style) Ignored
p (number of passes) Ignored
R or r (characters below bar code)
r0: OFF
r1: ON
u (units of measurement) Ignored
x (horizontal position) Ignored
y (vertical offset) Ignored
h (height)
h n1 n2
Height = n1 + n2 * 256 (dots)










