Transmit Peripheral Device Status (Rs-232C Printers Only); Request Alternate Status (A793 Emulation Only) - CognitiveTPG A798 Programming Manual

Thermal receipt printer
Hide thumbs Also See for A798:
Table of Contents

Advertisement

66
Chapter 4: Programming Commands

Transmit peripheral device status (RS-232C printers only)

ASCII
ESC u 0
Hexadecimal
1B 75 0
Decimal
27 117 0
Value of returned byte:
Bit 0
1 = Drawer 1 Closed
0 = Drawer 1 Open
Bits 2–7 are not used.
Transmits current status of the cash drawers. One byte is sent to the host computer. In DTR/DSR protocol, the printer waits
for DSR = SPACE. If a drawer is not connected, the status will indicate it is closed.
Exceptions
Unlike the A793, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the A798
has a single connector that shares data reporting from either cash drawer. When either cash drawer is open, an open status
is reported by the printer.
Related information
In LEGACY emulation, this command is ignored.

Request alternate status (A793 emulation only)

ASCII
ESC u n
Hexadecimal
1B 75 n
Decimal
27 117 n
Value and Range of n:
Value of n Function
00
Drawer 1
01
Drawer 2
02
Paper Low
(Not Implemented.
Interpreted as
Paper Out.)
03
Paper Out (Default) High = Paper Out
>03
Ignored, No Change Printer Does Not Stay BUSY
PAPER EXHAUST LINE is valid to indicate previously requested status.
1
This command allows the printer to inform the host when the data in the buffer has been processed. The PAPER
EXHAUST line shows the status for the cash drawer or receipt paper as shown in the table.
Status information is limited to what can be sent by the dedicated lines: BUSY, ACK, PAPER EXHAUST, and FAULT.
Exceptions
Parallel communications only.
Bit 1
1 = Drawer 2 Closed
0 = Drawer 2 Open
Description
High = Open
Low = Closed or Not Present
High = Open
Low = Closed or Not Present
High = Paper Out
Low = Paper Present
Low = Paper Present
1
A798-PG00001C
Revision C 12/09

Advertisement

Table of Contents
loading

Table of Contents