Mobile Printer CPCLProgramming Manual P15-7
BATCH FILES
The printer flash file system can be used to store a start-
up file titled AUTOEXEC.BAT. When the printer is pow-
ered on, this file will be searched for and, if present, the
printer will execute the commands found in this file. The
following example shows how to create an
AUTOEXEC.BAT file and load it into the printer.
! DF AUTOEXEC.BAT
! UTILITIES
SETLP 5 1 40
PRINT
Line one uses the (D)efine (F)ile command to label this
file as AUTOEXEC.BAT. The end of an AUTOEXEC.BAT
file is indicated by a PRINT command as shown in line
four.
When this file is executed, the printer will select font
number 5, size 0 as the default front for line printer mode,
and the printer will advance 40 dots for every carriage-
return (0x0d) received.
Note: Every time a file is created on the printer by using
the "! DEFINE-FORMAT..." or "! DF..." the file
information is written to flash memory. Unlike
RAM, flash memory does not require battery
power for retaining data, and is immune to data
corruption due to static discharge. Although flash
memory is superior to RAM for safeguarding file
contents, it is limited to an average of 10,000 write
cycles (i.e. file creations). The user should use the
file creation commands only when needed to
ensure this write cycle limit is not exceeded.