Fixed error messages
This commit is contained in:
@@ -33,7 +33,7 @@ turboPmac exports the following IOC shell functions:
|
|||||||
|
|
||||||
The full turboPmacX.cmd file looks like this:
|
The full turboPmacX.cmd file looks like this:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
# Define the name of the controller and the corresponding port
|
# Define the name of the controller and the corresponding port
|
||||||
epicsEnvSet("DRIVER_PORT","turboPmacX")
|
epicsEnvSet("DRIVER_PORT","turboPmacX")
|
||||||
epicsEnvSet("IP_PORT","p$(DRIVER_PORT)")
|
epicsEnvSet("IP_PORT","p$(DRIVER_PORT)")
|
||||||
|
|||||||
@@ -620,13 +620,15 @@ asynStatus turboPmacAxis::handleError(int error, char *userMessage,
|
|||||||
if (pC_->getMsgPrintControl().shouldBePrinted(
|
if (pC_->getMsgPrintControl().shouldBePrinted(
|
||||||
pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__, true,
|
pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__, true,
|
||||||
pC_->pasynUser())) {
|
pC_->pasynUser())) {
|
||||||
asynPrint(pC_->pasynUser(), ASYN_TRACE_ERROR,
|
asynPrint(
|
||||||
|
pC_->pasynUser(), ASYN_TRACE_ERROR,
|
||||||
"Controller \"%s\", axis %d => %s, line %d\nLost feedback "
|
"Controller \"%s\", axis %d => %s, line %d\nLost feedback "
|
||||||
"from auxiliary device during movement (P%2.2d01 = %d).%s\n",
|
"from auxiliary device during movement (P%2.2d01 = %d).%s\n",
|
||||||
pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__,
|
pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__, axisNo_,
|
||||||
axisNo_, error, pC_->getMsgPrintControl().getSuffix());
|
error, pC_->getMsgPrintControl().getSuffix());
|
||||||
}
|
}
|
||||||
snprintf(userMessage, sizeUserMessage,
|
snprintf(
|
||||||
|
userMessage, sizeUserMessage,
|
||||||
"Lost feedback from auxiliary device during movement (P%2.2d01 = "
|
"Lost feedback from auxiliary device during movement (P%2.2d01 = "
|
||||||
"%d). Please call the support.",
|
"%d). Please call the support.",
|
||||||
axisNo_, error);
|
axisNo_, error);
|
||||||
@@ -644,7 +646,8 @@ asynStatus turboPmacAxis::handleError(int error, char *userMessage,
|
|||||||
error, pC_->getMsgPrintControl().getSuffix());
|
error, pC_->getMsgPrintControl().getSuffix());
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(userMessage, sizeUserMessage,
|
snprintf(
|
||||||
|
userMessage, sizeUserMessage,
|
||||||
"No feedback from auxiliary device before movement (P%2.2d01 = "
|
"No feedback from auxiliary device before movement (P%2.2d01 = "
|
||||||
"%d). Please call the support.",
|
"%d). Please call the support.",
|
||||||
axisNo_, error);
|
axisNo_, error);
|
||||||
|
|||||||
Reference in New Issue
Block a user