diff --git a/motorApp/MicronixSrc/MMC200Driver.cpp b/motorApp/MicronixSrc/MMC200Driver.cpp index e714abce..3de0f65b 100644 --- a/motorApp/MicronixSrc/MMC200Driver.cpp +++ b/motorApp/MicronixSrc/MMC200Driver.cpp @@ -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();