Fixed bug, it was sending E query to read motor current status, should be W query

This commit is contained in:
MarkRivers
2014-08-28 23:35:05 +00:00
parent 810f3ca891
commit e8c0131a53

View File

@@ -296,7 +296,7 @@ asynStatus MCB4BAxis::poll(bool *moving)
setIntegerParam(pC_->motorStatusAtHome_, limit); setIntegerParam(pC_->motorStatusAtHome_, limit);
// Read the drive power on status // Read the drive power on status
sprintf(pC_->outString_, "#%02dE", axisNo_); sprintf(pC_->outString_, "#%02dW", axisNo_);
comStatus = pC_->writeReadController(); comStatus = pC_->writeReadController();
if (comStatus) goto skip; if (comStatus) goto skip;
driveOn = (pC_->inString_[5] == '1') ? 1:0; driveOn = (pC_->inString_[5] == '1') ? 1:0;