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  2020  2021  2022  <20232024  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  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: Simulated limit switches on motorSim motor
From: Torsten Bögershausen via Tech-talk <tech-talk at aps.anl.gov>
To: "Pearson, Matthew" <pearsonmr at ornl.gov>, "Nariyoshi, Pedro" <nariyosh at frib.msu.edu>, Mark Rivers <rivers at cars.uchicago.edu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 6 Dec 2023 07:46:55 +0100

Hej Matt, Hej Pedro,

Once I had the similar problem:
The "homed" status could not be set for a soft motor.
Reading the question from below asking for the limit switches,
I am tempted to suggest one additional link for all 3 bits.

A pragmatic way could be to allow MSTA field to be set for a soft motor,
addding one possible link.

In my approach this would be a "MINP" field, where the MSTA field can be
"delivered" from an external record.
There are some comments:
As we already have DINP (for done move), the done bit needs to be filtered out from MSTA/MINP. (We may allow a pure MINP including DMOV, but that is probably a later extension)

For the limit switches we need to have the raw switches, RHLS, RLLS,
to be calculated to the proper bit position by a calc record.

There is no real show-stopper, as far as I can see.
The MSTA field is well-defined and unchanged since a long time.
And any user-application can choose which bits that are needed.

Does this makes sense ?
I am happy to make a prototype, is someone able to test it ?

/Torsten


On 2023-12-01 23:59, Pearson, Matthew wrote:
[snip]
The motor record already contains so many fields, but I wonder if it would be helpful to have an INLINK to set these limits (whether the RHLS/RLLS or LLS/HLS, I am not sure).

That’s something I’ve wanted to do in the past as well. For example, if we have a PLC controlled motor, it would typically be integrated using separate records for the setpoint, readback, low limit switch, high limit switch, etc. And it would be nice to just layer a soft motor record on top and have the limit switch indicators work. The way around this is to develop a Asyn motor driver that can talk to the PLC directly (like any other motor controller driver). But having both options available would be nice. I don’t think there’s a technical reason why we couldn’t implement this, it’s just an edge case that no one has gotten round to yet.

An alternative approach (which I’ve implement widely at our site) is to have a separate motor ‘status’ record and display it on the user level screen next to the high level gap/center motors. That could combine the various status fields from the soft motors and the underlying real motors.

Cheers,

Matt

Replies:
Re: Simulated limit switches on motorSim motor Nariyoshi, Pedro via Tech-talk
References:
Simulated limit switches on motorSim motor Nariyoshi, Pedro via Tech-talk
Re: Simulated limit switches on motorSim motor Torsten Bögershausen via Tech-talk
RE: Simulated limit switches on motorSim motor Mark Rivers via Tech-talk
Re: Simulated limit switches on motorSim motor Nariyoshi, Pedro via Tech-talk
RE: Simulated limit switches on motorSim motor Pearson, Matthew via Tech-talk

Navigate by Date:
Prev: Windows 10 LNK1181 error on xml2.lib Abdalla Ahmad via Tech-talk
Next: Re: camonitor vs caput Gerrit Kühn 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  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: RE: Simulated limit switches on motorSim motor Pearson, Matthew via Tech-talk
Next: Re: Simulated limit switches on motorSim motor Nariyoshi, Pedro 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  2020  2021  2022  <20232024 
ANJ, 06 Dec 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·