TH320/TH420
Programmers Guide
73
Busy line and fault conditions
If the printer is in error condition (cover is open, paper is exhausted…), the printer will still accept data,
respond to the batch mode status commands (1B 76 and 1B 75 0), handle the cash drawer
commands, and not go busy until it actually tries to execute a print command. Then it will stay busy
and stop processing data out of the receive buffer until the condition clears. It will respond to the real
time commands as described below.
Real-time status transmission
GS sequence DLE sequence
ASCII
GS EOT n
DLE EOT n
Hexadecimal 1D04n 1004n
Decimal
29 4 n 16 4 n
Value of n
GS/DLE sequence
1 = Transmit printer status
2 = TransmitRS-232cbusystatus
3 = Transmit error status/Cancel slip waiting status
4 = Transmit receipt paper status
5 = Slip paper status
6 = Validation paper status
The command transmits the selected one byte printer status specified by n command within a few m
sec according to the following parameters. This command includes two sequences: GS (1D) and DLE
(0
×
10).
Exceptions
The command is ignored if n is out of range.
An application using DLE (0
×
10) 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 A756, that had a dedicated connector and resultant dedicated status reporting for each
cash drawer, TH320/420 have 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
On
00
04
0
4
One or both cash drawers open.
Both cash drawers closed.
3
Off
On
00
08
0
8
Not busy at the RS-232c interface.
Printer is busy at the RS-232cinterface.
4
On
10
16
Fixed to On.
5
Undefined.
6
Undefined.
7
Off
00
0
Fixed to Off.
Summary of Contents for TH320
Page 1: ...TH320 TH420 Two Color Thermal Impact Hybrid Printer Programmers Guide ...
Page 75: ...TH320 TH420 Programmers Guide 67 ...
Page 121: ...TH320 TH420 Programmers Guide 113 Character Sets Character code 437 USA Standard Europe ...
Page 122: ...Programmers Guide TH320 420 114 Codepage 737 Greek ...
Page 123: ...TH320 TH420 Programmers Guide 115 Codepage 850 Multilingual ...
Page 124: ...Programmers Guide TH320 420 116 Codepage 852 Slavic ...
Page 125: ...TH320 TH420 Programmers Guide 117 Codepage 857 Turkish ...
Page 126: ...Programmers Guide TH320 420 118 Codepage 858 with Euro symbol ...
Page 127: ...TH320 TH420 Programmers Guide 119 Codepage 860 Portuguese ...
Page 128: ...Programmers Guide TH320 420 120 Codepage 862 Hebrew ...
Page 129: ...TH320 TH420 Programmers Guide 121 Codepage 863 French Canadian ...
Page 130: ...Programmers Guide TH320 420 122 Codepage 865 Nordic ...
Page 131: ...TH320 TH420 Programmers Guide 123 Codepage 866 Cyrillic ...
Page 132: ...Programmers Guide TH320 420 124 Codepage 1252 Windows Latin 1 ...
Page 134: ...Programmers Guide TH320 420 126 Codepage 1255 Hebrew ...
Page 142: ...Programmers Guide TH320 420 134 TH420 Additional Features ...
Page 156: ......
Page 157: ...TH320 TH420 Programmers Guide Wincor Nixdorf International GmbH D 33094 Paderborn ...