Train tracking follows each train from Block to Block, works out where it is between detectors, and explains what it has found. It only watches: it doesn't set turnouts or signals, hold Blocks, or stop trains, and Dispatcher, Warrants and throttles carry on as they are.
A train is followed once it has been placed: when Dispatcher starts an Active Train in an occupied Block, or when a Block's value is set to the train (its roster entry, ID tag or name). From then on, each time a Block next to one of the train's ends becomes occupied along a path that is set, the train has entered it; when a Block at its rear becomes empty, it has left it. A Block with no occupancy sensor has no detector: a train is followed through it when it is seen in the next detected Block.
For each train, train tracking records how sure it is of where the train is:
On a Layout Editor panel in operating mode, right-click a Block's track and choose Block ...; or right-click a Block Contents icon (its double-click still edits the Block's value). The dialog shows the trains in the Block and how sure train tracking is of each. Why says how each train came to be there, and History lists the last 20 things that happened in the Block.
Tools > Train Tracking > Measurements lists what train tracking has measured this session, for each Block and way through it (the Blocks it was entered from and left for): how many times a train's leading end has crossed it, how fast on average (the length of that way through the Block divided by the time from entering it to entering the next), and, for trains whose lead loco has a speed profile and whose speed wasn't changed on the way, how that compares with the speed the profile gives. A Block much slower or faster than its trains' profiles may have the wrong length. It also counts how often each Block's detector stopped seeing a train that train tracking was sure was there. Nothing uses the measurements yet.
Once a way through a Block has been crossed, at a steady speed, at least three times at speeds far enough apart (the slowest taking at least half as long again as the fastest), two more columns are filled in. Detector Offset is a fixed time added to every crossing whatever the speed: how much later the next Block's detector reports a train than this Block's did, as a slow detector or a debounce delay on it would make it. Against Profile, Offset Removed is how the trains' speed compares with their profiles once that time is taken out. An offset of a few hundredths of a second is normal; a larger one points at the detector, and a percentage well away from 100% at the profile or the Block's length.
Only detectors are measured from. A Block whose occupancy sensor is an internal sensor, set by a script, Logix or LogixNG rather than by hardware on the layout, is followed but not measured. With simulated trains, where there is no layout hardware, the window says that what it lists was measured from simulated trains.
The Block Table has a Train column, showing the trains train tracking has in each Block, and a Why? column, both hidden until chosen from the column header's right-click menu. The Block's Value column is unchanged.
When a train has the same name as an Operations train that has been built, train tracking takes what the train is made up of from Operations. The train is divided into the parts it will be split into: each group of cars to be set out at the same stop, and what goes on to the end with the engines. Each part's length is worked out from its cars' and engines' lengths in Operations, at Operations' scale. Their total is the train's Operations length. Both are taken again each time the train moves on to its next stop. The Block dialog shows the train's work at its next stop: how many cars and engines it is to set out and pick up there.
Detection sees wheels, never buffers, so train tracking places a train's real ends beyond its detected wheels by its wheel overhang: how far the buffer beam reaches beyond the outer axle. Enter it for a loco in its roster entry, as Wheel Overhang (mm), front and rear, in millimetres on the model. It is used for the engine at each end of each part of an Operations train, and for the front of a train whose Train Detection is Head Only or Head and Tail, which its lead loco leads. Where none is known, a generous default for the layout's scale is used (4 m at full size, about 46 mm in HO), so a missing value holds a little more track, never less.
Thanks and congratulations to all who contributed! Contact us via the JMRI users Groups.io group.
Copyright © 1997 - 2026 JMRI Community. JMRI®, DecoderPro®, PanelPro™, DispatcherPro™, OperationsPro™, SignalPro™, SoundPro™, TrainPro™, Logix™, LogixNG™ and associated logos are our trademarks. Additional information on copyright, trademarks and licenses is linked here.
View the