The now described scenario for automated train operation appears at first glance very similar to the scenario Automating Train Operation with a Locomotive , but adds a bit more dynamics:
- The signal Demo-S-D2-li is used,
- the commands sent by the beacons D21 and D22 are not always the same, but depend on the state of the signal Demo-S-D2-li ("Stop" or "Go")
- and timers ("Timers") are used.
The scenario:
- BR212-FW travels a lap clockwise and enters the station,
- slows down and
- comes to a stop.
- The train remains at the station for a certain period of time.
- After the waiting time, the signal Demo-S-D2-li switches to "Go".
- BR212-FW departs.
- The signal Demo-S-D2-li switches back to "Stop" after a certain time.
This operation repeats.
The following prerequisites must be met for automated operation and the following information is available:
- The track plan is complete, the beacons are connected to the modules in the turnouts.
- The dwell time of BR212-FW at the station should be 5 seconds.
- The turnouts are set so that BR212-FW can complete a lap and re-enter the station.
- The signal Demo-S-D2-li is used.
- The signal Demo-S-D1-re is not used.
- The distance from beacon D21 to beacon D22 in this setup is 43 cm. For the command that will later be sent from D21 to BR212-FW, a slightly shorter distance (35 cm) is set so that the locomotive has safely reached its minimum speed when it arrives at beacon D22.
The description of the commands that can be sent from a beacon to the locomotive can be found in the CTC app manual in the chapter Config - Edit Script (section "Commands for Locomotives / Signals"). These commands will be used later during configuration.
The detailed sequence of the scenario is described below. BR212-FW enters the station track, the signal Demo_S_D2_li is set to "Stop":
Upon entering the station track, BR212-FW passes beacon D21 and receives the following information: Position ID D21: "I am D21" Distance to previous beacon in the same block (since there is no previous beacon in the block, this value is 0). Command: "Brake to minimum speed in 35 cm"
The locomotive BR212-FW slows down and continues at minimum speed...
... until beacon D22:
From beacon D22, BR212-FW receives the following information: Position ID D22: "I am D22" Distance to previous beacon in the same block is 35 cm. Command: "Stop at distance 0".
The locomotive reports to the app that it has passed beacon D22. This report is used as a "trigger" to start the first timer. The first timer determines the dwell time of the locomotive at the station.
When the first timer has elapsed, the signal is set to "Go". This causes the message sent by beacon D22 to change from "Stop at distance zero" to "Go". The signal Demo-S-D2-li switches to "Go", BR212-FW can depart and leave the station:
The signal Demo-S-D2-li switches back to "Stop" after a short time (for this purpose, another timer is configured), BR212-FW completes a lap:
Again, BR212-FW enters the station track:
The information and commands required for this scenario are now configured.
The corresponding instructions will follow shortly.