Contents

1. Introduction and Outlook
2. Weichen- und Lokmodule zurücksetzen und einbauen, IR-Balisen einbauen
3. Layout of the layout
4.1. Configuration of the point modules: First steps
4.2. Configuration of the point modules: Connecting the point
4.3. Configuration of the switch modules: Connecting the semaphore signal
5. Track plan creation
6. Starter kit with modules built into locomotives and turnouts
6.1. First commissioning of the layout
7.1. Configuration of Points Module: Connecting IR Beacons
7.2. Configuration of switch module: Assign IR beacons with action
8. Zugbetrieb mit BR365 und E103
9. Sensor Calibration
10. Fahrbetrieb Automatisieren
10.1. Fleet Operations Automation with a Locomotive
10.2. Fahrbetrieb Automatisieren mit einer Lok, zweite Version
10.3. Fahrbetrieb Automatisieren mit Pendelzugbetrieb
10.4. Fahrbetrieb Automate with two Loks

1. Introduction and Outlook

Introduction

A CTC starter set in combination with an expansion set enables the construction of a small layout on which the essential capabilities and features of CTC can be tested and used. Although this is "only" a starter set, the layout is designed to be expandable. These expansions will be described in additional documentation as they become available. The construction of the starter set already takes expansions into account with the assigned names, and relevant points will be highlighted where necessary.

This documentation describes the starter set plus expansion set for Märklin C-track. The modules must be installed and configured in the locomotives and turnouts. If a starter set with pre-installed CTC-Loco-Modules and CTC-Turnout-Modules is used, the installation steps can be skipped.

Two semaphore signals with magnetic drives are also used. The following topics are covered initially:

  • Installing and electrically connecting modules (locomotives, turnouts) (Chapter 2),
  • Constructing the layout (Chapter 3),
  • Configuring turnout modules for operating turnouts and semaphore signals (Chapter 4),
  • Creating the track diagram (Chapter 5), and
  • Initial commissioning of the layout (Chapter 6).

The track layout to be constructed is similar to that described in the article Creating a CTC Model Railway . The associated CTC-App software can be installed and run on Windows, Linux, and Mac. Please note any possible restrictions regarding the operating systems. Different Linux distributions may exhibit divergent behavior. More information on supported versions can be found in the operating instructions Chapter 2 .

The track plan consists of an oval with a station as a stop. For train operations, it is assumed that one locomotive travels clockwise and another travels counterclockwise. The CTC-App is used to switch turnouts and control the locomotives.

Track diagram for starter set layout

Once the locomotives have run on the layout for the first time, the expansion of the layout can begin:

  • Installing and configuring IR beacons (formerly called "IR transmitters") in the tracks (Chapter 7),
  • Adding IR beacons to the track plan (Chapter 7),
  • Calibrating locomotive sensors (Chapter 9), and
  • Operating trains with signals and IR beacons (Chapter 10).

The following functionality is implemented: when a signal is set to "Stop," the locomotive slows down, travels to the IR beacon in front of the signal, and stops. This functionality is extended with the beacons.

Names are chosen for the beacons, signals, and turnouts that are useful or even necessary for block operation and automated train control (for a more detailed explanation, see "Outlook").

Track diagram for starter set layout with IR beacons

The next step is to introduce automated train operation. With this configuration, a small "timetable" is created for a locomotive:

  • Entry into the station area with the locomotive always slowing down (Chapter 10),
  • Slow travel into the station and stopping (Chapter 10),
  • After the predefined stopping time, the locomotive continues its journey, completes a lap, and re-enters the station area (Chapter 10).

Outlook

For further expansion of the layout, the starter set is extended:

  • A turnout and additional track enables a "stub-end station."
  • Additional IR beacons expand the block operation.
  • Some blocks are equipped with semaphore signals.
  • Corresponding CTC modules are required for the IR beacons, semaphore signals, and turnouts.

With the mentioned expansions, train operations are extended to the stub-end station. The following diagram shows the schematic track plan in a very extensive expansion stage. Which individual beacons, signals, turnouts, and tracks are used in each construction example will be specified accordingly.

Track diagram for starter set layout expanded 1

As with the beacons, signals, and turnouts, names are chosen for the tracks and blocks that are useful or even necessary for block operation and automated train control. There are two station areas, designated as "D" and "E." This results in the following blocks:

  • Block D1 is the "through area" of "station area D."
    • Block D2 is the "stopping area" of "station area D."
    • Block E1 is the "stopping area" of "station area E," which is designed as a stub-end station.
    • Block E2 is the "through area" of "station area E."
  1. Block DE connects block D to block E. The designation assumes the direction of travel of a locomotive in a clockwise direction.
  2. Block ED connects block E to block D. The designation assumes the direction of travel of a locomotive in a clockwise direction.
  3. Beacons are numbered clockwise and assigned to a block.
    • Beacons D21 and D22 belong to block D2 and are closely related to the position of the associated signal Demo-S-D2-li.
    • Beacons D11 and D12 belong to block D1 and are closely related to the position of the associated signal Demo-S-D1-re.
    • Beacons DE1 and DE2 belong to block DE and are closely related to the position of the associated signal Demo-S-Ein-D-li.
    • Beacons ED1 and ED2 belong to block ED and are closely related to the position of the associated signal Demo-S-Ein-D-re.
    • Beacons E11 and E12 belong to block E1. Beacon E12 is closely related to the position of the associated signal Demo-S-E1.
  4. Signals, like beacons, are part of a block. Signals can be considered as "exit signals from a block" or as "entry signals into the next block" (in the direction of the traveling train).
    • Signal "Demo-S-D2-li" is an exit signal for block D2, locomotive BR212-FW travels clockwise and later in shuttle train operation.
    • Signal "Demo-S-D1-re" is an exit signal for block D1, locomotive BR365 travels counterclockwise.

2. Weichen- und Lokmodule zurücksetzen und einbauen, IR-Balisen einbauen

This chapter covers the following topics:

  • Resetting turnout modules
  • Installing turnout modules in Märklin C-track turnouts
  • Installing loco modules
  • Installing IR beacons in Märklin C-track

Basics

If you are ever not 100% certain how a module is configured, you should reset it before connecting anything to it

Always—and this cannot be emphasized enough: ALWAYS—before a CTC-Turnout-Module or a CTC-IO-Module is installed and wired, it must be reset. “Reset” in this context means it must have an “empty” configuration.

This prevents unintended, undesirable, and potentially harmful control and switching states. These could, for example, originate from a previous configuration and wiring that made sense for a different layout but is no longer required, desired, or may even be harmful now. An unsuitable configuration can lead to the destruction of CTC modules or other switching elements.

Note: CTC-supplied modules are always delivered in a reset state, so no action is required for these.

Resetting the configuration of turnout modules

For simplicity, it is recommended to reset each CTC-Turnout-Module individually.

CTC-Turnout-Modules and CTC-IO-Modules are reset before installation and wiring of the track layout as follows:

  1. Power on the module to be reset.
  2. Start the CTC app.
  3. In the start window, under the “Module List” tab, the list of all modules appears. Since only one CTC-Turnout-Module is powered, the list contains only one entry.
  4. In the row of the module to be reset, click the pencil icon in the Edit column.

Modules: resetting one module

The “Switch Box” window opens. Click the “Replace Config” field.

Replace Config button

The “Select Config” window opens:

