Getting whole average value of pump speed

Take a reading every 5 minutes and add it to the previous one, at the end of the day you should have 288 readings. Divide your total by 288 to get the average. If you need to be more accurate, take more readings and divide the total by the number of samples taken.

đź“š
 
What Russ is saying, is that at the end of the day you have taken 288 readings but ONLY have one total because you add the last value to the previous total value.
 
If you don't want to loose it if the controller drops out during the day you could take a running average. Use a counter to keep track of how many readings you've taken, and keep track of the running average. The new average is the old average times the previous number of samples plus the new value all divided by the new number of samples:

Ave = ((Ave_at_n-1 x (n-1))+ NewValue)/n
 

Similar Topics

The application was working in Twincat 4022.16 Used VM for offline. recently changed the laptop and the getting the error with Message as below...
Replies
0
Views
56
We are using wincc scada WinCC system software V7.5 SP2 , connected to few plc . Past 3 weeks we getting this alarm continously when we checked...
Replies
0
Views
81
I am very, very new to PLCs. I only have experience with Picos, but I knew enough to save this from the dumpster. Apparently, everything on it is...
Replies
13
Views
616
Hi, I tried today to get RD3A and WR3A instructions to work on the PLC and it didn't work, but it worked in simulation. I followed the clone...
Replies
18
Views
1,411
Good morning guys; Im new at AB plc, and i just need help about a table or a list called something like "exchange data table" in French it is...
Replies
4
Views
778
Back
Top Bottom