Specifications
Mobile Printing Systems
CPCL Programming Manual
Section 15
Printer
Configuration
& Setup
pg. 15-7
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 repeatedly. (See the discussion on the RE_RUN command immediately following.) 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.
RUN.BAT Example
Input:
! DF RUN.BAT
! 0 200 200 210 1
CENTER
BARCODE-TEXT 7 0 5
BARCODE 128 1 1 50 0 90 \\
RE-RUN
FORM
PRINT
Output:
continued
Index
Appendices