Minor fixes to the PhytronDriver
Removed some annoying messages grom Nanotec Driver
This commit is contained in:
@ -12,8 +12,8 @@ cd ${TOP}
|
||||
dbLoadDatabase "../../dbd/sinqEPICS.dbd"
|
||||
|
||||
|
||||
#drvAsynIPPortConfigure("serial1", "129.129.195.58:22222",0,0,0)
|
||||
drvAsynIPPortConfigure("serial1", "localhost:9090",0,0,0)
|
||||
drvAsynIPPortConfigure("serial1", "129.129.195.58:22222",0,0,0)
|
||||
#drvAsynIPPortConfigure("serial1", "localhost:9090",0,0,0)
|
||||
PhytronCreateController("phy","serial1","0",1,0);
|
||||
|
||||
### Motors
|
||||
|
@ -396,7 +396,7 @@ asynStatus NanotecAxis::poll(bool *moving)
|
||||
pPtr++;
|
||||
posVal = atoi(pPtr);
|
||||
|
||||
errlogPrintf("Axis %d, reply %s, position %d\n", axisNo_, reply, posVal);
|
||||
//errlogPrintf("Axis %d, reply %s, position %d\n", axisNo_, reply, posVal);
|
||||
setDoubleParam(pC_->motorPosition_, (double)posVal);
|
||||
//setDoubleParam(pC_->motorEncoderPosition_, position);
|
||||
|
||||
@ -409,8 +409,8 @@ asynStatus NanotecAxis::poll(bool *moving)
|
||||
pPtr = strchr(reply,'$');
|
||||
pPtr++;
|
||||
statVal = atoi(pPtr);
|
||||
errlogPrintf("Axis %d, reply %s, statVal = %d\n",
|
||||
axisNo_, reply, statVal);
|
||||
//errlogPrintf("Axis %d, reply %s, statVal = %d\n",
|
||||
// axisNo_, reply, statVal);
|
||||
|
||||
setIntegerParam(pC_->motorStatusDone_, false);
|
||||
*moving = true;
|
||||
|
@ -324,6 +324,8 @@ asynStatus PhytronAxis::setPosition(double position)
|
||||
//static const char *functionName = "PhytronAxis::setPosition";
|
||||
char command[COMLEN], reply[COMLEN];
|
||||
|
||||
errlogPrintf("PhytronAxis::setPosition called with %lf\n", position);
|
||||
|
||||
sprintf(command, "%s%cP22S%f", pC_->selector,phytronChar, position/1000.);
|
||||
status = pC_->transactController(axisNo_,command,reply);
|
||||
sprintf(command, "%s%cP20S%f", pC_->selector,phytronChar, position/1000.);
|
||||
|
Reference in New Issue
Block a user