24H Averaging in Unity Pro XL

JMRoux

Member
Join Date
Jan 2017
Location
South Africa
Posts
1
Hi All
I want to Average a Real value over 24H. A normal AVGMV block only works with the program cycle of max 50 cycles. And A AVGMV_K up to 10 000 if I’m correct. Is it possible to do An Average over 24H.
Thanks
 
Rather than a moving average, please consider using the much simpler LAG function.

Not sure if unity pro XL has this built in, but if not:

y_filt = y_filt - dt * (y_filt - x_in) / T

dt = time between samples
y_filt = filtered result
x_in = raw unfiltered signal
T = lag time period

It has similar characteristics as the moving average.

If you really need moving average 24hrs, then you will need (86,400 / dt) memory locations.
 
how fast do you need to sample the value for the 24 hour moving average? surely not once per second? If you want once per minute then use 1440 samples and use the enable pin on the moving average block so it only executes for one scan every minute.
 

Similar Topics

is it possible to make a Trend display data read during 24 hours in Protool? to show a complete day reading on one screen? which settings should...
Replies
0
Views
1,039
C
Hi, Can someone tell me the principe how I can collecting data in my s7-cpu31x with using DBs and with my little experiences in PLC programming...
Replies
3
Views
4,938
Hi, I have a bit of PLC experience in Siemens and have unfortunately been blessed with working on Automation Studio and B&R which has been a big...
Replies
5
Views
1,361
The PLC code calculates oil flow rate and outputs it on D420. It is represented on the HMI as a vertical bar. Problem is that the operator says...
Replies
33
Views
4,911
Hello, I am working with a laser encoder that is providing the speed of a fiber strand to our AB 1756-L61 PLC. In order to calculate the amount...
Replies
3
Views
3,142
Back
Top Bottom