News:

  • August 19, 2026, 06:30:53 AM

Login with username, password and session length

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

Bolt

  • Hero Member
  • *****
  • Posts: 598
Debounce and zero time
« on: December 04, 2017, 09:40:52 PM »
I like the new debounce instruction. It just has one thing that annoys me. I can't enter a zero value in either of the two time fields. I also can't enter a symbolic constant that is set to zero. But I can enter V0, and set its value to zero. Seems like a little bit of a glitch to me.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Debounce and zero time
« Reply #1 on: December 04, 2017, 10:22:36 PM »
Write your own and do a CALL.  Debounce (and SCale with Parameters) is typically some of the first boxes I write on platforms that let you roll your own.  S7 for some reason, is missing statistical functions.  Mean, median, standard deviation and so on.  There's probably an add on library somewhere that has it, but on a platform that lets you write your own, doing so is probably quicker and easier than finding it, plus it's done exactly the way you want it.
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 #2 on: December 05, 2017, 09:42:44 AM »
I like the new debounce instruction. It just has one thing that annoys me. I can't enter a zero value in either of the two time fields. I also can't enter a symbolic constant that is set to zero. But I can enter V0, and set its value to zero. Seems like a little bit of a glitch to me.

Due to the way the hysteresis was designed, I think we decided it needed at least a 1 in each direction, but looking at the code again, I think it works fine. We'll look at relaxing the range definitions for the editor.
"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

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: Debounce and zero time
« Reply #3 on: December 05, 2017, 11:35:12 AM »
Cool.  Not a huge deal, but it helps in making some single sided latches, off delays, etc.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Debounce and zero time
« Reply #4 on: December 05, 2017, 11:50:00 AM »
Five minute change. Should be in DmD 2.2.
"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

plcnut

  • Hero Member
  • *****
  • Posts: 815
    • premiersi.com
Re: Debounce and zero time
« Reply #5 on: December 05, 2017, 11:53:50 AM »
Bobo,
Did the zero time issue in OFFDTMR ever get resolved? If the time was zero, then the output would never turn on at all (Even though the input was high).
Circumstances don't determine who we are, they only reveal it.

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

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Debounce and zero time
« Reply #6 on: December 05, 2017, 12:38:28 PM »
Bobo,
Did the zero time issue in OFFDTMR ever get resolved? If the time was zero, then the output would never turn on at all (Even though the input was high).

That would require changing a behavior that would potentially affect running programs. We are very reluctant to do that, even if something is technically broken.
"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

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: Debounce and zero time
« Reply #7 on: December 05, 2017, 12:44:39 PM »
Thanks.  I like the quick turn around and response from you guys.  The president of the company engaging directly with the end users resolves/satisfies allot of things quickly.

Keep up the good work.

plcnut

  • Hero Member
  • *****
  • Posts: 815
    • premiersi.com
Re: Debounce and zero time
« Reply #8 on: December 05, 2017, 01:14:55 PM »
Bobo,
Did the zero time issue in OFFDTMR ever get resolved? If the time was zero, then the output would never turn on at all (Even though the input was high).

That would require changing a behavior that would potentially affect running programs. We are very reluctant to do that, even if something is technically broken.

I understand what you are saying...
I have a bunch of these instructions in the field that I hope nobody ever enters a zero in via the HMI... I did not think to test at zero before I launched the projects.
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 #9 on: December 05, 2017, 01:49:18 PM »
The president of the company engaging directly with the end users resolves/satisfies allot of things quickly.


That is pretty cool.  To be fair, AB does have an IICIP  (Intern In Charge of Ignoring the Proles)
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 #10 on: December 05, 2017, 03:13:21 PM »
The president of the company engaging directly with the end users resolves/satisfies allot of things quickly.


That is pretty cool.  To be fair, AB does have an IICIP  (Intern In Charge of Ignoring the Proles)

I LOLed more than appropriate.
"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

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Debounce and zero time
« Reply #11 on: December 05, 2017, 03:17:08 PM »
Thanks.  I like the quick turn around and response from you guys.  The president of the company engaging directly with the end users resolves/satisfies allot of things quickly.

Keep up the good work.

The cow and the chicken are interested in your breakfast, but the pig is truly committed to it. We like to think of ourselves as being "pig committed".
"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 #12 on: December 05, 2017, 08:28:59 PM »
Got the full gouge-O-matic treatment from AB today. Four year old motor control center with empty door spaces and we want to add 1/2 hp vfd and a 1 hp vfd. AB says this is a ETO Engineer To Order task. $6850 EACH!  The whole 3 section MCC originally cost us about $15,000.  The AB factory guy says they have 80% of our market in PLCs. I replied “yes I know, those poor bastards. We are trying to correct that!”

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
Re: Debounce and zero time
« Reply #13 on: December 06, 2017, 11:35:16 AM »
lol

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Debounce and zero time
« Reply #14 on: December 06, 2017, 12:14:35 PM »
For $6,850, they shouldn't send you a bucket, or a motor!  They should send an AB employee to crank on the machine personally.

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.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.