-
Notifications
You must be signed in to change notification settings - Fork 0
Turnouts and Routes
A normal turnout click sends the current element's linear accessory address through the server-side DCC-EX parser as an <a address 0|1> command. The physical DCC packet is placed on the MAIN output; the UI is not merely simulating the state.
The turnout state is cached on the EX-CSB1 and broadcast to all connected clients. A newly connected browser receives the cached state during its staged initial snapshot.
A Route Button contains stable turnout IDs plus a required Closed or Thrown state for each turnout.
- Add a Route Button.
- Select it in Edit mode.
- Use the turnout-selection property.
- Select each left/right turnout and its required physical state.
- Save the layout.
At runtime, pressing the button shows a route-progress overlay with emergency stop. Turnout commands are issued sequentially rather than as one blocking burst. The active route is coloured on the layout when its turnout states match.
An Automatic Route stores start and destination block IDs. The runtime graph finds a compatible path and calculates the required turnout states. Both referenced blocks must still exist and must not be the same block.
The global CHECK command reports:
- deleted or wrong-type turnout references;
- duplicate turnout references inside one route button;
- route buttons with no assigned turnouts;
- missing automatic-route start or destination blocks;
- identical start and destination blocks.
DCCExpressLite for EX-CSB1 · Web Installer · GitHub repository