Rockwell Automation 6008-SV2R VMEbus remote I/O Scanner User Manual
Page 136
![background image](/manuals/580456/136/background.png)
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
sample code for VMEbus operations (bus.c)
sample code for utility routines (utils.c)
6008sv2.h (defines and data structures for
scanner management commands)
cmds.h (function prototypes for cmds.c)
bus.h (function prototypes for bus.c)
utils.h (function prototypes for utils.c)
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