V700 Posted November 14, 2020 Report Share Posted November 14, 2020 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? Quote Link to comment Share on other sites More sharing options...
MVP 2021 Flex727 Posted November 14, 2020 MVP 2021 Report Share Posted November 14, 2020 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 Quote Link to comment Share on other sites More sharing options...
MVP 2021 Ausman Posted November 14, 2020 MVP 2021 Report Share Posted November 14, 2020 (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 Quote Link to comment Share on other sites More sharing options...
MVP 2021 Flex727 Posted November 15, 2020 MVP 2021 Report Share Posted November 15, 2020 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 Quote Link to comment Share on other sites More sharing options...
MVP 2021 kratmel Posted November 15, 2020 MVP 2021 Report Share Posted November 15, 2020 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 Quote Link to comment Share on other sites More sharing options...
V700 Posted November 15, 2020 Author Report Share Posted November 15, 2020 Thank you guys! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.