Bematech KC-4112 Rev.1.1 User Manual
Page 25

KC-4112 . Revision 1.1
25
Communication
ASCII
Dec.
Hex.
Description
ENQ
05
05
Serial communication status inquiry. After this command is issued, the
printer returns a status, defined below.
ETX
03
03
Ends buffer – the printer will be BUSY while the printing is performed,
changing status only when the buffer is empty. On serial interfaces DTR
(RTS) will be high while the printing is performed.
STX
02
02
Clears the buffer.
Data Control
ASCII
Dec.
Hex.
Description
CAN
24
18
Cancel last line.
DEL
127
7F
Cancel last character.
Serial interface status byte
The serial interface status byte is composed of 8 bits – 7 through 0 – the most significant bit is Bit 7 and the least
significant bit is Bit 0.
Status bit number
Logic “0”
Logic “1”
0
Printer Off Line
Printer On Line
1
Printer has paper
Printer without paper
2
Paper roll full
Paper roll near end
2 (after ESC L command)
No paper in the presenter
Paper inside the presenter
3
Print head down
Print head raised
4 – 7 Not used (will always be logic “0”).
Parallel interface status byte
The table below shows the printer statuses obtained through the parallel interface, with the PC BIOS function
“Get status printer” (Int 17h – Printer I/O):
Parallel Interface Status Byte
/BUSY
/ACK
PE
SEL ERROR
X
X
X
HEX
Description
1
0
0
1
0
0
0
0
90h
On Line (Remote mode)
1
0
0
0
0
0
0
0
80h
Off Line (Local mode) (*)
1
0
1
0
1
0
0
0
A8h
Paper end
1
0
1
x
0
0
0
0
A0h/B0h
Near paper end
1
0
0
x
1
0
0
0
88h/98h
Head Up (**)
0
0
1
1
0
0
0
0
30h
Disconnected
1
1
0
0
1
0
0
0
C8h
Turned Off