Rockwell Automation Allen-Bradley ControlLogix 1756-MVI Programming Reference Manual page 81

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

Advertisement

MVIcip_GetVersionInfo
Syntax:
int
MVIcip_GetVersionInfo(MVIHANDLE handle,
MVICIPVERSIONINFO *verinfo);
Parameters:
handle
handle returned by previous call to MVIcip_Open
verinfo
pointer to structure of type MVICIPVERSIONINFO
Description:
MVIcip_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
MVIcip_Open.
The MVICIPVERSIONINFO structure is defined as follows:
typedef struct tagMVICIPVERSIONINFO
{
WORD
APISeries;
WORD
APIRevision;
WORD
BPDDSeries;
WORD
BPDDRevision;
} MVICIPVERSIONINFO;
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
Example:
MVIHANDLE
MVICIPVERSIONINFO
/* print version of API library */
MVIcip_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 */
/* Backplane device driver series */
/* Backplane device driver revision */
version information was read successfully
handle does not have access
Handle;
verinfo;
Publication 1756-RM004B-EN-P - October 2000
CIP Messaging API
4-29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents