The traffic light controller should have 4 states in total:
at start , the green traffic light and the red footwalker light is active
when pushbutton is pressed the yellow light of traffic lights becomes active and the red footwalker light still remains active while the timer starts for 3 seconds.
in next state, the traffic light turns to red while the footwalker light turns to green and another timer starts for 20 seconds.
in next state, after the timer expires the traffic light becomes yellow again and the footwalker light becomes red and the first timer runs again for 3 seconds. the program returns to its initial state after the completion.
The state can been seen here:
The circuit diagram implemented in profilab is shown in the image given below:
I have been trying since last week and i have successfully implemented 3 states in profilab expert4.0 but i am unable to execute the 4th state. if i implement the 4th state, the whole program stops working.
the content of the ROM for my working example (for only 3 states) is:
If someone helps me with this problem and guide me what should be the contect of the ROM for first 16 locations. Regards