A795 User Guide: Programming Supplement
Chapter 4: Programming commands
85
3 = Transmit error status
Bit Status Hex Decimal Function
0
Off
00
0
Fixed to off.
1
On
02
2
Fixed to on.
2
Off
00
0
Fixed to off.
3
Off
00
0
No knife error.
On
08
8
Knife error occurred.
4
On
10
16
Fixed to on.
5
Off
00
0
No unrecoverable error.
On
20
32
Unrecoverable error occurred.
6
Off
00
0
Thermal printhead temp.
and power supply voltage
are in range.
On
40
64
Thermal print head temp.
or power supply voltage
are out of range.
7
Off
00
0
Fixed to off
4 = Transmit receipt paper status
Bit Status Hex Decimal Function
0
Off
00
0
Fixed to off
1
On
02
2
Fixed to on
2
Off
00
0
Paper adequate
On
04
4
Paper low
(if paper low sensor enabled)
3
Off
00
0
Paper adequate
On
08
8
Paper low
(if paper low sensor enabled)
4
On
10
16
Fixed to on
5
Off
00
0
Paper present
On
20
32
Paper exhausted
6
Off
00
0
Paper present
On
40
64
Paper exhausted
7
Off
00
0
Fixed to off
Real time request to printer
GS sequence
DLE sequence
ASCII
GS ETX n
DLE ENQ n
Hexadecimal
1D 03 n
10 05 n
29 3 n
16 5 n
Value of n:
1 = recover and restart
2 = recover and clear buffers
The printer responds to a request from the host specified
by n. This command includes two sequences: GS and
DLE. The operations performed depend on the value of n,
according to the following parameters.
n = 1
Restarts printing from the beginning of the line where an
error occurred, after recovering from the error. Print
settings that are normally preserved from line to line, such
as character height and width, are still preserved with this
command. This sequence is ignored except when the
printer is busy due to an error condition.
This command will attempt recovery from a knife error.
Other errors associated with the receipt, such as paper out
or printhead overheating, can be recovered from only by
clearing the specific condition, such as loading paper or
letting the printhead cool down.
n = 2
Recovers from an error after clearing the receive and print
buffers. Print settings that are normally preserved from
line to line, such as character height and width, are still
preserved with this command. This sequence is ignored
except when the printer is busy due to an error condition.
The same error recovery possibilities exist as for n = 1.
Exceptions
The command is ignored if n is out of range.
An application using DLE (0x10) sequence must send
ENQ 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 03 n
sequence, that is handled exactly the same as 10 05 n.