Dimitri Krut Posted December 5, 2018 Report Share Posted December 5, 2018 I am trying to implement a long button press (>1 sec) to reset a counter or a clock that otherwise need to keep running Can someone point to an example or offer an idea? Thanks! Link to comment Share on other sites More sharing options...
MVP 2023 Ausman Posted December 6, 2018 MVP 2023 Report Share Posted December 6, 2018 OK. Let's break this down to the separate things needed to achieve this. 1). Push a button. 2). Count a period of time that the button is pushed for. 3). At the end of that period of time turn on an output. 4). The output does the required action and then resets. It might even show something on a screen that says it has happened ok and you can now stop pressing the button. Hmmmm. Well that would either be a timer, or a count incrementing in value, continuing to do so whilst the button is held on, and then resetting ready to do it all again on next long push. It's over to you now to work on this idea. cheers, Aus Link to comment Share on other sites More sharing options...
Dimitri Krut Posted December 8, 2018 Author Report Share Posted December 8, 2018 This is what I basically expected. Being new to this, I was hoping that there is some primitive command or function capable of handling this. Long press button features are very common and it would be nice to have it precoded. Thanks, D. Link to comment Share on other sites More sharing options...
hotwires Posted January 1, 2019 Report Share Posted January 1, 2019 It’s not “pre coded”. Fairly simple to construct however. Link display element ( touch feild) to a memory bit (MB1), in ladder use NO contact to drive timer coil, second net: use a PTC (positive transistional contact) to drive a reset integer function —[R]— MB1 T1 ——| |————————( )—— T1 C1 (or T) —-|P|————————[R]—— alternatively I believe timer can "self one shot" but would repeat cyclically if button was held longer than usual: MB1 T1 T1 ——| |———|/|———( )—— T1 C1 (or T) —--| |————————[R]—— Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now