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 P Specify pica pitch
- ESC M Specify elite pitch
- ESC g Specify micron pitch
- ESC p Specify proportional characters
- ESC W Specify double width characters
- SO Specify auto-cancelling enlarged characters
- ESC SO Specify auto-cancelling enlarged characters
- SI Specify reduced characters
- ESC SI Specify reduced characters
- DC2 Cancel reduced characters
- DC 4 Cancel auto-cancelling double-width characters
- ESC – Applies/cancels underlining
- ESC ! Global formatting
- ESC SP Specify character spacing
- ESC X Specify character size
- Line feed commands
- Horizontal direction movement commands
- Vertical movement commands
- Paper formatting
- Printer control commands
- Graphics commands
- Advanced commands
- ESC i B Bar code
- ESC i Q 2D Bar code QR codes
- ESC i P QR code version setting
- ESC i V 2D bar code PDF417
- ESC i D 2D bar code DataMatrix control
- ESC i M 2D bar code MaxiCode control
- ESC i F Print downloaded data
- ESC i a Switch command mode
- ESC i S Request printer status
- ESC i L Select landscape orientation
- ESC i C Specify cutting
- ESC iXQ2 Select default character style
- ESC iXQ1 Retrieve default character style
- ESC iXk2 Select default font
- ESC iXk1 Retrieve default font
- ESC iXX2 Specify default character size
- ESC iXX1 Retrieve default character size
- ESC iX32 Specify default line feed
- ESC iX31 Retrieve default line feed
- ESC iXA2 Select default alignment
- ESC iXA1 Retrieve default alignment
- ESC iX(2 Specify default page length
- ESC iX(1 Retrieve default page length
- ESC iXL2 Select default landscape orientation
- ESC iXL1 Retrieve default landscape orientation
- ESC iXj2 Select default international character set
- ESC iXj1 Retrieve default international character set
- ESC iXm2 Select default character code table
- ESC iXm1 Retrieve default character code table
- Character codes
ESC i S Request printer status
[ASCII] ESC i S
[Decimal] 27 105 83
[Hexadecimal] 1B 69 53
[Parameters] None
[Description]
・Requests the printer status.
The printer status comprises 32 bytes.
90
Order Of
fset Size Name Value/Standard
1 0 1 Head mark Fixed to 80H
2 1 1 Size Fixed to 20H
3 2 1 Brother code Fixed to "B" (42H)
4 3 1 Series code Fixed to "5" (35H)
5 4 1 Model code TD-4000: Fixed to "1" (31H)
TD-4100N: Fixed to "2" (32H)
6 5 1 Country code Fixed to "0" (30H)
7 6 1 Main unit information Fixed to 00H
8 7 1 Reservation Fixed to 00H
9 8 1 Error information 1 See below.
10 9 1 Error information 2 See below.
11 10 1 Media width See Page 9 Print Area.
12 11 1 Media type See below.
13 12 1 Number of colors Fixed to 00H
14 13 1 Media length
(upper byte)
See Page 9 Print Area.
15 14 1 Media sensor value See Page 9 Print Area.
16 15 1 Mode Fixed to 00H
17 16 1 Density Fixed to 00H
18 17 1 Media length
(lower byte)
See Page 9 Print Area.
19 18 1 Status type See below.
20 19 1 Phase type Fixed to 00H
21 20 1 Phase number
(upper byte)
Fixed to 00H
22 21 1 Phase number
(lower byte)
Fixed to 00H
23 22 1 Notification number Not used
24 23 1 Expansion section
(number of bytes)
Fixed to 00H
25 24 8 Reservation Fixed to 00H










