Machine Automation Forum
A forum addressing machine automation solutions for the complete machine lifecycle. Including offers like Machine Advisor, Modicon PLC/PacDrive, Lexium or Preventa. Discuss and share knowledge on offers relating to cloud-based service platforms, machine localization and monitoring, industrial operations control, motion products as well as safety function!
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-27 03:21 AM
Hi - I'm using a TM221C40T with analogue module TM3AI8, each input is measuring gas concentrations (4 - 20mA) I need to average each input sequentially over a 5 minute period, then output the average of each until next 5 minute sample. Is there an averaging function on the M221?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-27 03:40 AM
You could fill a table (array) with values. And then you could built the average value with the command MEAN.
You could find a description in the online help.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-27 03:53 AM . Last Modified: 2023-02-27 03:55 AM
Hi @Alcem ,
I have done a project with some FBs for M221, you can probably use the one called "FB_FILTER" and modify the execution of the FB to 5mins:
The link to download the library can be found below:
https://app.box.com/s/e3sheiyrp72a5pj7fij1h2vzk2g5a2bv
The solution of @Bastian_Schmitz is good you should test it also.
Best regards,
LeTomas
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.