beautypg.com

Programming sequence, Programming sequence -2, Access the scanner -2 – Rockwell Automation 1747-PCINT API Software for 1746 I/O User Manual

Page 28

background image

3–2

Developing Applications

Publication 1747-6.5.3 June 1998

Programming
Sequence

Follow this programming sequence when you develop your application.

Access the scanner

The host application must first call OC_OpenScanner to gain access to the scanner.
Once an application has access, no other application can gain access to the scanner.
When the application no longer requires access to the scanner, it must call
OC_CloseScanner to release access of the scanner to other applications.

Once the scanner is opened, you must call OC_CloseScanner before exiting
the application.

Access the scanner

1

Initialize the scanner

2

Configure the scanner

3

Control scanner
operation

4

Scan I/O

5

Initialize the scanner

2

This manual is related to the following products: