Building train signals
Train signals are a little bit weird at first, but when you understand them it makes so much sense.
When making signals you need to know whether you want tracks to be one or two-way. I'm going to assume the following:
All tracks except for the top right ones are one-way.
When building rail signaling, here are a few things to keep in mind:
- When a track splits, you need to have a rail chain signal that "predicts" which of the next tracks is empty
- If you want a track to be one-way, you must place a signal only on the right side of the track. Your design is perfect so trains can't get stuck (a common thing with two-way tracks)
How (normal) train signals work
Every train signal defines a "block". When a train enters that block, the signal displays 'red' and other trains can't enter that block.
Because there is a train after the signal, it becomes red. Dark yellow represents the block that the signal creates.
Chain signals work the same way, except they inherit the status of the next signal. If a track splits, it checks both ways. If one of the tracks is not empty, the chain signal becomes blue, signaling the train that only one of the train tracks is empty.
How I would make this work
Lets start with the top right corner - the two-way tracks. Because trains need to be able to pass both ways, these tracks need signals on both sides.
Here is what I mean (see 1):
When the train is coming from the left, the chain signal indicates which of the tracks is empty (dark and light blue block). When the train is coming from top/right, the chain signal indicates whether the (dark yellow) block is empty.
The same principle is used for other tracks, for example (see 2):
A train coming from the right can only go down. When coming back (from the left), the chain signal indicates if the (dark yellow) path is clear
Putting all of this together, we get a functioning track where trains should not crash:
If you want, you can place more rail signals on the right side of the top left track so multiple trans can wait in line to leave, but that's just aesthetics.