SATO M5900RV Operation Manual page 38

Direct thermal
Table of Contents

Advertisement

4. Interface Specifications
Operation Manual
Status Response
The Bi-Directional protocol is an advanced version of bi-directional
communications where the printer can also report the number of
labels remaining to be printed for the current print job. Upon receipt
of an ENQ command, the printer responds with nine bytes of status
information bounded by an STX/ETX pair. The Bi-Directional pro-
tocol works only in the Multi Job Buffer mode. The status informa-
tion is defined as follows:
<STX>{2 Byte ID}{1 Status Byte}{6 Byte Label Remain-
ing}<ETX>
ID - This is a two byte number identifying the current print job ID.
The print job ID is defined using the <ESC>ID Job ID command
transmitted with the print job, (see Job ID Store in the command
listing for more information on how to use this command). The
range is from 00 to 99.
Status - A single byte defining the current status of the printer, (see
the Status Byte Definition table).
Label Remaining - Six bytes defining the number of labels remain-
ing in the current print job. The range is from 000000 to 999999
labels.
If an ENQ is received after the print job specified in the ID bytes has
been completed, or there is no data in the buffer, the printer will
respond with two "space" characters (20 hexadecimal) for the ID
number and six "zero" characters (30 hexadecimal) in the Remain-
ing Labels bytes.
If a CAN (18 hexadecimal) command is received, it will stop the
print job and clear all data from the receive and print buffers. A
delay of five milleseconds or more is required before any new data
can be downloaded. The CAN command is effective immediately
upon receipt, even if the printer is off-line or in an error condition.
The printer will return an ACK (06 hexadecimal) if there is no printer
error condition and a NAK (15 hexadecimal) if an error condition
exists.
Upon receipt of a valid print job (<ESC>A...<ESC>Z), and ACK (06
hexadecimal) will be returned by the printer if there are no errors
and a NAK (16 hexadecimal) if a printer error exists.
38
M5900RV

Advertisement

Table of Contents
loading

Table of Contents