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: Fanout PV to many records
From: Andrew Johnson <[email protected]>
To: <[email protected]>
Date: Tue, 12 Jun 2018 10:11:09 -0500
Hi,

On 06/11/2018 02:49 AM, Abdalla  Ahmad wrote:
> Is there anything in EPICS database that allows me to write a PV value
> to tens of PVs? More than what fanout and dfanout can do? For example we
> have a dummy PV that holds a current value to be written to 32 power
> supplies and I am using a sequencer to achieve this.

If you really need to do a put, I would suggest giving each power supply
its own output record (ao) with the DOL field configured as a CA link
with the CP flag set, pointing to the PV holding the value to be used,
and its OUT field pointing to wherever you want the put to go. The CP
flag causes all the output records to be processed whenever a new
monitor update is posted from that record. That record should have its
MDEL field set to -1 if you want the outputs to always process whenever
a new value is generated even if it's the same as it was before; if you
leave MDEL at the default of zero then the output records will not
process when there is no change to the value.

record(ai, "$(P):current") {
    field(MDEL, -1)	# If required
}

# Repeat for each PSU n=0..31
record(ao, "$(P):PS$(n):put") {
    field(DOL, "$(P):current CP")
    field(OMSL, "closed_loop")
    field(OUT, "$(P):PS$(n):current")
}

You can use the SDIS link in the output records to enable/disable this
behaviour as required.

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:
Fanout PV to many records Abdalla Ahmad

Navigate by Date:
Prev: Re: Stream device with non-standard baudrate Dirk Zimoch
Next: Problem accessing repository of sequencer Jörn Dreyer
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:Fanout PV to many records GAGET Alexis
Next: Re: Fanout PV to many records Benjamin Franksen
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, 24 Sep 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·