Gs R N Return Status - SNBC BTP-R580II Programming Manual

Table of Contents

Advertisement

Fourth byte (paper sensor information)

GS r n Return status

[Function]
Return status.
[Format]
ASCII
Hex
Decimal 29
[Range]
1 ≤ n≤ 2, 49 ≤ n ≤ 50
[Notes]
Return the status specified by n:
1,49
2,50
• This command is effective to printers with serial interface, nibble parallel interface or
USB interface.
• This command is executed after the data in the receive buffer is processed.
Therefore, there may be a time lag between sending this command and receiving the
return status.
• The corresponding relationship between different bits of status bytes is shown as
below:
Paper sensor status (n = 1, 49):
Bit
0, 1
2, 3
5, 6
Cash drawer status (n=2, 50):
1- 3
4
Off
5,6
-
7
Off
Bit
Off/On
Hex
0-3
-
4
Off
5,6
-
7
Off
GS
r
n
1D
72
n
114 n
n
Return paper sensor status
Return cash drawer status
0/1
Hex
Decimal
0
00
0
1
03
3
0
00
0
1
0c
12
4
0
00
0
7
0f
00
0
Bit
0/1
Hex
Decimal
0
00
0
1
01
4
0
00
00
0
-
-
00
0
Decimal
-
-
00
0
-
-
00
0
Function
Status
Paper near end sensor: paper adequate.
Paper near end sensor: paper near end.
Paper end sensor: paper adequate.
Paper end sensor: paper end.
Not used, fixed to 0
Undefined.
Not used, fixed to 0.
0
There is open cash drawer.
1
There is no open cash drawer.
Undefined.
0
Not used, fixed to 0.
- 43 -
BTP-R580II Programming Manual
Not used, fixed to 0.
Undefined.
Not used, fixed to 0.
Printer Status
Undefined.
Not used, fixed to 0.
Undefined.
Not used, fixed to 0.
Status

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents