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 2023 2024 <2025> | 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 2023 2024 <2025> |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Help with bumpless IOC reboot, record linking and initialization concepts |
From: | Marco Filho via Tech-talk <tech-talk at aps.anl.gov> |
To: | "Johnson, Andrew N." <anj at anl.gov>, EPICS Tech Talk <tech-talk at aps.anl.gov>, Ralph Lange <ralph.lange at gmx.de> |
Date: | Fri, 19 Sep 2025 07:17:44 +0000 |
Hi! The calcout option is pretty interesting. However, no way I tried it worked. I tried things like:
record(calcout, "TESTING") {
field(INPA, "$(VMM_GLOBAL)Enable-S")
}
record(calcout, "TESTING2") {
field(INPA, "TESTING.INAV CP")
field(CALC, "A = 2 ? 0 : 1")
}
And adding TESTING2 to SDIS of the forwarder or the local records, but none of that solved the issue. For now, I will have to go with the timing solution. That is good enough for the time being. Thanks for the help, Marco From: Johnson, Andrew N. <anj at anl.gov>
Sent: Thursday, September 18, 2025 16:54 To: Marco Filho <marco.filho at ess.eu>; EPICS Tech Talk <tech-talk at aps.anl.gov>; Ralph Lange <ralph.lange at gmx.de> Subject: Re: Help with bumpless IOC reboot, record linking and initialization concepts
Hi Marco,
Many of our IOCs use one or more “dbpf” commands in their startup script (sometimes after an epicsThreadSleep) to enable processing after iocInit. Another approach is that the calcout record has a field for each of its input links that indicates whether the
link is connected or not. You could try making use of that to wait until the connection is known to be up instead of inserting a fixed delay, and it should even be possible to handle disconnections and later reconnections for links to remote IOCs if you want
to do that.
HTH,
- Andrew
-- Complexity comes for free, Simplicity you have to work for.
|