How to add signals that follow train detection with JMRI
Draw your layout in JMRI's Layout Editor, link blocks to occupancy sensors and let Signal Mast Logic set signal aspects automatically.
- Time
- 2–3 hours
- Difficulty
- Medium
- Cost
- No extra cost
- Steps
- 8
- Checked
What you’ll need
- JMRI connected to your layout (or a simulator connection)
- Occupancy detection on the layout
- Signals driven by a JMRI-supported decoder or board – or virtual masts to start
Step by step
-
Step 1: Create a Layout Editor panel
In PanelPro choose Panels ⇒ New Panel ⇒ Layout Editor. Draw track segments and turnouts that match your layout.
Next: step 2 -
Step 2: Add sensors and turnouts to the tables
Use Tools ⇒ Tables ⇒ Sensors and Tools ⇒ Tables ⇒ Turnouts to add your detectors' sensors and your points with clear user names.
Next: step 3 -
Step 3: Create blocks and assign sensors
Give each track segment a Block: Name, then assign the block's occupancy sensor (via the block's Create/Edit dialog or Tools ⇒ Tables ⇒ Blocks). A sensor can belong to only one block.
Next: step 4 -
Step 4: Add signal masts
Open Tools ⇒ Tables ⇒ Signals ⇒ Signal Masts and add masts, choosing a signal system, mast type and driver. Use a Virtual Mast if you have no hardware yet.
Next: step 5 -
Step 5: Place masts at block boundaries
Right-click a turnout, bumper or anchor point and choose Set Signal Masts. JMRI explains that a mast protects the track beyond it up to the next mast.
Next: step 6 -
Step 6: Generate the signal logic
Run Tools ⇒ Auto Generate Signaling Pairs to create Signal Mast Logic. Masts show a red X until logic exists.
Next: step 7 -
Step 7: Test it
Toggle sensors and turnouts on the panel and watch the aspects change. Then run a train.
Next: step 8 -
Step 8: Save
Use File ⇒ Store ALL table content and panels....
Tips
- Work through JMRI's own Getting Started tutorial with the simulator before wiring real signals.
- Use consistent names (block, sensor, mast) so the tables stay readable.
Questions people ask
Can JMRI drive UK-style signals?
When you add a mast you choose a signal system (JMRI's tutorial uses 'Basic Model Signals'); look through the list for one that suits your railway.
Can signals work without a computer?
Yes – some accessory decoders and detectors can drive signals directly, and DCC-EX EXRAIL can define signals with SIGNAL(red, amber, green).
Sources
Checked 18 October 2026. We wrote this guide in our own words, using:
- JMRI PanelPro: Getting Started (jmri.org)
- JMRI Layout Editor help (jmri.org)
- DCC-EX: EXRAIL command reference (dcc-ex.com)
- Digitrax BDL168 occupancy detector manual (digitrax.com)
Was this guide helpful?
Report a problem with this guide
Printed from dcctrainautomation.uk/guides/add-signals-that-follow-detection/ · Checked 18 October 2026 · General information only. Follow the maker’s instructions for your own equipment, and keep mains wiring inside properly made, enclosed power supplies.