street light program

brand_newdude

Member
Join Date
Apr 2013
Location
canada
Posts
2
i was just curious on how to develop a plc program controlling 6 traffic lights ( 2 green,2 yellow, 2 red)three indicators should be used to control EAST/West traffic and the other three used to control North/South. Using an SQO instruction and a self resetting 2 second timer.
 
To use an SQO to solve the traffic light problem, you have to completely define your light patterns in terms of the Output Word O:2, bits 0, 1, 2, (3 not used), 4, 5, & 6. For example the bit pattern for the first step might be to turn on both Red lights (E/W and N/S), O:2/0 and O:2/4, with all other lights off. To do that, your Output bit pattern from high to low bit would be "0 0 1 0 0 0 1". If you go to the Data Table and view that pattern as a Decimal number, Binary 001001 = Decimal 17. So you need to MOVe "17" into the SECOND memory location of your Sequencer File. Say you start your SQO File at #B3:0, then B3:1 needs to have a value of Decimal "17" MOVed into it. Continue like this for the other 5 lights, setting up a stored number that represent the binary value for the light Oututs in each step of the 6-step cycle, then use a timer to trigger the SQO each time the traffic light changes. I suggest switching times of 1, 11, 91, 131, 221 for a 0-to-26.1 second cycle.
...and a self resetting 2 second timer.
Wait, you have lost me with that 2 second timer. That is awfully SHORT for a complete 6-light 6-cycle traffic light. Those drivers are really going to have to be on the ball. There will be no time for little old ladies going to church!
 
Last edited:
it was just the instructions i got.... thanks for the tips though
If you are using LogixPro, you and your instructor are going to have a hard time trying to find a 2 second timer. If you use any other software, you may find that 2 seconds is too short for a yellow light, and not workable for a green cycle (no car can get moving in time to make it through).

Even though it is a student problem, it should have some resemblence to the practical realities of the world we live in, not the imaginary student ivory towers.
 
Last edited:

Similar Topics

I'm designing a 4 way light, 3 lights for NS and 3 for EW. I've got the lights working properly on set times. I now need to make it to where the...
Replies
15
Views
3,608
Hello everyone. I am working on designing a call light/alarm system I have roughly 20 stations that will each have their own call switch. Then...
Replies
20
Views
445
Hi Guys, I have a 1769-L24-QBFCB1 that has the OK light flashing on the embedded counter module. The manual states it is a resettable fault, but...
Replies
0
Views
104
Hi to all. On our Siemens PLC power supply, the battery light is showing amber. If we do not immediately change the batteries, will we lose the...
Replies
3
Views
135
Hi all, I have a question about light towers, the way I have always used them and the way I was taught is like indicator lights, i.e. Green...
Replies
8
Views
351
Back
Top Bottom