Automatic Status Back; Enable/Disable Automatic Status Back (Asb) - CognitiveTPG A799II Programming Manual

Two-color thermal receipt printer
Hide thumbs Also See for A799II:
Table of Contents

Advertisement

100
Chapter 4: Programming Commands

Automatic Status Back

Enable/disable Automatic Status Back (ASB)

ASCII:
GS a n
Hexadecimal: 1D 61 n
Decimal:
29 97 n
Range of n:
0 - 255
Default:
0 (ASB disabled)
Enables or disables automatic status back (ASB) and specifies the status items. This command is a batch mode command;
that is, it is processed after all prior data in the input buffer has been processed. There may be a time lag between the
printer receiving this command and changing the ASB response, depending on the receive buffer contents.
If any of the status items listed are selected, ASB is enabled and the printer automatically transmits 4 status bytes
whenever the selected status changes. If no status is selected, ASB is disabled. All four status bytes are transmitted without
checking DSR
If the error status is enabled, a change in the following conditions will trigger the ASB:
• Cash Drawer
• Receipt Cover
• Knife Error
• Out-of-Range Printhead Temperature
• Out-of-Range Voltage
• Paper Exhaust Status
The bits of n are defined in the table.
Bit Off/On Hex Decimal Status for ASB
0
Off
00
0
Cash drawer status disabled.
On
01
1
Cash drawer status enabled.
1
Off
00
0
RS-232C Busy status disabled.
On
02
2
RS-232C Busy status enabled.
2
Off
00
0
Error status disabled.
On
04
4
Error status enabled.
3
Off
00
0
Receipt paper roll status disabled.
On
08
8
Receipt paper roll status enabled.
4
Off
00
0
Undefined
5
Off
00
0
Undefined
6
Off
00
0
Undefined
7
Off
00
0
Undefined
Exceptions
If n = 0, ASB is disabled
Related information
When Automatic Status Back (ASB) is enabled using this command, the status transmitted by other commands and the
ASB status are differentiated according to the information found in Recognizing Data from the printer, (in the Real Time
Commands section in this chapter). The status bytes to be transmitted are described in the following four tables.
A799-2PG0001B 4/2016

Advertisement

Table of Contents
loading

Table of Contents