Traffic Lights

How could I have been so ignorant!!!! wow!!!

You're not the first to run up against this. I read something long ago that went like this - It helps to think of a PLC program rung as one individual task. Each rung gets the processor's attention one at a time in succession. Seems too simple at first but it works.
 
Yes, I have tested it. I have revised it further since I last posted it. I have eliminated most constants and replaced them with registers. The boss was happy about it...very much so.

Now, I need to make it so it adjusts timing to traffic within the timing cycle.
 
Full Traffic Lights - Almost

OK - I have this thing totally working.
The ONLY thing non realistic is that when I cut off opposing straight green to go back to a left turn, I do not go through a yellow transition. It is simply red.

I am attaching the printout - have a look if you like. I welcome opinions and suggestions.

Thanks - David
 
Full Light

OK, Now it is more realistic. There is a yellow transition before stopping say....straight northbound traffic to allow a southbound left turn along with southbound straight traffic.
 
The latest version looks well organized. I am going to take your word that it is working. It looks so much better than your 1st attempt. I only hope I was able to help in some way. The only suggestion I have left is to simplify the nicknames where possible. Some of them are necessary I'm sure. All in all everything looks good.
 

Similar Topics

I am currently am in a PLC class and need urgent help on how the ladder logic would be laid out. I understand how to get the traffic lights to...
19
Replies
5,759
Views
Hi all, I need help to create this program I have problems with the flasher. Develop the program below using RSLogix 500 software. Be sure to...
10
Replies
2,902
Views
Hello everyone... I am new to the PLC world and I would really love it if you gave me some interest about the problem I am dealing with for about...
15
Replies
6,840
Views
Good afternoon, I am studying my HNC and we have PLC classes. I am a beginner, the course has started in August and we are going to have an...
15
Replies
5,227
Views
Hi totally new to plc programming Would anyone have a zelio program for the below they could share, or any assistance would be helpful On signal...
11
Replies
5,005
Views
Top