Specifications

Table Of Contents
~HS
Host Status Return
Description: When ~HS is sent to the printer, three data strings are sent back to the
Host. Each string starts with an <STX> control code and is terminated by an
<ETX><CR><LF> control code sequence. To avoid confusion, each string will be
printed on a separate line by the host.
String 1
<STX>aaa,b,c,dddd,eee,f,g,h,iii,j,k,l<ETX><CR><LF>
aaa = communication (interface) settings*
b = paper out flag (1 = paper out)
c = pause flag (1 = pause active)
dddd = label length (value in number of dots)
eee = number of formats in receive buffer
f = “buffer full” flag (1 = receive buffer full)
g = “communications diagnostic mode” flag (1 = diagnostic mode active)
h = “partial format” flag (1 = partial format in progress)
iii = unused (always 000)
j = “corrupt RAM” flag (1 = configuration data lost)
k = temperature range (1 = under temperature)
l = temperature range (1 = over temperature)
*This parameter specifies the printer’s baud rate, number of data bits, number of stop bits,
parity setting and type of handshaking. This value is a 3-digit decimal representation of an
8-bit binary number. To evaluate this parameter, first convert the decimal number to a binary
number. The 9-digit binary number is read according to the following table:
a a a a a = Baud
a
a
a
a
= Handshake
0 = Xon/Xoff
1 = DTR
0000=110
0 001 = 300
0 010 = 600
0 011 = 1200
0 100 = 2400
0 101 = 4800
0 110 = 9600
0 111 = 19200
1 000 = 28800
1 001 = 38400
1 010 = 57600
1 011 = 14400
(available only on certain printer models)
= Parity Odd/Even
0 = Odd
1 = Even
= Disable/Enable
0 = Disable
1 = Enable
= Stop Bits
0 = 2 Bits
1=1Bit
= Data Bits
0 = 7 Bits
1 = 8 Bits
78210
6
5
4
3
aaa=aaaaaaaaa
876543210
(available only on certain printer models)
(available only on certain printer models)
ZPL II Programming Guide Volume One: Command Reference for X.10
150