AnsweredAssumed Answered

AF: Valid Digital states for outputs written back to PI

Question asked by Charles_Cawood on Jun 29, 2018
Latest reply on Jun 29, 2018 by rdavin

Hi,

 

I am currently running an analysis where I do an average of a tag

MyAvg:    TagAvg('MyPVTag','*-15m','*',98)

I then do a calculation:

MyCalc:   if badval(MyAvg) then digstate("Calc Failed") else 100*(MyAvg)

This result is written back to a PI tag.

Will the system allow me to use a digital state other than one define in the SYSTEM state set? (i presume not as info from the documentatio states: digstate() Returns a system digital state value.)

 

Would like to make a separate set with some specific digital states to provide a more descriptive reason why the calc did not provide a valid output.

 

thnx

William

Outcomes