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
27
Horizontal movement commands
CR Carriage return
[ASCII] CR
[Decimal] 13
[Hexadecimal] 0D
[Parameters] None
[Description]
・Performs a line feed of the amount specified by a line feed command (ESC 0, ESC 2,
ESC 3 and ESC A).
・If no line feed amount has been specified, it is automatically specified depending on the
width of the tape.
・The next print position is the beginning of the next line.
・A line feed command immediately after a carriage return is ignored.
ESC $ Specify absolute horizontal position
[ASCII] ESC $ n1 n2
[Decimal] 27 36 n1 n2
[Hexadecimal] 1B 24 n1 n2
[Parameters] 0≤n1≤255, 0≤n2≤255
[Description]
・Specifies an absolute print position (in units of 1/60 inch) for the next data.
・An absolute print position specifies the horizontal print position from the left margin.
・The next character is printed at a position (n1 + 256 * n2) / 60 inch from the left margin.
* However, since the printable length is 1 meter, an actual value greater than 2362/60
inches will result in an error during printing










