
1 DATECS
OD 07.01.02/v.1
стр. 5 от 65
EP_2000_PM_EN_V.1.60_Nov.2009.doc
Command 4
Get printer status.
5 data bytes returned in response:
BufferHi BufferLo PrStatus Volt Temperature
BufferHi
High byte of the count of free bytes in input
buffer.
BufferLo
Low byte of the count of free bytes in input
buffer.
PrStatus
Printer status.
The following bits defined:
Bit 0
Battery low
Bit 1
Too hot
Bit 2
No paper
Volt
The battery voltage in units 0.1V
Temperature
The head temperature in degrees Celsius.
If free bytes in input buffer are more than
65535 (FFFFh)
, then
FFFFh
is returned.
Communication example (all bytes hexadecimal):
Send data:
>>> 01 02 00 05 11 22 33 44 55
<<< 81 00 00 00
Send data with error:
>>> 01 02 00 05 11 22 33 44 55
<<< 81 01 00 00
>>> 01 02 00 05 11 22 33 44 55
<<< 81 01 00 00
>>> 01 02 00 05 11 22 33 44 55
<<< 81 00 00 00
Receive data: >>> 01 03 00 00
<<< 81 00 00 00
>>> 01 03 00 00
<<< 81 00 00 04 11 22 33 44
>>> 01 03 00 00
<<< 81 00 00 00
Get status:
>>> 01 04 00 00
<<< 81 00 00 05 3F F8 01 49 27
Comentarios a estos manuales