EasyManua.ls Logo

Zebra CPCL - Mode 1: (Default) Strip trailing spaces and add CR;LF; Mode 2: Include all characters in each field (RAW); Mode 3: Use the first byte as a count of characters to send to the printer; Mode 4: Strip trailing spaces

Zebra CPCL
376 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Mobile Printer CPCLProgramming Manual P10-39
continued
Mode 1: (Default) Strip trailing spaces and add CR/LF
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.
Mode 2: Include all characters in each field (RAW)
The second 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.
Mode 3: Use the first byte as a count of characters to
send to the printer.
This mode is based on the first character of a data field
being interpreted as a count of data bytes that follow. It is
similar to a ‘counted string’ as found in the Pascal pro-
gramming language String data type. In the ‘counted
string’ mode, the number of bytes specified by the count
will be transferred into the printer. The count byte’s maxi-
mum value is limited to the data field size minus 1.
Note that in this example the count byte is shown as
ASCII, but would actually be sent as a binary number.
Mode 4: Strip trailing spaces
This mode eliminates trailing spaces in each data field of
a record. Note that unlike Mode 1 no CR/LF pair is added
to the data after stripping the trailing spaces.
Refer to pgs. P10-44 thru P10-47 for examples using the
BHT-MODE commands

Related product manuals