Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Bolt on March 24, 2022, 08:36:27 PM

Title: Debounce not working
Post by: Bolt on March 24, 2022, 08:36:27 PM
I was commissioning a new project today, and the Debounce instruction seemed to not be working. The input was bouncing at about 1 hertz, and the on /off time delays were both set to 1 second, but the output coil bounced in unison with the input. All my variables are UDTs, the input leg, the times and the output coil.

18 pt ethernet BRX on 2.8. Any ideas?
Title: Re: Debounce not working
Post by: franji1 on March 25, 2022, 09:09:45 AM
I was commissioning a new project today, and the Debounce instruction seemed to not be working. The input was bouncing at about 1 hertz, and the on /off time delays were both set to 1 second, but the output coil bounced in unison with the input. All my variables are UDTs, the input leg, the times and the output coil.

18 pt ethernet BRX on 2.8. Any ideas?

Stick an INC instruction w/a dummy register below your DEBOUNCE just to ensure the instruction itself is running.  It should be incrementing the dummy register every time the input leg of the DEBOUNCE has power, and then not increment when it does not.  This will help isolate where the issue is (it's not a fix, but a debug/diagnostic).

Double check your Cross Reference to make sure the Debounce Bit is not being set anywhere else.  Float your cursor over that parameter and PopUp XRef should show up, check the Output list.