Sign in to follow this  
Followers 0
jones

S7 Average Function

3 posts in this topic

In the past I have used an ABB PLC to create an average of a pyrometer reading over a set length of time. I have an S7 PLC at my disposal currently and am struggling to repeat what I was able to achieve with the ABB. There doesn't seem to be a standard function for this - can anyone help with ideas or point me in the correct direction please?

Share this post


Link to post
Share on other sites
You could use a clock pulse to load a table, add the value to a total and divide by the number of values in the table, once the table is full, start removing the oldest value and subtracting that value as you add the new value. Once full the divisor wouldn't change of course. In the libraries you'll find standard blocks like ATT (add to table) and FIFO (First in first out unload).

Share this post


Link to post
Share on other sites
Several examples on the Siemens web site. For S7 TIA V11 try this - http://support.automation.siemens.com/WW/view/en/59903037 For S7 Classic - http://support.automation.siemens.com/WW/view/en/19345299 http://support.automation.siemens.com/WW/view/en/1021364

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0