ESC/ P Command Reference

Table Of Contents
ESC ! Global formatting
[ASCII] ESC ! n
[Decimal] 27 33 n
[Hexadecimal] 1B 21 n
[Parameters] 0 n 255
[Description]
Specifies a combination of print modes.
Specifies modes depending on the bit value of n.
When the ESC ! code is used, a combination of multiple print modes can be specified at
one time.
The priority order is: Bit 5 > Bit 2
Bit 0 is available only if Bit 1 is 0.
Selected character styles are canceled, and the characters return to the normal style.
Canceling double width characters mode will also cancel half width mode.
Bit 7 6 5 4 3 2 1 0
1 Underline Italics Double width Double height Bold Reduced Proportional 12 cpi
0 Cancel Cancel Cancel Cancel Cancel Cancel Cancel 10 cpi
[Example] Specifying underlining and double-width characters at the same time.
Code
ABC ESC ! A0h ABC ESC ! 00h ABC FF
Print result
ABC
ABC
ABC
36