5. Control Codes List
< ESC/P mode>
Command |
| HEX code | Function |
| ||
|
|
|
|
|
|
|
BEL |
| 07 |
|
| Beeper |
|
BS |
| 08 |
|
| Backspace |
|
HT |
| 09 |
|
| Tab horizontally |
|
LF |
| 0A |
|
| Line feed |
|
VT |
| 0B |
|
| Tab vertically |
|
FF |
| 0C |
|
| Form feed |
|
CR |
| 0D |
|
| Carriage return |
|
SO |
| 0E |
|
| Select | |
SI |
| 0F |
|
| Select Condensed printing |
|
DC2 |
| 12 |
|
| Cancel Condensed printing |
|
DC4 |
| 14 |
|
| Cancel | |
CAN |
| 18 |
|
| Cancel line |
|
DEL |
| 7F |
|
| Delete last character in buffer |
|
ESC SO |
| 1B | 0E |
| Select | |
ESC SI |
| 1B | 0F |
| Select Condensed printing |
|
ESC SP n |
| 1B | 20 n | Set inter character space |
| |
ESC ! n |
| 1B | 21 n | Master select |
| |
n = | 00 | n = | 00 | 10 CPI | (ESC P) | |
| 01 |
|
| 01 | 12 CPI | (ESC M) |
| 02 |
|
| 02 | Proportional | (ESC p) |
| 04 |
|
| 04 | Condensed | (SI) |
| 08 |
|
| 08 | Emphasized | (ESC E) |
| 10 |
|
| 10 | (ESC G) | |
| 20 |
|
| 20 | (ESC W) | |
| 40 |
|
| 40 | Italic | (ESC 4) |
| 80 |
|
| 80 | Underlining | (ESC |
ESC # |
| 1B | 23 |
| Cancel MSB control |
|
ESC $ nL nH | 1B | 24 nL nH | Set absolute horizontal print position | |||
ESC % n |
| 1B | 25 n | Turn | ||
n = | 00 | n = | 00 | Turns | ||
| 01 |
|
| 01 | Turns | |
ESC & 0 n m [ a0 a1 a2 d ... | 1B | 26 | 30 n m [ a0 a1 a2 d ... | Define | ||
ESC ( - nL nH m d1 d2 | 1B | 28 | 2D nL nH m d1 d2 | Select or cancel score |
| |
ESC ( B nL nH k m s v1 v2 | 1B | 28 | 42 nL nH k m s v1 v2 | Select |
| |
ESC * m nL nH d1...dk | 1B | 2A m nL nH d1...dk | Select |
| ||
ESC + n |
| 1B | 2B n | Set n/360" line spacing |
| |
ESC - n |
| 1B | 2D n | Turn under lining mode on / off | ||
n = | 00 | n = | 00 | Turns underline off |
| |
| 01 |
|
| 01 | Turns underline on |
|
ESC / n |
| 1B | 2F n | Select vertical tab channel |
| |
ESC 0 |
| 1B | 30 |
| Select 1/8" line spacing |
|
ESC 2 |
| 1B | 32 |
| Select 1/6" line spacing |
|
ESC 3 n |
| 1B | 33 n | Select n/180" line spacing |
| |
ESC 4 |
| 1B | 34 |
| Select italic font |
|
ESC 5 |
| 1B | 35 |
| Cancel italic font |
|
ESC 6 |
| 1B | 36 |
| Enable printing of upper control codes | |
|
|
|
|
| (Character set #2) |
|
ESC 7 |
| 1B | 37 |
| Enable upper control codes |
|
|
|
|
|
| (Character set #1) |
|
ESC 8 |
| 1B | 38 |
| Disable paper out detector |
|
ESC 9 |
| 1B | 39 |
| Enable paper out detector |
|
– 42 –