Select Config

  1. Select the “standard” configuration.
  2. Click “Apply.”

A notice with information about the selected configuration appears:

Replace Config new name

  1. Assign a new name to the module being reset. In the example, this is done first for the CTC-Turnout-Module to be installed in the left turnout. The name “Demo-W-left” is assigned.
  2. Click the “Upload” button.

The old configuration is deleted, and the successful upload to the module is confirmed with the previous module name:

Replace Config successful

Now the new name is already displayed in the module list:

Module list after config replacement

The second turnout module is reset in the same way: Turn off the power supply. Connect the second turnout. Turn the power supply back on. Restart the CTC app. Reset the second CTC-Turnout-Module just like the first one.

Since it is the module for the right turnout, the name “Demo-W-right” is assigned. Both CTC-Turnout-Modules are now reset to a known and defined initial state and have a new unique name.

Both turnout modules are reset and connected to the power supply. The CTC app is restarted and shows the newly assigned names:

Module list both modules reset new name

Note that resetting the configuration does not delete the track plan stored in a module. If a track plan is stored in a module, it remains intact after resetting.

Installing turnout modules

The CTC-Turnout-Modules in this starter set are used for the following functions:

  • Controlling the electromagnets of the turnouts
  • Controlling a semaphore signal with magnetic coil drive (note: NOT a light signal, but a mechanical signal)
  • Two IR beacons

Each turnout has its own CTC-Turnout-Module.

The CTC-Turnout-Modules must be installed in the turnouts. Note the module names assigned during the reset of the turnout modules:

  • The module “Demo-W-left” is installed in the turnout used on the left side of the track plan and is a “left-hand turnout.”
  • The module “Demo-W-right” is installed in the turnout used on the right side of the track plan and is a “right-hand turnout.”

Further information on switching with CTC modules can be found here:

Overview of switching with CTC .

The instructions for installing or converting Märklin C-track turnouts are here:

Converting Märklin C-track turnout .

Installing loco modules

The CTC modules for locomotives perform the following functions:

  • Motor control of the locomotive
  • Headlight in the direction of travel and rear light
  • Infrared reception
  • Control of the uncoupling mechanism (if present in the locomotive)

Each locomotive has its own CTC-Loco-Module.

The CTC modules for locomotives must be installed in the locomotives. Instructions are available here:

Overview of CTC-Loco-Modules .

Installing IR beacons

The IR beacons must be installed in the track. Instructions are available here:

CTC-IR-Beacon .

The individual modules are installed, and the track layout can be assembled.

3. Layout of the layout

This chapter describes how

  • the track layout is set up
  • the semaphore signals and the IR beacons are connected to the turnout modules.

Starter-Set Track Layout Assembly

The track layout consists of an oval with a station, similar to a small railway station. The layout is assembled and the semaphore signals and IR beacons are connected to the configured turnout modules. For the CTC starter set described here, two CTC-Loco-Modules and two CTC-Turnout-Modules are required. Further chapters describe how the track diagram is set up "on the PC" using the CTC app. Afterwards, the layout is put "into operation" and train operation takes place. For train operation, it is assumed that one locomotive travels clockwise and another locomotive travels counterclockwise.

Schematically, this layout is shown in the following illustration.

Track oval base signal, turnouts, IR beacons

For the track oval to be assembled with a siding or station track, the following turnout and track material is used:

  • Left curved turnout item no. 24771 equipped with electric drive item no. 74491
  • Right curved turnout item no. 24671 equipped with electric drive item no. 74491
  • 10x curved track R1, 30°
  • 2x curved track R2, 30°
  • 12x straight track 188.3 mm, of which 4 are retrofitted with CTC-IR beacons

View of the layout from above when assembled with the turnouts and tracks and locomotives placed on it:

Track layout assembled

The semaphore signals and IR beacons are connected next.

Connecting Semaphore Signals

The semaphore signals provided in this description have a magnetic drive. The CTC-Turnout-Module used has a connector "W1", which is used for the turnout drive and is already connected. The connector "W2" is used for the semaphore signal. The associated connector is designed as a three-pin linear socket connector. The middle pin carries the operating voltage, the two outer pins are the switching functions. The magnetic drive of the semaphore signal must be connected accordingly.

Module designation Output function Cable color Color of heat shrink tube / plug Position on the socket Function on the semaphore signal
W2-Red Switch-1 blue red Left Magnet for hold position
W2-VBB Power supply for drive yellow yellow Center Power supply
W2-Green Switch-2 blue green Right Magnet for go position

Connecting IR Beacons

Each of the CTC-Turnout-Modules controls two IR beacons (infrared beacons) in the starter set. The connection of IR beacons to the turnout module is made according to the following table:

Module designation Output function Color of heat shrink tube Position on the socket Function on the IR beacon
IR1-GND IR beacon 1 negative pole green Center-Left IR beacon 1 diode cathode
IR1-VCC IR beacon 1 positive pole red Left IR beacon 1 diode anode
IR2-VCC IR beacon 2 positive pole red Right IR beacon 2 diode anode
IR2-GND IR beacon 2 negative pole green Center-Right IR beacon 2 diode cathode

Further information on the assembly and connection of IR beacons to the turnout module can be found here:

CTC-IR-Balise .

The track layout is now assembled and the turnout modules can be configured.

4.1. Configuration of the point modules: First steps

Resetting the Configuration of the CTC-Turnout-Modules

To ensure independence from any preset or previous configuration, the CTC-Turnout-Modules are reset to their original state. This also applies to CTC-Multi-IO-Modules, although these are not used in the starter set.

Note: If you are ever unsure how a module is configured, you should reset it before connecting anything to it Modules delivered by CTC are always in a reset state, so no action is required for these.

Resetting the CTC modules should have already been done; here’s a reference to the relevant chapter:

Installing the Turnout and Loco Modules .

First Steps in Configuring the CTC-Turnout-Modules

This text describes the initial steps for configuring the turnout modules for the "Loco and Turnout" starter set. It is assumed that:

  • the track layout is assembled,
  • the turnout modules are installed in the turnouts and the solenoid drives are connected,
  • the signals are wired to the turnout modules (though they will only be configured later),
  • the IR beacons are wired to the turnout modules (though they will only be configured later), and
  • the power supply is fully operational.

The wiring of the signals and IR beacons for each turnout module is as follows:

Wiring Turnout, Signal, IR Beacons

The wiring is complete; now it’s time to inform each CTC-Turnout-Module which "products" (turnout drive, semaphore signal, and IR beacons) are connected to which port of the module and how they are controlled. When "connections" are mentioned below, this refers to software-level connections, not electrical wiring.

The following steps are described and executed in detail:

  1. Products are selected from the product catalog. For each turnout module, the following are taken from the catalog:
    • one turnout,
    • one semaphore signal, and
    • two IR beacons.
  2. These products have "connections" that require specific control; this information is already included in the product catalog and is used by the CTC app to verify correct connections:
    • The solenoid drive of the turnout and the solenoid drive of the semaphore signal require a brief pulse.
    • The IR beacons are controlled using a pulse-width modulated signal.
  3. The product connections are linked to the pins of the turnout module. The configuration of the turnout module is implicitly set according to the requirements for controlling the respective product.

First Steps in Configuration

In the next step, the electrical connections must be specified for the turnout modules. Each turnout module has the following connected:

  • the solenoid drive of the turnout
  • the solenoid drive for a semaphore signal
  • two IR beacons, one close to the signal and the other further ahead.

The right turnout module is configured.

In the CTC app, click "Settings" – "Configurator" to open the "List of All Modules" window.

Settings - Configurator - List of All Modules

In the table, under "Type," there are two modules of the type "SwitchBox." These are the two turnout modules to be configured. After resetting, new names have already been assigned, which can be found in the "ID" column.

Alternatively, the "Edit Switchbox" window can be accessed directly from the CTC app under the "Modules" tab:

CTC-App-Edit_Switchbox

By clicking in the "Edit" column in the corresponding row of the "SwitchBox" list, "Demo-W-right" is selected. The "Edit Switchbox" window opens.

Edit_Switchbox

Clicking "Change Config" opens the configuration window "Edit Switchbox Configuration." The connection and function of the solenoid turnout drive are checked as follows:

  1. In the "Pins, Ports, and Extensions" field, select the output "W1-green."
  2. Click the "Test" field. The turnout switches.
  3. In the "Pins, Ports, and Extensions" field, select the output "W1-red."
  4. Click the "Test" field. The turnout switches.

Edit_Switchbox_Configuration_Check_Turnout

The turnout has now switched at least once, and it is known which connection switches the turnout to "straight" and which to "diverge." This information is needed for the correct connection of the turnout.

4.2. Configuration of the point modules: Connecting the point

This text describes the configuration of the turnout modules for the starter set. It is assumed:

  • the track layout is set up,
  • the turnout modules are installed in the turnouts and the solenoid drive of the turnouts is wired,
  • the signals are wired to the turnout modules,
  • the IR beacons are wired to the turnout modules,
  • the power supply is complete,
  • the turnout modules have been reset,
  • the turnout drives are wired and
  • the semaphore signals are wired.

To remind: The wiring for each of the turnout modules is as follows:

Wiring turnout, signal, IR beacons

Connect product turnout (magnetic) "Demo-W-right" (Demo-W-right)

To connect the magnetic drive of the turnout to the turnout module (to connect it in software), the configuration is called up: In the "Modules" tab, click the "Edit" symbol in the line of "Demo-W-right". The "Edit switch box" window of the turnout module opens. Click on the "Change config" field. The "Edit switch box configuration" window opens.

Edit switch box configuration

A turnout is connected as a product to the connections "W1-green" and "W1-red" of the "Demo-W-right" module. When selecting the product to be connected, it should be noted that this is a turnout which diverges to the right in the direction of travel of the branch.

In the "Edit switch box configuration" window, click "+" in the "Connected products" area to open the product catalogs and select a catalog.

  1. The catalog "universell-weichen.xml" is selected and
  2. opened for further work by clicking "Apply".

Product catalog selection

The catalog "universell-weichen" is selected. A name is assigned from this catalog and a turnout is selected:

  1. In the "Select product" window, enter "Demo-W-right" as the product name.
  2. Select "Turnout (magnetic)" as the product.
  3. For product configuration, select "Turnout-Right".
  4. Confirm the selection by clicking "Apply".

Product connection

The CTC-Turnout-Module is already installed in the turnout and W1 is wired to the magnetic turnout drive. Now it is necessary to make the "logical wiring" of the control. As a prerequisite, it is necessary to know which pin/port of the turnout module switches the turnout to "diverge" or "straight".

The following procedure is used:

  • In the "Pins, Ports and Extensions" field, select the output "W1-green".
  • Click on the "Test" field. The turnout switches. Assumption: the turnout switches to "straight".
  • In the "Pins, Ports and Extensions" field, select the output "W1-red".
  • Click on the "Test" field. The turnout switches. Assumption: the turnout switches to "diverge".

Now the pin names ("straight" and "diverge") of the product ("Demo-Weiche-rechts-conn") mentioned in the "Connections" window are connected to the connections mentioned in the "Pins, Ports and Extensions" window:

  1. Click on "W1-green: Output pin #16 (Low Side)" to select the pin of the turnout module.
  2. Click on "straight" in "Connections and Parameters" to select the pin name "straight" of the product.
  3. Click on "Connect" to establish the logical connection between "W1-green" and "straight".

Configuration turnout module turnout straight

Similarly, "W1-red: Output pin #17 (Low Side)" is connected to "diverge".

  1. Click on "W1-red: Output pin #17 (Low Side)" to select the pin of the turnout module.
  2. Click on "diverge" in "Connections and Parameters" to select the pin name "diverge" of the product.
  3. Click on "Connect" to establish the logical connection between "W1-red" and "diverge".

The result of the connection work of the turnout module to the magnetic turnout drive in the CTC app looks like this:

Configuration turnout module turnout connected

In the "Edit switch box configuration" window, the action is completed by clicking "Upload" to save the configuration in the turnout module "Demo-Weiche-rechts".

Connect product turnout (magnetic) "Demo-Weiche-links" (Demo-Weiche-left)

For the second turnout, proceed as described above. The configuration is called up with "Edit" of "Demo-Weiche-links".

  • Unlike "Demo-Weiche-rechts", for "Demo-Weiche-links" the product configuration "Turnout-Left" must be selected when "Connect product".

The switching connections are tested and made as described above. In the "Edit switch box configuration" window, the action is completed by clicking "Upload" to save the configuration in the turnout module "Demo-Weiche-links".

4.3. Configuration of the switch modules: Connecting the semaphore signal

This text describes the configuration of the turnout modules for the starter set. It is assumed:

  • the track layout is set up,
  • the turnout drives are wired,
  • the turnout modules are reset and names have been assigned (Demo-turnout-left, Demo-turnout-right),
  • the signals are wired to the turnout modules,
  • the IR beacons are wired to the turnout modules (the IR beacons are not yet required for now) and
  • the power supply is complete.

As a reminder: The wiring for each of the turnout modules is as follows:

Wiring turnout, signal, IR beacons

Connect product semaphore signal (magnetic) to Demo-turnout-right

The magnetic drive for the semaphore signal is configured similarly to the magnetic drive of the turnout.

To connect the magnetic drive of the semaphore signal to the turnout module (software-wise), the configuration is called: In the "Modules" tab, click the "Edit" symbol in the row of "Demo-turnout-right". The "Edit control box" window of Demo-turnout-right opens. Click the "Change config" field. The "Edit control box configuration" window opens.

In the "Edit control box configuration" window, click "+" in the "Connected products" area to open the product catalog list. The catalog "universell-signale.xml" is selected and opened for further work by clicking "Apply".

Select catalog universal signals

The catalog "universell-signale" is selected. From this catalog, a name is assigned and a signal is selected. The specification "right" or "left" refers to the direction of travel (clockwise) for which the signal is valid ("right" means "clockwise"):

  1. Under "Name", enter "Demo-S-Track-A"
  2. Select "Semaphore signal (magnetic)" as the product
  3. Select "Semaphore signal right" as the product configuration and
  4. click "Apply" to prepare the signal for connection.

Configuration of the turnout modules: Connect product semaphore signal

By clicking "Apply", you return to the "Edit control box configuration" window.

As with the connection of the turnout control, "W2-green: Output pin #27 (Low Side)" or "W2-red: Output pin #32 (Low Side)" is selected and tested for function by clicking "Test". Assumption: With "W2-green", the semaphore signal switches to "clear" and with "W2-red", the signal switches to "stop".

