Should IsQualityGood propagate the Quality of the tag?
We have a use case where we have two flow meters that we want to sum up. If one of them is Bad quality from SCADA, we want Calcs to treat it as zero.
We did If(IsQualityGood('tag1'),'tag1',0) + If(IsQualityGood('tag2'),'tag2',0)
It works, but the output value has a Bad quality if one of the inputs does. Is that expected? I would have thought the output of IsQualityGood always have a Good quality.
The issue is it's making the output trend in Axiom light and people are wondering why.
3 replies
-
Hi ,
It should output a Good quality. You would want to do if(IsQualityGood(Quality('tag1')),'tag1',0). Notice the Quality() function is embedded within the IsQualityGood() function. Not sure if this is how it is actually configured, but this is how you would want to do it.