Control Codes
Quick PcOS Reference Chart
| Description |
|
| ASCII |
|
| Hex |
|
| IPCL |
|
| Page |
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
|
|
|
|
|
|
|
| equivalent |
|
| ||
|
|
|
|
|
|
|
|
|
| code |
|
|
|
|
| Low Level paper Motion |
|
|
|
|
|
|
|
|
|
|
|
| |
| Line feed. | [LF] |
| 0AH |
| &%LF |
| 76 |
| |||||
| Carriage return. | [CR] | 0DH | &%CR |
| 76 |
| |||||||
| Horizontal Motion |
|
|
|
|
|
|
|
|
|
|
|
| |
| Back space. | [BS] |
| 08H | &%BS |
| 77 |
| ||||||
| Horizontal tab. | [HT] | 09H | &%HT |
| 77 |
| |||||||
| Set horizontal tab stops. | [ESC] D <n1> <n2> |
| 1BH 44H |
| none |
| 77 |
| |||||
|
|
|
| ... <ni> <0> |
|
|
|
|
|
|
|
|
| |
| Set horizontal position. | [ESC] n <n1> <n2> |
| 1BH 6EH |
| &%HP<m1> |
| 78 |
| |||||
|
|
|
|
|
|
|
|
|
| <m2> <m3> |
|
|
| |
| Set justification. |
| [ESC] a <n> |
| 1BH 61H |
| &%JR {n=2} |
| 78 |
| ||||
| n=0 Left |
|
|
|
|
|
|
| &%JC {n=1} |
|
|
| ||
| n=1 Center |
|
|
|
|
|
|
| &%JL {n=0} |
|
|
| ||
| n=2 Right |
|
|
|
|
|
|
|
|
|
|
|
| |
| n=8 Left (No line feed) |
|
|
|
|
|
|
|
|
|
|
|
| |
| n=9 Center (No line feed) |
|
|
|
|
|
|
|
|
|
|
|
| |
| n=10 Right (No line feed) |
|
|
|
|
|
|
|
|
|
|
|
| |
| Reset horizontal and vertical tab |
| [ESC] R |
| 1BH 52H |
| &%HV |
| 78 |
| ||||
| stops. |
|
|
|
|
|
|
|
|
|
|
|
| |
| Set left/right print margins. |
| [ESC] X <n1><n2> |
| 1BH 58H |
| none |
| 154 | |||||
| n1 = Left margin, n2 = Right margin |
|
|
|
|
|
|
|
|
|
|
|
| |
| Select minimum character height |
| [ESC] + P<w><h> |
| 1BH 50H |
| none |
| 215 | |||||
| and width in points |
|
|
|
|
|
|
|
|
|
|
|
| |
| Select minimum character height |
| [ESC] + p<w><h> |
| 1BH 70H |
| none |
| 216 | |||||
| and width in ¼ points |
|
|
|
|
|
|
|
|
|
|
|
| |
| Vertical Motion |
|
|
|
|
|
|
|
|
|
|
|
| |
| Perform a fine line feed. |
| [ESC] J <n> |
| 1BH 4AH | &%FM <m1> |
| 79 |
| |||||
|
|
|
|
|
|
|
|
|
| <m2> <m3> |
|
|
| |
| Set |
| [ESC] 0 |
| 1BH 30H |
| &%ST |
| 79 |
| ||||
| Set |
| [ESC] 1 |
| 1BH 31H |
| &%SG |
| 80 |
| ||||
| Begin variable line spacing. |
| [ESC] 2 |
| 1BH 32H |
| none |
| 80 |
| ||||
| (Enable [ESC] A <n>). |
|
|
|
|
|
|
|
|
|
|
|
| |
| Set variable line spacing to n/216 |
| [ESC] 3 <n> | 1BH 33H | &%SV <m1> |
| 79 |
| ||||||
| inch. |
|
|
|
|
|
|
| <m2> <m3> |
|
|
| ||
| Set variable line spacing to n/72 |
| [ESC] A <n> |
| 1BH 41H |
| none |
| 80 |
| ||||
| inch. |
|
|
|
|
|
|
|
|
|
|
|
| |
| Set Line spacing in points |
| [ESC]+V<n> |
| 1BH 2BH 56H |
| None |
| 215 | |||||
| Set Line spacing in ¼ points |
| [ESC]+v<n> |
| 1BH 2BH 76H |
| None |
| 216 | |||||
| Select minimum character height |
| [ESC] + P<w><h> |
| 1BH 50H |
| none |
| 215 | |||||
| and width in points |
|
|
|
|
|
|
|
|
|
|
|
| |
| Select minimum character height |
| [ESC] + p<w><h> |
| 1BH 70H |
| none |
| 216 | |||||
| and width in ¼ points |
|
|
|
|
|
|
|
|
|
|
|
| |
| Feed <n> lines at current spacing. |
| [ESC] d <n> |
| 1BH 64H |
| &%FL <m1> |
| 82 |
| ||||
|
|
|
|
|
|
|
|
|
| <m2> |
|
|
| |
| Set vertical tab stops. | [ESC] B <n1> <n2> |
| 1BH 42H |
| none |
| 83 |
| |||||
|
|
|
| <n3>...<ni> 0 |
|
|
|
|
|
|
|
|
| |
| Vertical tab. | [VT] | 0BH | &%VT |
| 82 |
| |||||||
| Form feed. | [FF] | 0CH | &%FF |
| 83 |
| |||||||
| Feed to black dot | [ESC][VT] |
| 1BH 0BH |
| None |
| 86 |
|
Page 70 |
|
|
|