Adding/Editing Sensors

When adding a Sensor, you select from the drop down list the system to which the sensor is attached to.

Enter in a valid address for that sensor and if desired enter in a user name which can be anything you wish to describe the sensor.

Creating A Number of Sensors

It is also possible to create a number of sensors in go.
Where supported the "Add Range" check box will be enabled.

When checking the "Add Range" box, this will then enable the "Number To Add" field. Here enter in the number of sensors that you wish to add, this will then create that number of sequential sensors.

If a username has been entered a number will be added to the end of the name to keep each username unique.

Hardware Specific Information

NCE AIU Number to JMRI Sensor Mapping

The NCE Axiliary Input Unit or AIU allows the NCE command station to check the status of inputs from the layout. These are referenced in JMRI as sensors with names like "NS785". "NS" means "NCE Sensor", and 785 is the number of a specific sensor input.

The hardware address can be entered in two different ways

Enter in the AIU Cab Address followed by the Pin Number seperated by a ":"
So for a sensor on AIU Cab Address 50, pin 2 you would enter into the Hardware Address field :
50:2

The sensor number can also be found and entered into the hardware address field by using the following formula:

Sensor ID = (AIU Cab Address - 1) * 16 + (Pin Number On AIU) -1

For example: The AIU cab address is set to 50 and one of the BD20s is connected to pin 2. Therefore the Sensor ID would be:

Sensor ID = (50 - 1) * 16 + (2) -1

Sensor ID = 785


LocoNet Sensor to JMRI Sensor Mapping

LocoNet sensor addresses are made up from two different parts the board number and channel number.
Sensors can also be configured from the turnout addresses for the Aux & switch input.

The hardware address can be entered in a number of different ways

Enter in the board number, followed by the channel number seperated by a ":"
So for a sensor on board 11, channel 1 you would enter into the Hardware Address field :
11:1

For Sensors attached to turnouts, you enter into the hardware address field "T:" followed by the turnout number. This will add the aux input associated with the turnout, to add both the Aux and the switch input, click on add range and set the number to add to 2.
So for sensor attached to Turnout 81 you would enter the following:
T:81

The Other method is to calculate the address of the sensor and add it manually into the hardware address field using the following method

If you want to calculate the address of a BDL168 input, you can use
number = 16 * (board number) + (channel number) - 16

where "channel number" runs from 1 to 16. For example, the first circuit (number 1) on board 11 has number:
number = 16 * (11) + (1) - 16 = 161

as we saw in the example above.

If you want to calculate the address of a DS54 aux input, use:
number = 2 * (turnout number - 1) + 1

For example, the aux input associated with turnout 81 has number:
number = 2 * (81 - 1) + 1 = 161

If it's the switch input, you add one more to that:
number = 2 * (turnout number - 1) + 2

For example, the switch input associated with turnout 12 has number:
number = 2 * ( 12 - 1 ) + 2 = 24

Lenz XpressNet Sensor to JMRI Sensor Mapping

XpressNet sensor addresses are made up from two different parts the feedback encoder address and contact.

The hardware address can be entered in a number of different ways

Enter in the encoder address, followed by the contact seperated by a ":"
So for a sensor on feedback encoder address 99, contact 3 you would enter into the Hardware Address field :
99:3

If you wish to calculate the address of the sensor, subtract 1 from the Feedback Encoder's address, multiply that result by 8, and then add the input number you are using.
For Example, if you are using contact 3 on a Feedback Encoder with address 99, 99 - 1 = 98. 98*8=784. 784+3=787.
The feedback address you will use is 787.

Maple and C/MRI sensor to JMRI Sensor Mapping

Maple and C/MRI sensor addresses are made up from two different parts a Node Id and pin/Sensor Id.

The hardware address can be entered in a number of different ways

Enter in the Node Id, followed by the Sensor Id, seperated by a ":". This method can also be used for the alternative/extended addressing.
So for a sensor on Node 2, pin 3 you would enter the following into the hardware address field :
2:3

Another method of adding the sensor address in, is to use the following formula

Node Id x 1000 + pin.
So for a sensor on Node 2, pin 3
(2x1000)+3 = 2003

To use the alternative/extended addressing scheme, refer to the hardware connection guide.

Grapevine Sensor to JMRI Sensor Mapping

There are three separate types of Grapevine sensors:
Advanced Serial Detectors
Up to three Advanced Serial Detector boards can be attached to a Grapevine node. Each provides eight occupancy detectors, and associates a motion detector with each of those.
BoardOccupancyMotion
Master 1-8 9-16
Slave 117-2425-32
Slave 233-4041-48
Original Serial Sensors
Occupancy sensors on the original serial boards replace sensors attached through advanced boards at addresses 1 to 8. There are no motion sensors in this case.
Parallel Sensors
The parallel sensors, connectors on the Grapevine node itself, appear as JMRI sensors 101 to 108 on the node. If the optional second bank of serial sensors are present, they appear as sensors 109 to 116 on the node.