
BTP-M300 Programming Manual
- 25 -
GS a n
[Function]
Enable/disable Automatic Status Back (ASB)
[Format]
ASCII GS a n
Hex 1D 61 n
Decimal 29 97 n
[Range]
0
≤
n
≤
255
[Notes]
Determine the content of ASB, and the meaning of parameter n is as below:
Bit
0/1
Hex
Decimal
Status for ASB
0
00
0
Cash drawer kick-out status disabled
0
1
01
1
Cash drawer kick-out status enabled
0 00 0
On-line/off-line
status
disabled
1
1 02 2
On-line/off-line
status
enabled
0
00
0
Error status disabled
2
1
04
4
Error status enabled
0
00
0
Paper status disabled
3
1
08
8
Paper status enabled
4~7 -- --
-- Undefined
[Notes]
• This command is enabled for printers with serial, parallel or USB interface.
• If any of the status items in the table above is enabled, the printer returns automatically
four-byte printer status when the status changes.
• If all status items are disabled, the ASB function is also disabled.
• The status bytes are transmitted by the printer without confirming whether the host is
ready to receive data.
• Since this command is executed with other commands in sequence, there is a time lag
from sending this command to ASB settings becoming effective.
• The status to be transmitted is as follows:
First byte (printer information):
Bit
0/1
Hex
Decimal
Printer status
0
,
1
0
00
0
Not used. Fixed to 0
0
00
0
Cash drawer open
2
1
04
4
Cash drawer closed
0
00
0
On-line
3
1
08
8
Off-line
4 1
10
16
Not used. Fixed to 1
0
00
0
Top cover closed
5
1
20
32
Top cover open
0
00
0
FEED button not pressed
6
1
40
64
FEED button pressed down
7 0
00
0
Not used. Fixed to 0
Содержание BTP-M300
Страница 1: ...Programming Manual Receipt Printer BTP M300 Shandong New Beiyang Information Technology Co Ltd ...
Страница 2: ......
Страница 8: ......