Bematech MP-4000 TH Programmer's Manual User Manual
Page 43

MP-4000 TH POS Printer Rev.1.4
Programmer’s
Manual
22-aug-2007
Firmware Release: 1.5
43
3.7.2 Serial / USB / EPP interface advanced status bytes
The serial/USB/EPP interface status bytes is composed of 8 bits – 7 through 0 – the
most significant bit is Bit 7 and the least significant bit is Bit 0.
1) Printer Status
7
6 5
4
3
2
1
0
1 Buffer
status
Wait
On / Off
line
Overrun
Error
0 0
Bit 2: Overrun Error – indicates when data sent to printer will be losted.
0 - data received will be printed
1 - data received will be lost
Bit 3: On / Off line – indicates when printer is operational (on-line) or not.
0 - on-line
1 - off-line
Bit 4: Wait – indicates when printer is busy or not.
0 – printer is busy and printing
1 – printer has printed all buffer and is waiting for commands
Bit 6 & 5: Buffer status – details the status of the printer buffer.
00 - buffer empty
01 - buffer less 1/3 full
10 - buffer more 1/3 full
11 - buffer more 3/4 full
2) Off-line Status
7 6 5 4 3 2 1 0
Cover
status
Error
Reported
No paper
Drawer
status
0
Paper
sensor
Paper
near end
sensor
1
Bit 1: Paper near end sensor – informs the status of the paper near end sensor.
0 – there’s paper for printing
1 - there’s few paper for printing
Bit 2: Paper sensor – informs the status of the paper sensor.
0 – there’s paper on sensor
1 – there’s no paper on sensor
Bit 4: Drawer status – indicates status for drawer sensor.
0 – drawer sensor is indicating low level (logical 0)
1 – drawer sensor is indicating high level (logical 1)
Bit 5: No paper – indicates if there is available paper for printing.
0 – there’s paper available
1 – no paper is available
Bit 6: Error Reported – informs if an error was reported on Error Status.
0 – no error reported
1 – there’s error reported
Bit 7: Cover status – tells about the printer paper cover.
0 – cover is open
1 – cover is closed
3) Error Status
7 6 5 4
3
2
1
0
1
Recoverable
error
Non
recoverable
error
1
Cutter
error
Cutter
presence
0 0
Bit 2: Cutter presence – indicates the presence of a cutter on printer.