11/27/2020 2:36 PM | |
Joined: 1/24/2012 Last visit: 3/2/2024 Posts: 34 Rating: (0) |
With only a single input available, I need a multi-function momentary push button switch to activate 2 different Qs. Press and Hold PB for 3 seconds to start Q1…press again to reset Q1 Press PB 3 times to start Q2…press a 4thtime to reset Q2 If PB is pushed only once or twice, reset counters after 10 seconds. My design works but seems overly complicated. Is there a better way? AttachmentMulti-Function PB.zip (279 Downloads) |
12/3/2020 11:29 AM | |
Joined: 3/2/2020 Last visit: 2/20/2023 Posts: 70 Rating: (10) |
You found an interesting solution. Is it intended, that by two short presses followed by a 3 second press both outputs can be switched on? And that I than need to press once to switch of Q1 and an additional 3 times to switch off Q2? If I press the button more than 0.2s Q1 is switched on for a short time and switches off again... I've created another solution (without first looking at yours) that should not have those quirks but is even more complex :) AttachmentPB-Multi.zip (289 Downloads) |
12/3/2020 12:53 PM | |
Joined: 2/22/2008 Last visit: 8/6/2024 Posts: 2698 Rating: (208) |
Depending on the application it may be easier to use 2 different times, e.g. short<0.5s, long>1s and reset>3s, see example in attachment. Regards, Scorp AttachmentMultibutton.zip (287 Downloads) |
12/3/2020 3:08 PM | |
Joined: 1/24/2012 Last visit: 3/2/2024 Posts: 34 Rating: (0) |
Thanks for the input and proposal. I've worked on revising my program over the past few days. It's still complex, but I'll accept my failure for a more elegant solution. Simulation and live testing seems to handle my requirements. 1) Press and HOLD momentary push button for 3 seconds to activate Q1 for 30 seconds. Press again to cancel Q1 timer. 2) Press momentary push button 3 times to activate Q2 for 3.6 minutes Press again to cancel Q2 timer. Function Block B008 resets Up/Down Counters after 3.6 minutes... IF operator presses PB only once or twice. AttachmentMulti-Function PB Ver2.zip (281 Downloads) |
12/5/2020 9:35 AM | |
Joined: 3/29/2012 Last visit: 9/11/2024 Posts: 61 Rating: (0) |
AttachmentTWO_OUTPUT_ONE_INPUT_LOGO8_STANDARD.zip (309 Downloads) |
johnluck |
|
Follow us on