
1 DATECS
OD 07.01.02/v.1
стр. 4 от 65
EP_2000_PM_EN_V.1.60_Nov.2009.doc
Bit 7
is set, if:
•
There are unprinted lines in the print buffer.
•
There are bytes in the print buffer.
•
The printer is executing a macro.
•
The printer is executing a selftest.
•
The button
<LF>
is pressed –
feeding paper.
LenHi:
Hihg byte of data length of data.
From 00h toо 08h.
LenLo:
Lowg byte of data length of data.
From 00h tо FFh.
Data: 256*LenHi +LenLo
data bytes.
The
maximum
packet
length
is
2048 bytes.
The answer differs from the command by
bit 7
(MSB) in the channel number.
If
bit 7
is
‘0’
, then it is a command, if it is
‘1’
– it is a response. Bit
‘0’
in the
Status
byte
shows if there was an error accepting or processing the data block. If this bit is
‘1’
the
other bits show the type of the error.
The printer never issues a transmission by itself. It always responds as an answer to a
command.
The communication goes like this:
Host – command, Printer – answer;
Host – command, Printer – answer;
etc.
The defined channel is:
1
Printer.
Commands for the printer channel 1:
Command 2
Send data.
The data is copied into the printer's print buffer. If there"s not
enough space into the print buffer, the packet is rejected, and
a status byte with value
3
is returned in the answer.
Command 3
Receive data
If there is data to be transmitted from the printer to the host, it is
transmitted in the data field of the packet, otherwise an empty
packet is received. The application must take care to get the data
fast enough from the output buffer or the data may be corrupt.
Comentarios a estos manuales