otiovogon
Member
Just updated my customer from 984 to Quantum.
We have an analogue I/P which jumps around somewhat and I need to do a running average on it.
I seem to remember a code example in a Modicon Prog. Manual from a long time ago (might even have been 584) which used a FIN / FOUT combination to move the latest reading into say a 5 deep stack then average the 5 registers all in one scan.
I intend to use a toggling flag to solve the logic every other scan.
Any help would be very welcome as I don't have much time on site to de bug and I don't have a PLC here to play with.
Thanks
We have an analogue I/P which jumps around somewhat and I need to do a running average on it.
I seem to remember a code example in a Modicon Prog. Manual from a long time ago (might even have been 584) which used a FIN / FOUT combination to move the latest reading into say a 5 deep stack then average the 5 registers all in one scan.
I intend to use a toggling flag to solve the logic every other scan.
Any help would be very welcome as I don't have much time on site to de bug and I don't have a PLC here to play with.
Thanks