Download Axiohm A795 User guide

Transcript
86
A795 User Guide: Programming Supplement
Chapter 4: Programming commands
Real time printer status transmission
ASCII
Hexadecimal
Decimal
GS ENQ
1D 05
29 5
Transmits one byte status of the printer in real time.
Exceptions
Value of byte:
Unlike the A793, that had a dedicated connector and
resultant dedicated status reporting for each cash drawer,
the A795 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.
Bit Status Hex Decimal Function
0
Off
On
00
01
0
1
Paper adequate.
Paper low
(if paper low sensor enabled).
1
Off
On
00
02
0
2
Paper adequate.
Paper low
(if paper low sensor enabled).
2
Off
On
00
04
0
4
Cover closed.
Cover open.
3
Off
00
0
On
08
8
Not busy at the
RS-232C interface.
Printer is busy at the
RS-232C interface.
Off
00
0
On
10
16
One or both cash
drawers open.
Both cash drawers closed.
5
Off
00
0
Fixed to off.
6
Off
On
00
40
0
64
No error condition.
Error condition exists
in the printer.
7
On
80
128
Fixed to on.
4