THE WORKSHOP / TRAFFIC SIGNALS & PLC CONTROL

The Crossroads Lab

One left-turn lane, two through lanes, and one right-turn lane on each approach. North and south left arrows run together, then north and south through/right signals. East and west follow the same paired sequence. With demand on only one side, its left arrow and through/right green can run together. All movements stop for pedestrian crossings.

00:00
LIVE SIMULATIONNORTH / SOUTH LEFT ARROWS GREEN
MIDDLE C AVENUE × INDUSTRIAL WAY
Vehicle detectorProtected crossing
0Vehicles through
0Detections
0Queued vehicles
0Pedestrians across

Paired service: opposing left arrows or through/right signals run together.

CENTRAL COMMAND / PLC-01

Operate the intersection.

ONLINE
CONTROL MODEAutomatic
REPORTED PHASENorth / south left arrows green
ACTIVE PROGRAMv1
VEHICLE QUEUE0

Live simulated telemetry.

OPERATOR COMMANDS

Select a command. Requests use the controller’s signal transitions.

All-red hold finishes any active pedestrian crossing and clears vehicles first. Direction requests follow clearance and pending pedestrian calls. Network loss blocks remote commands; local control continues.

ALARMS & ADVISORIES

Acknowledging records operator awareness. An active condition remains visible until it clears.

Operator command history 0 entries
Simulation timeCommandResult

ENGINEERING WORKSTATION / PROGRAM EDITOR

Change the logic. Watch the result.

Active program v1

This editor supports the assignments and Boolean expressions shown here. It is a small simulation dialect inspired by Structured Text. Changes run in this browser tab; reloading restores the published default program.

LIVE LOGIC CONDITIONS · LOCAL VIEW

MinGreen, MaxGreen, Yellow, and AllRed apply to paired and single-approach phases. EndGreen is evaluated during each green. An opposite-side arrival ends combined service after minimum green, even if EndGreen remains false; yellow and all-red clearance still follow. The controller owns the clearance and pedestrian interlocks.

PROGRAM BOUNDARIES
  • Green: minimum 2–45 s; maximum up to 60 s.
  • Yellow: 2–10 s. All-red clearance: 1–10 s, extended until the intersection clears.
  • Pedestrians: protected crossing stays at 30 s. WALK is adjustable from 3–10 s.
  • Dimmer: choose minimum and maximum output from 10–100%.

A downloaded program waits for a clear all-red boundary. Existing signals and the active crossing finish under the current program.

Supported expressions & inputs

AND, OR, NOT, parentheses, TRUE, FALSE, and comparisons >= <= > < = <>.

GreenTime: elapsed green seconds
MinGreen / MaxGreen: timer settings
PedCall: pending pedestrian request
OpposingCall: demand outside the active service group; during a single-approach phase, any opposite-side demand waits
CurrentOccupied: detector occupancy in any currently served lane, including all lanes during single-approach service

BEHIND THE INTERSECTION

From field input to physical action.

EWSEngineering workstation192.168.20.10Monitoring online
Ethernet · P1
SWManaged switchVLAN 20 · Layer 2P1: EWS · P2: PLC
PLC chassis192.168.20.20 · shared backplane

Controller / CPU

Reads detector and pushbutton inputs, runs the signal sequence, and commands the field outputs.

FIELD INPUTS Inductive loops · Pushbuttons · Ambient-light sensor
FIELD OUTPUTS Signal drivers · Pedestrian indicators · Dimmer
LOCAL PLC DIAGNOSTICS

AO0 dimmer: 8.3 V · Adjust daylight to see the scene and lamp intensity respond.

Controller events

    Vehicle-actuated timing

    The loaded program sets the green, yellow, and clearance timers. Detector calls and the editable EndGreen condition determine when a phase ends. The maximum green timer bounds every cycle.

    Protected pedestrian phase

    Once the current vehicle phase and clearance finish, requested crossings receive 30 seconds. The program sets the WALK interval; the remaining time is reserved for finishing the crossing.

    Local control keeps running

    Disconnect Ethernet to take the workstation offline while the PLC continues controlling the intersection. Local diagnostics remain visible for learning.

    Educational simulation with illustrative timing, I/O, and network addresses. Four incoming lanes and four outgoing lanes per road; turning paths, paired phases, and single-approach combined phases are simplified. Real road installations require purpose-built traffic controls and site-specific engineering. At 1×, the crossing countdown lasts 30 real seconds.