JMRI : MERG CBUS Command Station Monitor
Main Table - Monitoring train sessions.
Monitors JMRI track blocks to generate CAB Signalling messages.
Top Menu Items
Stop All Button - This is different to the JMRI throttle stop all in that this sends a system-wide stop, not just to JMRI throttles.
Track Power Button - On / Off / Unknown
Signal data Button - On / Off - Experimental
Session Columns Dropdown - Choose which columns to display in table
Signal data Columns - Choose which columns to display in table
Signal data Options - Experimental
Main Table - Train List
Every train heard on the network will be added to the table, there is one row per loco.
Train speed and direction, function status etc. are updated in real time according to the latest instruction by a JMRI throttle, MERG CANCAB throttle controller, or MERG CBUS connected Command Station.
Train Session columns :
- Session Number as determined by command station
- Loco address ID
- E-Stop Button - Stops individual loco
- Long Address true / false flag
- Speed (Commanded)
- Direction ( loco )
- Functions - If a loco function is on, the function number will display.
- Speed Steps ( System defaults to 128 )
- Consist ID
- Flags
Signal Data Columns
- TD Alt - Alternative Block Value to track
- Block - Current Block Username
- Block Button - "Block Lookup" Will search for a block which
matches the loco ID or alternative TD value.
If an existing block is set, the "Reverse Direction" button can manually reverse the current block direction. - Direction of current block
- Next Block Username
- Next Signal Mast Username
- Next Aspect
- Send Cabdata checkbox - Will send an experimental OPC for Cab Signalling when the next signal aspect or speed changes. Over-ridden by the master Cabdata button being switched off.
The table will attempt to identify which block the train is in via the block value ( train describer ).
By default, the table will update when the train number is the block value, this can be changed to track a different block value by adding an alternative in the table.
A block initially has no direction set, forward values can only be calculated when JMRI knows what direction the block is set.
The direction is normally calculated by JMRI when a new block is occupied, then comparing neighbouring blocks.
This process can be triggered manually by clicking the Block Lookup button.
The button will change to a Reverse Direction button if a block is located for the train ID.
In Cabdata options, the Auto-Reverse Block Direction will reverse the block direction on the loco direction changing.
Layout Editor blocks can be checked for continuity in Layout Editor by taking the panel into edit mode, then clicking on Tools > Check.
You can view block routing by right clicking on an individual Layout Editor track segment and selecting View Block Routing.
As the tracking takes data from the block table, if your panel is loaded after the monitor, click on Refresh Blocks, within the Command station Options menu.
The table will follow the block route of the train until it finds the next signal.
This system uses Signal Mast Logic, the legacy Simple Signal Logic within JMRI is not supported.
CAB Data / Cab Signalling
Is currently an experimental feature to enable development of potential Cabdata OPCs, ie Cab-signalling.
The tables contain the data required to enable this.
You can disable sending the OPC either on a system-wide basis by selecting the top menu button, or by train selcting the check-box in the main table train row.
When the JMRI MERG CBUS Command Station Monitor is closed, a final message will be sent to all trains indicating no data available.
Supported Operation Codes
Sent by the Command Station Monitor
- QLOC
- RSTAT
- ESTOP
- RTON
- RTOF
- 0xc2 - Experimental
Listeners for message sent, either by JMRI itself or external to JMRI
- PLOC
- RLOC
- DSPD
- KLOC
- DKEEP ( if session not on table sends a QLOC )
- STAT ( Used to determine if command station is capable of CBUS protocol 8a )
- GLOC
- ERR
- STMOD
- DFUN
- DFNON
- DFNOF
- PCON
- KCON
- DFLG
- ESTOP
- RTON
- RTOF
- TON
- TOF
JMRI Help
You can view this help page within JMRI by selecting Help > Window Help in the top bar of the MERG CBUS Command Station Monitor.
Main JMRI MERG CBUS Help page.
View debug information for the Command station Monitor by adding log4j.category.jmri.jmrix.can.cbus.swing.cbusslotmonitor=DEBUG to your default.lcf file.