beautypg.com

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

Page 216

background image

Sample Applications A-5

S a m p l e 5

Function

Uses the scanner.

Algorithm

1. Enables the scanner with scnOpenScanner.

2. Waits for the operator to press the trigger.

3. Initiates a scan with scnGets.

4. Disables the scanner with scnCloseScanner.

S a m p l e 6

Function

Scans and prints.

Algorithm

1. Initializes the Print subsystem using pclInit without allocating

font storage memory.

2. Calibrates the supplies with pclCalibrate.

3. Loads a fixed format with pclWrite.

4. Enables the scanner with scnOpenScanner.

5. Waits for the operator to press the trigger or b. If the

operator presses b, continue with step 13.

6. Initiates a scan with scnGets.

7. Uses pclBatteryOktoPrint to check whether the battery is

charged enough for printing.

8. Prompts the operator to enter a quantity and press either the

trigger or e. Or, if the operator presses b, jump to
step 13.