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

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

Advertisement

MVIbp_GetModuleInfo
Syntax:
int
MVIbp_GetModuleInfo(MVIHANDLE handle,
MVIBPMODULEINFO *modinfo);
Parameters:
handle
handle returned by previous call to MVIbp_Open
modinfo
pointer to structure of type MVIBPMODULEINFO
Description:
MVIbp_GetModuleInfo retrieves identity information for the module.
The information is returned in the structure modinfo. handle must be a
valid handle returned from MVIbp_Open.
The MVIBPMODULEINFO structure is defined as follows:
typedef struct tagMVIBPMODULEINFO
{
WORD
VendorID;
WORD
DeviceType;
WORD
ProductCode;
BYTEM
MajorRevision;
BYTE
MinorRevision;
DWORD
SerialNo;
BYTE
Name[32];
BYTE
Month;
BYTE
Day;
WORD
Year;
} MVIBPMODULEINFO;
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
Example:
MVIHANDLE
MVIBPMODULEINFO
/* print module name */
MVIbp_GetModuleInfo(Handle,&modinfo);
printf("Name is %s\n", modinfo.Name);
// Reserved
// Reserved
// Device model code
// Device major revision
// Device minor revision
// Serial number
// Device name (string)
// Date of manufacture - month
// Date of manufacture - day
// Date of manufacture - year
version information was read successfully.
handle does not have access
Handle;
modinfo;
Publication 1756-RM004B-EN-P - October 2000
MVI Backplane API
3-21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents