beautypg.com

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

Page 66

background image

Chapter 4
Using the Remote I/O Link
(Node Adapter)

4–29

The following program was written using Microsoft

C Version 5.10 with an

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

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 interrupt control line. This is
determined by the jumper setting on the board itself.

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

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

1. Trigger Toolset 1. This initiates an inspection cycle.

2. Read Results Toolset 1. Reads the 128 discrete input bits.

3. Read Configuration. Uploads the entire CVIM module configuration

including template data.

4. Write Configuration. Downloads the entire CVIM module

configuration including template data.

5. Quit.

Example 6008–SI Program