drbitboy
Lifetime Supporting Member
Another approach would be to calibrate the mean scan time, and simply count scans (when IN is 1) and scale them to time based on the calibration. It will be a little noisy, but it might be accurate enough, and it would certainly be simpler.
If the scan times are short (a few ms), then counting scans might be as accurate as the proposed function block.
If the scan times are short (a few ms), then counting scans might be as accurate as the proposed function block.
Last edited: