Posted 14 Oct 2014 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
Posted 15 Oct 2014 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
Posted 24 Oct 2014 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