EasyManua.ls Logo

Rockwell Automation Allen-Bradley ControlLogix 1756-MVI - Initialization and Closing

Rockwell Automation Allen-Bradley ControlLogix 1756-MVI
145 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Publication 1756-RM004B-EN-P - October 2000
3-6 MVI Backplane API
Initialization Functions
MVIbp_Open
Syntax:
int MVIbp_Open(MVIHANDLE *handle);
Parameters:
handle pointer to variable of type MVIHANDLE
Description:
MVIbp_Open acquires access to the API and sets
handle
to a unique ID
that the application uses in subsequent functions. This function must be
called before any of the other API functions can be used.
Return Value:
MVI_SUCCESS API was opened successfully
MVI_ERR_REOPEN API is already open
MVI_ERR_NODEVICE backplane driver could not be accessed
Note:
MVI_ERR_NODEVICE will be returned if the backplane device
driver is not loaded.
Example:
MVIHANDLE Handle;
if (MVIbp_Open(&Handle) != MVI_SUCCESS) {
printf(“Open failed!\n”);
} else {
printf(“Open succeeded\n”);
See Also:
MVIbp_Close
IMPORTANT
Once the API has been opened, MVIbp_Close should
always be called before exiting the application.

Table of Contents

Other manuals for Rockwell Automation Allen-Bradley ControlLogix 1756-MVI

Related product manuals