forked from epics_driver_modules/motorBase
Modified MMC200Driver.cpp to clear errors if present while polling.
This commit is contained in:
@@ -393,6 +393,13 @@ asynStatus MMC200Axis::poll(bool *moving)
|
||||
|
||||
//setIntegerParam(pC_->motorStatusAtHome_, limit);
|
||||
|
||||
// Clear error buffer
|
||||
if (status & 0x80)
|
||||
{
|
||||
sprintf(pC_->outString_, "%dCER", axisIndex_);
|
||||
status = pC_->writeController();
|
||||
}
|
||||
|
||||
// Read the drive power on status
|
||||
sprintf(pC_->outString_, "%dMOT?", axisIndex_);
|
||||
comStatus = pC_->writeReadController();
|
||||
|
||||
Reference in New Issue
Block a user