Zebra CPCL Programming Manual - Bht Mode Commands
Mobile Printer CPCLProgramming Manual
P10-49
BHT MODE Commands
This command sets one of several modes of operation to
specify how record data fields delivered by the BHT
protocol are interpreted.
Format:
{command} {mode}
where:
{command}: BHT-MODE
{mode}:
STRIP-ADD-CRLF
Each data field in a record has any
trailing spaces stripped and a CR/LF
(carriage return/line feed) pair added.
The data field (stripped of trailing
spaces and with an appended CR/LF
pair) is then passed to the printer for
processing. This is the default way to
handle data sent to the printer.
RAW
The RAW mode accepts all characters
that make up each data field. Using this
method, any trailing spaces in a data
field will be INCLUDED as data for the
printer to process.
COUNTED STRING
This mode is based on the first charac-
ter of a data field being interpreted as a
count of data bytes that follow. In the
‘counted string’ mode, the number of
bytes specified by the count will be
transferred into the printer. The count
byte's maximum value is limited to the
data field size minus 1.
STRIP-SPACES
This mode eliminates trailing spaces in
continued