ZEBRA MZ 320 3" 4mb Direct Mobile Thermal Receipt Printer With Bluetooth

Programming Manual - Page 188

For MZ 320.

PDF File Manual, 497 pages, Read Online | Download pdf file

MZ 320 photo
Loading ...
Loading ...
Loading ...
Mobile Printing Systems
CPCL Programming Manual
Section 10
Advanced
Utilities
pg. 10-39
continued
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 programming 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 maximum 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
IR or Cable Interface Selection
The printers are normally self configuring for IR or cable data transmission. Plugging in the
communications cable will disable the IR interface; removing the cable will make it active. This
default method of interface selection can be overridden by means of a BHT-PROTOCOL command
in an autoexec. bat file. (Refer to the examples at the end of this section on setting the mode for IR
or cable data transmissions.) BHT-PROTOCOL CABLE enables BHT or BHT-IR protocol via cable. If
the BHT-PROTOCOL CABLE command is not present, data is sent “raw” over the serial cable; if it
is detected BHT-PROTOCOL BHT sends data in the BHT mode; BHT-PROTOCOL BHTIR sends data
in the BHT-IR mode. Performing a two-key reset of the printer will return it to its normal, automatic
selection mode. (Refer to pg. P1-2 in this manual for the reset procedure.)
BHT-BAUD Command
The printers support 9600 and 19200 BPS baud rates. The default baud rate for communication with
Zebra mobile printers is 9600 BPS. Configuring a BHT baud rate will set both the IR and the cable
Loading ...
Loading ...
Loading ...