Batch Mode; Transmit Peripheral Device Status - NCR 7158 Owner's Manual

Thermal receipt and impact printer
Table of Contents

Advertisement

7-86 Chapter 7: Programming Guide

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:
Hexadecimal:
Decimal:
Return Value:
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.
ESC u 0
1B 75 0
27 117 0
Bit 0
1 = Drawer 1 closed
0 = Drawer 1 open
(Bits 2-7 are not used)
Bit 1
1 = Drawer 2 closed
0 = Drawer 2 open

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents