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  2018  2019  2020  <20212022  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  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Block CAPUT to not be able to modify PV value
From: Adrian Martinez via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Wed, 14 Jul 2021 15:59:31 +0200
Hello, 

I need to block the setting function for some PVs. I was using SDIS and DISV fields:

record(ao, "$(user):UCrTcrLimitUsSet")
{
field(DTYP, "asynInt32")
field(OUT,  "@asyn($(PORT),$(ADDR),$(TIMEOUT))ucr_tcr_us")
field(VAL,  "0")
field(EGU,  "us")
field(HOPR, "10000")
field(LOPR, "0")
field(DRVH, "10000")
field(DRVL, "0")
field(SDIS, "$(user):StartUpOn.VAL CP MS")
field(DISV, "0")

info(autosaveFields, "VAL")
}

record(calc, "$(user):UCrTcrLimitUsRd")
{
field(CALC, "((A / 10^-6) / 300000000)")
field(INPA, "$(user):UCrTcrLimRd.VAL CP MS")
field(EGU,  "us")
field(SDIS, "$(user):StartUpOn.VAL CP MS")
field(DISV, "0")

}



This only works for the graphical user interface CSS (I am not able to modify the Pv value in the gui) but, if I use CAPUT, I can modify the PV value. 

Is there any way to completely block setting function?

Thanks in advance, Adrián.
--
Adrián Martínez
Embedded Software Engineer
Seven Solutions
 
Mail: adrian.martinez at sevensols.com
www.sevensols.com

 This e-mail and any materials attached hereto, including, without limitation, all content hereof and thereof are confidential and proprietary to Seven Solutions,S.L and/or its affiliates, and are *confidential*. Without the prior written consent of Seven Solutions, this content may not (i) be disclosed to any third party, (ii) be reproduced, modified or otherwise used by anyone other than current employees of Seven Solutions or its affiliates. If you are not the intended recipient or if this message has been received in error, please notify us immediately via e-mail and delete it.
Replies:
Re: Block CAPUT to not be able to modify PV value Johnson, Andrew N. via Tech-talk
Re: Block CAPUT to not be able to modify PV value Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Event Recordings -- Epics Spring 2021 Maren Purves via Tech-talk
Next: Re: Block CAPUT to not be able to modify PV value Johnson, Andrew N. via Tech-talk
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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: P4P gateway development question Michael Davidsaver via Tech-talk
Next: Re: Block CAPUT to not be able to modify PV value Johnson, Andrew N. via Tech-talk
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  <20212022  2023  2024 
ANJ, 14 Jul 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·