60
UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1
Chapter 7 Reading the Printer's Status
6. Sensors
7. Printer's Status
8. Software and
Hardware Versions
The printer has a number of sensors and setup parameters that can
be read and their status or value returned to the host:
? SYSVAR (<parameter>)
<parameter> = 18
returns selected verbosity level (see 6.13)
<parameter> = 19
returns selected type of error message
(see 6.14)
<parameter> = 20
returns printer's paper type setup
0= Direct thermal printing;
1= Thermal transfer printing
<parameter> = 23
returns status of the ribbon end sensor
(0=No ribbon; 1=Ribbon)
The printer's status with regard to various errors and other condi-
tions can be read and returned to the host using the
PRSTAT
com-
mand:
? (PRSTAT AND <parameter>)
<parameter> = 1
printhead lifted
<parameter> = 2
label not removed
<parameter> = 4
printer out of paper
<parameter> = 8
printer out of transfer ribbon
Parameters can be combined, e.g.
<3>
checks for both “printhead
lifted” and “label not removed” conditions. The printer will return
1 (= yes) or 0 (= no).
The version of EasyCoder 301 software, the type of printer family
and the type of CPU board can be read using a
VERSION$
com-
mand:
? VERSION$[(type of info)]
<type of info> = 0
the version of EasyCoder 301 software
<type of info> = 1
301 = EasyCoder 301
<type of info> = 2
1-301700 = CPU board 700