EasyManua.ls Logo

Rockwell Automation Allen-Bradley ControlLogix 1756-MVI - Page 43

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
MVI Backplane API 3-21
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; // Reserved
WORD DeviceType; // Reserved
WORD ProductCode; // Device model code
BYTEM MajorRevision; // Device major revision
BYTE MinorRevision; // Device minor revision
DWORD SerialNo; // Serial number
BYTE Name[32]; // Device name (string)
BYTE Month; // Date of manufacture - month
BYTE Day; // Date of manufacture - day
WORD Year; // Date of manufacture - year
} MVIBPMODULEINFO;
Return Value:
MVI_SUCCESS version information was read successfully.
MVI_ERR_NOACCESS
handle
does not have access
Example:
MVIHANDLE Handle;
MVIBPMODULEINFO modinfo;
/* print module name */
MVIbp_GetModuleInfo(Handle,&modinfo);
printf(“Name is %s\n”, modinfo.Name);

Table of Contents

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

Related product manuals