B. Control code summary (Epson)
ITEM | SYMBOL | Hexadecimal Decimal |
|
|
| FUNCTION |
|
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
| d2=8,d3=0 : | d2=44,d3=0 : | ||||||||
|
|
|
|
|
|
|
|
|
|
| d2=9,d3=0 : | d2=24,d3=0 : | ||||||||
|
|
|
|
|
|
|
|
|
|
| d2=11,d3=0 : | d2=25,d3=0 : BRASCII | ||||||||
|
|
|
|
|
|
|
|
|
|
| d2=17,d3=0 : | d2=26,d3=0 : ABICOMP | ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
[26] | ESC *m n1 n2 | [1B,2A,m,n1,n2,data] H |
|
|
| Sets various graphic modes. |
|
|
|
| ||||||||||
| data | [27,42,m,n1,n2,data] D |
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
| m |
|
| Graphic Type |
|
|
| Number |
| Maximum | Horizontal |
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
| of Pins |
| Columns |
| Density |
|
| |
|
|
|
| 0 |
|
|
|
|
|
| 8 |
| 816 |
| 60 |
|
| |||
|
|
|
| 1 |
|
|
|
|
|
| 8 |
| 1632 |
| 120 |
|
| |||
|
|
|
| 2 |
|
|
| 8 |
| 1632 |
| 120 |
|
| ||||||
|
|
|
| 3 |
|
|
|
| 8 |
| 3264 |
| 240 |
|
| |||||
|
|
|
| 4 |
|
| CRT I |
|
|
|
|
|
| 8 |
| 1088 |
| 80 |
|
|
|
|
|
| 6 |
|
| CRT II |
|
|
|
|
|
| 8 |
| 1224 |
| 90 |
|
|
|
|
|
| 32 |
|
|
|
|
|
| 24 |
| 816 |
| 60 |
|
| |||
|
|
|
| 33 |
|
|
|
|
|
| 24 |
| 1632 |
| 120 |
|
| |||
|
|
|
| 38 |
|
| CRT III |
|
|
|
|
|
| 24 |
| 1224 |
| 90 |
|
|
|
|
|
| 39 |
|
|
|
|
|
| 24 |
| 2448 |
| 180 |
|
| |||
|
|
|
| 40 |
|
|
|
|
|
| 24 |
| 4896 |
| 360 |
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
| Note (*): Horizontal adjacent dots can not be printed. |
|
|
|
|
| |||||||||||||
|
| The total column number is calculated by n1+n2 x 256 for | ||||||||||||||||||
|
| (n1 + n2x256) x3 for |
|
|
|
|
|
|
|
|
| |||||||||
|
| Each bit data in the | ||||||||||||||||||
|
| The following figure shows one column of data and its corresponding print position. | ||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
| Bit Data (MSB) 1 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | (LSB) |
| ||||||
|
|
| Print Pin (Top) |
|
|
|
|
|
|
|
|
|
| (Bottom) |
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
[27] | ESC + n | [1B,2B,n] H |
| [27,43,n] D |
|
|
| Sets line spacing to n/360" (0≤ n≤ 255). |
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
[28] | ESC - n | [1B,2D,n] H |
| [27,45,n] D |
|
|
| Sets or cancels underline. |
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
| n=0: underline is cancelled |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
| n=1: underline is set |
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
[29] | ESC / c | [1B,2F,c] H |
| [27,47,c] D |
|
|
| Selects a channel (c: | ||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
[30] | ESC 0 | [1B,30] H | [27,48] D |
|
|
| Sets line spacing to 1/8". |
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
[31] | ESC 2 | [1B,32] H | [27,50] D |
|
|
| Sets line spacing to 1/6". |
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
[32] | ESC 3 n | [1B,33,n] H |
| [27,51,n] D |
|
|
| Sets line spacing to n/180" (0≤ n≤ 255). |
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
[33] | ESC 4 | [1B,34] H | [27,52] D |
|
|
| Sets italic character mode. |
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
| Download characters and graphic characters | |||||||||
|
|
|
|
|
|
|
|
|
|
| ||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
[34] | ESC 5 | [1B,35] H | [27,53] D |
|
|
| Cancels italic character mode. |
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
[35] | ESC 6 | [1B,36] H | [27,54] D |
|
|
| Enlarges the print code area. |
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
| Control code area | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
[36] | ESC 7 | [1B,37] H | [27,55] D |
|
|
| Clears ESC 6 command. |
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
[37] | ESC : NUL | [1B,3A,00,n,00] H |
|
|
| Copy RAM download character set from ROM | ||||||||||||||
| n NUL | [27,58,0,n,0] D |
|
|
| character set. |
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
| n=00h: ROMAN is copied |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
| n=01h: SANS SERIF is copied |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
| n=02h: COURIER is copied |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
| n=03h: PRESTIGE is copied |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
| n=04h: SCRIPT is copied |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
| n=05h: |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
| n=06h: |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
| n=07h: ORATOR is copied |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
| n=08h: |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
| n=14h: GOTHIC is copied |
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
[38] | ESC < | [1B,3C] H | [27,60] D |
|
|
| Moves print head to home position. |
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
[39] | ESC = | [1B,3D] H |
| [27,61] D |
|
|
| Sets MSB of data to "0". |
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
[40] | ESC > | [1B,3E] H | [27,62] D |
|
|
| Sets MSB of data to "1". |
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|