21.09.2022, 18:23
(18.09.2022, 18:23)Hi SteffenThanks a lot, this looks like a neat solution. I shall try it this weekend and report.Cheers!Martinpioneersteffen Wrote: Hi Martin,
I made the moving average in my solution as following:
1. Create object / group address for the average value (example: 49/0/1)
2. Create time triggered script with 5min cycle time
3. Use the following code inside the script and adjust the value group address:
Code:average=grp.getvalue('49/0/1')
value=grp.getvalue('49/0/2') —- value that should be averaged
average = (average *((24*60/5)-1) + value)/(24*60/5)
grp.checkwrite('49/0/1', average)
I hope this is working for you!
Best Regards
Steffen