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  <20182019  2020  2021  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: record that processes at a given time of day?
From: "Johnson, Andrew N. via Tech-talk" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Mon, 5 Nov 2018 23:26:23 +0000
On 11/05/2018 11:37 AM, Michael Westfall via Tech-talk wrote:
> I'm wondering if someone has an EPICS record implemented that processes
> at a given time of day, like an alarm clock.
> 
> I don't see anything like that in EPICS base.

We have a subroutine record that we load on all the APS IOCs that chimes
on the hour every hour, although the period is actually programmable.
The chime actually prints a line on the IOC console (stdout) but you can
easily change that in the code. The record gets processed by a periodic
scan task so every time it runs the subroutine just has to check whether
it's time for the next chime to occur. The record is here:
    https://epics.anl.gov/tech-talk/2008/msg00768.php

You could use something like this as the basis for an alarm clock. Have
the subroutine code set one of its fields to 0 at the alarm time and 1
otherwise, then point the SDIS link of the record that implements your
action(s) at that field with the PP link flag set and process the action
record at whatever rate matches the precision of your desired alarm. The
subRecord should be SCAN Passive.

HTH,

- Andrew

-- 
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon

References:
record that processes at a given time of day? Michael Westfall via Tech-talk

Navigate by Date:
Prev: Re: record that processes at a given time of day? Lang, Keenan C. via Tech-talk
Next: epicscorelibs on pypi.org Michael Davidsaver
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: record that processes at a given time of day? Lang, Keenan C. via Tech-talk
Next: Re: record that processes at a given time of day? Ralph Lange
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 06 Nov 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·