Jump to content

# Continuous increment button

## Recommended Posts

I have a V700.

When i press the button once it increments by one,

but when i press and hold the button i want the value to continuosly increment till I let go of the button.Any idea how to do it?

##### Share on other sites

• MVP 2023

Use a direct contact and a self-resetting timer to increment the register:

This will increment your value every second the button is pressed. Change the timer value to increment faster or slower.

• 1
##### Share on other sites

• 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

• 1
##### 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.

• 1
##### 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.

• 2
##### Share on other sites

Thank  you  guys!

## 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
×

• Leaderboard
• #### Support

×
• Create New...

## Important Information

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