I have written a performance equation to show me if two tags are showing a certain value or not. For example, show true if either is ok, else show failed if one of them has failed.
So, my equation looks like this:
IF TagVal(tag1, '*')="OK" OR TagVal(tag2, '*') = "OK" THEN "OK" ELSE "FAILED"
tag 1 actually has the current value of failed, and tag 2 shows as ok. But when I evaluate this equation the value shows as OK, not FAILED.
Can anyone see where I am going wrong?