question

jumonville3

Member
Join Date
Nov 2018
Location
munster
Posts
5
• Wire the lights to the PLC appropriately.
• The traffic lights signals should have a start and stop master switches
• The green lights should be ON for 60 seconds in each E-W or N-S directions.
• The orange/amber lights should turn on after 50 seconds and turn OFF with the green lights.
• This means the red lights should also stay ON for 60 seconds in each pair of directions.

what would the program look like, using productivity suite p2000
 
When starting on a homework exercise like this, I would recommend first assigning lights and switches to specific I/O locations. Then work on one requirement for the program at a time.
 
I have been trying many different ways and do not know which way is the best or even which way would work, I was using a drum sequencer
 
I attached a picture of the drum sequence, any help would be much appreciated I have been stuck, and this is just an assignment

Capture.PNG Capture 1.PNG
 
Last edited:
Old traffic lights used electromechanical drum sequencers, so that is a good basis.

You'll find that you will get a lot more help if you show what you've done already to see that you're putting an effort into it, rather than just asking for a solution to your homework.

Good luck! Programming is fun.
 
I have been trying many different ways and do not know which way is the best or even which way would work
There are often many ways to design a control for a specific application. In general, there is no single "best" way.
I was using a drum sequencer
That is a valid approach, although not necessarily the easiest for a novice.
You might also consider a timer with a preset value equal to the duration of one pass through the light cycle. Use the timer's accumulated value to turn the lights on and off.
You might try a state machine approach which uses a set of steps and transitions between steps. At each step you turn on a different set of lights. Transitions between steps could either be timed or in response to events. Events could be the presence of pedestrians or vehicles.
Be aware that once you have the lights wired correctly and a program in place to control them your instructor may ask you to modify your program to add features like pedestrian crossing steps where lights are red in both directions or vehicles in turning lanes or different light timing at different times of day. Try to design an approach that makes future modifications possible.
 
Your drum is progressively turning on all the lights. That wouldn't work too well at an intersection. Draw a time chart of which lights should be on in which time period. Imagine the traffic light. Then go back and modify your drum.
 
Your drum is progressively turning on all the lights. That wouldn't work too well at an intersection.

I think thats how they worked way back in the day, thats why we had to wait forever and a day at some lights.... now most (newer ones) use sensors but a drum would be a good learning tool
 

Similar Topics

I recently uploaded an aplication from a Panel View, created a new screen and now that I've downloaded it to the Panel View, all the texts have...
Replies
9
Views
155
I have never had the pleasure of working with a "Thermistor" until now and have a question. The Thermistor is a 10KOhm 4-20mA 2-wire device and I...
Replies
4
Views
137
Hi All, So I have a main routine with an instruction that's executed by XIC "Run" I have a JSR located on a rung below it. In the logic for that...
Replies
6
Views
244
I have a 120V relay, 120V DI card and a analog input. I was wanting to know if i could put a 24V DI and well as a 120V DI card on the same plc...
Replies
1
Views
104
Hello again..trying something on an existing poorly written program and just wanted to double check something system is an A-B MicroLogix 1200 In...
Replies
5
Views
200
Back
Top Bottom