diff --git a/iocBoot/iocsinqEPICS/phytest.cmd b/iocBoot/iocsinqEPICS/phytest.cmd index 84a7076..b2b6053 100755 --- a/iocBoot/iocsinqEPICS/phytest.cmd +++ b/iocBoot/iocsinqEPICS/phytest.cmd @@ -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 diff --git a/sinqEPICSApp/src/NanotecDriver.cpp b/sinqEPICSApp/src/NanotecDriver.cpp index b82cfb5..395325d 100644 --- a/sinqEPICSApp/src/NanotecDriver.cpp +++ b/sinqEPICSApp/src/NanotecDriver.cpp @@ -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; diff --git a/sinqEPICSApp/src/PhytronDriver.cpp b/sinqEPICSApp/src/PhytronDriver.cpp index 7163df8..f9443d4 100644 --- a/sinqEPICSApp/src/PhytronDriver.cpp +++ b/sinqEPICSApp/src/PhytronDriver.cpp @@ -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.);