In previous lessons we demonstrated how to vary the time value in a timer using three separate switches and some move instructions. In this lesson, we are going to accomplish the exact same task but using only a single switch.
We will run the conveyor for 5 seconds with the first press, then 7 seconds with the second press and finally 10 seconds with the third press. At any time, if the stop switch is pressed, we will need to start the timing cycles from the beginning.
Sometimes, when you have what seems like an insurmountable task to program, we have some advice as to how to tackle that frustration. Some simple strategies to help you pinpoint how to get started writing your logic. Let’s take a look at this lesson and get some simple advice.