EPICS Home

Experimental Physics and Industrial Control System


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

Subject: Re: [db] simple command ?
From: Benjamin Franksen <[email protected]>
To: <[email protected]>
Date: Sat, 7 Apr 2012 00:45:10 +0200
On Wednesday 04 April 2012 18:43:29 Pavel Masloff wrote:
> You are right - I want the record to automatically switch its value back to
> 0 after somebody sets it to 1. Time doesn't really matter. Imagine a
> pneumatic valve. I have two records two control it: cmd:valve_ON and
> cmd:valve_OFF. The reason I use two records instead of one is simply
> because there are two buttons on the front panel of my control cubicle. And
> the PLC logic is that it checks whether only one button is pressed at a
> time. This is local control. Yet, at the same time I want to remotely
> control my system by means of EPICS.

Beware, though: using the HIGH field causes the record to process (again) when
VAL gets reset to zero.

The bo machinery with all the extra processing, setting up timers etc seems to
be overkill for this commonly requested feature. I tend to use mbbo records
(one for each command) and let clients write to the PROC field (they can write
any value they like).

One feature that I miss with this solution: a (simple) way to make the VAL
field immutable, so chosing /which/ command is executed cannot be changed at
runtime. Any ideas how to do that except writing a new record type?

Cheers
Ben

________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführerin: Prof. Dr. Anke Rita Kaysser-Pyzalla

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de


Replies:
Re: [db] simple command ? Tim Mooney
References:
[db] simple command ? Pavel Masloff
Re: [db] simple command ? Tim Mooney
Re: [db] simple command ? Pavel Masloff

Navigate by Date:
Prev: Re: [db] simple command ? Tim Mooney
Next: Re: [db] simple command ? Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: [db] simple command ? Hartman, Steven M.
Next: Re: [db] simple command ? Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024