In the previous lesson we began writing some code that would turn on 16 lamps, all at once, with the press of a switch. Once the switch is released, after a short delay, the lamps are supposed to turn off, one by one, every second until they are all off. We simulated the code only to find that we had a problem. In this lesson, we continue working with the same code and add some additional logic to make the program work as we anticipate. Let’s see how we accomplished our goal.
In the previous lessons we have been working with some code that turns on multiple lamps with the press of a single switch. After a short time delay, the lamps are supposed to turn off one at a time, one every second until all of lamps are turned off. As you know during writing and testing, we ha...
In previous lessons, we have been working with the shift instruction and have written a few lines of code that will turn on and off some PLC outputs in a specific order. We’ve been writing code to create different patterns to turn on and off 16 lamps. We started out using 2 switches and eventuall...
We have been working, for a few lessons, on a PLC shift instruction to turn on and off some lamps, in different sequential patterns. We will continue to modify our program from the previous lesson, where we worked with the logic such that we wanted to turn on the first lamp and after a delay, tur...
1 Comment