Shunting
Commands for shunting
To create shunting moves, the following special (non-standard) scenario commands are used.
No. 77 — divert the main track for shunting
Syntax:
<activation track>__77__1__<delay>__<track1>;<track2>;<offset>
This command diverts the main track from <track1> to <track2> by <offset> meters.
- Positive value = shift to the right
- Negative value = shift to the left
No. 78 — reset diverted track back to main
Syntax:
<activation track>__78__1__<delay>__<track1>;<track2>
This command resets the diverted section back to the main track from <track1> to <track2>.
The reset range must include the tracks where you want to cancel the shunting route.
No. 79 — turn on white aspect on shunting signals
Syntax (turn ON):
<activation track>__79__1__<delay>__<signalID1>,<signalID2>
Syntax (turn OFF):
<activation track>__79__0__<delay>
This command turns on the white light on the listed shunting signals.
If no signal IDs are provided, it will turn on white on any shunting signal within 50 meters of the locomotive.
After completing shunting, make sure to turn it off (state 0) to extinguish the white aspects.
Viewing the main track route
In the console, run track 1 to see the main track trajectory and any active diversions.
Example 1: leaving to couple with a train (Kyiv-Pas station, Kyiv–Shevchenko route)
In the scenario, set the shunting start track to 24. After starting the scenario, the hint in the top-left
corner shows that you actually spawned on track 23 (one less than the configured start). On other routes/areas
the offset may differ — always verify it.
Add the following lines to the [troubles] section:
-23 77 1 0 21;28;7.5
-23 77 1 1 22;28;7.5
-22 79 1 70 М11,М13
-12 78 1 0 21;28
-12 79 0 0
Explanation:
- On track
23, command77(state1, delay0) diverts the main track from21to28by7.5m. (Tracks with a minus sign trigger during shunting; without minus — during mainline operation.) - Another
77on the same track diverts from22to28by another7.5m. The1second delay is needed so commands do not overlap at the same time. - On track
22, command79turns on white on shunting signalsМ11andМ13after70seconds. - On track
12, command78resets the diverted section (21to28) back to the main track for the train run. - On track
12, command79with state0turns off all white shunting aspects. If you do not turn them off, signalsМ11andМ13will keep showing white at all stations during the main run.
Example 2: uncoupling and entering the depot (Vyazma station, Moscow–Vyazma route)
After arriving at the final station Vyazma, stop on track 4666.
Add the following to [troubles]:
4666 51 1 60
4666 79 1 0 М34,М31,М21
4666 77 1 0 4673;4688;-7.5
-4675 78 1 0 4673;4688
-4675 77 1 0 4636;4688;-7.5
-4675 77 1 1 4636;4651;-7.5
-4676 0 0 0 ДСП: Останавливаемся, меняем кабину и едем в депо
-4639 0 0 0 Оставляйте электровоз тут и закрепляйте ручными тормозами. Сценарий окончен.
Explanation:
- On track
4666, command51turns on white on the departure signal after60seconds. - On track
4666, command79turns on white on shunting signalsМ34,М31,М21. - On track
4666, command77diverts the main track from4673to4688by-7.5m (to the left). Track4673is a switch leading to the track left of the main;4688is near the end of the route. - After uncoupling, shunting mode begins, so activation track numbers for these commands should use a minus sign.
- On entering track
4675, command78resets the diversion from4673to4688back to the main track, so you can define a new shunting route from scratch. - On track
4675, command77creates a new shunting route from4636to4688by-7.5m. This covers the whole station and shifts it away from the main track for the depot approach. - On track
4675, another77further diverts from4636to4651by-7.5m to enter the depot. Track4651contains a switch from the main track to the depot tracks. - On track
4676, a message is shown to the driver: stop, change cab, and proceed to the depot. - On track
4639, a message indicates completion: leave the locomotive here and secure it with handbrakes.