Commands Arranged by Topic
The following control codes are listed briefly for quick reference. For a more detailed explanation, see the page reference in Chapter 9. Variables are not included in this quick reference due to their complexity. For those codes that contain variables, such as ESC Q n for setting the right margin, see Chapter 9.
Printer Operation/Data Control
|
| Code | Dec | Hex | Function | Page |
|
|
|
| ESC @ | 6 4 | 4 0 | Initialize Printer |
|
| |
|
| DC1 | 17 | 11 | SelectPrinter |
|
| |
|
| DC3 | 1 9 | 13 | Deselect Printer |
|
| |
|
|
|
|
|
|
|
|
|
|
| DEL | 127 | 7F | Delete Character |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC < | 60 | 3C | Select Unidirectional Mode (one line) |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC U | 85 | 55 | Turn Unidirectional Mode On/Off |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC EM | 2 5 | 1 9 | Turn Cut Sheet Feeder On/Off |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC = | 61 | 3D | Set MSB to 0 |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC > | 6 2 | 3 E | Set MSB to 1 |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC # | 3 5 | 23 | Cancel MSB Control |
|
| |
|
|
|
|
|
|
|
|
|
|
| BEL | 7 | 07 | Beeper | 9 - 1 2 |
|
|
|
| CR | 1 3 | 0D | Carriage Return |
|
| |
|
| CAN | 2 4 | 1 8 | Cancel Line |
|
| |
|
|
|
|
|
|
|
|
|
| Vertical Motion/Horizontal Motion |
|
|
| ||||
|
| FF | 12 | 0C | Form Feed |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC C | 67 | 43 | Select Page Length in Lines |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC C 0 | 67 | 43 | Select Page Length in Inches |
|
| |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
| ESC N | 78 | 4E | Set Skip Over Perforation |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC o | 79 | 4F | Cancel Skip Over Perforation |
|
| |
|
|
|
|
|
|
|
|
|
|
| LF | 10 | 0A | Line Feed |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC 0 | 48 | 30 | Select |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC 2 | 50 | 32 | Select |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC 3 | 51 | 33 | Select |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC A | 65 | 41 | Select |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC J | 74 | 4A | Perform |
|
| |
|
|
|
|
|
|
|
|
|
|
| VT | 11 | 0B | Tab Vertically |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC B | 66 | 42 | Select Vertical Tabs |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC b | 98 | 62 | Select Vertical Tabs In Channels |
|
| |
|
| ESC / | 47 | 2 F | Select Vertical Tab Channel |
|
| |
|
| ESC I | 108 | 6C | Set Left Margin |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC Q | 8 1 | 51 | Set Right Margin |
|
| |
|
| B S | 8 | 08 | B a c k s p a c e |
|
| |
|
|
|
|
|
|
|
|
|
|
| ESC $ | 3 6 | 24 | Set Absolute Print Position |
|
| |
|
| ESC \ | 92 | 5 C | Set Relative Print Position |
|
| |
|
| HT | 9 | 09 | Tab Horizontally |
|
| |
|
| ESC D | 68 | 44 | Set Horizontal Tabs | 9 - 2 2 |
|
|
|
|
|
|
|
|
|
|
|