Page 1 of 1

DIO Module. Counter Reset

Posted: 27 Feb 2020, 13:21
by palmerpi
Hello wondering how to fix an issue with resetting counters? I have 4 counters being read from 2 inputs (Looped from one counter to another). One set of counters is reset every hour with no issue using the .reset() command. The other 2 counters I want to reset a lot less frequently but we still want this facility. When we issue the same reset command only one of the counters resets. Is there an issue with the reset command that stops it working if count is too high?

The counters that rest OK had values 8875, 742, and 734. The one that won't reset has value 288370. Values are correct and the counters are working OK. The same syntax is used to .reset ()

Maybe there was firmware upgrade that fixed this? Its on a machine without network. Its been running for around a year and we've only just added the 2 new counters that are to keep longer count. Also what is the limit on the counter and does it just go back to zero?

Thank you,

Alan

Re: DIO Module. Counter Reset

Posted: 02 Mar 2020, 10:16
by dirk
Hi you are using RevPiModIO? Then I'll move your post to the appropriate forum.

Re: DIO Module. Counter Reset

Posted: 14 Apr 2020, 14:34
by dirk
Hi, have a look at this post Counter Reset With RevPiModIO