Cognitive Solutions A776 Manual De Usuario

Descargar
Página de 192
Chapter 5: Programming commands
 95
A776-PG00001 C 12/09 
A776 (B780) Programming Guide
Real-time printer status transmission
ASCII 
GS ENQ 
Hexadecimal  1D 05 
Decimal 
29 5
Transmits one byte status of the printer in real time.
Off 
00 
Paper adequate. 
 
On 
01 
Paper low  
 
 
 
 
(if paper low sensor enabled).
Off 
00 
Paper adequate. 
 
On 
02 
Paper low  
 
 
 
 
(if paper low sensor enabled).
Off 
00 
Both receipt and cassette  
 
 
 
 
door closed. 
 
On 
04 
Receipt or cassette  
 
 
 
 
door  open.
Off 
00 
Not busy at the  
 
 
 
 
RS-232C interface. 
 
On 
08 
Printer is busy at the  
 
 
 
 
RS-232C interface.
Off 
00 
One or both cash  
 
 
 
 
drawers open. 
 
On 
10 
16 
Both cash drawers closed.
Off 
00 
Paper present at both slip  
 
 
 
 
sensors. 
 
On 
20 
32 
Paper not present at one or  
 
 
 
 
both sensors
Off 
00 
No error condition. 
 
On 
40 
64 
Error condition exists  
 
 
 
 
in the printer.
On 
80 
128 
Fixed to on.
Exceptions
Unlike the A756, that had a dedicated connector and resultant dedicated status reporting for each cash drawer, the 
A776 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.
Real-time commands disable
ASCII 
US z n 
Hexadecimal  1F 7A n 
Decimal 
31 122 n
Value of n: 
0 = disable   
 
1 = enable
This command is used to disable real time commands. They are disabled prior to sending graphic or other data to the 
printer that may contain embedded real time commands. 
 This command is a batch command and processed in the order received.