MPISqNodeDriveMonitorInfo

Definition

typedef struct MPISqNodeDriveMonitorInfo{
long monitorCount;
MPISqNodeMonitorLocation location[MPISqNodeMonitorValueIndexLAST]; long configCount;
const MPISqNodeMonitorConfigInfo *configInfo; /* array of configuration information of size configCount, this info is drive specific */
} MPISqNodeDriveMonitorInfo;

Change History: Added in the 03.04.00.

Description

MPISqNodeDriveMonitorInfo is a structure that contains information about the monitor fields. This structure is useful for determining the number of supported monitor fields, their locations and how to decode them. It is also useful for determining the number of configurable monitor field data inputs and the reading the monitor data-specific information. The monitor field data is SynqNet drive-specific. Not all drives support monitors.

NOTE: SynqNet RMBs (Remote Motion Blocks) or I/O nodes do not support monitors.

monitorCount the number of supported monitor fields.
location an array of MPISqNodeMonitorLocation structures, with length equal to the monitorCount. Each MPISqNodeMonitorLocation structure contains information to decode each monitor field.
configCount the number of configurable monitor field data inputs.
*configInfo a pointer to an array of MPISqNodeMonitorConfigInfo structures, with length equal to configCount. Each MPISqNodeMonitorConfigInfo structure contains information about the configurable monitor field data.

Sample Code

MPISqNodeDriveMonitorInfo monInfo;

returnValue =
mpiSqNodeDriveMonitorInfo(sqNode, driveIndex,
&monInfo); if(returnValue == MPIMessageOK && monInfo.monitorCount) {
printf("Monitor Information:\n");
printf("\rAvailable Monitors A");
if(monInfo.monitorCount > 1) {
printf(", B");
}
if(monInfo.monitorCount > 2) {
printf(", C");
}
printf("\n");
} if(monInfo.configCount) {
printf("\nMonitor Configurations:\n");
for(i = 0; i < monInfo.configCount; i++) {
if(monInfo.configInfo[i].type == MPISqNodeDriveMonitorDataTypeINDEX)
printf(" Index %d", monInfo.configInfo[i].value);
}
else {
printf(" Drive address 0x%x", monInfo.configInfo[i].value);
}
printf(" %s ",monInfo.configInfo[i].description);
}
}

See Also

MPISqNodeMonitorConfigInfo | MPISqNodeMonitorLocation | MPISqNodeMonitorValueIndex | mpiSqNodeDriveMonitorInfo