A795 User Guide: Programming Supplement
Chapter 4: Programming commands
84
Real time status transmission
GS sequence
DLE sequence
ASCII
GS EOT n
DLE EOT n
Hexadecimal
1D 04 n
10 04 n
Decimal
29 4 n
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
Transmits the selected one byte printer status specified by
n in real time according to the following parameters. This
command includes two sequences: GS (1D) and DLE
(0x10).
Exceptions
The command is ignored if n is out of range.
An application using DLE (0x10) 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 A793, that had a dedicated connector and
resultant dedicated status reporting for each cash drawer,
the A795 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
0
Off
00
0
Fixed to Off.
1
On
02
2
Fixed to On.
2
Off
00
0
One or both cash
drawers open.
On
04
4
Both cash drawers closed.
3
Off
00
0
Not busy at the
RS-232C interface.
On
08
8
Printer is busy at the
RS-232C interface.
4
On
10
16
Fixed to on.
5
Undefined.
6
Undefined.
7
Off
00
0
Fixed to off.
2 = Transmit RS-232C Busy Status
Bit Status Hex Decimal Function
0
Off
00
0
Fixed to off.
1
On
02
2
Fixed to on.
2
Off
00
0
Cover closed.
On
04
4
Cover open.
3
Off
00
0
Paper feed button
is not pressed.
On
08
8
Paper feed button is pressed.
4
On
10
16
Fixed to on.
5
Off
00
0
Printing not stopped due
to paper condition.
On
20
32
Printing stopped due to
paper condition.
6
Off
00
0
No error condition.
On
40
64
Error condition exists in
the printer.
7
Off
00
0
Fixed to off.
Real time status transmission (continued)
Содержание A795
Страница 1: ...A795 D100 PS UserGuide ProgrammingSupplement A795Two ColorThermalReceiptPrinter TM...
Страница 10: ...A795 User Guide Programming Supplement Chapter 1 About this Supplement 10...
Страница 110: ...A795 User Guide Programming Supplement Chapter 4 Programming commands 110...
Страница 118: ...A795 User Guide Programming Supplement Appendix B Resident Character Sets 118 Code page 737 Greek...
Страница 119: ...A795 User Guide Programming Supplement Appendix B Resident Character Sets 119 Code page 850 Multilingual...
Страница 120: ...A795 User Guide Programming Supplement Appendix B Resident Character Sets 120 Code page 852 Slavic...
Страница 121: ...A795 User Guide Programming Supplement Appendix B Resident Character Sets 121 Code page 858 with Eurosymbol...
Страница 122: ...A795 User Guide Programming Supplement Appendix B Resident Character Sets 122 Code page 860 Portuguese...
Страница 123: ...A795 User Guide Programming Supplement Appendix B Resident Character Sets 123 Code page 862 Hebrew...
Страница 124: ...A795 User Guide Programming Supplement Appendix B Resident Character Sets 124 Code page 863 French Canadian...
Страница 125: ...A795 User Guide Programming Supplement Appendix B Resident Character Sets 125 Code page 865 Nordic...
Страница 126: ...A795 User Guide Programming Supplement Appendix B Resident Character Sets 126 Code page 866 Cyrillic...
Страница 127: ...A795 User Guide Programming Supplement Appendix B Resident Character Sets 127 Code page 1252 Windows Latin 1...
Страница 128: ...189 9200281 E A795 D100 PS 05 01 TM...