Cognitive Solutions A776 Manual De Usuario

Descargar
Página de 192
Chapter 5: Programming commands
 91
A776-PG00001 C 12/09 
A776 (B780) Programming Guide
To guard against this situation, the application must determine the cause of a busy condition and take appropriate 
action or pace the real time commands to avoid filling the buffer. There is a minimum of 256 bytes available in the 
printer’s buffer when it goes busy.
Busy line and fault conditions
If the printer is in error condition (cover is open, paper is exhausted…), the printer will still accept data, respond to the 
batch mode status commands (1B 76 and 1B 75 0), handle the cash drawer commands, and not go busy until it actually 
tries to execute a print command. Then it will stay busy and stop processing data out of the receive buffer until the 
condition clears. It will respond to the real time commands as described below.
Real-time status transmission
 
GS sequence 
DLE sequence
ASCII 
GS EOT 
 
DLE EOT n 
Hexadecimal  1D 04 n 
 
10 04 n 
Decimal 
29 4 
 
16 4 n
Value of n: 
GS/DLE sequence
 
1  =  Transmit printer status 
 
2  =  Transmit RS-232C busy status 
 
3  =  Transmit error status 
 
4  =  Transmit receipt paper status 
 
5  =  Slip paper status 
 
6  =  Validation paper status 
Transmits the selected one byte printer status specified by n command within a few msec according to the following 
parameters. This command includes two sequences: GS (1D) and DLE (0×10).
Exceptions
The command is ignored if is out of range.
An application using DLE (0×10) sequence must send EOT within 100 milliseconds of DLE or the printer will 
misinterpret the DLE and execute a clear printer command. Avoid this possibility by using the ID 04 n sequence, which 
is handled exactly the same as 10 04 n.
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.
Related information
1 = Transmit printer status
Bit  Status  Hex  Decimal  Function
Off 
00 
Fixed to Off.
On 
02 
Fixed to On.
Off 
00 
One or both cash drawers open.  
 
On 
04 
Both cash drawers closed.
Off 
00 
Not busy at the RS-232C interface.  
 
On 
08 
Printer is busy at the RS-232C interface.
On 
10 
16 
Fixed to on.
 
 
 
Undefined.
 
 
 
Undefined.
Off 
00 
Fixed to off.
Continued . . .