Hi guys,
Can someone please give us an example of them using the OR logical operand in PI Performance Equations?
I haven't found any examples using this operand in the PI PE reference manual (PEReference.chm) and unfortunately I'm having a few issues writing a really simple PE.
My current calculation is: if OR(BadVal(PrevVal('tag1','*')),BadVal(PrevVal('tag2','*'))) then "ALARM" else "OK"
It is supposed to evaluate if the last values archived for tag1 or tag2 were bad, then the string returned should be "ALARM", else return "OK".
When I run the current calc is returns "Error -2147219650: PI PE syntax error in Expression. [-12301] Performance Equation parsing error"
It works ok on a single tag evaluation until I add the OR operand for multiple tags ie. the equation if BadVal(PrevVal('tag1','*')) then "ALARM" else "OK" works just fine.
If you can please share what's the syntax using the OR operand that'd be much appreciated.
Thank you!
Mario