Hi Adrian,
Take a look at the DISP field (described here), when non-zero it disables puts to any field of the record except for the DISP field itself.
- Andrew
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.
--
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.
--
Complexity comes for free, simplicity you have to work for.
|