Page updated on 10 March 2024

Photo of me
My banner

Models

Web pagina under construction

This webpage is about the functional models used for designing, testing, selecting materials to build the controls for my model railway. It consists of the topics:

Usage model

The usage model explains the use of the command and control system and which processes are involved. The following UML diagrams are used as an aid:

  1. Use case diagrams [uc]
  2. Use case associated scenario description (including timing requirements)
  3. Activity diagram [act]
  4. State diagrams [stm]

Like with the real SpDrL60 mosaic panel, all operating steps are carried out with a two-button operation (start and destination button). The interlocking automatically sets all turnouts belonging to the route, then locks them, checks that the track sections to be travelled on are clear and sets the associated signal to run once the route has been set. The turnouts can also be operated individually. In principle, two buttons must always be pressed simultaneously to trigger an action. This prevents, for example, a turnout from being reversed by accidentally pressing down a button.
If two buttons are not operated in the track diagram itself, a button in the group block are usually involved. Example: To set a turnout individually, the turnout group button is pressed together with the corresponding turnout button.

Background

The tile size of 15 mm will only allow for one push button per tile. Hence controls which requires two buttons per signal tile, e.g.: for special routes (Hilfstraßen), shall not be available.

Every tile with a button in the track diagram will be controlled by a microcontroller. Route setting shall preformed messages between components like signals and turnouts. The type of communication link used for the messages shall be UART.

One LED per tile shall be available for e.g.: non vacant tracks (rectangle red), routes and position points (rectangle red white), locked elements (round white) and disabled elements (round red).

Building stages

The behavioural aspects will be completed as follow:

  • Stage 1: Point control and indication, and traction areas
  • Stage 2: Individual control and indication of all infra elements
  • Stage 3: Control and indication of routes and cab assignment
  • Stage 4: The implementation of line site signals.

Before the next stage is started the previous stage shall be completed first for the whole model railway.

Stage 1

In stage 1 Turnout control and indication, and traction areas shall be employed:

  1. Only turnouts shall be controllable.
    This can be employed by pressing the WGT in the group section and the WT of the turnout tile, both on the SpDrL60 panel. The tiles of the switch point show the position of the points and if they are non vacant.
  2. The layout shall be divided in 8 traction areas.
    Traction areas can be connected to four cab controllers, selectable by rotary switches. This allows for a train controlled by a cab controller to run across several sections. Only one self propelled train is allowed in a traction area.

The properties of the turnout and traction components shall be in compatible with all future functions in stage 2 up to 4.


Stage 2

In stage 2 individual control and indication of all infra elements shall be added:

  1. Single button operation
    This shall entail pressing a button in de group tile area reset whole system, the selection of a cab to a traction section and setting the brightness of the LEDs of the SpDrL60 panel
    SpDrL60-pkg-UC1 Use case single button operations.
    Figure with SpDrL-pkg-UC1 Use case single button operations.
  2. Single infra element operations
    Single infra element operations shall entail pressing a button to operate a turnouts, a signals and an automatic blocks in combination by pressing an associated group button.
    SpDrL60-pkg-UC2 Use case single infra element operations.
    Figure with SpDrL-pkg-UC2 Use case single infra element operations.

The properties of the turnouts, traction components and single infra elements shall be in compatible with all future functions in stage 3 and 4.

Traction areas shall still be selectable to cab-controllers by rotary switches.

Stage 3

In stage 3 control and indication of routes and cab assignment shall be added:

  1. Route operations
    Main or shunting route operations shall entail pressing a start button of a signal at the beginning of a requested route for a train and destination button of the signal or stub track where the train should terminate. The route shall be cancelled after the train has passed the route clearing point.
    SpDrL60-pkg-UC3 Use case route operations.
    Figure with SpDrL-pkg-UC3 Use case route operations.
  2. Cab assignment
    A cab controller shall be automatically assigned to main route when the route is set. The cab shall be obtained from the traction component at the start of the route. The cab assigned to a route shall be changeable at a main traction section.
    Place the two connections for each of the four cab controllers at the backplane. This will allow the traction selector amp to have access when plugged into the backplane.
    Rotary switches to select cab controllers to traction areas will be employed for traction sections of shunting routes.
    Place the two pin connector for a shunting traction area at the front of the traction selector amp PCB.

Stage 4

In stage 4 the control of line site signals shall be employed. They shall be controlled by command system components via a two wire multi master bus i.e.: I2C.

Structural model

The structural model explains the interconnections between de parts of the command and control system. The following UML diagrams are used as an aid:

  1. Design model diagrams
    1. Object diagram [obj] (Of 'real world' objects)
    2. Sub routine diagrams (Instead of class diagrams)
    3. Composite structure diagrams
    4. Package diagrams [pkg]
  2. Deployment model diagrams
    1. Deployment diagrams [dpm]
    2. Component diagrams [cmp]

Behavioural model

The behavioural model explains the interactions between de parts of the command and control system. The following UML diagrams are used as an aid:

  1. Interaction diagrams
    1. Sequence diagram [seq]
    2. Collaboration diagrams [col] (Object communication diagrams)
    3. Interaction overview diagram [sd]
    4. Timing diagram [tmg]
  2. Dynamic diagrams
    1. State machine diagrams

Processing model

The processing model explains the processing aspects of the command and control system. The following UML diagrams are used as an aid:

  • Activity diagram