Zebra CPCL Programming Manual - page 196
P10-44
Mobile Printer CPCLProgramming Manual
continued
Loading a .DAT file into the BHT
Zebra mobile printers will only print files with the .DAT
extension sent from the BHT. The following example file
CIS.DAT contains a label file that can be loaded from a
PC into the BHT via a serial cable using the TU3.EXE
utility provided by DENSO. The file can then be sent to a
Zebra mobile printer to produce a label. Files with a .DAT
extension contain records composed of one or more
record fields. For CIS.DAT, each record will be specified
as having only one field with a width of 40 bytes. The 40
byte width was chosen because no single line in the
example CIS.DAT file exceeds 40 bytes. The resulting
records transferred to the BHT will each contain a single
field 40 bytes wide. The BHT and BHT-IR protocol will
add space characters as needed to any field containing
less than 40 bytes. Thus the CIS.DAT file contains 24
lines that will be interpreted as 24 records containing a
single field of 40 bytes.
Note that while the example uses the TU3.EXE utility to
download the file from a PC, these files could also be
created under control of an application program execut-
ing directly on the BHT.
The command line that will transfer this file into the BHT
is:
TU3 +MPC +B9600 CIS.DAT +F40
The BHT will now contain the file CIS.DAT.