Instruction manual

A758 Owner’s Guide Chapter 7: Programming Guide
September 1999 155
Batch Mode
For RS-232C printers, these commands enable the printer to communicate with
the host computer following the selected handshaking protocol, either DTR/DSR
or XON/XOFF. They are stored in the printer's data buffer as they are received,
and are handled by the firmware in the order in which they are received.
When a fault occurs, the printer will go busy at the RS-232C interface and not
respond to any of the Batch Mode Printer Status commands. If the fault causing
the busy condition can be cleared, such as by loading paper, or letting the
thermal printhead cool down, the printer will resume processing the data in its
receive buffer.
Transmit Peripheral Device Status
ASCII
:ESC u 0
Hexadecimal
: 1B 75 0
Decimal:
27 117 0
Bit 0 Bit 1
Return Value:
1 = Drawer 1 closed 1 = Drawer 2 closed
0 = Drawer 1 open 0 = Drawer 2 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.
Request Alternate Status (Parallel Only)
ASCII
:ESC u
n
Hexadecimal
: 1B 75
n
Decimal:
27 117
n
Value and Range of
n
:
Value of
n
Function Description
00 Drawer 1 High = Open
Low = Closed or Not Present
01 Drawer 2 High = Open
Low = Closed or Not Present
02 Paper Low (Not Implemented.
Interpreted as Paper Out.)
High = Paper Out
Low = Paper Present
03 Paper Out (Default) High = Paper Out
Low = Paper Present
>03 Ignored, No Change Printer Does Not Stay BUSY
1
1
PAPER EXHAUST LINE is valid to indicate previously requested status.
This command allows the printer to inform the host when the data in the buffer
has been processed, when the IEEE 1284 interface is in unidirectional mode.
When this command is sent to the printer, the printer goes “Busy” until all data
which has been sent to the printer 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.