adccommunitymod (AutomationDirect) asked a question.

Push and hold INC/DEC

Created Date: October 16,2018

Created By: KraalMan

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

{ "data-align ": "none ", "data-size ": "full ", "data-attachmentid ":118547} I needed a way for the operators to be able to push a + or - button, be able to hold it and have it increment or decrement. This is what I came up with.


  • adccommunitymod (AutomationDirect)

    Created Date: October 16,2018

    Created by: KraalMan

    { "data-align ": "none ", "data-size ": "full ", "data-attachmentid ":118547}

    I needed a way for the operators to be able to push a + or - button, be able to hold it and have it increment or decrement. This is what I came up with.

  • adccommunitymod (AutomationDirect)

    Created Date: October 16,2018

    Created by: MikeN

    When you press and let go of "right " a couple times quickly, does the flasher start and stop reliably so that it increases the count with each initial press?

    Otherwise it looks nice. Depending on how much each +1 value increases the real world size, you may want to lower the flasher time to a smaller value. Perhaps something like 125 so that you can increase the size 8 times per second with the button held. Seems like each individual number isnt that much given you have a +/- 100 value range, so the lower time would probably work better.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: October 16,2018

    Created by: KraalMan

    Each +/- is equal to 5 millionths of an inch, the application is for centerless grinding, I played with the delay time between pushes, and the operators really like the 250ms delay. A gauge probe rides on top of a spring loaded work piece that sits on top of the parts as they exit the grinder. If they approach under or over size the signal is sent to the machine to bump in or out, if they go under or over size then a signal is sent to stop feeding parts. The actual offset is used when centering the probe.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: October 18,2018

    Created by: z28z34man

    Without too much code you could also decrease the flash time the longer you press the button and a one shot falling to put it back to 250 when you relase the button. That would make large changes quicker