Skip to content

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, command 77 (state 1, delay 0) diverts the main track from 21 to 28 by 7.5 m. (Tracks with a minus sign trigger during shunting; without minus — during mainline operation.)
  • Another 77 on the same track diverts from 22 to 28 by another 7.5 m. The 1 second delay is needed so commands do not overlap at the same time.
  • On track 22, command 79 turns on white on shunting signals М11 and М13 after 70 seconds.
  • On track 12, command 78 resets the diverted section (21 to 28) back to the main track for the train run.
  • On track 12, command 79 with state 0 turns off all white shunting aspects. If you do not turn them off, signals М11 and М13 will 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, command 51 turns on white on the departure signal after 60 seconds.
  • On track 4666, command 79 turns on white on shunting signals М34, М31, М21.
  • On track 4666, command 77 diverts the main track from 4673 to 4688 by -7.5 m (to the left). Track 4673 is a switch leading to the track left of the main; 4688 is 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, command 78 resets the diversion from 4673 to 4688 back to the main track, so you can define a new shunting route from scratch.
  • On track 4675, command 77 creates a new shunting route from 4636 to 4688 by -7.5 m. This covers the whole station and shifts it away from the main track for the depot approach.
  • On track 4675, another 77 further diverts from 4636 to 4651 by -7.5 m to enter the depot. Track 4651 contains 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.