monkeyhead123
Member
Hi there,
I have created a ladder that simulates a traffic light system with a pedestrain request button.
My sequence is as follows:
A "reset" button is initally pressed to set the pedestrain light to red and the traffic light to green.
When the pedestrain button is pressed, the sequence of the traffic light begins and runs through until its back at its inital starting state.
However the problem with my ladder is that when the pedestrain button is already pressed and the sequence is running, if its pressed again during the cycle it messes up the cycle!
I'm not asking for a solution here, but more a push in the right direction. I havent the slightest clue on how I would go about preventing that from happening. I'm sure its probably not majorly differcult?
Any ideas and advice would be gratefully appreciated,
Regards,
Matt
I have created a ladder that simulates a traffic light system with a pedestrain request button.
My sequence is as follows:
A "reset" button is initally pressed to set the pedestrain light to red and the traffic light to green.
When the pedestrain button is pressed, the sequence of the traffic light begins and runs through until its back at its inital starting state.
However the problem with my ladder is that when the pedestrain button is already pressed and the sequence is running, if its pressed again during the cycle it messes up the cycle!
I'm not asking for a solution here, but more a push in the right direction. I havent the slightest clue on how I would go about preventing that from happening. I'm sure its probably not majorly differcult?
Any ideas and advice would be gratefully appreciated,
Regards,
Matt