B. Control code summary (Epson)
❏EPSON mode
ITEM | SYMBOL | Hexadecimal & Decimal | FUNCTION |
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[1] | BEL | [07] H | [7] D | Activates the bell. | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[2] | BS | [08] H | [8] D | Backspace one character. | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[3] | HT | [09] H | [9] D | Moves to next horizontal tab. | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[4] | LF | [0A] H | [10] D | Linefeeds after printing. | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[5] | VT | [0B ]H | [11] D | Linefeeds to next vertical tab position after printing. | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[6] | FF | [0C] H | [12] D | Form feeds after printing. | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[7] | CR | [0D] H | [13] D | Carriage return after printing. | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[8] | SO | [0E] H | [14] D | Sets double width character mode for 1 line. | |||||||||
| ESC SO | [1B,0E] H | [27,14] D | DC4, LF, FF, ESC N, and ESC ! cancel this mode. | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[9] | SI | [0F] H | [15] D | Sets condensed character mode. | |||||||||
| ESC SI | [1B,0F] H | [27,15] D | 10 and 12 cpi becomes 17.1 and 20 cpi, respectively. | |||||||||
[10] | DC1 | [11] H | [17] D | Selects printer that has been deselected by DC3. | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[11] | DC2 | [12] H | [18] D | Cancels condensed character mode. | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[12] | DC3 | [13] H | [19] D | Deselects printer. | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
[13] | DC4 | [14] H | [20] D | Cancels double width character mode set by SO. | |||||||||
[14] | CAN | [18] H | [24] D | Clears data in buffer and move print head to home | |||||||||
|
|
|
|
|
|
| position. |
|
|
|
|
| |
[15] | DEL | [7F] H | [127] D | Deletes one character. | |||||||||
[16] | ESC EM n | [1B,19,n] H |
| [27,25,n] D | Controls cut sheet feeder. | ||||||||
|
|
|
|
|
|
| n=1: selects bin 1 | ||||||
|
|
|
|
|
|
| n=2: selects bin 2 | ||||||
|
|
|
|
|
|
| n=R: ejects single sheet paper loaded in the printer | ||||||
|
|
|
|
|
|
| This command is effective at the following conditions. | ||||||
|
|
|
|
|
|
| The paper select lever is set to the single sheet setting. | ||||||
|
|
|
|
|
|
| #49 CSF OPTION is set to SINGLE or DOUBLE. | ||||||
[17] | ESC SP n | [1B,20,n] H |
| [27,32,n] D | Sets intercharacter space in dot units. | ||||||||
|
| 0≤ n≤ 127 |
|
|
|
| The dot width in pica mode is 1/120 inch. | ||||||
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Print mode |
|
| Dot width |
|
| ||
|
|
|
|
|
| Draft |
|
|
| 1/120 inch |
|
|
|
|
|
|
|
|
| LQ/Proportional |
|
|
| 1/180 inch |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[18] | ESC ! n | [1B,21,n] H [27,33,n] D | Sets multiple print modes. | ||||||||||
|
|
|
|
|
|
| n is specified by the following bit combination. | ||||||
|
|
|
|
|
|
| (0≤ n≤ 255) |
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
| Print modes | Dec. | Hex. | Correspond command |
| |||
|
|
|
|
|
| Pica | 0 | 00 | ESC P |
| |||
|
|
|
|
|
| Elite | 1 | 01 | ESC M |
| |||
|
|
|
|
|
| Proportional | 2 | 02 | ESC p |
| |||
|
|
|
|
|
| Condensed | 4 | 04 | SI, DC1 |
| |||
|
|
|
|
|
| Emphasized | 8 | 08 | ESC E, ESC F |
| |||
|
|
|
|
|
| Double strike | 16 | 10 | ESC G, ESC H |
| |||
|
|
|
|
|
| Double width | 32 | 20 | ESC W |
| |||
|
|
|
|
|
| Italic | 64 | 40 | ESC 4, ESC 5 |
| |||
|
|
|
|
|
| Underline | 128 | 80 | ESC - |
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[19] | ESC # | [1B,23] H [27,35] D | Cancels MSB control set by ESC = or ESC >. | ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|