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
44
* Note:
・ Both 00H through 09H and 30H through 39H are recognized as the parameter
numbers 0 through 9.
・ Parameter types a and b are recognized, even if they are uppercase letters.
・ The parameter "parentheses removed" 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.
・ If there is no type command or if an invalid type command has been specified,
Code 39 is specified.
・ The number of characters that can be entered for each bar code protocol is
listed below.
t0: 1 to 50 characters (not including “*” on both sides)
t1: 1 to 64 characters
t5: 7 characters (EAN-8), 12 characters (EAN-13), 11 characters
(UPC-A)
t6: 6 characters
t9: 3 to 64 characters (with “A”, “B”, “C” or “D” at the beginning and
end)
ta: 1 to 64 characters
tb: 1 to 64 characters
tc: 3 to 15 characters (begins with “01”) (except with RSS
Expanded)
1 to 64 numbers or 1 to 40 letters* (for RSS Expanded)
* ISO646 characters can be printed.
(numbers, letters, spaces, !, ”, %, &, ’, (, ), *, +, ,, -, ., /, :, ;, <,
=, >, ? and _)
② B or b: Beginning of bar code data
③ [Bar code data]: Data for the bar code
? (generate check digit)
Generates a check digit when “?” is in the bar code data
The position of “?” is irrelevant as long as it is within the bar code data.
With CODE128 and GS1-128 (UCC/EAN-128), no check digit is
generated.










