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
37
ESC K 8-dot single-density bit image
[ASCII] ESC K n1 n2 data
[Decimal] 27 75 n1 n2 data
[Hexadecimal] 1B 4B n1 n2 data
[Parameters] 0≤n1≤255, 0≤n2≤255
The data contains image data that is n1 + n2 * 256 bytes.
[Description]
Specifies that an 8-dot standard-density bit image will be printed with the number of dot
positions defined by n1 and n2.
・n1 and n2 indicate the number of dot positions.
n1: The remainder from dividing the number of dot positions by 256
n2: The quotient from dividing the number of dot positions by 256
・First, the data is lined up in one row as shown below.
・One dot of the image data is enlarged to 6 dots vertically by 6 dots horizontally.
・As a result, the image becomes 48 dots vertically × (n1 + n2 * 256) * 6 dots horizontally.
B7 B6 B5 B4 B3 B2 B1 B0
Relationshi
p
between the ima
g
e data and the dots
1 byte
1 byte
1 byte
1 byte
…
1 byte
1 byte
n1+n2*256 b
y
te
MSB
LSB










