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
28
ESC \ Specify relative horizontal position
[ASCII] ESC \ n1 n2
[Decimal] 27 92 n1 n2
[Hexadecimal] 1B 5C n1 n2
[Parameters] 0≤n1≤255, 0≤n2≤255
[Description]
・Specifies a relative print position (in units of 1/180 inch) for the next data.
・A relative print position specifies the horizontal print position based on the current
position.
・The next character is printed at a position (n1 + 256 * n2) / 180 inch from the current
position.
・A relative position cannot be specified to the left (in the negative direction).
※ However, since the printable length is 1 meter, an actual value greater than 7086/180
inches will result in an error during printing
・This command is available only with left alignment.
ESC a Specify alignment
[ASCII] ESC a n
[Decimal] 27 97 n
[Hexadecimal] 1B 61 n
[Parameters] 0≤n≤3 or “0”≤n≤”3”
[Description]
・The following data is printed with the alignment described below, depending on the value
of n.
n=0 specifies left alignment.
n=1 specifies center alignment.
n=2 specifies right alignment.
n=3 specifies justified alignment.
・The default setting is n=0.
・The last alignment setting received is applied to all of the print data.
・If an absolute horizontal position or a relative horizontal position is specified, the text
must be aligned on the left when it is printed.










