Rockwell Automation 6008-SV2R VMEbus remote I/O Scanner User Manual

Page 136

Advertising
background image

Chapter

Programming the Scanner

8

8Ć2

There are two ways to determine whether a command is complete. You
can poll the confirmation status bye or you can wait for an interrupt.

If you: You should:
poll for confirmation status

clear the confirmation status byte of the command prior

to executing the command. When the command

completes, the scanner returns a value to the

confirmation status byte. The value 00H means the

command completed successfully; any other value

indicates an error.

wait for an interrupt

wait for the interrupt you specified in the

commandĆcomplete interrupt byte of the SETUP

command. You can specify interrupt values 01-07.

The following code shows examples of programming the scanner
management commands. There is also sample code for various utilities
and files needed for the scanner management commands as they are
shown. See the following table for a list of the programming examples.

If see example code for: go to page:
the scanner management commands (cmds.c)

SETUP

AUTOCONFIGURE

SCAN LIST

FAULT DEPENDENT GROUP

SET MODE

LINK STATUS

BT WRITE

BT READ

CONTINUOUS BT WRITE

CONTINUOUS BT READ

RESET

8Ć3

8Ć5

8Ć7

8Ć8

8Ć10

8Ć11

8Ć13

8Ć13

8Ć15

8Ć15

8Ć17

sample code for VMEbus operations (bus.c)

8Ć18

sample code for utility routines (utils.c)

8Ć22

6008sv2.h (defines and data structures for

scanner management commands)

8Ć29

cmds.h (function prototypes for cmds.c)

8Ć33

bus.h (function prototypes for bus.c)

8Ć33

utils.h (function prototypes for utils.c)

8Ć33

ATTENTION: These examples are meant to help you create
your own programs. They need modification to work correctly
on your processor system.

Knowing When a Command

Is Complete

Programming Examples of

Each Scanner Management

Command

Advertising
This manual is related to the following products: