Scenario: check current speed of the train, and change next signal red/green for one of two ways.
Example β Y-way rails:
.oo>>........//=^====== β it is a detour for fast trains
============== β way for slow trains only (controlled via circuit)
...........!!..^.......^
^ β rail signals (chain or regular)
!! β a new constant combinator
== β rails
Idea: if someone crosses a railroad track far ahead and the train is very fast (speed higher than some limit) - push the train onto a parallel track (but some distance from the straight track) - this will allow keep train speed, and be in safe to cross the railway (unstoppable fast trains). Also, it will be better jump distance control for train ramps in mod: https://mods.factorio.com/mod/RenaiTransportation