Train sets allow a loco to run with, or without, a set of carriages or wagons. The combination is created at runtime as a "train set".
Joining and separating isn't as clear cut as it could be.
- Trains can be made to join when a loco is moved into a block where the carriages/wagons are already present. There needs to be an occupancy sensor at the start of the block, so that the train entry can be detected. When the train has been detected entering the block and its speed is set to 0, a "join" can be automatically performed if "enable join by train tracking" is enabled. This is a property of the train set.
- Trains can be made to separate at the end of a schedule by setting an end-of-schedule operation to separate.
- Trains can be manually separated either using the "change train set" form, or by an operation attached to a sensor event. The sensor event can be train triggered, or could be a DTM30 pushbutton.