There are interrupts on this chip, but what event to trigger the interrupt is to consider. From original communication, I thought you would count pulses for 10 seconds or longer then divide them to get a frequency.
Yes, that was my original thought too, but I hadn't realised at the time that short-duration events were as important as they turn out to be.
Using FCOUNTER then picking the smaller value over few readings might be better. We will have to think how to make this work better for you.
Here's the last half hour odd of 5-minute samples, just for curiosity.
time, minimum, maximum frequencies, difference and variation expressed as parts-per-million.
Given I'm looking for variations in the tens of PPM, you can see why this variation is killing me!
09:35:03 min:63344 max:63794 diff:450 PPM:71040
09:40:03 min:63304 max:63831 diff:527 PPM:83249
09:45:03 min:63490 max:64183 diff:693 PPM:109151
09:50:03 min:63054 max:63737 diff:683 PPM:108319
09:55:03 min:63452 max:63790 diff:338 PPM:53268
10:00:03 min:63080 max:63903 diff:823 PPM:130469
I did notice it was FAR worse when I accidently left a browser on the "Program PLC" page - it was constantly updating the clock and caused huge variations - around 400,000 PPM!