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