Jump to content

Continuous increment button


Recommended Posts

  • MVP 2023

(As I clicked post, Flex answered with a pretty picture!)

It all depends on how it is currently set up to change the value.

For your need you would normally control the number through ladder work.  The button(s) would be linked to a timer that upon timeout through holding the button on, it adds/lessens the value in question in a controlled way,  eg increase of 1 per scan (very fast) or increase of 10 per second, etc etc.

Further to Flex's answer, it shows the myriad ways you can do things.  His method is a fixed time, I do it by having a number of timers that increase the rate the longer you hold the button.

cheers, Aus

  • Like 1
Link to comment
Share on other sites

  • MVP 2023

Yep, I gave the simplest example to solve the stated problem. What Aus says is really what most people do, such as adjusting the time on a digital clock, etc. This example increments the value with each press, but after holding for 3 sec, it will increment about 3 times per sec.

image.png.2bd0282d5707d870b15205d84c4736b0.png

  • Like 1
Link to comment
Share on other sites

  • MVP 2023

I use two timer (0.5-1sec and 3-5sec)   powered by button contacts.

Increment block is operated by:

-|P|- for button -----> one increment, 

-| |- for button and -|P|- for SB3 (1sec pulse) and -| |- for timer 1 (0.5-1sec) ------> 1sec increment,

-| |- for button and -|P|- for SB7 (0.1sec pulse) and -| |- for timer 2 (3-5ec) --------> 0.1sec increment.

Than single tick, slow and fast increment with ajustable changover possible.

If use -|P|- and -|N|- for SB3 - increment time is 0.5sec.

 

If user need to change many values - this method is use only two timers for all increment-decrement operations.

User only must to operate this timers via needed buttons.

 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.