PLC Programming For Dancing Light - PLC Programming

PLC Programming For Dancing Light - PLC Programming :-
Here in this PLC Program we are considering six numbers of LED , 1 start push button , 1 stop push button and 1 selector switch.
We will write the PLC program for 2 different mode i.e the LED's will glow in two different pattern.
Mode 1 Pattern of LED
Glowing
Time -----------LED1 ------------LED2---------LED3---------LED4--------LED5------------LED6
T=0sec -----------------OFF--------------OFF----------OFF----------OFF----------OFF-------------OFF
T=1sec ----------------ON --------------OFF-----------OFF----------OFF---------OFF-------------OFF
T=2sec ---------------ON --------------ON-----------OFF-----------OFF---------OFF-------------OFF
T=3sec ---------------ON --------------ON-----------ON------------OFF---------OFF-------------OFF
T=4sec --------------ON --------------ON-----------ON------------ON----------OFF-------------OFF
T=5sec -------------ON --------------ON-----------ON------------ON----------ON--------------OFF
T=5sec -------------ON --------------ON-----------ON------------ON----------ON--------------ON
and then again the cycle resets after every 6 seconds.

Mode 2 Pattern of LED Glowing
See below table for a clear understanding.
and then after 3 seconds the cycle resets
Click here to download PLC Program