From the course: PLC Sequencer Logic

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Traffic light ladder logic

Traffic light ladder logic - Ladder Logic Tutorial

From the course: PLC Sequencer Logic

Traffic light ladder logic

- [Instructor] The sequencer output instruction has the following parameters. The file is #B3:0, the mask is 03F, destination is output two, control file is R6, and finally, the length is four. For the solution, I'm going to use a timer to achieve the false to true trigger to go through the sequencer steps of the traffic lights. Any preset value for the timer can be used. I used 30 seconds between the transition. However, note that 30 seconds is short time, obviously. It is used for demo only. Then when the timer is done, the position on the sequencer instruction is incremented by one for each false to true transition of the sequencer run. When the position parameter reaches four, the value in the length parameter, the done bit in the instruction is set to one. On the next false to true transition on the run, the position parameter is automatically reset to one. And the process keeps repeating by alternating…

Contents