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: "Nariyoshi, Pedro via Tech-talk" <tech-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>, Torsten Bögershausen <Torsten.Bogershausen at ess.eu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 1 Dec 2023 21:55:45 +0000

Thank you Torsten and Mark,


these templates seem pretty close to what I wanted. I had never looked into the transform record, but it looks quite interesting. I am still trying to decode the entire template, but I didn't see any type of protection to avoid the slit arms from overlapping? I imagine I could probably implement it in the CLC_ expressions. We currently have two approaches:

- use a calc to set up a mask and then use this mask to trigger the move commands in a particular order: used mostly in asymmetrical devices with different arms for each direction

- use calcs to limit the gap/center motion, but it was quite annoying to have the set points update when an arm reaches a limit switch (that was before I had learned about the transform record)


Also, I assume the limit switch indicators don't really work on the virtual motors, correct? 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).




From: Mark Rivers <rivers at cars.uchicago.edu>
Sent: Wednesday, November 29, 2023 1:01 PM
To: Torsten Bögershausen; Nariyoshi, Pedro; tech-talk at aps.anl.gov
Subject: RE: Simulated limit switches on motorSim motor
 
[EXTERNAL] This email originated from outside of FRIB

We heavily use Tim’s other 2-slit database at our beamlines:

 

optics/opticsApp/Db/2slit.db at master · epics-modules/optics (github.com)

 

Mark

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Torsten Bögershausen via Tech-talk
Sent: Wednesday, November 29, 2023 2:01 AM
To: Nariyoshi, Pedro <nariyosh at frib.msu.edu>; tech-talk at aps.anl.gov
Subject: Re: Simulated limit switches on motorSim motor

 

Hej Pedro,

 

If you are working with a slit, it may be useful to look at a slit system

developed by Tim Mooney:

 

<https://github.com/epics-modules/optics/blob/master/opticsApp/Db/2slit_soft.vdb>

 

I had stolen that once, redone stuff and tested.

<https://github.com/EuropeanSpallationSource/m-epics-ethercatmc/blob/master/ethercatmcApp/Db/ethercatmcslit_soft.template>

But I don’t know, what the actual status is,

at the end, we decided to do the slit code inside the motion controller.

 

To be honest, we are not there fully yet, handling all the corner cases.

 

Which controller do you use ?
My suggestion would be to simulate the motor controller.

And not using the sim-motor.

 

I any way, it seems as if everybody (“tm”) uses 4 motors :
2 logical (Soft Motor in EPICS speech) for gap and center and then

2 physical motors (the blades, or arms)

 

Of course, for a typical slit system you need to duplicate the setup:
gap and center for horizontal and gap and center for vertical….

 

Hope that things work out, please let us know, how it goes 😉

 

 

 

 

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of "Nariyoshi, Pedro via Tech-talk" <tech-talk at aps.anl.gov>
Reply to: "Nariyoshi, Pedro" <nariyosh at frib.msu.edu>
Date: Tuesday, 21 November 2023 at 19:25
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Subject: Simulated limit switches on motorSim motor

 

Hi,

 

I am working on creating virtual motors to control some slits. One problem I have is that I couldn't find a way to set the HLS/LLS/RHLS/RLLS fields. Is there a way to control these (whether having an input link to these values or a writing them directly with a calcout or bo record)?

 

Thank you very much

 

Pedro Nariyoshi

Software Controls Engineer

Facility for Rare Isotope Beams

Michigan State University

640 South Shaw Lane

East Lansing, MI 48824, USA

Tel. 517-908-7352

Email: nariyosh at frib.msu.edu

1633986722804

 


Replies:
RE: Simulated limit switches on motorSim motor Pearson, Matthew 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

Navigate by Date:
Prev: Re: [EXTERNAL] EPICS vs. EPICS Base consistency on website? Johnson, Andrew N. via Tech-talk
Next: RE: Simulated limit switches on motorSim motor Pearson, Matthew 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 Mark Rivers via Tech-talk
Next: RE: Simulated limit switches on motorSim motor Pearson, Matthew 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, 01 Dec 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·