B. Control code summary (IBM)
ITEM | SYMBOL | Hexadecimal Decimal |
| FUNCTION |
|
|
|
|
|
|
|
| |||||||||
[57] | ESC [ \ n1 n2 | [1B,5B,5C,n1,n2,m1,...m4] H | Sets basic line spacing to 1/180", 1/216", or 1/360". | ||||||||||||||||||
| m1...m4 | [27,91,92,n1,n2,m1,...m4] D | n1=4, n2=0, m1=0, and m2=0 |
|
|
|
|
| |||||||||||||
|
|
|
|
|
|
|
|
| The basic line spacing affects the amount of the line | ||||||||||||
|
|
|
|
|
|
|
|
| feeding at ESC J and ESC 3. |
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
| m3 |
| m4 |
| Basic line spacing |
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
| 180 |
| 0 |
|
| 1/180" line spacing (AGM) |
|
|
| |||
|
|
|
|
|
|
|
|
|
| 216 |
| 0 |
|
| 1/216" line spacing |
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
| 104 |
| 1 |
|
| 1/360" line spacing |
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[58] | ESC [ d n1 n2 | [1B,5B,64,n1,n2,m] H |
| Selects print character quality. |
|
|
|
|
| ||||||||||||
| m | [27,91,100,n1,n2,m] D |
| n1=1 and n2=0 |
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
| m=00h: no change |
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||
|
|
|
|
|
|
|
|
| |||||||||||||
|
|
|
|
|
|
|
|
| |||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
[59] | ESC [ g n1 n2 | [1B,5B,67,n1,n2,m,data] H | Sets various graphic modes. |
|
|
|
|
| |||||||||||||
| m data | [27,91,103,n1,n2,m,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 |
|
|
| |||||||
|
|
|
| 8 |
|
|
|
|
|
| 24 | 816 | 60 |
|
|
| |||||
|
|
|
| 9 |
|
|
|
|
|
| 24 | 1632 | 120 |
|
|
| |||||
|
|
|
| 11 |
|
|
|
|
|
| 24 | 2448 | 180 |
|
|
| |||||
|
|
|
| 12 |
|
|
|
|
|
| 24 | 4896 | 360 |
|
|
| |||||
|
|
|
| 16 |
|
|
|
|
|
| 48 | 4896 | 360 |
|
|
| |||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
| Note (**): Horizontal adjacent dots can not be printed. |
|
|
|
|
|
| |||||||||||||
|
| The number of data bytes following n1 and n2 is defined as the total column number for | |||||||||||||||||||
|
| ||||||||||||||||||||
|
| takes three bytes/column and |
|
|
|
|
| ||||||||||||||
|
| Each bit data in the | |||||||||||||||||||
|
| head. 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) |
| |||||
|
|
|
|
|
|
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
| |||||||||||||
|
| Note (*): These pins become active when both adjacent print pins are activated. | |||||||||||||||||||
|
|
|
|
| |||||||||||||||||
[60] | ESC \ n1 n2 | [1B,5C,n1,n2,data] H |
| Prints characters from all character set. | |||||||||||||||||
| data | [1B,92,n1,n2,data] D |
| The number of character to be printed is defined by | |||||||||||||||||
|
|
|
|
|
|
|
|
| n1+n2⋅ 256. |
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
| ||||||||||||||||
[61] | ESC ] | [1B,5D] H | [27,92] D |
| Reverse line feeds by the current line spacing. | ||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
[62] | ESC ^ n | [1B,5E,n] H |
| [27,94,n] D |
| Prints one character (n: character code) from all | |||||||||||||||
|
|
|
|
|
|
|
|
| character set. |
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
[63] | ESC _ n | [1B,5F,n] H | [27,95,n] D |
| Sets or cancels overscore mode. |
|
|
|
|
| |||||||||||
|
|
|
|
|
|
|
|
| n=0: the overscore mode is cancelled |
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
| n=1: the overscore mode is set |
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
[64] | ESC d n1 n2 | [1B,64,n1,n2] H |
| Sets relative print position. |
|
|
|
|
| ||||||||||||
|
| [27,100,n1,n2] D |
| (n1+n2⋅ 256)/120" from current position | |||||||||||||||||
|
|
|
|
|
| ||||||||||||||||
[65] | ESC j | [1B,6A] H | [27,106] D |
| Stops printing and sets the printer in offline. | ||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|