To connect the semaphore signal, proceed similarly to the magnetic turnout drive: Under "Ports", select "W2-green: Output pin #27 (Low Side)", under "Connections", select "green" and click "Connect".

Configuration turnout module product connect semaphore signal

Just as pin "W2-green" was connected to "green", pin "W2-red" is also connected to "red". The semaphore signal, like the turnout drive, is now fully connected:

Configuration turnout module turnout semaphore signal connected

In the "Edit control box configuration" window, the action is completed by clicking "Upload" to save the configuration in the turnout module "Demo-turnout-right".

Connect product semaphore signal (magnetic) to Demo-turnout-left

For the semaphore signal connected to Demo-turnout-left, proceed as described above. With "Edit" of "Demo-turnout-left", the configuration is called. In the further process, the name "Demo-S-Track-B" is assigned to this signal. In the "Edit control box configuration" window, the action is completed by clicking "Upload" to save the configuration in the turnout module "Demo-turnout-left".

The turnout modules are configured, the turnouts and semaphore signals switch.

5. Track plan creation

In CTC, a hierarchy of model railway and track plan is assumed: A model railway consists of one or more track plans.

Both the track plan (or track plans) and the model railway are stored in one of the modules. This means that the track plan can be considered as part of the configuration stored in a module. In this starter set, the track plan and model railway are stored in the turnout module "Demo-W-right". To create and edit the track plan in this starter set, the module's configuration is opened. There are two ways to do this:

  1. In the main menu, select "Settings" - "Configurator". A new window "List of all modules" opens. In the row with the ID "Demo-W-right", click on the pencil in the "Edit" column, the window "Edit control box" opens.
  2. In the main menu, select the "Modules" tab. In the row with the ID "Demo-W-right", click on the pencil in the "Edit" column, the window "Edit control box" opens.

By clicking the "Edit track plan" button, the "Edit track plan" window opens. By clicking the "New track plan" button, the name of the new track plan is entered and confirmed with "Create". The name "Starterkit" is entered for the new track plan.

Edit track plan

The track plan now has the new name "Starterkit". The track plan has a "default size" of 10 x 10 elements. For the starter kit's track plan, 6 x 11 elements are required. The values in "Columns" and "Rows" must be adjusted accordingly.

Edit track plan - Rows and Columns

Individual track elements and their orientation are selected.

Edit track plan - Turnout orientation selection

In this example, a track curve is positioned: "Left" orientation is selected, "Curve" is selected as the track element, and positioned in the track plan by mouse click.

Edit track plan - Turnout orientation placement

In this way, the track plan is created with additional track elements, turnouts, and semaphore signals. IR beacons are not inserted in the track plan at this stage; this will be done later. A click on "Upload" saves the created track plan in the module "Demo-Turnout-right".

Edit track plan - Turnout orientation placement

Assign turnouts and semaphore signals in the track plan

The track plan is created; next, the turnouts and semaphore signals are assigned according to the following table:

ID Element in track plan
Demo-W-left left turnout in track diagram (Demo-W-left)
Demo-W-right right turnout in track diagram (Demo-W-right)
Demo-S-Track-B signal left in track diagram (Demo_S_Track_B)
Demo-S-Track-A signal right in track diagram (Demo_S_Track_A)

The "Demo-W-left" is assigned as follows: In the "Action group" field, "SignalTower" is selected. In the "ID" column, "Demo-W-left" is selected. The pencil icon is selected. The left turnout in the track diagram is selected. In "Action details", it can be seen that the turnout name "Demo-W-left" is entered in the "Name" field.

Assign left turnout in track plan

The right turnout is assigned in the same way: In the "Action group" field, "SignalTower" is selected. In the "ID" column, "Demo-W-right" is selected. The pencil icon is selected. The right turnout in the track diagram is selected. In "Action details", it can be seen that the turnout designation "Demo-W-right" is entered in the "Name" field.


The right signal "Demo-S-Track-A" in the track section "Block-A" is assigned in a very similar way to the turnouts as follows: In the "Action group" field, "SignalTower" is selected. In the "ID" column, "Demo-S-Track-A" is selected. The pencil icon is selected. The right signal in the track diagram is selected. In the track diagram, it can be seen how the symbol has changed. In "Action details", it can be seen that the semaphore signal name "Demo-S-Track-A" is entered in the "Name" field.

Assign right signal in track plan

The left signal "Demo-S-Track-B" in the track section "Block-B" is assigned in the same way: In the "Action group" field, "SignalTower" is selected. In the "ID" column, "Demo-S-Track-B" is selected. The pencil icon is selected. The left signal in the track diagram is selected. In the track diagram, it can be seen how the symbol has changed. In "Action details", it can be seen that the semaphore signal name "Demo-S-Track-B" is entered in the "Name" field. The track plan is now configured for the first test runs and is saved in the turnout module "Demo-Turnout-right" by clicking "Upload".

Assign left signal in track plan

As a final step, the track plan must be integrated into the model railway. To do this, the configuration of "Demo-Turnout-right" is opened again. By clicking the "Edit model railway" button, the "Edit model railway" window opens. By clicking "New track section", a new name is assigned. In "Available panels", the panel with the name Starterkit is taken over and positioned by clicking the arrow button. By clicking the "Upload" button, the new model railway is saved in the turnout module.

6. Starter kit with modules built into locomotives and turnouts

This Starter-Set consists of modules with "Starter-Set" configuration which are pre-installed and configured in locomotives and turnouts.

CTC components with configuration:

Additional required parts

  • Power supply / power adapter
  • 2 x Semaphore signals
  • Tracks

Starter-Set with pre-configured CTC modules installed in locomotives and turnouts

The following describes the assembly and commissioning of a model railway with CTC control. It is assumed that a Starter-Set with CTC modules installed in locos and turnouts is available.

Details on the turnout module can be found here: CTC-Turnout-Module .

Each turnout module is connected as shown in the following diagram:

  • to track A/B the power supply for the turnout module,
  • to W1 the turnout drive,
  • to W2 the drive for the signal
  • to IR1 an IR-balise installed in the track, here designated DA1, and
  • to IR2 an IR-balise installed in the track, here designated DA2.

Wiring turnout, signal, IR-balise

The track layout is set up according to this diagram.

The completed layout with the locomotives looks like this:

Wiring turnout, signal, IR-balise

6.1. First commissioning of the layout

The following assumes that the CTC system is set up and configured according to the descriptions for the starter set.

When powering up the CTC components, note that the WiFi router must be turned on first and be operational. After that, the model railway layout is powered on.

The CTC app detects the PI-Rail WiFi and connects to the CTC modules. The configuration of the modules is read out. In the chosen example of the starter kit, the CTC app has detected one locomotive (BR365), two turnouts, and two semaphore signals. The locomotive configuration is read out, providing the respective locomotive image, its name, and further configuration details to be reviewed later. The track plan – named “Starterkit_1” in this case – is stored in one of the configured turnout modules (Demo-W-right) and has also been read out. This also includes the information about the semaphore signals.

After starting the CTC app, the initial screen shows the “Modules” window:

Startbild Loks Gleisplan

The window with tabs for “Modules, Locos, Control, Control Panel, and Sensors” allows access to the individual function groups:

  • Modules: Here, a list of all detected modules and their key parameters appears. From here, their configuration can also be accessed directly.
  • Locos: All detected locomotives appear here, with the selected locomotive highlighted in gray (see also “Control”).
  • Control: This displays the control window for the selected locomotive (see “Locos”).
  • Control Panel: This shows the controllable modules of the track plan that perform switching functions, such as turnouts and signals. The track plan also includes the IR beacons.
  • Timetables: Here, timetables for automated train operation are edited and accessed.
  • Sensors: All sensors are displayed here. In this case, each locomotive has an infrared sensor. The sensors receive messages from the IR beacons installed in the track.

Using the menu bar, selecting “View” and “Show left panel” opens an additional control panel. The windows of the panels can be moved to ensure good visibility. Selecting “Control” for the left panel and “Control Panel” for the right panel results in:

Steuerung BR365 Geschwindigkeit


The “Control” tab provides control over the selected locomotive (when the “Locos” tab is selected):

Steuerung BR365


The “Control Panel” tab provides access to turnouts and signals (and optionally other drives if present). Switching functions are executed using the individual buttons as follows:

Schaltpult Weiche und Signal schalten


Turnouts and signals can alternatively be switched directly in the track plan:

Gleiplan Weiche und Signal schalten


During the first operation of the layout, locomotive BR365 can now run, and the turnout control allows entry into the station track or travel on the passing track. Signals can also be switched. It is noticeable that the locomotive does not respond to the signal aspects; the train must be stopped manually in the “Control” window or its onward journey triggered.

Further configuration steps are required so that the locomotive slows down and comes to a stop before a signal displaying “Stop”.

7.1. Configuration of Points Module: Connecting IR Beacons

This text describes the configuration of the turnout modules for the starter set. When choosing the wording, note:

  • "Verdrahten" refers to the electrical connection, i.e., the cables, wires, connectors.
  • "Anschluss" or "anschliessen" refers to the software-side connection, i.e., the configuration of the module to which the corresponding component (turnout with coil drive, semaphore signal with coil drive, IR beacons) is wired.

It is assumed:

  • the track layout is built,
  • the turnout modules are installed in the turnouts and the coil drive of the turnouts is connected,
  • the signals are wired to the turnout modules,
  • the IR beacons are wired to the turnout modules,
  • the power supply is complete,
  • the turnout modules have been reset,
  • the turnout drives are wired and
  • the semaphore signals are wired.

As already shown at the very beginning, this is the track layout:

Track diagram for starter set model railway layout

To recap: The wiring for each of the turnout modules is as follows:

Wiring turnout, signal, IR beacons

Applied to the track layout, this means for the wiring:

  • The semaphore signal "Demo-S-D2-li" and the beacons "D21" and "D22" are wired to the module of the turnout "Demo-W-Links".
  • The semaphore signal "Demo-S-D1-re" and the beacons "D11" and "D12" are wired to the module of the turnout "Demo-W-Rechts".

The "wiring" of the IR beacons is now "connected".

Connect product IR beacon

In the "Modules" window, click the "Edit" symbol in the row of the ID "Demo-Weiche-links", which opens the "Edit switch box" window. In the "Edit switch box" window, clicking the "Change config" button opens the "Edit switch box configuration" window:

Config beacon add

Here, in the "Connected products" section, click "+" (see mouse pointer) to open the product catalog list. Select the catalog "universell-sensoren.xml" and open it for further work by clicking "Apply".

Configuration turnout module product_connect semaphore signal

The catalog "universell-sensoren" is selected. From this catalog, the "IR beacon" is selected and a name is assigned:

  1. Under "Name", enter "D11"
  2. Select "IR beacon" as the product and
  3. click "Apply" to prepare the IR beacon for connection.

Configuration turnout module product_connect semaphore signal

After clicking "Apply", you are back in the "Edit switch box configuration" window.

The first IR beacon D11 is connected: Under "Pins, ports and extensions", select "Port: IRPort-1 (SerialModulated)", under "Connected products", select D11-Conn, under "Connections and parameters", select "IRPort-1" and click "Connect" to confirm the connection.

Configuration turnout module IR beacon connect

The same procedure is followed for the second infrared port "IRPort-2": Double-click to open the product catalog "universell-sensoren.xml", select the product IR beacon, enter "D12" as the name and apply. In the "Edit switch box configuration" window, under "Pins, ports and extensions", select "Port: IRPort-2 (SerialModulated)", under "Connected products", select D12-Conn, under "Connections and parameters", select "IRPort-2" and click "Connect" to confirm the connection.

The first turnout module named "Demo-Weiche-rechts" is now fully connected and the following are connected to it:

  • a magnetic turnout drive,
  • a magnetic signal drive,
  • an IR beacon D11 and
  • an IR beacon D12.

Configuration turnout module turnout

7.2. Configuration of switch module: Assign IR beacons with action

This text describes the configuration of the turnout modules and how the IR beacons are assigned an action.

It is assumed:

  • the track layout is set up,
  • the signals are wired to the turnout modules,
  • the IR beacons are wired to the turnout modules,
  • the power supply is complete,
  • the turnout modules have been reset,
  • the turnout drive is connected and
  • the IR beacons are connected.

As a reminder: The wiring for each of the turnout modules is as follows:

Wiring turnout, signal, IR beacons

Up to this point, the following has been completed: The wiring has been completed and the "products" (turnout drive, semaphore signal and IR beacons) are connected to their respective ports/pins of the module.

Assigning an action to an IR beacon

Basic idea

The basic idea behind the following configuration is: When a locomotive approaches a signal, it should receive information about whether the signal is displaying "stop" or "proceed" and how far the locomotive is from the signal. This information is sent to the locomotive via the IR beacons installed in the tracks.

  • If the signal is displaying "proceed", the locomotive continues unchanged.
  • If the signal is displaying "stop", the locomotive should slow down and stop before the signal.

Here is a schematic of the layout again:

Track oval basic signal, turnouts, IR beacons

In the direction of travel of the locomotives, 2 IR beacons are installed in front of each signal. As an example of a sequence, assume that the shunting locomotive BR365 is traveling towards signal "Demo-S-D1-re" and the signal is displaying "stop". The following sequence results: Passing over "Demo-W-Links". Travel over IR beacon D12. The information sent by D12 has the following content: "Here is IR beacon D12, the distance to the upcoming signal is 80 cm, the signal is displaying 'stop'." The locomotive gradually reduces its speed so that it would come to a stop after 80 cm. Since the distance between D11 and D12 is less than 80 cm, D11 is passed at an already significantly reduced speed. Travel over IR beacon D11. The information sent by D11 has the following content: "Here is IR beacon D11, the distance to the upcoming signal is 0 cm, the signal is displaying 'stop'." The locomotive immediately reduces its speed and comes to a stop.

Implementation

The following describes the configuration of the module in "Demo-W-rechts" for IR beacons D11 and D12 accordingly.

When the IR beacons are connected, the CTC app has already set up a lot internally for this purpose.

Clicking on "Settings" and "Configurator" opens the configurator. Clicking on the pencil in the SwitchBox row with the ID "Demo-W-rechts" opens the "Edit switch box configuration" window. Clicking on the "Actions" tab opens the corresponding window. Clicking on the TRIANGLE IN FRONT OF "IR beacon: D11-Conn" opens further options. Clicking on the field "Trigger: D11-Trigger" opens further options in "Action details". Clicking on the "Select" field opens the "Select trigger" window.

Configuration action IR beacon

Next, selecting the trigger: Under "Action group", select "SignalTower", under "Action", select "Demo-S-D1-re", clicking on "Apply" closes the window again.

Configuration action IR beacon

For the beacon directly in front of the signal, the action details are already correctly configured: In all cases ('42'), the state of the signal is transmitted unchanged as a command (param '?').

Configuration action IR beacon

IR beacon D12 is configured almost identically to D11. However, in this case, when the signal is red, the locomotive should not stop immediately, but slow down to minimum speed over the distance to beacon D11.

  1. Clicking on the TRIANGLE IN FRONT OF "IR beacon: D12-Conn" opens further options.
  2. Clicking on the field "Trigger: D12-Trigger" opens further options in "Action details".
  3. Clicking on the "Select" field opens the "Select trigger" window.
    1. Under "Action group", select "SignalTower",
    2. under "Action", select "Demo-S-D1-re",
    3. clicking on "Apply" closes the window again.
  4. In the "Action details" section: Clicking on the TRIANGLE IN FRONT OF "D12-Trigger" opens further options.
  5. In the "Action details" section: Clicking on the TRIANGLE IN FRONT OF "When 'Demo-S-D1-re' == '42'" opens further options.
  6. Clicking on the row "When 'Demo-S-D1-re' == '42'" displays the parameters of the if command on the right.

Configuration action IR beacon

First, the special case "signal red" should be handled. The letter assigned to this state can be found in the user manual in Chapter 4.5 "Config - Edit script" .

Alternatively, you can simply look at the signal configuration. Clicking on the TRIANGLE IN FRONT OF "Semaphore signal magnetic: Demo-S-D1-re-conn" opens further options. Clicking on "Function (Stop): Demo-S-D1-re" displays the action details. Clicking on the script "Switch to Hp0_Bar ('h')" shows the details of the state with the letter 'h'.

The symbol to the right of the script window speaks more than a thousand words.

Signal state 'h'

Back to the trigger, the state 'h' can now be entered in the if command. Clicking on "Trigger: D12-Trigger" switches back to the trigger of beacon D12. Clicking on the row "When 'Demo-S-D1-re' == '42'" displays the parameters of the if command on the right. Clicking in the field below the Remove button allows entering the letter 'h'. In the field below, enter a name matching the condition, e.g. "stop".

Trigger D12 when 'h'

Next, what should happen when 'h' occurs must be specified: Clicking on "param '?'" displays the parameters of the "param" command on the right. Clicking on the button next to '?' opens the command selection.

Trigger select command 'm'

In all other cases, the state of the signal should be adopted again. To do this, a new if command for any states must be added. Click on the top row in the script area ("D12-Trigger"). Then click on "Add".

Trigger new if

  1. Enter the asterisk ('42') as the condition for the if command.
  2. Enter a name matching the condition below, e.g. "otherwise".
  3. Change the script position below from 0 to 1.

Trigger new if

Now add the command for the new if command. Click on "Add" - the "Select new command" window opens. Click on the "setChar" command. Then click on "Apply".

Trigger new if

The line "param '?" is selected. Now enter that "cmd" should adopt the state of the signal ('?'): From the list under "Remove", select the value "cmd". Click the button to the left under the selection list - the "Select command" window opens. Select the line '?'. Click on "Apply".

Trigger new if

The script for the trigger of beacon D12 is now complete:

Trigger new if

What is still missing is the distance for braking. Since this is independent of the state of the signal, it is set as a fixed value instead of changing it in the script. Click on the line "cmdDist" under "Connections and parameters of the product". Click on the pencil symbol to the right of the selected line.

Trigger new if

The beacon D12 is now also fully configured:

Trigger new if

Clicking on "Upload" completes the changes to the triggers of both beacons D11 and D12.

Configuring a second turnout module

The second turnout module is configured in exactly the same way as the first turnout module. It has exactly the same connections: one turnout drive, one semaphore signal with magnetic drive and two IR beacons. When selecting the product, note that it is a turnout that turns left.

The assigned names are:

  • Module: Demo-W-Links
  • Signal: Demo-S-D2-li
  • IR beacons D22 (stop) and D21 (braking)

The configuration of the turnout modules is complete.

8. Zugbetrieb mit BR365 und E103

First, the BR365 is put into operation. In the "Loks" tab, the BR365 is clicked, then the "Steuerung" tab is selected. The preset settings can be seen here:

App Start Steuerung BR365

Driving the BR365:

  • The speed is selected via the +/- buttons or the slider in the "Steuerung" tab.
  • The two turnouts "Demo-W-Links" and "Demo-W-Rechts" are set for the BR365: A click on the turnout in the track diagram under the loco control changes the turnout position.
  • The signal "Demo-S-D1-re" in front of the right turnout is set to "green".
  • After clicking the direction switch to the right, the BR365 starts moving counterclockwise, passes the signal "Demo-S-D1-re", travels over the turnout "Demo-W-Rechts" and into the loop.
  • By clicking the signal "Demo-S-D1-re", the signal switches back to red. Now the IR beacons D12 send "Brake to minimum speed in 80 cm" and D11 the message "Stop, signal is at red".
  • The BR365 receives this message via the IR receiver built into the locomotive (listed under the "Sensoren" tab) when passing the IR beacon.
  • The BR365 stops in front of the signal "Demo-S-D1-re".

As shown in the following figure, the second locomotive can also be displayed with "Ansicht" - "Zeige linke Tafel".

CTC-App Steuerung Steuerung

Now a round trip with the E103 is driven:

  • By clicking "Ansicht" - "Zeige linke Tafel", another panel/window is opened. The window size is adjusted and the tab is selected.
  • Clicking one of the two large arrows next to the BR365 image selects the next loco, in this case the E103.
  • The desired speed is selected using the slider in the "Steuerung" tab.
  • The two turnouts "Demo-W-Links" and "Demo-W-Rechts" are set for the E103: A click on the turnout in the track diagram under the loco control changes the turnout position.
  • The signal "Demo-S-D2-li" in front of the left turnout is set to "green".
  • After clicking the direction switch to the left, the E103 starts moving clockwise, passes the signal "Demo-S-D2-li", travels over the turnout "Demo-W-Links" and into the large loop.
  • By clicking the signal "Demo-S-D2-li", the signal switches back to red. Now the IR beacons D21 send "Brake to minimum speed in 80 cm" and D22 "Stop, signal is at red".
  • The E103 completes its round trip and returns, first passing D21 and arriving at D22. It receives the message "Signal is at red" via the IR receiver built into the locomotive (listed under the "Sensoren" tab) when passing the IR beacon.
  • The E103 stops in front of the signal "Demo-S-D2-li".

The aim is also for the locomotives to stop precisely in front of a signal that is set to "Stop". To achieve this, the sensors of the locomotives must be calibrated.

9. Sensor Calibration

Basic Idea

It is desirable for a locomotive to come to a stop precisely in front of a signal that is displaying "Stop". In the track layout of the starter set, two IR beacons are installed in the tracks in front of each signal. If a locomotive approaches a signal and passes one of the IR beacons, it receives the following information:

  • the identifier of the IR beacons,
  • whether the signal is displaying "Stop" or "Proceed", and
  • the distance from the IR beacon to the signal.

The latter information can be used by the loco module to stop precisely in front of a signal displaying "Stop". This requires that the motor can be controlled with sufficient precision. To obtain the necessary control parameters, the sensor for the motor control must be calibrated. The CTC app supports this process, which is referred to as "Calibrate sensor".

The following steps are described in detail. It is absolutely essential to follow the procedure described.

Prerequisites

To calibrate the sensor of a locomotive, a track section for measuring is required. For this purpose, a measuring section is defined:

  • a fixed start point: "measurement starts here",
  • a fixed end point: "end of the measuring section has been reached", and
  • the distance between start and end.

The necessary definitions are stored in the configuration of the CTC module that controls the IR beacon and in which the model railway data is stored. An IR beacon is used as the start and end point of the measuring section. The distance between the IR beacons is taken from the model railway. If the locomotive travels this measuring section several times at different speeds, the control parameters for the locomotive's motor can be calculated from this.

Track for motor calibration

To be noted:

  • Convention: The designation of the IR beacons has a running index in a clockwise direction.
  • Convention: The track layout is driven in a clockwise direction for the measurement.

A prerequisite for calibrating the sensor of a locomotive's motor control is that the most up-to-date firmware is loaded in the loco module. To do this:

  • Open the configuration of the corresponding loco module,
  • click on "Load firmware", which opens the selection window,
  • select the firmware and confirm by clicking "Open",
  • the selected firmware is transferred to the loco module.

Defining the Measuring Section

The image of the track layout shows:

  • the measurement starts at D21,
  • the measurement ends at D22, and
  • the length of the measuring section is the distance traveled from D21 to D22.

Where the measurement starts and ends is defined in the model railway. The length of the measuring section is stored in the associated configuration of the second IR beacon.

Start and End of the Measuring Section

The start and end of the measuring section is defined in the model railway. This is stored in the "Demo-Weiche-rechts" module: In the CTC app, click on the "Modules" tab. Click on "Edit" of the "Demo-Weiche-rechts" module to open the "Edit control box" window.

CTC-App Sensor calibration 1

  • In the "Edit control box" window – click on "Edit model railway".

CTC-App Sensor calibration 1

  • The "Edit model railway" window opens – click on "New" under "Measuring sections".

CTC-App Sensor calibration 1

  • Enter the name of the measuring section, in this case "Bahnhof", and confirm by clicking "Create".

CTC-App Sensor calibration 1

  • Back in the "Edit model railway" window, click on "Set start".

CTC-App Sensor calibration 1

  • The "Start message" window opens.

Select "ID sender", select "D21" for "Action", and click "Apply".

CTC-App Sensor calibration 1

  • Back in the "Edit model railway" window, click on "Set end".

CTC-App Sensor calibration 1

  • The "End message" window opens.

In this window, select "ID sender", select "D22" for "Action", and click "Apply".

CTC-App Sensor calibration 1

The start and end of the measuring section are now defined in the model railway. In the current version of the app, only one measuring section can be defined; multiple measuring sections are not possible. Back in the "Edit model railway" window – click "Upload", then "Close".

CTC-App Sensor calibration 1

Length of the Measuring Section

The following information must be transmitted: "If the locomotive passes D21 and then D22, it has traveled the distance from D21 to D22, namely XXX centimeters. In other words: 'D22 is 'xxx' centimeters away from D21'." The length of the measuring section is defined in the configuration of the corresponding IR beacon. In this starter set, the IR beacons D21 (start) and D22 (end) are connected to the "Demo-Weiche-links" module. This length information must be stored in the "Demo-Weiche-links" module: In the CTC app, click on the "Modules" tab. Selecting "Edit" of the "Demo-Weiche-links" module opens the "Edit control box configuration" window of the Demo-Weiche-links.

CTC-App Sensor calibration 1

Selecting "Edit config" opens the "Edit control box configuration" window.

  1. In the "Connected products" section, select "D22-Conn".
  2. In the "Connections and parameters" section, select the "dist" line.
  3. Click on the edit pencil.
  4. Now enter the correct distance (in cm) from D21 to D22. In this setup, it is assumed that the distance between the two IR beacons is 43 cm.
  5. Click "Apply" to complete the entry and return to the "Edit control box configuration" window.
  6. Click "Upload".

CTC-App Sensor calibration 1

Running the Sensor Calibration

With this preparation, the sensor of a locomotive can be calibrated. The CTC app performs a series of measurements, with the measuring section being traveled by the selected locomotive at different speeds. The initial speed must be selected manually by the user. The actual measurement cycle is carried out automatically by the CTC app; no further intervention is required. The measuring section is traveled several times, with the speed being increased after every three runs. The progress of the measurements can be observed in the graph of recorded measurement values.

In the CTC app main window, prepare the locomotive's route: Set "Demo-Weiche-links" to "diverge". Set the signal "Demo-S-Gleis-B" of the station track to "Proceed". Set "Demo-Weiche-rechts" to "diverge". Select locomotive E103 and click on "Edit" in the row.

CTC-App Sensor calibration 1

The locomotive configuration window opens; click on "Calibrate sensor".

  1. The measurement cycle of the CTC app should start with the slowest possible travel speed of the locomotive.

This must be set by the user. Typically, this value should be between 10 and 20 percent. In the case of the locomotive used here, it is exceptionally a significantly higher value; 35% must be set. Click on "Drive/Halt" to start the locomotive. The locomotive should run for some time to allow the set minimum travel speed to be checked and, if necessary, adjusted. Click on "Start calibration" to start and automatically carry out the measurement cycle.

CTC-App Sensor calibration 1

Once the locomotive has traveled the measuring section three times, the app automatically increases the travel speed by 10 percentage points. Again, the measuring section is traveled three times. The app continues in this manner until the 80% speed mark is exceeded. The progress of the measurement data acquisition and evaluation can be observed in the "Motor sensor calibration" window.

When the measurement cycle is complete, the locomotive stops and the calibration values calculated by the app are transferred to the loco module by clicking on "Upload motor config". These values are then available for operation.

CTC-App Sensor calibration 1

10. Fahrbetrieb Automatisieren

Automating Train Operations

In progress, more to follow

10.1. Fleet Operations Automation with a Locomotive

The scenario used here for automated train operation is as follows: The train with locomotive BR212-FW enters the station, slows down and comes to a stop. The train remains at the station for a specified time. After the waiting time, the train continues, completes a clockwise loop, and re-enters the station.

This operation repeats.

The following requirements must be met for automated operation with a locomotive (in this example BR212-FW) in this scenario. It is assumed:

  1. The track plan is complete, and the beacons are connected to the modules in the turnouts.
  2. The stopping time of BR212-FW at the station should be 5 seconds.
  3. The turnouts are set so that BR212-FW can complete a loop and re-enter the station.
  4. The signals Demo-S-D2-li and Demo-S-D1-re are not used; they are set to "Proceed".
  5. BR212-FW is used for automated operation; BR365 does not participate.
  6. The distance from beacon D21 to beacon D22 in this setup is 43 cm. For the command later sent from D21 to BR212-FW, a slightly shorter distance (35 cm) is defined so that the locomotive has safely reached its minimum speed when it arrives at beacon D22.

Before proceeding, a brief explanation of the terms locomotive Halt , locomotive Stop , and locomotive Rückfahrt is useful. These terms are used in accordance with the commands from the beacon as follows:

  • Halt refers to an unconditional and unlimited in time stop of the locomotive. As long as a locomotive receives Halt from a beacon, it will not depart.
  • Stop refers to an unconditional but time-limited stop communicated in the command of the locomotive. After the waiting time specified in the Stop command has elapsed, the locomotive continues in the same direction .
  • Rückfahrt refers to an unconditional but time-limited stop communicated in the command of the locomotive. After the waiting time specified in the Stop command has elapsed, the locomotive continues in the opposite direction . This corresponds to shuttle train operation.

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:

Automat Fahren Lok fährt in Bahnhof ein

Upon entering the station track, BR212-FW passes beacon D21 and receives the following information: Position ID D21: "I am D21" Distance to the 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"

Locomotive BR212-FW slows down and continues at minimum speed...

Automat Fahren Lok fährt in Bahnhof ein

... until beacon D22:

Automat Fahrbetrieb Lok Start

From beacon D22, BR212-FW receives the following information: Position ID D22: "I am D22" Distance to the previous beacon in the same block is 35 cm. Command: "Stop immediately (at distance 0) for 5 seconds" (implicitly, this means that the locomotive will continue after the specified waiting time, provided it is in automatic mode).

The locomotive automatically waits for the waiting time transmitted in the command from the beacon:

Automat Fahrbetrieb Lok dreht weitere Runde

After the waiting time specified in the "Stop" command has elapsed, BR212-FW continues:

Automat Fahrbetrieb Lok dreht weitere Runde

These necessary information and commands are configured.

Next, proceed with Automating operation with one locomotive, variant 2

or

with Automating operation with two locomotives .

10.2. Fahrbetrieb Automatisieren mit einer Lok, zweite Version

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:

  1. BR212-FW travels a lap clockwise and enters the station,
  2. slows down and
  3. comes to a stop.
  4. The train remains at the station for a certain period of time.
  5. After the waiting time, the signal Demo-S-D2-li switches to "Go".
  6. BR212-FW departs.
  7. 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:

  1. The track plan is complete, the beacons are connected to the modules in the turnouts.
  2. The dwell time of BR212-FW at the station should be 5 seconds.
  3. The turnouts are set so that BR212-FW can complete a lap and re-enter the station.
  4. The signal Demo-S-D2-li is used.
  5. The signal Demo-S-D1-re is not used.
  6. 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":

Automated operation Locomotive enters station

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...

Automated operation Locomotive enters station

... until beacon D22:

Automated operation Locomotive departs

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.

Automated operation Locomotive departs

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:

Automated operation Locomotive departs

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:

Automated operation Locomotive completes lap

Again, BR212-FW enters the station track:

Automated operation Locomotive enters station

The information and commands required for this scenario are now configured.

The corresponding instructions will follow shortly.

10.3. Fahrbetrieb Automatisieren mit Pendelzugbetrieb

The loco BR212-FW is used for the shuttle train operation. The loco BR365 is not required and will be removed from the layout.

The scenario used here for automated train operation is as follows: The train with loco BR212-FW is positioned at the station in block D2, BR212-FW departs counterclockwise,Track diagram for starter set model railway layout extended 1 completes one lap counterclockwise and enters the station block D1, slows down from balise D12 and comes to a stop at balise D11. The train remains at the station in block D1 at balise D11 for a specific pause time. After the pause time has elapsed, BR212-FW departs clockwise,Track diagram for starter set model railway layout extended 1 completes one lap clockwise and enters the station in block D2, slows down from balise D21 and comes to a stop at balise D22. The train remains at the station in block D2 at balise D22 for a specific pause time (not identical to the pause time of block D1). After the pause time has elapsed, BR212-FW departs counterclockwise again.

This operation repeats.

The following requirements must be met for automated operation of a loco in this scenario, and the following information is available:

  1. The track plan is complete; the balises are connected to the modules at the turnouts.
  2. The dwell time of BR212-FW at the station in block D2 should be 5 seconds.
  3. The turnout Demo_W_Links is set so that BR212-FW turns counterclockwise and enters block D1 .
  4. The turnout Demo_W_Rechts is set so that BR212-FW turns clockwise and enters block D2 .
  5. The signals Demo-S-D2-li and Demo-S-D1-re are not used.
  6. BR212-FW is used for automated train operation; BR365 is not part of the operation.
  7. The distance from balise D21 to balise D22 in this setup is 43 cm. For the command sent from D21 to BR212-FW, a slightly shorter distance (35 cm) is defined so that the loco has safely reached its minimum speed when it arrives at balise D22.
  8. The distance from balise D12 to balise D11 in this setup is 43 cm. For the command sent from D12 to BR212-FW, a slightly shorter distance (35 cm) is defined so that the loco has safely reached its minimum speed when it arrives at balise D11.

Loco Halt , loco Stop , and loco Rückfahrt :

The terms Halt , Stop , and Rückfahrt are used here in accordance with balise commands as follows:

  • Halt refers to an unconditional and unlimited stop of the loco. As long as a loco receives Halt from a balise, it will not depart.
  • Stop refers to an unconditional but time-limited stop communicated in the command. After the wait time specified in the Stop command has elapsed, the loco continues in the same direction .
  • Rückfahrt refers to an unconditional but time-limited stop communicated in the command. After the wait time specified in the Stop command has elapsed, the loco continues in the opposite direction . This corresponds to shuttle train operation.

The description of the commands that can be sent from a balise to a loco is provided in the CTC-App manual in the chapterConfig - Edit Script (section "Commands for locos / signals"). These commands will be used later during configuration.

Further description will follow shortly.

10.4. Fahrbetrieb Automate with two Loks

When automating train operations with a locomotive , a static configuration was used. \nIn the scenario described now, it’s different. This results in changes to the configurations. \nAutomated train operation works as follows: The train with locomotive BR212-FW is stationed at the station in block D2. Signal Demo-S-D2-li switches to "Proceed". BR212-FW departs, begins to travel clockwise. Signal Demo-S-D2-li switches to "Stop". BR212-FW completes one lap clockwise and enters the station block D2, slows down and comes to a stop. The turnouts switch so that BR365 can travel one lap. Signal Demo-S-D2-li switches to "Proceed". BR365 departs, begins to travel counterclockwise . Signal Demo-S-D1-re switches to "Stop". BR365 completes one lap counterclockwise and enters the station block D1, slows down and comes to a stop. The turnouts switch so that BR212-FW can travel one lap clockwise. Signal Demo-S-D2-li switches to "Proceed".

This operation repeats.

For locomotive BR212-FW, the scenario is very similar to Automating train operations with a locomotive, variant 2 .

Locomotive BR212-FW stops at the station track, signal Demo-S-D2-li switches to "Proceed", BR212-FW departs, begins to travel clockwise, signal Demo-S-D2-li switches to "Stop", BR212-FW completes one lap clockwise and enters the station, slows down and comes to a stop:

Automated train operation with two locomotives start

Automated train operation with two locomotives start

Automated train operation with two locomotives start

Now it’s BR365’s turn: The turnouts are switched so that BR365 can travel one lap counterclockwise:

Automated train operation with two locomotives start

BR365 departs, begins to travel counterclockwise, signal Demo-S-D2-li switches to "Stop":

Automated train operation with two locomotives start

BR365 enters the station, slows down:

Automated train operation with two locomotives start

Locomotive BR365 comes to a stop at balise D11.

These required pieces of information and commands are configured.

Further description to follow shortly.