Miscellaneous Functions - Rockwell Automation Allen-Bradley ControlLogix 1756-MVI Programming Reference Manual

Multi-vendor interface module
Hide thumbs Also See for Allen-Bradley ControlLogix 1756-MVI:
Table of Contents

Advertisement

3-20
MVI Backplane API
Publication 1756-RM004B-EN-P - October 2000

Miscellaneous Functions

MVIbp_GetVersionInfo
Syntax:
int
MVIbp_GetVersionInfo(MVIHANDLE handle,
MVIBPVERSIONINFO *verinfo);
Parameters:
handle
handle returned by previous call to MVIbp_Open
verinfo
pointer to structure of type MVIBPVERSIONINFO
Description:
MVIbp_GetVersionInfo retrieves the current version of the API library
and the backplane device driver. The information is returned in the
structure verinfo. handle must be a valid handle returned from
MVIbp_Open.
The MVIBPVERSIONINFO structure is defined as follows:
typedef struct tagMVIBPVERSIONINFO
{
WORD
APISeries;
WORD
APIRevision;
WORD
BPDDSeries;
WORD
BPDDRevision;
} MVIBPVERSIONINFO;
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
Example:
MVIHANDLE
MVIBPVERSIONINFO
/* print version of API library */
MVIbp_GetVersionInfo(Handle,&verinfo);
printf("Library Series %d, Rev %d\n", verinfo.APISeries, verinfo.APIRevision);
printf("Driver Series %d, Rev %d\n", verinfo.BPDDSeries,
verinfo.BPDDRevision);
/* API series */
/* API revision */
/* MVI driver series */
/* MVI driver revision */
version information was read successfully.
handle does not have access
Handle;
verinfo;

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents