Instruction manual

A758 Owner’s Guide Chapter 7: Programming Guide
September 1999 161
Transmit Status
ASCII
:GS r
n
Hexadecimal
: 1D 72
n
Decimal:
29 114
n
Value of
n
:
1, 49 = printer status
2, 50 = cash drawer status
3, 51 = slip paper status
4, 52 = Flash Memory status
Transmits the status specified by
n
. This is a batch mode command which
transmits the response after all prior data in the receive buffer has been
processed. There may be a time lag between the printer receiving this command
and transmitting the response, depending on the receive buffer status.
When DTR/DSR RS232C communications handshaking control is selected, the
printer transmits the one byte response only when the host signal DSR indicates
it is ready to receive data.
When XON/XOFF RS232C communications handshaking control is selected, the
printer transmits the one byte response regardless of the host signal DSR.
When Auto Status Back (ASB) is enabled using the Enable/Disable Automatic
Status Back command (1D 61), the status transmitted by this command (Transmit
Status) and the ASB status must be differentiated according to the information
found in Recognizing Data from the Printer. This is found in the Real Time
Commands section of this document.
The status bytes to be transmitted are described in the following four tables.
Printer Status (
n
= 1 or
n
= 49)
Bit Off/On Hex Decimal Status for Transmit Status
0Off
On
00
01
0
1
Receipt paper adequate.
Receipt paper low.
1Off
On
00
02
0
2
Receipt paper adequate.
Receipt paper low.
2Off
On
00
04
0
4
Receipt paper present.
Receipt paper exhausted.
3Off
On
00
08
0
8
Receipt paper present.
Receipt paper exhausted.
4 Off 00 0 Not used. Fixed to off.
5Off
On
00
20
0
32
Slip leading edge sensor: paper present
Slip leading edge sensor: no paper.
6Off
On
00
40
0
64
Slip trailing edge sensor: paper present
Slip trailing edge sensor: no paper.
7 Off 00 0 Not used. Fixed to off.
(Transmit Status—continued on the next page)