Programmating the route BOUCLE

Synoptique-Boucle

We can see that if this route is requested before the arrival of a train on A, it will take track 4, then loop on track 2. Turnout A will have to be reset to the diverging position so that the train can go out (in the opposite direction). On the contrary, if the train normally arrives via track 2 and then the BOUCLE is requested, the train will go through D, C, B, E and end up on track 4.

Complete route table

Turnout A B C D E F G
Coil Q1 Q2 Q3 Q4 Q5 Q6 Q7
Route VOIE 1 1 X X 0 X 0 X
Route VOIE 3 1 X 1 1 X 1 0
Route VOIE 5 1 1 0 1 X 1 1
Route BOUCLE 0 0 0 1 1 X X
Route TIROIR 0 1 X X 0 X X

Note: this could be a bit simplified by noting that the turnouts B and E, which are connected, must always work together. The turnout B must be direct when E is diverging and vice versa. They could even have a common motor.