Model Train Script
Automate your model railroad — no computer required.
Model Train Script makes model train automation as easy as possible. Create simple sequential automation scripts right on your iPhone, iPad or Mac and bring your layout to life. Besides automation, it also provides manual control of your layout with a graphical track diagram, including occupancy feedback and RailCom vehicle detection.

Features
Automation
Automate your layout with easy-to-build scripts, time tables, routes and flags
Track diagram
Control accessories, monitor feedback and see RailCom vehicle positions at a glance
Vehicle catalog
Manage your locomotive collection with functions, speed profiles and images
Camera support
Use your iPhone/iPad camera or an ESP32-CAM module for vehicle detection
iCloud sync
All data is synced across your Apple devices via iCloud
Feedback
RBus, CBus, LBus (LocoNet) and RailCom occupancy detection
Demo
Quick links
Getting started
Set up your profile and connect to your command station
Manual
Full reference for all features
Automation
Learn how to create scripts, routes and time tables
Contribute
Model Train Script is free software without any profit in mind.

Donations to help covering the costs of hosting and development are highly appreciated and can be done via PayPal via this link. Thank you!
Privacy
Disclaimer
This app is not affiliated with ESU, Roco or Fleischmann. The ESU brand is owned by ESU electronic solutions ulm GmbH & Co. KG, the Z21 brand is owned by Modelleisenbahn GmbH, all rights reserved to them.
The makers of this app are NOT RESPONSIBLE for any damage caused by runaway trains. Always be there while the scripts are running and make sure a throttle is available for quick stop of operations.
© 2026 Arjan Pragt


