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: 2024-03-18 05:38 AM
What it the easiest way to filter a fast digital input ? I am reading a turbine type flow meter on FDI1 and I would like to have a result that does not change permanently but is "averaged" every 10 seconds for example.
I think it is likely that there are some FB´s already developed for this use.
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: 2024-03-18 02:10 PM
Hi,
Did you know OSCAT ? Based on this you could try one of the attached filter FBs.
The description of any of these Blocks is in the link above.
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: 2024-03-18 02:10 PM
Hi,
Did you know OSCAT ? Based on this you could try one of the attached filter FBs.
The description of any of these Blocks is in the link above.
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: 2024-03-21 10:50 AM
Yes. I remember you told me some time ago you were willing to import OSCAT´s functions to TM172 format, I guess this is part of your effort. Thank you for sharing it.
I tried to compile a very simple example:
I got this error:
FILTER_MAV_DW(13) - error S1305: INC1 => Unknown function
So I downloaded it from a Siemens forum, is this code ok ?
IF X >= N - 1 THEN
INC1 := 0;
ELSE
INC1 := X + 1;
END_IF;
(* this elegant version is 50% slower
INC1 := X := (x + 1) MOD N;
*)
Is explicit dword to udint conversion as per my example needed or can I just :
They both compile fine.
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.
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: 2024-03-26 03:57 AM
This is a Mastercard´s gift, it´s priceless 😊. Thank you.
If you would like me to help please do let me know. I will be happy to do it.
Regards
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 board - and gain access to more than 10,000+ support articles along with insights from experts and peers.