Specifications
ZPL Commands
~HB
164
45541L-004 Rev. A ZPL II Programming Guide 9/15/06
~HB
Battery Status
Description When the ~HB command is sent to the printer, a data string is sent back to the
host. The string starts with an
<STX> control code sequence and terminates by an
<ETX><CR><LF> control code sequence.
Format ~HB
Parameters: when the printer receives the command, it returns:
<STX>bb.bb,hh.hh,bt<ETX><CR><LF>
Comments This command is used for the power-supply battery of the printer and should not
be confused with the battery backed-up RAM.
Important • This command only responds to mobile printers.
<STX> = ASCII start-of-text character
bb.bb = current battery voltage reading to the nearest 1/4 volt
hh.hh = current head voltage reading to the nearest 1/4 volt
bt = battery temperature in Celsius
<ETX> = ASCII end-of-text character
<CR> = ASCII carriage return
<LF> = ASCII line feed character