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  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Process 'bo' on write?
From: Andrew Johnson <[email protected]>
To: [email protected]
Cc: David Dudley <[email protected]>
Date: Mon, 6 Oct 2008 15:38:14 -0500
On Monday 06 October 2008 09:18:39 David Dudley wrote:
> The calcout method sounds like what I'm going to use for this function.
> I was just wondering if there was another way (or a simpler one) to do
> the same thing.

There might be, especially if you want to have an EDM button pointing to the 
bo record to provide an ENUM interface to the value â with calcout that would 
need 3 records rather than 2.

> From my point of view, I want to only have the record process when the
> value changes, either from 0-1, or from 1-0.

The other mechanism built into the IOC that has "process on change" semantics 
is a CA link marked CP.  The bo record that actually connects to the PLC has 
OMSL="closed_loop" and its DOL field is a CP or CPP link to a "shadow" bo 
record in the same IOC which holds the new value to be output.  Only when the 
shadow record's value change does the CP link cause the output record to be 
processed.

The only tricky thing here might be at start-up, where you could need to use 
the SDIS & DISV fields of the final record to prevent the thing from 
processing when you reboot the IOC and the first value arrives.

HTH,

- Andrew
-- 
Talk is cheap. Show me the code. -- Linus Torvalds


References:
Process 'bo' on write? David Dudley
Re: Process 'bo' on write? Tim Mooney
Re: Process 'bo' on write? David Dudley

Navigate by Date:
Prev: Re: Process 'bo' on write? Maren Purves
Next: IOC debug with Workbench haquin
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Process 'bo' on write? David Dudley
Next: Re: Process 'bo' on write? Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·