OperationChapter 2
24 PK80Series 80-Column User’sManual
Print Job Status Report
This simple protocolassures that data delivered to the printer is printed
without mechanicalerror. Each print job to be monitored begins with an
“ESC s n” command, where the “ESCs” marks the start of the print job,
and bit fields within“n” specify the level of error reporting. The end of
the print job is marked by an “ESC e” command.
Note: Spaces are not part of the actual sequences. They are only included
here for readability.
Once the print job status is enabled, any detection of a r equested condi-
tion (see the definitionof “n” below) is reportedimmediately, without the
need to query the printer. The printer will send the same string that r esults
from receipt of a status command(ESC{ST?}). In addition, if requested,
the printer will automatically send the status when the last print line or
FormFeed within the start/end markers is c omplete.
SESC s n Start of print job (0x1B 0x73 n)
Settoreportstatusatendofjob
Settoreportpaperout
Settoreportprintheadjam
Setto report when paperis presentafterpaper out
Settoreporttimeoutduringprint
Settoreportfwd/revkeypressesduringprint
Mustbe zero (reserved)
Note:Annof all zeroes (0x00) will cancel any active auto status messages
set by a previous ESC s n without an ESC e.
SESC e Endof print job (0x1B 0x65)
Response is identical to the status command with Paper Jam and Print Sta-
tus fields added. Status can still be requested by se nding the usual sequence
(ESC{ST?}). See Appendix A, ”Commands,” for information.
Timing Out
When a time out occurs (ESC{BLI}), a status request is sent indicating the
printer has timed out. The current print b uffer is flushed, and subsequent
automatic reporting is cancelled.
The printer will not time out if the sixth bit is set (cancel timeout)when
the ESC s n command is sent to mark the beginning of the print job. If
the job has completed printing and the printer i s idle, then pressing the
Forwardbu tton on the control panel will not send the “print job kill”
message, since there is nothingin the print buffer.
However, pressing both the Forward and Reverse buttons to turn the
printer off will generate the printer off message.