User`s manual

MP-4000 TH POS Printer Rev.1.4 Programmer’s Manual
22-aug-2007
Firmware Release: 1.5
73
GS a n
[Function] Enable/Disable Automatic Status Back (ASB).
[Format] ASCII GS a n
Hexadecimal 1D 61 n
Decimal 29 97 n
[Description] Enables or disables ASB and specifies the status items to include,
using n as follows:
Bit Off/On Hex Decimal Status for ASB
Off 00 0 Drawer kick-out connector pin 3 status disabled. 0
On 01 1 Drawer kick-out connector pin 3 status enabled.
Off 00 0 Online/offline status disabled. 1
On 02 2 Online/offline status enabled.
Off 00 0 Error status disabled. 2
On 04 4 Error status enabled.
Off 00 0 Paper roll sensor status disabled. 3
On 08 8 Paper roll sensor status enabled.
4-7 - - - Undefined.
[Details] • If any of the status items in the table above are enabled, the printer
transmits the status when this command is executed. The printer
automatically transmits the status whenever the enabled status item
changes. The disabled status items may change, in this case, because each
status transmission represents the current status.
• If all status items are disabled, the ASB function is also disabled.
• Since this command is executed after the data is processed in the receive
buffer, there may be a time lag between data reception and status
transmission.
• When the printer is disabled by ESC = (Select peripheral device), the four
status bytes are transmitted whenever the status changes.
• When using DLE EOT, GS I, or GS r, the status transmitted by these
commands and ASB status must be differentiated, according to the
procedure in Appendix III, Transmission Status Identification.
• The status to be transmitted are as follows:
First byte - Printer Information
Bit Off/On Hex Decimal Status for ASB
0 Off 00 0 Not used. Fixed to Off.
1 Off 00 0 Not used. Fixed to Off.
Off 00 0 Drawer kick-out connector pin 3 is LOW. 2
On 04 4 Drawer kick-out connector pin 3 is HIGH.
Off 00 0 Online. 3
On 08 8 Offline.
4 On 10 16 Not used. Fixed to On.
Off 00 0 Cover is closed. 5
On 20 32 Cover is open.
Off 00 0 Paper is not being fed by using the PAPER FEED button. 6
On 40 64 Paper is being fed by using the PAPER FEED button.
7 Off 00 0 Not used. Fixed to Off.