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 learning curve. I am trying to collect I/O link analog sensor values and compare it to what the theoretical baseline value should be based on a formula. I have the sensor data reading in, but I want to collect and average values over a 2 second period, or collect X number of values into an array, average it, then use that value for further logic, then reset and repeat over every 2 second interval.
I have tried a few techniques with timers, counters, and MOVE blocks and the MTFilterMovingAverage block, but those methods have been unsuccessful. I am probably overcomplicating it, but the lack of resources on AS has made it difficult. Any suggestions on how to approach it?
I have tried a few techniques with timers, counters, and MOVE blocks and the MTFilterMovingAverage block, but those methods have been unsuccessful. I am probably overcomplicating it, but the lack of resources on AS has made it difficult. Any suggestions on how to approach it?
Last edited: