Automatic Interlocking Table Generation
Automatic Interlocking Table Generation
Abstract: Interlocking is the most important component of a signalization system, which ensures safe
travel and transportation. An interlocking system helps movement of trains on desired routes in fixed
block signaling systems. The first step in the design of interlocking systems is to generate interlocking
tables. Generation of interlocking tables for small scaled stations or railway yards can be realized easily.
However, when the topology of the station is complicated, generation of the corresponding interlocking
table becomes considerably difficult. In this study, a program that automatically generates interlocking
tables for a given railway yard is explained. One of the main advantages of the program is that, switches
and signal lights are placed automatically for a given station or railway yard depending on the topology.
Keywords: Railway Signalization Systems, Interlocking Table, Traffic control, Symbolic Algebra
Mathematica™ programming environment, is introduced.
1. INTRODUCTION
The main advantage of the programme is its simple user
An interlocking program is a kind of safety related software interface that allows defining a railway station topology by
which controls all components of a railway signalization only drawing lines. In section 2, brief information is given
system such as track circuits, switches and signal lights. As about all components of a railway signalization system.
mentioned in (Haxthausen et. al., 2010), the interlocking also Basic principles of the automatic interlocking table generator
allows reservation of routes on which the trains can safely programme are explained in section 3. An interlocking table
move. Before designing an interlocking system, first route is generated for a model railway station by using the
specifications have to be determined correctly. All route programme. Finally, conclusions are given in section 5.
specifications are shown in a table named interlocking table.
Therefore, the first step in the design of an interlocking 2. RAILWAY SIGNALIZATION COMPONENTS
system is the construction of the interlocking table.
A railway signalization system consists of a traffic control
For small sized railway stations, constructions of the centre (TCC), an interlocking system and a railway station.
interlocking table is relatively easy, but when the size of the Traffic control centre makes route reservation requests for
railway station gets bigger, construction of the interlocking trains to move on the railway station. Interlocking system
table becomes very time-consuming and complex. This performs required actions for the incoming route requests.
increases possibility of making fatal logical errors, which are Interlocking system also checks error conditions of the
very difficult to detect in the later stages of the design and railway station components such as track circuits, switches
test process. In the literature, some studies are made about and signals. A simple exemplary railway station is given in
automatic generation of the interlocking table (Kuzu et. al., Fig. 1.
2011) and verification (Fokkink and Hollingshead, 1998),
(Petersen, 1998), (Tombs et. al., 2002), (Winter, 2002), in
6BC
3ST
order to eliminate this kind of problems. Formal methods like
Abstract States Machines (Winter and Robinson, 2003),
6BB
Finite State Machines (Miradabi and Yazdi, 2009), Coloured 002BT 3T 3 2ST
5
4D
Lozano et. al., 2010) is also considered in some studies. In all 001BT 1T 1ST
these studies, the generated interlocking table does not give 1
2D
Track circuits give information about the occupation of the In a railway station, trains can proceed if there is a reserved
railway blocks. When a train enters to the railway block, the route for them by TCC. Routes can be reserved between two
track circuit is short-circuited by the axles of the train and the track circuits with no switches. When a route request is send
track circuit gives that information to the interlocking system. to the interlocking system, conflicting routes are checked
Some railway blocks can contain more than one track circuit, first. If there is no reservation for a conflicting route, related
especially if the railway block has a switch. Track circuits are switches are turned to the required positions. After that if
denoted as 001BT, 002BT, 1T, 3T, 1ST, 2ST and 3ST in Fig. there is no error for related components of the route, the route
1. is reserved and the starting signal light of the route opens the
related colours. There are 10 different routes such as 001BT –
2.2 Switches 1ST, 001BT – 2ST, 1ST – 001BT and 1ST – 002BT, in the
railway station given in Fig. 1.
Switches are used to make the trains to change tracks in a
railway station. Most of the switches have an entrance track 2.5 Interlocking System
and two exit tracks named normal and reverse. Switches are
turned to required positions by the interlocking system when Interlocking system is a vital component of a signalization
a route is requested. Switches can also be controlled system. It checks the incoming request from TCC and
manually by TCC if there is no route reservation on them. compares these requests with the actual situation of the
Switches are denoted as 1, 3 and 5 in Fig. 1. components of the railway station. If all safety criteria are
met the request is accepted, otherwise it is rejected. The
2.3 Signal Lights interlocking system also compares incoming signals from the
railway station and can detect component errors. For example
if normal and reverse indication signals of a switch are
Signal lights give information about the next railway block to
coming to the interlocking system, an error in the switch is
the train driver. In Turkish State Railways, there are mainly
detected and all requests about the related switch is rejected.
three kinds of signal lights: four aspect tall, three aspect tall
and three aspect dwarf signal. Explanations of color
combinations for these signal lights are given in Table 1. 2.6 Interlocking Table
Signal lights are denoted as 2D, 4D, 6BA, 6BB and 6BC in
Fig. 1. Interlocking table shows all possible route reservations in a
railway station with details. In an interlocking table, each
Table 1. Definitions of the signal lights route is shown with related track circuits, related switches
and required switch positions and starting signal light with its
Type Colours and Definitions colour combinations with respect to the end signal.
Four aspect Red: Stop, next block is occupied.
tall signal Yellow: Next block is free, but the second For a safe interlocking system design, first the interlocking
light block is occupied. Proceed carefully. table must be obtained correctly. If a track circuit or a switch
Green: Next two blocks are free, train can is added to the station, the interlocking table can change
proceed. completely. Therefore as the railway station is getting bigger,
Yellow-Yellow: There is a turning and next the generation of the interlocking table is getting harder.
block is free, but the second block is
occupied. 3. AUTOMATIC INTERLOCKING TABLE
Yellow-Green: There is a turning and next GENERATION
two blocks are free. Proceed with a
predefined speed. Obtaining an interlocking table for a complex railway station
Three aspect Red: Stop, next block is occupied. takes too much time and needs extreme attention. If there is
tall signal Yellow: Next block is free, but the second an error in the interlocking table, there will be errors in the
light block is occupied. Proceed carefully. design of the interlocking system that can result in fatal
Green: Next two blocks are free, train can accidents. Therefore, in order to eliminate possible errors in
proceed. the interlocking table, a computer algorithm can be used. In
Three aspect Red: Stop, next block is occupied. this study, an automatic interlocking table generator
dwarf signal Yellow: There is a turning and next block programme is realized in a symbolic algebra environment.
light is free, but the second block is occupied. The programme has a simple user interface built on Microsoft
Green: There is a turning and next two .NET® framework as shown in Fig. 2. User can easily define
blocks are free. Proceed with a predefined a railway yard topology by drawing the track parts in the
speed. railway yard. Track circuits, switches, signal lights and routes
are identified by the programme and for a feasible topology
the interlocking table is automatically generated. In this
172
CTS 2012
September 12-14, 2012. Sofia, Bulgaria
section, basic principles of the automatic interlocking table track, is defined as the normal exit track. Then, the last track
generation are explained. is defined as the reverse exit track. The process of switch
identification is illustrated in Fig. 4.
173
CTS 2012
September 12-14, 2012. Sofia, Bulgaria
A pseudo code for track circuit identification is given as > Find the required switch positions for the
follows: route and add this information into the
route.
> Define a new empty list. > Add the route to the “Route List”.
> Select tracks in order from the “Track
List” and add to new list. 3.5 Signal Identification
> Examine the points of each selected track
in the new list if they are a “Switch Point”
or not. Signal lights are placed on the connection of station and
> If track has a “Switch Point”, check the switch track circuits. There are three types of signal lights as
related tracks which contain common point to mentioned in section 2.3 generally used in Turkish Railways.
the new list and go to previous step. Three aspect dwarf signals inform the driver that there is at
> Set this new list as “Track Circuit”. least one reverse switch for all possible routes. Three aspect
> If “Track Circuit” has only one track, set tall signals mean that there is no reverse switch for all
“Track Circuit” as “Stationary Track possible routes. Four aspect signals, which are used generally
Circuit”. Otherwise, set “Track Circuit” as
on the entrance of railway stations, indicate reverse switches
“Switch Area Track Circuit”.
> Add “Track Circuit” to the “Track Circuit exist for some routes. They have one colour declarations
List”. (yellow or green) for straight routes and two colour
declarations (yellow-yellow or yellow-green) for routes that
3.4 Route Identification have a turning (reverse switch). These criteria are used to
determine the type of the signal light of a chosen STC.
Routes are defined between two STCs. To identify routes, Defined signals are saved in a list named SignalList. Signal
firstly an STC is chosen from the TrackCircuitList. Then, the identification is illustrated in Fig. 7.
points of the chosen track circuit are examined and the other
track circuits, which are connected to the chosen track circuit,
are found. If the connected track circuits contain a switch(ie
one of the connected track circuits is an SATC), then other
track circuits connected to this SATC are found. This
procedure continues until all possible track circuit chains are
found. Each track circuit chain (with required switch
positions) is saved in a list named RouteList. Route
identification is illustrated in Fig. 6.
174
CTS 2012
September 12-14, 2012. Sofia, Bulgaria
4. INTERLOCKING CODE DESIGN AND APPLICATION route number, the second column shows track circuits, the
third column shows normal position switches, the fourth
The model railway station given on Fig. 8. is used to column shows reverse position switches and the fifth column
illustrate the working principles of the programme. shows starting and finishing signals with colour
combinations.
Fig. 10. A part of generated interlocking table of the model railway station.
175
CTS 2012
September 12-14, 2012. Sofia, Bulgaria
REFERENCES
Anunchai, S.V. (2010). Modelling Railway Interlocking
Tables Using Coloured Petri Nets, Lecture Notes in
Computer Science, pp. 137-151.
Durmuş, M. S., Yildirim, U., Eriş, O. and Söylemez, M.T.
(2012). Safety-Critical Interlocking Software
Development Process for Fixed-Block Signalization
Systems, submitted to The 13th IFAC Symposium on
Control in Transportation Systems, CTS 2012.
Fokkink, W.J. and Hollingshead, P.R. (1998). Verification of
interlockings: From control tables to ladder logic
diagrams, Proceedings of 3rd Workshop on Formal
Methods for Industrial Critical Systems, pp. 171-185.
Haxthausen, A.E., Bliguet, M.L. and Kjaer, A. (2010).
Modelling and Verification of Relay Interlocking
Systems, Lecture Notes on Computer Science, pp. 141-
153.
Kuzu, A., Songuler, Ö., Sonat, A., Turk, S., Birol, B.,
Doğrugüven, E.H. (2011). Automatic interlocking table
generation from railway topology, IEEE International
Fig. 11. Route function block. Conference on Mechatronics, ICM'11, Istanbul, Turkey,
pp. 64-70.
Mirabadi, A. and Yazdi, M. B. (2009). Automatic Generation
and Verification of Railway Interlocking Control Tables
Using FSM and NUSMV, Transportation Problems. Vol
4, pp. 103-110.
Mutlu, İ., Ergenç, A.F., Ovatman, T. and Söylemez, M.T.
(2012). Design of a Hardware and Software based Test
Bed for Railway Signalization System, submitted to The
13th IFAC Symposium on Control in Transportation
Systems, CTS 2012.
Petersen, J.L. (1998). Automatic verification of railway
interlocking systems: a case study, Proceedings of 2nd
Workshop on Formal Methods in Software Practice, pp.
1-6.
Roanes-Lozano, E., Hernando, A., Antonio Alonso, J., Laita,
L.M. (2010). A logic approach to decision taking in a
Fig. 12. Signal function block. railway interlocking system using Maple, Mathematics
and Computers in Simulation.
5. CONCLUSION Tombs, D., Robinson, N., Nikandros, G. (2002). Signalling
Control Table Generations and Verification, Proceedings
In this study, basic principles of an automatic interlocking of Conference on Railway Engineering.
table generator programme were explained. An interlocking Winter, K. (2002). Model Checking Railway Interlocking
table generated for a model railway station using the Systems, Proceedings of the Australian Computer
programme is given as an example. Laboratory tests show Science Communications, 24.
that the interlocking code that is written by the help of the Winter, K., Robinson, N. (2003). Modelling large railway
generated interlocking table works correctly. The generation interlockings and model checking small ones,
of the interlocking code can also be automatized in the future. Proceedings of the 26th Australian Computer Science
Therefore, a safe interlocking code for large and complex Conference, pp. 309–316.
stations can be obtained in a very short time.
ACKNOWLEDGMENT
This work is supported by The Scientific and Technological
Research Council of Turkey (TÜBİTAK) project number
108G186 – The National Railway Signalization Project.
176