Red light delay PLC Help

Japagaijin

Member
Join Date
Mar 2021
Location
Virginia
Posts
4
I am stuck on where to put the 5th timer to put a 3 second delay on the red light in the traffic light program. I have a pic of my plc rungs here
4LzLNx0
 
Last edited:
add delay to red N/S or to red E/W? add delay to transition to on or to off?


if to both red N/S and to red E/W, then with your current design, I think you need a fifth and a sixth timer (maybe TOFs)



With a re-design, I think you can get away with one timer total.
 
Last edited:
Help!!

I need both sides to be on the same delay. Both red lights need to be on for 3 seconds together before the next green cycle starts
 
I need both sides to be on the same delay. Both red lights need to be on for 3 seconds together before the next green cycle starts




No new timers required. Changes to [Red N/S] and [Green N/S] shown below; similar code for [Red E/W] and [Green E/W] is left for OP as an exercise.


4LzLNx0.png
 
Single-timer approach using .ACC: assumes symmetrical operation across directions; includes 3s delay/overlap with both directions red (shown).

Roughly the same number of instructions as OP (2-3doz), but provides separation of concerns:

  • Timing-related logic on rungs 0-2
    • Single timer with breakpoints, plus [N/S half-cycle] bit, means all timing requirements need be written once only (rung 2)
  • Light logic on rungs 3-6
    • Probably busier than it needs to be e.g. take my "Green or Yellow" bit. Please.
  • Intrinsically safe logic(?)
    • Opposite directions' Greens/Yellows dependent on [N/S half-cycle] bit
    • Red lights dependent on same-direction green and yellow only, not timing
Also, it has my favorite circuit, the flip-flop ;).

Caveats


  • It is unlikely that this is the the first instance of this approach
  • I thought this would be cleaner than the cascading timers of OP, and the separation of concerns does help, but in the end it's clarity is less than expected.
  • SQO-driven or similar would be much cleaner and is probably the best way.
  • This approach will probably not scale to more complex intersections e.g. turn arrows, sensors.
  • GRTs should compare against 299 and 2499, not 300 and 2500
xxx.png
 

Similar Topics

I have an Schneider M1E 171CBU98090 Processor adapter with only a solid red 'ERR' light lit. Manual explains flashing red ERR but not Solid with...
Replies
1
Views
1,016
Today I was making an online edit to a 5/40 Series E Rev K.2 with about 14% free memory. I was removing one branch in a large rung. Accept...
Replies
4
Views
3,170
Hi everyone! I have an issue with some Omron CP1L-E PLC's. They're connected to get the info from production machines, but I've noticed that...
Replies
2
Views
1,150
Is there any way to recover a L33ER flashing red OK light or is it just a paper weight?
Replies
4
Views
2,161
We had a leak which got on the plc compactlogix 1769 l36erm. SD card light is red. What does this mean?
Replies
6
Views
2,645
Back
Top Bottom