Control Codes

PcOS Series 150

Programmer's Guide

Printer Status Set/Inquire

Inquire Commands

Function

Inquire printer status

 

ASCII

[ENQ] <n>

 

Hexadecimal

05H <n>

 

Decimal

<5> <n>

 

IPCL

none

 

EPOS

[GS] r or [DLE] [ENQ] or [DLE] [EOT]

Description

This command inquires as to the printer’s status and returns the result. The

 

following inquires are defined.

 

 

Note: If the printer is off-line, inquires may not be accepted.

Function

Inquire Cash Drawer 1 status

 

ASCII

[ENQ] <1>

 

Hexadecimal

05H 01H

 

Decimal

<5> <1>

 

Function

Cash Drawer 1 status

 

 

Serial/Parallel, IEEE 1284

Parallel, non-IEEE 1284

Response

ACK <1> (06H 01H)

PE low

 

Cash Drawer 1 is closed.

 

 

NAK <1> (15H 01H)

PE high

 

Cash Drawer 1 is open.

 

 

The cash drawer status is defined as open circuit being drawer closed.

Function

Inquire Cash Drawer 2 status

 

ASCII

[ENQ] <2>

 

Hexadecimal

05H 02H

 

Decimal

<5> <2>

 

Function

Cash Drawer 2 status

 

 

Serial/Parallel, IEEE 1284

Parallel, non-IEEE 1284

Response

ACK <2> (06H 02H)

PE low

 

Cash Drawer 2 is closed.

 

 

NAK <2> (15H 02H)

PE high

 

Cash Drawer 2 is open.

 

 

The cash drawer status is defined as open circuit being drawer closed.

Function

Inquire receipt-paper out

 

ASCII

[ENQ] <4>

 

Hexadecimal

05H 04H

 

Decimal

<5> <4>

 

Function

Receipt-paper out

 

 

Serial/Parallel, IEEE 1284

Parallel, non-IEEE 1284

Response

ACK <4> (06H 04H)

PE low

 

There is receipt paper.

 

 

NAK <4> (15H 04H)

PE high

 

The receipt paper is exhausted.

 

Page 62

Rev G

12/14/99

Page 72
Image 72
Star Micronics 150 manual Inquire Commands