Status Polling; Inq Uiry Request (Enq); Inquiry Response - Avery Dennison Monarch Tabletop Printer 2 Reference Manual

Table of Contents

Advertisement

S T A T U S P O L L I N G
This chapter explains how to use status polling.
There are two types of Status Polling:
Inquiry Request—information about the readiness of the printer.
Job Request—information about the current (or las t received) job downloaded to the printer.
I n q u i r y R e q u e s t ( E N Q)
An ENQ character acts as a reques t for printer status information. Send an ENQ in front of, in
the middle of, or im m ediately following any packet downloaded to the printer. An ENQ is a
com mand that can be executed as part of a packet or sent on its own (us ing a com munications
program). An ENQ is proc es sed imm ediately. The ENQ charac ter is user defined.
The ENQ character does not appear as a vis ible character; however, this manual repres ents the
ENQ character as

Inquiry Response

Printer status is returned to the host in a 3-byte (3-c haracter) sequence. The first byte is the
non-printable user-defined ENQ c haracter, whic h is not visible on the res ponse. The sec ond and
third bytes are printer s tatus codes . See the ENQ Referenc e Tables for the meaning of bytes 2
and 3.
Exam ple:
AB
The status codes (A and B in this c as e) are ASCII equivalents to the hexadec imal bits that
represent the various types of status res ponses. This response indicates that the printer is
online (Character A) and that there is a stoc k fault (Character B).
Exam ple:
??
Indicates that this is the firs t ENQ res ponse s ince the printer was turned on. Send another ENQ
im m ediately to receive the printer's s tatus.
Exam ple:
@@
Indicates the printer is offline.
The following graphics can be used as a quick referenc e for the Status of Byte #2 and Byte #3.
Byte #1 is the non-printable us er-defined ENQ character.
.
Classification: Avery Dennison – Public
7

Status Polling 7-1

Advertisement

Table of Contents
loading

Table of Contents