|
On 6/8/26 4:13 PM, Varuna Crishan
Meddage via Tech-talk wrote:
I have an analog output record which outputs to another analog
output record (published by different IOC) as defined below
================================================================================
record(ao, "PIP2:CTRL_MPS:4:AO:SLOW_SET:CH:1") {
field(OUT, {pva:{"pv":"acq2106_345:4:AO:SLOW_SET:CH:1"}})
}
...
Is it possible to get rid of this invalid severity even before
writing a value to this PV ?
I tried different tricks for example setting field(VAL, "0") and
field(PINI, "YES"), but none of them was successful.
For me, initializing VAL to 0 does clear the severity. Although
if you are looking at "dbpr" output, it is necessary to look
closely as this "trick" does _not_ zero STAT. Which is ok, as
STAT field only has meaning if SEVR!=0.
Loading the database shown above.
epics>
dbpr
PIP2:CTRL_MPS:4:AO:SLOW_SET:CH:1
AMSG:
ASG : DESC: DISA:
0
DISV: 1
NAME: PIP2:CTRL_MPS:4:AO:SLOW_SET:CH:1 NAMSG:
OMOD: 0
OVAL: 0 RBV : 0 RVAL: 0
SEVR: INVALID STAT:
UDF TPRO: 0 VAL : 0
Loading the following:
record(ao,
"PIP2:CTRL_MPS:4:AO:SLOW_SET:CH:1") {
field(OUT, {pva:{"pv":"acq2106_345:4:AO:SLOW_SET:CH:1"}})
field(VAL, "0.0")
}
I then see:
epics>
dbpr
PIP2:CTRL_MPS:4:AO:SLOW_SET:CH:1
AMSG:
ASG : DESC: DISA:
0
DISV: 1
NAME: PIP2:CTRL_MPS:4:AO:SLOW_SET:CH:1 NAMSG:
OMOD: 0
OVAL: 0 RBV : 0 RVAL: 0
SEVR: NO_ALARM STAT:
UDF TPRO: 0 VAL : 0
Note the different values of SEVR.
|