EasyManua.ls Logo

Zebra CPCL - RUN.BAT Command;File

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...
P15-8 Mobile Printer CPCLProgramming Manual
RUN.BAT Command/File
The printer will execute the RUN.BAT file on power-up,
if one exists. This file may be a format or label file. The
only time RUN.BAT file is not executed is after a two-key
reset (hold feed key down, turn printer on, release feed
key when printer starts printing).
The following example demonstrates the use of the
RUN.BAT file for an application that uses a bar code
scanner connected to the printer's serial port for data
input. The scanner must be set to the same baud rate as
the printer, and be configured for 8 data bits, 1 stop bit,
no parity. Scanned data must be terminated with both
carriage return and line feed (0x0D 0x0A) characters.
The following RUN.BAT file is first sent to the printer's
flash file system. When the printer is turned ON this file
is found and executed. The keyword RE-RUN is used in
the file to instruct the printer to execute this file repeat-
edly. In this case, the BARCODE command data will be
taken from the serial input.
The printer will produce a label each time a bar code is
scanned.

Related product manuals