AnsweredAssumed Answered

Truck unloading count?

Question asked by ranash on May 20, 2015
Latest reply on May 25, 2015 by apad22

I need help with a PE to count every time the level of a tank is increased then decreases immediately after. For example this should be three ones to be totaled in a totalizer 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0

my current equation is if(((tagval('sin:15m')-prevVal('sin:15m','*-30s'))>0)) then (if(((tagval('sin:15m','*-2m')-prevVal('sin:15m','*-2m'))<0)) then 0 else 1) else 0 but I really dislike this method it seems like there should be a better more reliable way.

 

Outcomes