Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual
Page 215

A-4 Programmer’s Manual
S a m p l e 4
Function
Prints using fonts and formats loaded with pclOpen.
Algorithm
1. Initializes the Print subsystem with pclInit, allocating 24,000
bytes of font storage memory.
2. Calibrates the supplies with pclCalibrate.
3. Loads FONTS.PCL with pclOpen. This file contains an MPCLII
font packet.
4. Loads FORMATS.PCL with pclOpen. This file contains an
MPCLII format packet.
5. Loads a fixed batch packet with pclWrite. The quantity in the
batch is 0, so the printer images the format, but does not print
it.
6. Waits for the operator to press the trigger.
7. Uses pclBatteryOkToPrint to check whether the battery is
charged enough for printing.
8. Loads a batch update packet with pclWrite.
9. Waits until the label prints by checking pclStatus repeatedly
until it returns something other than “busy.”
10. Closes the Print subsystem with pclClose.