A traffic light PLC (programmable logic controller) is an industrial computer that runs the sequence and safety logic for a signalized intersection, replacing older relay-based controllers with a programmable, fault-monitoring device. It reads vehicle and pedestrian detectors, drives the red, yellow and green lamps through the correct phases, and enforces conflict monitoring so that opposing green signals can never be illuminated at the same time.
Background: From Relay Panels to Programmable Controllers
Early traffic signals were electromechanical. A motor-driven cam stack, or a panel of relays and timers, stepped through the phases in a fixed order. Changing the timing meant rewiring or swapping cams. From the 1970s onward, solid-state controllers appeared, and today most permanent intersections are run either by a dedicated traffic signal controller (often called a traffic controller unit) or by a general-purpose PLC programmed for the intersection.
The PLC approach is common in industrial plants, private sites, car parks, factory gates, temporary works and smaller municipalities that already standardise on a PLC brand. It offers flexible programming, built-in diagnostics and easy integration with SCADA or building management systems. A dedicated traffic controller, by contrast, is purpose-built to meet formal traffic signal standards and usually includes certified conflict monitoring as standard. The two approaches overlap, but they are not identical in certification or in the way they are maintained.
How a Traffic Light PLC Works
A PLC runs a repeating scan: it reads all inputs, executes the control program, then writes all outputs. For a traffic light, that cycle happens many times per second. The program holds the intersection in a state (a phase) until the timing and detector conditions allow a transition.
- Inputs: inductive loop detectors buried in the road, video or radar presence detectors, pushbuttons for pedestrians, and feedback contacts from the lamp circuits.
- Outputs: relay or triac outputs that switch the lamp heads, plus outputs to pedestrian displays and sometimes to a central traffic management system.
- Timers: minimum green, maximum green, yellow change interval, all-red clearance and pedestrian walk/flash times.
- Conflict monitoring: a separate check, ideally in separate hardware or a certified safety module, that verifies no conflicting green outputs are on together and forces the signal to all-red if a fault is detected.
A typical vehicle phase sequence is: green, then yellow, then all-red, then the conflicting direction receives green. The yellow interval gives drivers time to stop or clear the intersection; the all-red interval provides clearance before the next movement is released. Pedestrian phases run in parallel with compatible vehicle movements or in an exclusive all-pedestrian stage.
Designing the Phase Sequence
The logic is usually written as a state machine. Each state defines which lamps are on, which timers are running and which conditions trigger the next state. A simple two-road intersection might have these states:
- North–south green (minimum green timer running, extended by detectors up to maximum green).
- North–south yellow (fixed clearance interval).
- All-red (clearance for vehicles already in the junction).
- East–west green, then yellow, then all-red, then back to step 1.
Pedestrian demands are inserted where they do not conflict with moving traffic. A pushbutton registers a call, and the controller serves it at the next safe opportunity. In PLC terms, this is usually a set of interlock conditions: a pedestrian walk output may only energise when the parallel vehicle movement is green and the conflicting movements are red.
The program must also handle detector failures, lamp failures and power-up. On power-up, a safe default is all-red flash or dark, followed by a controlled restart into a known phase. Lamp feedback contacts let the PLC detect a failed bulb or LED module and log a fault rather than silently losing a signal.
Choosing Between a PLC and a Dedicated Traffic Controller
The choice depends on the site and the regulatory environment. In many countries, public-road intersections must use equipment that meets a formal traffic signal standard and is maintained by trained signal engineers. A general-purpose PLC may not carry the same certification, even if its logic is correct.
- Public highway intersection: a dedicated, standards-compliant traffic controller is usually required, with certified conflict monitoring.
- Private site, factory or car park: a PLC is often acceptable and can be integrated with existing plant control.
- Temporary or portable signals: purpose-built portable controllers are common; PLCs appear in bespoke temporary setups.
- Integration needs: if the signal must talk to a SCADA system, a PLC may be simpler to integrate.
- Maintenance: consider who will service it. A PLC needs someone who can read ladder logic; a traffic controller needs someone trained on that controller's configuration interface.
A common misconception is that a PLC is automatically cheaper or safer than a dedicated controller. A PLC can be cheaper in hardware for a small private site, but the engineering, safety validation and ongoing support can outweigh the savings. Safety comes from the overall design, including conflict monitoring, wiring practice and maintenance, not from the PLC alone.
Common Problems and Faults
Most traffic light PLC faults fall into a few categories:
- Detector faults: a failed inductive loop can cause a phase to be skipped or a green to be held too long. The PLC may log a detector stuck-on or stuck-off condition.
- Lamp and output faults: a failed output relay or lamp driver leaves a signal dark. Lamp feedback monitoring helps catch this.
- Timing errors: incorrect yellow or all-red intervals create a safety risk. These intervals are set from approach speed and road geometry, not guessed.
- Logic errors: a programming mistake can allow a conflicting green. This is why independent conflict monitoring is essential.
- Electrical noise and surge damage: outdoor cabinets are exposed to lightning-induced surges. Proper surge protection and earthing matter.
When a fault occurs, the safe response is usually to place the signal in flashing amber or all-red flash, depending on local rules, and dispatch maintenance. A PLC program should include a fault routine that forces this safe state rather than continuing to run with a detected conflict.
Safety and Standards
Traffic signals are safety equipment. The key safety principle is fail-safe behaviour: if a fault occurs, the signal should move to a state that is at least as safe as, or safer than, normal operation. Conflict monitoring is the central safeguard. It checks that green outputs for conflicting movements are never energised together, and it should be independent of the main control program.
Clearance intervals are not arbitrary. Yellow change and all-red intervals are calculated from approach speed, driver reaction time and intersection width, following established traffic engineering guidance. Shortening them to improve flow is a recognised safety hazard. Signal heads must also be visible and correctly positioned; the controller cannot compensate for poor physical layout.
Where public roads are involved, local traffic authorities set the rules for approved equipment, inspection and maintenance. A PLC installation on a public road should be checked against those requirements before it is commissioned.
Frequently Asked Questions
Can a standard PLC be used for a public road traffic light?
In many jurisdictions, public-road signals must use approved traffic signal controllers that meet a formal standard, including certified conflict monitoring. A general-purpose PLC may not qualify. Check with the local traffic authority before designing or installing one.
What is conflict monitoring in a traffic light PLC?
It is an independent check that verifies conflicting green signals are never on at the same time. If a conflict is detected, it forces the signal to a safe state such as all-red flash. It is a core safety function, not an optional extra.
How long is a yellow light?
Yellow change intervals are calculated from approach speed, reaction time and intersection geometry, typically around three to five seconds for many urban approaches. The exact value should follow local traffic engineering guidance, not a fixed guess.
What happens when a detector fails?
A failed detector can cause a phase to be skipped, or a green to be held until maximum green. Well-designed programs log the fault and may fall back to a safe fixed-time mode so the intersection keeps operating predictably.
Can a PLC control pedestrian signals too?
Yes. Pedestrian pushbuttons are inputs, and walk and flashing don't-walk outputs are driven by the PLC, interlocked so pedestrians are only released when conflicting vehicle movements are stopped.
Why do traffic lights sometimes flash amber?
Flashing amber is a common fault or off-peak mode indicating caution. It is often triggered by a detected fault, a communications loss or a configured night-time mode, depending on local rules.