Skip to content

Supported systems ​

Model Train Script supports two command station families — Z21 and ESU ECoS — and includes a built-in demo mode for trying out the app without hardware.

The command stations can be located automatically on your network and verified before use (see Discover and test a Z21 or Discover and test an ECoS).

A feature comparison at the end summarises what each system offers.

Demo mode ​

The built-in simulator lets you explore Model Train Script without a physical command station. It emulates a Z21 system including feedback modules, so you can build track plans, create vehicles, and develop automation scripts offline. A great way to get started.

Z21 ​

Model Train Script connects to Z21-compatible command stations over your local network using UDP (port 21105).

Compatible hardware ​

The Z21 protocol is supported by multiple manufacturers. Any Z21-compatible system can be used, though Model Train Script is tested with a Roco Z21.

Known compatible manufacturers include:

  • Roco / Fleischmann — Z21 (black/white)
  • Zimo — MX10 / MX10EC
  • DigiKeijs — DR5000
  • Yamorc — YD7001
  • mXion — mXion SS (a speed step workaround is available in the profile configuration for mXion devices)

Features ​

  • Locomotive control — Speed, direction, and functions (F0–F28). Supports 14, 28, and 128 speed steps.
  • Accessories — Switch turnouts and signals, including extended accessories (0–255). Optional automatic deactivation timers for accessory outputs.
  • Feedback — All three feedback buses are supported:
    • R-Bus — Up to 19 modules with 8 ports each.
    • LocoNet — Up to 2048 addresses. Supports RailCom address detection.
    • CAN bus — Up to 256 addresses with 8 ports each. Supports RailCom address detection.
  • CV programming — Read and write CVs on the programming track and on the main (POM).
  • Track power — Turn power on/off and monitor status (including short circuit detection).

Network setup ​

Out of the box, a Z21 is configured to use a static IP address (default 192.168.0.111). For a better experience you might want to connect your command station to your router. A good tutorial can be found here on YouTube.

Discover and test a Z21 ​

The Z21 connection settings include two helpers:

  • Discover on network — Searches your local network for Z21 stations and lists each one that responds, with its serial number. Tap a result to fill in the address.
  • Test connection — Checks whether the Z21 at the configured address responds, and shows its serial number on success.

WARNING

Due to a limitation of the Z21 protocol, only one device should have automation enabled at the same time. Configure this in App Settings.

ESU ECoS ​

Model Train Script connects to the ECoS command station over your local network using TCP (port 15471). It is tested with an ECoS 2.1.

Features ​

  • Locomotive control — Speed, direction, and functions. Vehicles can be imported directly from the ECoS including their names and function mappings.
  • Accessories — Switch turnouts and signals.
  • Feedback — ECoSLink (S88 and ECoSDetector modules) with RailCom support. Other buses like LocoNet or S88 over external interfaces are currently not supported.
  • Track power — Turn power on/off and monitor status.

INFO

CV programming is not supported via the ECoS connection. Use the ECoS interface directly for programming tasks.

Discover and test an ECoS ​

The ECoS connection settings include two helpers:

  • Discover on network — Searches your local network for ECoS stations (ECoS firmware 3.x or later) and lists each one. Tap a result to fill in the address and port.
  • Test connection — Checks whether the ECoS at the configured address is reachable.

WARNING

PC Control must be enabled in the settings of your ECoS for Model Train Script to connect.

Feature comparison ​

FeatureZ21ECoSDemo
Locomotive control✓✓✓
Accessories✓✓✓
Extended accessories✓—✓
Accessory deactivation timers✓—✓
R-Bus feedback✓—✓
LocoNet feedback✓—✓
CAN bus feedback✓—✓
ECoSLink feedback—✓—
RailCom address detection✓✓✓
CV programming✓——
Vehicle import from command station—✓—