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

Page 22

Advertising
background image

Printer Features 2-9

Using the Scanners

To use the either scanner, the application must

1. Enable the scanner with scnOpenScanner or

scnOpenScannerShared. scnOpenScanner takes over the
printer’s serial port (preventing other RS-232
communications), but scnOpenScannerShared shares the
port. Therefore, when using scnOpenScanner, the
application should disable the scanner immediately before
serial communications and enable it immediately
afterwards. To avoid processing delays, use
scnOpenScannerShared when possible.

2. Configure the scanner (optional). To learn how to configure

the scanner, see the appropriate scn functions in Chapter
4, “Function Reference”.

3. Call various scanner functions, such as scnGets.

4. Close the scanner with scnCloseScanner.

Scanner Function Overview

Application

P r o c e s s i n g

s c n G e t c h

s c n G e t c h e

s c n S c a n n e r H i t

s c n G e t B a r C o d e T y p e

s c n G e t s

s c n G e t S c a n n e d D a t a

s c n G e t s

s c n T r i g g e r

Scanner Buffer

Application Buffer

2

1

3

2

Advertising