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

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.

##### Share on other sites

• MVP 2022

(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

##### Share on other sites

• MVP 2022

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.

##### Share on other sites

• MVP 2022

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.

##### Share on other sites

Thank  you  guys!

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×