Star Micronics 150 User Manual

Page of 151
Programmer's Guide
PcOS Series 150
Communications
 
Programmer’s Notes
12/14/99
Rev G
Page 125
Remote Printer Reset
Reset in Serial Mode
It is possible to generate a printer reset in serial mode. The [ENQ] <10> command will request
that the printer reset. (This is not a hardware reset). It will, however, completely initialize the
hardware and software but will not recover from a loss of software control.
Note: If the printer mode was changed by the [ESC] y <2> or [ESC] y <3> command, a soft reset
will not return to the power on default.
The command flow follows.
1.
The [ENQ] <10> will be acknowledged, and then the software will reset.
2.
The printer will be placed off-line.
3.
The hardware and software will be reinitialized.
4.
The printer will then go back on-line. Any information sent to the printer while it is off-line
will be lost.
Reset in Parallel Mode
In parallel mode, driving the INIT signal on the parallel port for 100 milliseconds will generate a
software reset. It will take about two seconds for the printer to recover from a reset. The [ENQ]
<10> command will be rejected if parallel mode is active.
Power-cycle Recovery
There are times when the host needs to know if the printer was power cycled. An example would be
after changing the receipt tape. It is not necessary to turn off the printer to change the receipt.
However, if the operator does, any information sent to the printer before the power cycle will be lost.
The Series 150 Printer has a flag that is set after a reset. The flag stays set until it is requested by the
host; at which time, it is reset. The [ENQ] <11> command reads the flag. If the command returns
power-cycled status, the power has been reset or power cycled since the last request and all unprinted
information has been lost.
If the print operation is critical, it is a good idea to check the flag before and after all transactions. An
alternate approach is to check the flag after every off-line to on-line transition.
Note: If the printer mode was changed by the [ESC] y <2> or [ESC] y <3> command, a power-cycle
reset will return to the power on default.