Chapter 8. Control Commands
Command Notation
[Name] | The name of the command. |
[Format] | the code sequence. |
| ASCII indicates the ASSCII equivalents. |
| Hex indicates the hexadecimal equivalents. |
| Decimal indicates the decimal equivalents. |
[Range] | [ ] k indicates the contents of the [ ] should be repeated k times. |
Gives the allowable ranges for the arguments. | |
[Description] | Describes the function of the command. |
Explanation of Terms
LSBLeast Significant Bit
Control Commands
HT
[Name] | Horizontal tab. | |
[Format] | ASCII | HT |
| Hex | 09 |
[Description] | Decimal | 9 |
Moves the print position to the next horizontal tab position. |
LF
[Name] | Print and line feed. | |
[Format] | ASCII | LF |
| Hex | 0A |
[Description] | Decimal | 10 |
Prints the data in the print buffer and feeds one line based on the current | ||
| line spacing. |
|
ESC SP n
[Name] | Set |
| ||
[Format] | ASCII | ESC | SP | n |
| Hex | 1B | 20 | n |
| Decimal | 27 | 32 | n |
[Range] | 0 < n < 255 |
|
|
|
[Description] | Sets the character spacing for the right side of the character to n dots. |
ESC ! n
[Name] |
| Select print modes. |
|
| |||||
[Format] |
| ASCII | ESC | ! | n | ||||
|
|
|
| Hex | 1B | 21 | n | ||
|
|
|
| Decimal | 27 |
| 33 | n | |
[Range] |
| 0 < n < 255 |
|
| |||||
[Description] |
| Selects print mode(s) using n as follows: | |||||||
|
|
|
|
|
|
|
|
| |
| Bit |
| Off/On |
| Hex |
| Decimal | Function | |
| 0 |
| Off |
|
| 00 |
| 0 | 24 char |
|
|
| On |
|
| 01 |
| 1 | 42 char |
| 2 |
| - |
|
| - |
| - | Undefined. |
| 3 |
| Off |
|
| 00 |
| 0 | Emphasized mode not selected. |
|
|
| On |
|
| 08 |
| 8 | Emphasized mode selected. |
| 4 |
| Off |
|
| 00 |
| 0 | |
|
|
| On |
|
| 10 |
| 16 | |
| 5 |
| Off |
|
| 00 |
| 0 | |
|
|
| On |
|
| 20 |
| 32 | |
| 6 |
| - |
|
| - |
| - | Undefined. |
| 7 |
| Off |
|
| 00 |
| 0 | Underline mode not selected. |
|
|
| On |
|
| 80 |
| 128 | Underline mode selected. |
| 1 |
| On |
|
| 02 |
| 2 | 32 char |
* Determine the values of n by adding the value of all the characteristics you want to select.
ESC-$ nL nH
[Name] | Set absolute print position. |
|
| |||
[Format] | ASCII | ESC | $ | nL | nH | |
| Hex | 1B | 24 | nL | nH | |
| Decimal | 27 | 36 | nL | nH | |
[Range] | 0 | < nL < 255 |
|
|
|
|
[Description] | 0 | < nH < 255 |
|
|
|
|
Set the print starting position from the beginning of the line. |
The distance from the beginning of the line to the print position is (nL + nH x 256) dots.