EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: asynMotorAxis
From: "Koennecke Mark \(PSI\) via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 7 Feb 2020 10:33:30 +0000
Hi,

I am writing a motor driver for an old piece of french equipment called EuroMove. 
This is going well. But the thing does not implement homing in the controller. I try
to implement this in the asynAxis driver. To that purpose, I need the motor resolution. 
It is in principle there, in the MRES field of the motor record.  I tried:

pC_->getDoubleParm(axisNo_, pC_->motorResolution_, &resolution);

but this gave me a 0 instead of the .01 to which the MRES field had been configured in the 
motor substitutions file. I know the record sees this because the conversion for physical 
units to motor steps is working. 

I also tried motorEncoderRatio_ which returned infinity. 

My question now is how I can get at that information in an asynMotorAxis driver?

Or is my only option to write a configuration command or axis creation command which 
passes the resolution value in?

This is against base3.14.12 and motor6.9 on RHEL7 linux. 

Best Regards,

     Mark Koennecke





Replies:
Re: asynMotorAxis Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: lock/unlock mutex problem Johnson, Andrew N. via Tech-talk
Next: Re: asynMotorAxis Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: send/receive waveform over network. Tomasz Brys via Tech-talk
Next: Re: asynMotorAxis Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 14 Feb 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·