State (Long R) - BIXOLON SRP-270 Reference Manual

Linux sdk guide for pos/mobile printer
Hide thumbs Also See for SRP-270:
Table of Contents

Advertisement

2-3 State (LONG R)

This is the property that sets the printer status. It is read only and calls GetStatus() to read
the printer status. The status value can be set in duplicate and each value can be checked
using bitwise operation.
These are the printer status values:
Constant
STS_NORMAL
STS_PAPEREMPTY
STS_COVEROPEN
STS_NEAREND
* Example
ConnectToprinter(port)
......
SetAutoStatusCheck(true);
int status = GetStatus();
if ((status & STS_PAPEREMPTY) == STS_PAPEREMPTY)
......
if ((status & STS_COVEROPEN) == STS_COVEROPEN)
......
.......
Rev. 1.00
Value
0
1
2
4
- 6 -
POS/Mobile Printer
Description
The printer status is normal.
There is no paper.
The paper cover is open.
The paper is low (Near end).

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents