Example 6008–si program – Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 64

Advertising
background image

Chapter 4
Using the Remote I/O Link

4–27

The following program was written using Microsoft

C Version 6.00 with an

Allen–Bradley 6008–SI Series B card. The program will:

Identify the program and display preliminary information about it.

Prompt the user for the 6008–SI card address. This address is determined
by the DIP switch settings on the card.

Prompt the user for the 6008–SI card baud rate multiplier. The multiplier
is 1 for 57.6K Baud, and 2 for 115.2K Baud. (Note that the 6008–SI card
does not support 230.4K Baud.)

Prompt the user for the 6008–SI card interrupt control line. This is
determined by the jumper setting on the board itself.

Initialize the 6006SI card and prompts the user for the Color CVIM
module rack address (0–7). The Color CVIM module address was
configured on the Color CVIM module monitor using the light pen.

Display a five item menu which allows the user to perform the following
functions:

1. Trigger. This initiates an inspection cycle.

2. Read Results. Reads the 128 discrete input bits of first part results.

3. Read Configuration. Uploads the entire Color CVIM module

configuration.

4. Write Configuration. Downloads the entire Color CVIM module

configuration.

5. Quit

Example 6008–SI Program

Advertising