AnsweredAssumed Answered

Using The Total Data Set

Question asked by Cannon on Feb 22, 2019

I have an IF/OR statement that will look at tags then spit out a 0 or 100, then the data is set to total and calculated over 1 day. The effect is to give us a % usage of the piece of equipment, and while in the PI calc window I can look at the preview and see the expression working once I leave that window and try to trend it, the expression shows 50 or stair steps on the trend.

 

Expression: IF TagVal()>0.1 OR TagVal()>0.1 OR TagVal()>10 then 100 else 0

The preview working

When I leave the calc window

Trend

Any help as to why it is doing this, or another expression I might be able to use to get a % usage would be great.

Outcomes