Issue with tagtot() resetting to zero

Hi Team,

We need to have a volume accumulation analysis tag (m3)from water rate tag(m3/day) per day basis. The analysis should do time weighted total daily 10 am to 10 am and reset to 0 every day at 10:05 AM .

The analysis written is tagtot('Instantaneous Water Rate','y+10h','t+10h')

 and periodic scheduling is set daily at 10:05 AM.


daily tagtot trend.png
However , the output trend not seem to be resetting to 0 everyday at 10 AM. Do I explicitly need to add resetting equation for tagtot() ?

I tried one more option : scheduling at every 5 min to check recent accumulation values all the time -

 

if Minute('*')=600 then 0 //At 10 AM

else if Minute('*')>600 then TagTot('Instantaneous Water Rate_Good Value','t+10h','*')

else TagTot('Instantaneous Water Rate_Good Value','y+10h','*')

 

Accumulation seems rising , however the resetting to zero is still not at 10 AM but around at midnight 12 AM now. Also, the resetting is not to zero as shown below:


tagtot every 5 min.png
Need assistance in using the tagtot() as per our requirement.

 

Best Regards,

Supriya

  • Your periodic scheduling is set to Daily at 10:05 AM, and then it performs an average from Y+10h until T+10h. There is never a change for it to reset to 0 or to perform a running or climbing average.

    Maybe you want to schedule it to run every hour or every half hour or something like that, and have it start at 10:00 AM, not 10:05. When it runs at 10:00, you expressly set it to 0. When it runs 30 or 60 minutes later, you then produce some average.