Minor fixes to the PhytronDriver

Removed some annoying messages grom Nanotec Driver
This commit is contained in:
2019-10-10 11:35:25 +02:00
parent bf2ff63a4b
commit 3133d933fa
3 changed files with 7 additions and 5 deletions

View File

@ -12,8 +12,8 @@ cd ${TOP}
dbLoadDatabase "../../dbd/sinqEPICS.dbd" dbLoadDatabase "../../dbd/sinqEPICS.dbd"
#drvAsynIPPortConfigure("serial1", "129.129.195.58:22222",0,0,0) drvAsynIPPortConfigure("serial1", "129.129.195.58:22222",0,0,0)
drvAsynIPPortConfigure("serial1", "localhost:9090",0,0,0) #drvAsynIPPortConfigure("serial1", "localhost:9090",0,0,0)
PhytronCreateController("phy","serial1","0",1,0); PhytronCreateController("phy","serial1","0",1,0);
### Motors ### Motors

View File

@ -396,7 +396,7 @@ asynStatus NanotecAxis::poll(bool *moving)
pPtr++; pPtr++;
posVal = atoi(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_->motorPosition_, (double)posVal);
//setDoubleParam(pC_->motorEncoderPosition_, position); //setDoubleParam(pC_->motorEncoderPosition_, position);
@ -409,8 +409,8 @@ asynStatus NanotecAxis::poll(bool *moving)
pPtr = strchr(reply,'$'); pPtr = strchr(reply,'$');
pPtr++; pPtr++;
statVal = atoi(pPtr); statVal = atoi(pPtr);
errlogPrintf("Axis %d, reply %s, statVal = %d\n", //errlogPrintf("Axis %d, reply %s, statVal = %d\n",
axisNo_, reply, statVal); // axisNo_, reply, statVal);
setIntegerParam(pC_->motorStatusDone_, false); setIntegerParam(pC_->motorStatusDone_, false);
*moving = true; *moving = true;

View File

@ -324,6 +324,8 @@ asynStatus PhytronAxis::setPosition(double position)
//static const char *functionName = "PhytronAxis::setPosition"; //static const char *functionName = "PhytronAxis::setPosition";
char command[COMLEN], reply[COMLEN]; char command[COMLEN], reply[COMLEN];
errlogPrintf("PhytronAxis::setPosition called with %lf\n", position);
sprintf(command, "%s%cP22S%f", pC_->selector,phytronChar, position/1000.); sprintf(command, "%s%cP22S%f", pC_->selector,phytronChar, position/1000.);
status = pC_->transactController(axisNo_,command,reply); status = pC_->transactController(axisNo_,command,reply);
sprintf(command, "%s%cP20S%f", pC_->selector,phytronChar, position/1000.); sprintf(command, "%s%cP20S%f", pC_->selector,phytronChar, position/1000.);