Control Codes
PcOS Series 80PLUS
Programmer's Guide
Printer Status
Page 54
Rev B 4/13/99
Function
Inquire printer ID
ASCII
[ENQ]<21>
Hexadecimal
05H 15H
Decimal
<5><21>
Function
This command returns printer IEEE 1284 ID string.
Response
[ACK]<21><n>{{ID string}
Where
<21> is the echo of command ID, <n> is the number of return bytes in
the ID string.
{ID string} is the IEEE ID return string that follows:
MFG:Ithaca-Periph.;
CMD:M80CL,IPCL;
MDL:80 PcOS;
DES:Ithaca-Peripherals Series 80;
CLS:PRINTER;
Dynamic Response Mode
Dynamic status [ESC] w<n> can be used to allow the host to sense status changes without
sending repeated ENQ commands. The operation of the dynamic response varies depending on
the configuration of the printer. If the printer is configured for Serial or IEEE 1284 operation,
more than one status can be sensed as the printer will respond to status changes as if an [ENQ]
were issued. In parallel mode, only one status should be requested. If more than one bit is active,
the result status on the PE signal is not defined.
The response to dynamic responses is the same as to inquire commands. That is, if cash drawer
status is to be sensed, the PE or ACK/NAK will be the same as for inquire commands.
Function
Enable dynamic response
ASCII
[ESC] w <n>
Hexadecimal
1BH
77H <n>
Decimal
<27><119><n>
IPCL
none
Where n
defines the features that cause dynamic responses.
Bit 0
Cash Drawer 0
ACK/NAK <1>
Bit 1
Cash Drawer 1
ACK/NAK <2>
Bit 2
Paper Out status
ACK/NAK <4>
Bits 3-6
Undefined
Bit 7
Cover Status
ACK/NAK <8>
Dynamic status can be used to allow the host to sense status changes
without sending repeated ENQ commands. The operation of the dynamic
response varies depending on the configuration of the printer. If the printer
is configured for Serial or IEEE 1284 operation, more than one status can
be sensed as the printer will respond to status changes as if an [ENQ] were
issued. In parallel mode, only one status should be requested. If more than
one bit is active, the resulting status on the PE signal will not be defined.
NOTE:
Power up default is paper out on PE signal.