ESC Commands
ESC Commands
HT
HT | |
---|---|
Name | Horizontal tab |
Format | ASCII HT
Hex 09 Decimal 9 |
Description | Move the print position to the next tab position.
|
Reference | ESC D |
LF
LF | |
---|---|
Name | Print and feed paper |
Format | ASCII LF
Hex 0A Decimal 10 |
Description | Print the data in the printer buffer, then feed paper for one line
according to the current line space settings. After printing, the print position moves to the beginning of the line. |
Reference | ESC 2,ESC 3 |
CR
CR | |
---|---|
Name | Carriage return |
Format | ASCII CR
Hex 0D Decimal 13 |
Description | Adjust the print position to the starting position of this line and line
feed. |
Reference | LF |
ESC SP n
ESC SP n | |
---|---|
Name | Set the right-side character space |
Format | ASCII ESC SP n
Hex 1B 20 n Decimal 27 32 n |
Description | Set the right right-side character space is [n×0.125mm]
|
Default | n=0 |
ESC ! n(Ⅰ)
ESC ! n | |
---|---|
Name | set the font type |
Format | ASCII ESC ! n
Hex 1B 21 n Decimal 27 33 n |
Description | Set the font type (italic, border, bold, double width, double height,
inverse or underline). And the bit definitions of parameter n are shown as follows table |
Reference | ESC -, ESC E, GS ! |
Default | n=0 |
ESC ! n(Ⅱ)
Bit | On/off | Hex | Decimal | Function |
0 | off | 00 | 0 | Character type A (12×24) |
0 | on | 01 | 1 | Character type B (9×17) |
4 | off | 00 | 0 | Double-height mode off |
4 | on | 10 | 16 | Double-height mode on |
5 | off | 00 | 0 | Double-width mode off |
5 | on | 20 | 32 | Double-width mode on |
7 | off | 00 | 0 | Underline mode off |
7 | on | 80 | 128 | Underline mode on |
CR
LF | |
---|---|
Name | Print and feed paper |
Format | ASCII CR
Hex 0D Decimal 13 |
Description | Adjust the print position to the starting position of this line and line
feed. |
Reference | ESC 2,ESC 3 |
CR
LF | |
---|---|
Name | Print and feed paper |
Format | ASCII CR
Hex 0D Decimal 13 |
Description | Adjust the print position to the starting position of this line and line
feed. |
Reference | ESC 2,ESC 3 |
CR
LF | |
---|---|
Name | Print and feed paper |
Format | ASCII CR
Hex 0D Decimal 13 |
Description | Adjust the print position to the starting position of this line and line
feed. |
Reference | ESC 2,ESC 3 |
CR
LF | |
---|---|
Name | Print and feed paper |
Format | ASCII CR
Hex 0D Decimal 13 |
Description | Adjust the print position to the starting position of this line and line
feed. |
Reference | ESC 2,ESC 3 |
CR
LF | |
---|---|
Name | Print and feed paper |
Format | ASCII CR
Hex 0D Decimal 13 |
Description | Adjust the print position to the starting position of this line and line
feed. |
Reference | ESC 2,ESC 3 |
CR
LF | |
---|---|
Name | Print and feed paper |
Format | ASCII CR
Hex 0D Decimal 13 |
Description | Adjust the print position to the starting position of this line and line
feed. |
Reference | ESC 2,ESC 3 |
CR
LF | |
---|---|
Name | Print and feed paper |
Format | ASCII CR
Hex 0D Decimal 13 |
Description | Adjust the print position to the starting position of this line and line
feed. |
Reference | ESC 2,ESC 3 |
CR
LF | |
---|---|
Name | Print and feed paper |
Format | ASCII CR
Hex 0D Decimal 13 |
Description | Adjust the print position to the starting position of this line and line
feed. |
Reference | ESC 2,ESC 3 |