News:

  • August 19, 2026, 07:31:02 AM

Login with username, password and session length

Author Topic: Debounce and zero time  (Read 47876 times)

plcnut

  • Hero Member
  • *****
  • Posts: 815
    • premiersi.com
Re: Debounce and zero time
« Reply #15 on: December 06, 2017, 12:16:01 PM »
Can you buy an empty bucket and put in your own VFD?  I don't think you can UL it if you do that, but the project may not need that.
That is what I would try to do!
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
https://premiersi.com

plcnut

  • Hero Member
  • *****
  • Posts: 815
    • premiersi.com
Re: Debounce and zero time
« Reply #16 on: December 06, 2017, 12:22:55 PM »
I have been too busy lately, and it seems the only time I have said anything on here in a while is when I am complaining or mentioning something that I have had an issue with...

Let me take a moment to say that Host Engineering has been great to work with! And the Do-more line of controllers saves me time, and make my projects look good.
Keep up the good work!
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
https://premiersi.com

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Debounce and zero time
« Reply #17 on: December 06, 2017, 12:23:23 PM »
What he said!   :)
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: Debounce and zero time
« Reply #18 on: December 06, 2017, 12:51:49 PM »
The president of the company engaging directly with the end users resolves/satisfies allot of things quickly.
It helps when he is also one of the software guys making the changes and fixing the issues! Not to mention how many times I go to monitor the forum and find all the technical issues already resolved...  ;D  (@BobO and @franji1 have already spoiled me). The "problem" is, the inborn "tech" in him just won't die. He can't help himself.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: Debounce and zero time
« Reply #19 on: December 06, 2017, 12:55:39 PM »
The "problem" is, the inborn "tech" in him just won't die. He can't help himself.

I wish everyone had that problem (i.e. a desire to satisfy their customers!)  ;D

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Debounce and zero time
« Reply #20 on: December 06, 2017, 01:30:16 PM »
It's a rare anachronistic malady, almost stamped out thanks to modern apathy.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Debounce and zero time
« Reply #21 on: December 06, 2017, 01:31:42 PM »
It's a rare anachronistic malady, almost stamped out thanks to modern apathy.

I'll see if I can work harder to care less, but I'm pretty lazy at times, so no promises.
"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

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Debounce and zero time
« Reply #22 on: December 06, 2017, 01:43:01 PM »
I see what you did there!  :D

Reminds me of the old joke:

What's the difference between ignorance and apathy?

I don't know and I don't care!
« Last Edit: December 06, 2017, 02:54:11 PM by Controls Guy »
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

LWgreys

  • Hero Member
  • *****
  • Posts: 117
Re: Debounce and zero time
« Reply #23 on: December 12, 2017, 12:21:34 AM »
I suggested the DEBOUNCE instruction some time ago. With this instruction I will be able to get ride of over a third of the timers that I'm currently using and clean-up my code.

davidbgtx

  • Hero Member
  • *****
  • Posts: 215
  • Host be the Most
Re: Debounce and zero time
« Reply #24 on: December 12, 2017, 05:40:38 AM »
I really like the OFFTMR, it wasn't that hard to program that function before, but I find I'm using it a LOT. Thanks guys

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Re: Debounce and zero time
« Reply #25 on: December 12, 2017, 01:13:07 PM »
I suggested the DEBOUNCE instruction some time ago. With this instruction I will be able to get ride of over a third of the timers that I'm currently using and clean-up my code.

I am going to have to look into this. We have a boat load of timers, more than 100 for just this purpose in our program.

I really like that DoMore is rapidly adding simple instructions for all the common things you need to do. I do NOT like the massive toolbox approach that seems to be common today. I need two wrenches but I have to carry the 100 lb tool box up the ladder to apply them to the task. Ladder? Who uses ladders? Get a manlift to carry the tool box!

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Debounce and zero time
« Reply #26 on: December 12, 2017, 01:38:47 PM »
I really like that DoMore is rapidly adding simple instructions for all the common things you need to do. I do NOT like the massive toolbox approach that seems to be common today. I need two wrenches but I have to carry the 100 lb tool box up the ladder to apply them to the task. Ladder? Who uses ladders? Get a manlift to carry the tool box!

I could probably write a book on design methodology, but there are a couple of fundamental ideas that dominate ours:

Tinker Toys) A handful of simple pieces designed to bolt togather to create more complex things. There is an optimization function here, where you balance the complexity and power of each piece...we don't want to be too granular or too monolithic. When done right, you can solve lots of problems very well.

Functional Tiers) Comm is a great example.
- High level: PEERLINK, designed for the guy who doesn't want to work that hard at it and doesn't need the performance...just needs it to work.
- Mid level: RX/WX/MRX/MWX/DLRX/DLWX, still pretty easy, but certainly requires more effort to gain more reward.
- Low level: Custom protocol instructions. For the guy willing to put in the effort, he can do dang near everything he needs.

You can build a debounce function with timers (tinker toys) but when you do this often enough that it results in a significant increase in code size, there is an obvious case for adding a tier. We frequently start with the low level instructions and then add layers above as we better understand the problem. When we did the SDCard for BRX, we started with the low level file functions, and then added FILELOG, because we knew that 90% of users just want to log stuff without becoming file I/O experts.

And y'all definitely play a role in this. If you see a hole, say something...we do listen.
"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

Evilbeard

  • Hero Member
  • *****
  • Posts: 160
Re: Debounce and zero time
« Reply #27 on: December 12, 2017, 04:07:58 PM »
BobO, I have a found a serious hole. I don't have enough Do-More PLCs to play with. You should send me some. :P

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Debounce and zero time
« Reply #28 on: December 12, 2017, 04:14:00 PM »
BobO, I have a found a serious hole. I don't have enough Do-More PLCs to play with. You should send me some. :P

I was gonna say that you need to find a hobby, and then I realized yours is the same as the rest of us. ;)
"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

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Re: Debounce and zero time
« Reply #29 on: December 12, 2017, 09:25:01 PM »
I just installed a BRX in my hobby. What does that say about me?