Setting Up Your Printer
2.5Programming Commands
In order to be ready for a command sequence, the Printer must first receive a special character called an “attention getter” that informs the Printer that it is about to receive a command and the type of command it will be. Immediate Commands,
ASCII Char. | Decimal | HEX | DOS | Attention Getter For |
| Value | Value | Prompt |
|
SOH | 1 | 01 | Ctrl A | Immediate Commands |
STX | 2 | 02 | Ctrl B | |
ESC | 27 | 1B | Ctrl [ |
Table
When the Printer receives an Immediate Command it will cease whatever it is doing and perform that command. Commands of all types must be in this sequence:
1.Attention Getter
2.Command Character
3.Parameters that must be entered by the user (if any).
Command | Must Enter | Printer | Command |
Character | Parameters | Responds |
|
# | N | Y | Reset |
A | N | Y | Send ASCII status string |
B | N | N | Toggle pause |
C | N | N | Cancel |
D | N | N | SOH shutdown |
E | N | Y | Send batch quantity |
F | N | Y | Send status byte |
Table 2-6 Immediate Commands
Allegro2 | 23 |