if there a syntax to calculate the total production over period of time and then it be recalculated until reaching a dedicated total volume/rate (e.g. the excel chart below (blue line) showing when reaching dedicated volume over time, the equation will recalculate)? Many Thanks

Hi Anthony,

Are the units of your PI Point a rate? If they are you could use the PI Analysis Service with the function TagTot() to calculate the total volume and output it to a PI Point. You could include an if statement to check if the value is over a certain limit and reset the value to zero. For example, say the rate is in dm3/s and the max volume we want is 375 dm3, a possibility would be:

This should work. You may need to adjust the time range of FindEq() for your needs. The important thing is for the starttime to be after the end time so the function goes backwards in time.

Here is some documentation on TagTot(). Notice the multiplier!!

PI Server

OSIsoft: How to Setup Expression Analyses with PI AF [PI AF 2014- v2.6.0.5843] - YouTube

Hope this helps,

Seb