⚠ Scene is in a background tab — browser may throttle it. Open in a separate window for best performance.
TRAFFIC LIGHT INTERSECTION v1.100
STOPPED
SIM SCAN: 
DISCONNECTED
Drag=Orbit · +−=Zoom · Arrows=Orbit
BRIDGE WS URL: Run acc-modbus-bridge.js first, then click CONNECT
ACC MODBUS BRIDGE  —  INSTALL GUIDE

What is the ACC Modbus Bridge?

A small Node.js program that runs on your PC and connects this browser scene to a real Modbus TCP or Modbus RTU master such as a PLC, SCADA system, or Modbus Poll software.


Step 1 — Download the installer

Download the zip file and extract it to a folder on your PC.

Download acc-modbus-bridge.zip

Step 2 — Install Node.js (one-time)

The bridge requires Node.js. Download the LTS version from nodejs.org and run the installer.


Step 3 — Run the installer

  1. Extract the zip file
  2. Windows: double-click install.bat
  3. macOS: double-click install.command
  4. Follow the on-screen prompts to choose Ethernet (TCP), Serial (RTU), or both
  5. The installer creates a start-modbus-bridge shortcut for you

Step 4 — Start the bridge

  1. Double-click start-modbus-bridge.bat (Windows) or start-modbus-bridge.command (macOS)
  2. Keep the terminal window open while using Modbus

Step 5 — Connect this scene

  1. Confirm the Bridge WS URL is ws://127.0.0.1:8502
  2. Click CONNECT — the badge turns amber when linked

Modbus Address Map — Traffic Light Intersection

  1. Coil 00001  →  Y1 NS Green (master writes)
  2. Coil 00002  →  Y2 NS Yellow (master writes)
  3. Coil 00003  →  Y3 NS Red (master writes)
  4. Coil 00004  →  Y4 EW Green (master writes)
  5. Coil 00005  →  Y5 EW Yellow (master writes)
  6. Coil 00006  →  Y6 EW Red (master writes)
  7. DI   10001  →  X1 Ped PB N/S (master reads)
  8. DI   10002  →  X2 Ped PB E/W (master reads)

More tutorials at  accautomation.ca  ·  YouTube @ACCautomation

OUTPUTS Y
Y1
NS GreenNorth/South go
Y2
NS YellowNorth/South caution
Y3
NS RedNorth/South stop
Y4
EW GreenEast/West go
Y5
EW YellowEast/West caution
Y6
EW RedEast/West stop
Drag to orbit · Scroll/+−=Zoom · Arrows=Orbit
INPUTS X
X1
Ped PB N/SCross E/W road (N.O.)
X2
Ped PB E/WCross N/S road (N.O.)

Phase Status

Phase:

Sequence Log

Open ACC PLC Simulator to link — or press RUN for standalone modeSCAN #0

TRAFFIC LIGHT INTERSECTION SCENE

Four-Way Intersection with Pedestrian Requests

A twilight four-way intersection with N/S and E/W signal heads, road markings, pedestrian crosswalks, and corner buildings. Two pedestrian push buttons allow walkers to request an extended green phase. This scene teaches timed sequence control — one of the most common patterns in industrial PLC programming.

I/O MAP
AddressDirDescription
X1INPed button N/S — request extended N/S green
X2INPed button E/W — request extended E/W green
Y1OUTN/S Green light
Y2OUTN/S Yellow light
Y3OUTN/S Red light
Y4OUTEW Green light
Y5OUTEW Yellow light
Y6OUTEW Red light
FIVE STEPS TO PLC PROGRAM DEVELOPMENT

Use these five steps to develop your ladder program for this scene. Run standalone mode first to observe correct behaviour, then build and test your program in the ACC PLC Simulator.

STEP 1

Define the Task

A four-way intersection must cycle through standard traffic signal phases automatically. N/S and E/W traffic must never have green simultaneously — a critical safety interlock. Yellow phases warn before red. A brief all-red clearance interval separates opposing greens. Pedestrian buttons must extend the relevant green phase by 5 seconds when pressed.

STEP 2

Define the Inputs and Outputs

X1=Ped N/S (extends N/S green so pedestrians can cross E/W road), X2=Ped E/W (extends E/W green so pedestrians can cross N/S road). Y1=NS Green, Y2=NS Yellow, Y3=NS Red, Y4=EW Green, Y5=EW Yellow, Y6=EW Red. Critical: at all times at least one direction shows red. During all-red clearance, both Y3 and Y6 are ON.

STEP 3

Develop the Sequence of Operation

Six phases: (1) NS Green + EW Red (~20s). (2) NS Yellow + EW Red (3s). (3) All Red (1.5s). (4) EW Green + NS Red (~20s). (5) EW Yellow + NS Red (3s). (6) All Red (1.5s). Repeat. Pedestrian: X1 pressed → extend phase 1 by 5s. X2 pressed → extend phase 4 by 5s. Request made during wrong phase must be stored and honoured next cycle.

STEP 4

Develop the PLC Program

Use TON timers (T1–T6) for each phase duration. Use C bits to track which phase is active — only one should be ON at a time. Each T/DN bit advances to the next phase. For pedestrian extensions, latch a request bit and add extra time to the relevant timer when the correct green phase is active.

STEP 5

Test the Program

Connect the scene, press RUN, observe the cycle. Verify: correct output pairs for each phase; yellow appears briefly between each green change; N/S and EW are never both green; X1 during N/S green visibly extends it; X1 during EW green stores the request and extends N/S green next cycle.