Penri wrote: ↑07/09/2021, 20:51When I arrived at WMT Mandy told me that the underground train was going but only moving on the far right hand side of the track (as you look at things from the visitor's viewpoint).
I cut the power, moved the train back to the left hand side, it's normal starting position, then reapplied power. The train started, seemingly normally but only got partially into the tunnel before stopping, then continued on, stopped mid tunnel then started it's return journey, stopped once more then came to rest partially out the left hand side of the tunnel. The second run as much like the first but now shifted further right, never regaining it's "normal" starting position. Eventually after the 4th or 5th run the train was "stuck" at right hand end of the track.
I'm thinking that this may be caused by something slowing the train down so it never reaches the sensor. By default, the train is accelerated out of the station to maximum speed and runs until the first sensor is passed. It then decelerates into the tunnel and stops. Each segment is supposed to work the same way.
In order to control this in a sensible fashion and also to prevent the train hitting the buffers in the event that a sensor is missed, there is effectively a timeout. This timeout is set and is used to calculate how many acceleration and deceleration iterations (loops) the software will need to get the train to the designated stops and is based on the maximum and minimum speeds required and the time to reach that speed. The maximum and minimum values for PWM are also defined and will obviously have an effect. It the loop timeout is reached before the sensor, then the train will stop too soon; much as you have observed. If the train is running slowly, compared to when the system was commissioned three years ago, then this will be the result.
There are obviously a number of reasons why the train might run slowly; eg track resistance, failing motor, high resistance current path to the tracks. (I discount the latter because it is difficult to envisage a high resistance and a short circuit in the same path, although a partial short would rob the train of power.)
They may be other causes that I haven't thought of, but running too slowly would seem the most likely to me.