Added error message
This commit is contained in:
@@ -364,6 +364,10 @@ asynStatus sinqAxis::move(double position, int relative, double minVelocity,
|
||||
getAxisParamChecked(this, encoderType, &encType);
|
||||
getAxisParamChecked(this, motorStatusHomed, &motorStatHomed);
|
||||
if (strcmp(encType, IncrementalEncoder) == 0 && motorStatHomed == 0) {
|
||||
asynPrint(pC_->pasynUser(), ASYN_TRACE_ERROR,
|
||||
"Controller \"%s\", axis %d => %s, line "
|
||||
"%d:\nAxis needs to be homed first.\n",
|
||||
pC_->portName, axisNo(), __PRETTY_FUNCTION__, __LINE__);
|
||||
setAxisParamChecked(this, motorErrorMessage,
|
||||
"Motor needs to be homed first.");
|
||||
return asynError;
|
||||
|
||||
Reference in New Issue
Block a user