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

Programming Techniques 6-5
L o a d i n g M u l t i p l e P a c k e t s T o g e t h e r
The application can load multiple packets together after it 
initializes the Print subsystem. You can create one or more text 
files containing any number of packets, and then pass those file 
names to pclOpen. The application must call pclOpen only 
once per file. 
If the packet file contains a format and a batch, the call to 
pclOpen also prints labels. 
SAMPLE4.C in the Samples sub-directory illustrates loading 
multiple packets together. 
B u i l d i n g P a c k e t s D y n a m i c a l l y
An application can use fixed packets or packets that change 
every time they are used, such as in an application where the 
operator enters the quantity for the batch. When packets 
change every time they are used, the application must build the 
packet dynamically. 
SAMPLE3.C in the Samples sub-directory illustrates building 
packets dynamically. 
U s i n g t h e S c a n n e r
An application uses the printer’s scanner (either the 1222 or the 
1223) to read bar codes as follows: 
1. Enable the scanner with scnScannerOpen or
scnOpenScannerShared.
2. If necessary, configure the scanner using the scnGetx x x
and scnSetx x x functions.
3. Use any scanner function to operate the scanner. These
functions are described in Chapter 4 and all begin with an 
scn prefix. 
4. Disable the scanner with scnCloseScanner.
