Signal Mast Logic - Adding Turnouts and Sensors to JMRI

The first stage of constructing our layout within JMRI is to make entries in the Turnout Table and the Sensor Table. These define the turnouts and the occupancy sensors on the layout.

The above shows the turnout table with two entries.

Turnouts can be added with the "Add..." button. Our finished turnout table for the layout will have three entries, one for each of our turnouts.

Note that we give them a meaningful "User-Name", it is much simpler to work with meaningful names, and also subsequent hardware changes are quicker and easier if "User-Names" are used within JMRI.

From the table, it is possible to control the turnouts by clicking on the button in the "Cmd" column - this is useful for testing that the table is correctly constructed !

A similar set of entries are required for sensors in the Sensor Table.

In the extract above, we have four LocoNet sensors (prefixed LS) and four internal sensors (prefixed IS). The LocoNet Sensors will show "active" when the hardware sensor detects stock on the track. Where we don't have physical hardware, but anticipate needing a sensor, an Internal Sensor (prefixed IS) is added.

As with the Turnout Table, it is important to give things meaningful entries in the field "User-Name".

The video below will step through the addition of items to the Turnout and Sensor tables:

The download below contains the JMRI file for the work so far, it can be saved locally and opened with "Open Panels.." on the "Panels" menu of JMRI.

[ Link to download file - use "Save As" to save this file ]

Move on to Part 5

Back to Introduction