|
59UBI EasyCoder 301 Direct Protocol – Programmer's Guide Ed. 1Chapter 7 Reading the Printer's StatusThe thermal printhead can be tested in three different ways:• FUNCTEST$ ("HEAD")• ? HEAD (type of check)• ? SYSVAR ()? FUNCTEST$ ("HEAD")The returns from the FUNCTEST$ ("HEAD") command are:HEAD OK, SIZE:nnn DOTS (nnn is the number of dots)HEAD LIFTED (lower the printhead and try again)FAULTY PRINTHEAD (an error is detected)? HEAD() = -1 Printhead. Returns -1 if OK, else 0 = -7 Mean resistance of printhead in ohms? SYSVAR () = 21 returns printhead density in dots per mm = 22 returns the number of dots in the printheadThere are a number of counters in the printer's system, that can beread and returned to the host:? SYSVAR () = 14 number of errors detected since last startup = 15 number of errors detected since last SYSVAR(15) = 24 power-up status since last SYSVAR(24)(0 = No; 1=Yes)Note!SYSVAR (24) is important, since essential functions, like countersand error messages will be lost at power up and other functions willbe reset to their default values. Save all such data in the host andretransmit them to the printer as soon as a power-up has been de-tected by a polling program taking advantage of SYSVAR(24).4. Printhead5. SystemCounters
PreviousNext |