Kkula
Browse Questions » LOGO! - Projects: Indexing a timed output?

About User

Questions Asked: 29.3K

Answers Given: 0

0
  • Open

LOGO! - Projects: Indexing a timed output?

I'm trying to write code that expands on the
"Controlling_2_Outputs_With_1_Pushbutton.lsc"
example I downloaded the other day. I would like to have a counter count the number of times I close the momentary switch and cycle the timer, and therefore the output, that number of times.
I have it working now that if I hit the button for less than one second the output will set for 5 sec. I want to add a counter so that if I hit the button 3 times, the output will be set for 15 seconds, hit the button 5 times the output sets for 25 seconds, etc.
I can count the hits on a button and set the output, but I'm having trouble figuring out how to decrement the counter each time the timer times out and then get the timer to start again if the counter is still greater than 1.
I'm chasing my self in circles trying to figure out how to do that. Currently using an 0BA5 unit.
Picture of current circuit attached.
Don

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(0)