.

MEISqNodeMonitorLocation

Definition

 
typedef struct MEISqNodeMonitorLocation {
long *addr;
unsigned long mask;
unsigned long rightShift;
} MEISqNodeMonitorLocation;
  Change History: Added in the 03.04.00.

Description

MEISqNodeMonitorLocation is a structure to decode the monitor field. It contains a controller address, bit mask, and bit shift information for the specific monitor field: MEISqNodeMonitorValueIndexA, MEISqNodeMonitorValueIndexB, or MEISqNodeMonitorValueIndexC.

 
addr

address for the drive monitor field

mask

bit mask to apply to the monitor field

rightShift

bit shift to apply to monitor field

Sample Code

Read and display the supported monitor field information.


MEIMotorConfig MEISqNodeDriveMonitorInfo monInfo;

returnValue =
meiSqNodeDriveMonitorInfo(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\nMonitor Locations:\n");
for(i = 0; i < monInfo.monitorCount; i++) {
printf(" %c Controller address 0x%x, mask 0x%x, right shift %d\n",
'A'+ i, monInfo.location[i].addr, monInfo.location[i].mask, monInfo.location[i].rightShift);
}
}

See Also

MEISqNodeMonitorConfigInfo | MEISqNodeDriveMonitorInfo | meiSqNodeDriveMonitorInfo |
MEISqNodeMonitorValueIndex

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering