News:

  • June 09, 2026, 11:12:37 PM

Login with username, password and session length

Author Topic: Debounce  (Read 6501 times)

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
Debounce
« on: March 07, 2018, 02:05:34 PM »
Just my opinion but the Debounce function doesn't seem to be "Stage" friendly. I tried using it in a stage. When C5 turns on it causes a jump but wait, can't do that yet cause the reset did not happen and leaves C5 ON. So I reset the bit before jumping but that seems to be a hit and miss at best. If I need to do extra rungs just to reset the bit I mind as well just use a timer. So I did. When X9 turns on timer is set to 100ms. When timer is done, jump. Almost it seems there needs to be a bit showing the reset happened. Almost like a Timer.done, timer.reset. Is there such a thing as Debounce.reset? I tried putting not c5 but that wont work either. Of course C5 is not on cause the 100ms did not pass yet.


BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6158
  • Yes Pinky, Do-more will control the world!
Re: Debounce
« Reply #1 on: March 07, 2018, 03:49:17 PM »
It is an input function, not output, so the debounced bit is not cleared by normal stage termination. That is by design.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO