beautypg.com

Control codes pcos series 150 programmer's guide – Star Micronics 150 User Manual

Page 74

background image

Control Codes

PcOS Series 150

Programmer's Guide

Printer Status Set/Inquire

Page 64

Rev G

12/14/99

Function

Request printer reset

ASCII

[ENQ] <10>

Hexadecimal

05H 0AH

Decimal

<5> <10>

Function

Reset printer
Serial

Parallel mode

Response

ACK <10> (06H 0AH)

No response in parallel mode.

The command was accepted.
NAK <10> (15H 0AH)
The command was rejected.

Description

This command is similar to asking for a power-on reset except no
internal diagnostics are run. The internal print buffer will be cleared.
The printer will be ready to except new information when the
acknowledged (ACK) response is sent. In parallel mode, the INIT
signal should be used because this command will be rejected. (In
serial/parallel mode, the command will also be rejected).

Function

Inquire power cycle status

ASCII

[ENQ] <11>

Hexadecimal

05H 0BH

Decimal

<5> <11>

Function

Has the printer been power cycled since the last request?
Serial/Parallel, IEEE 1284

Parallel, non-IEEE 1284

Response

ACK <11> (06H 0BH)

PE low

Printer power has been cycled
since last [ENQ] <11>.
NAK <5> (15H 0BH)

PE high

Printer has not power cycled
since last [ENQ] <11>.

Description

The first time after a reset this command will return [ACK] <11>, after
that the command will return [NAK] <11>. This command allows the
application to determine if the printer has been power cycled and needs to
be reinitialized. The [ENQ] <10> command and the INIT signal on the
parallel port will both cause the printer to return power-up status.