Timing

While creating an automation script for your locomotive you sometimes will have a situation you want to wait for the train to arrive at a certain station or you want your train to drive for a certain amounts of seconds. Model Train Scripts provides you actions for both options.

Wait

The wait action will pause the script execution for the configured amount of time. Although you can never prevent the use of this action do try to minimize the usage as much as possible and try to relay on sensors. Due to the mechanical engine and things timing of sound effects of your locomotive you cannot guarantee the precies location of your train after the wait.

Wait for feedback module

This action will provide you the most reliable result for exact positioning of the train. Any sensor (like reed, current detection etc) that you connect to a feedback module is supported. You can configure the sensor yourself or easily select it via the layout selector from the layout you configured in the layout section.

Besides responding to an active or inactive you can optionally also wait for a specific locomotive to be detected by that sensor. In order for this feature to work you will need a working RailCom setup, this means not only enabled for your command station but also a RailCom compatible feedback module and RailCom compatible decoder in your locomotive.

Wait for accessory

This action will let the script wait for an accessory to change state. With this action you can for example wait for a signal to become green before the train resumes its journey.

Wait for camera detection

This action will let the script wait for the camera to detect a locomotive at a certain position. You can select the camera should detect the vehicle and with the aid of the preview select where in the frame the vehicle should be detected.

Last updated