Average of analog value - S7-300

labik

Member
Join Date
Nov 2011
Location
Pabianice
Posts
8
Hello,
I'd like to obtain average of my analog input value which will be displayed on SCADA. For examplle, analog value should be sampled avery second and and a script/block should create average of value for the last 3 minutes and then store it in other variable.

Is this possible in S7-300? What FB shoudl I use? Is there any predefined Siemens block for that or maybe anoyone faced similiar problem and could help? Any help would be apriciated. thanlks
 
What you describe is a rolling average filter. I don't think that there is a pre-packaged one available so you will have to write your own unless someone here can volunteer one.

Nick
 

Similar Topics

Hi all-- I need to create code in a Micrologix 1400 project that requires minimum, maximum and running average calculated values (Flows and...
Replies
17
Views
3,737
First off, I'm very rusty at the moment when it comes to programming, last time I did any programming was 15 years ago, and now this project has...
Replies
18
Views
7,185
hi I have to take average of my analog input data from analog input module FX 2N-2AD using with FX1N plc. As I cant treat REAL NUMBERS in FX1N...
Replies
0
Views
2,030
Hi I am trying to find out , how to get an average of an analog input for 24 hours. I am interest to know the average of analog input value for...
Replies
6
Views
7,034
I have a Banner LT3 laser sending 4-20ma signal to a Compact Logix System. The signal is the level of product on a conveyor. The signal is fast...
Replies
6
Views
8,743
Back
Top Bottom