beautypg.com

Citizen Systems Model CMP-10 User Manual

Page 37

background image

— 35 —

ESC `

[Function]

Returning the battery voltage and Printer Head temperature

[Code]

<1B>H<60>H

[Outline]

When this command is send to CMP-10, the printer will return the current value of
battery voltage and the current temperature of the printer thermal head.

• Battery voltage is returned in the format: battery voltage × 10 + 20H and head

temperature is returned in the format: head temperature + 20H.

[Sample Program]

PRINT #1, CHR$ (&H1B) + “ ` ”;

[Print Results]

Suppose the battery voltage is 7.8 volts and head temperature is 40°C.

Then CMP-10 will return <6C>H, <48>H to the host.

This values are calculated as follows:

Volatge: 7.8 × 10 = 78 + 32 =110 which is 6CH.
Temperaure: 40 + 32 = 72 which is 48H.

32 is equal to 20H.