GWR Greg Posted June 19, 2015 Share Posted June 19, 2015 I have recorded a programme and run it several times. It switches off at 358 seconds for no reason I can see. The programme should run for over 100 more seconds. Running the steps from just before it turns off for about three seconds works fine. Trains obviously don't stop when programme turns off just keep going at speed set before turn off. Anyone know what's going on? Link to comment Share on other sites More sharing options...
St1ngr4y Posted June 19, 2015 Share Posted June 19, 2015 I have recorded a programme and run it several times. It switches off at 358 seconds for no reason I can see. The programme should run for over 100 more seconds. Running the steps from just before it turns off for about three seconds works fine. Trains obviously don't stop when programme turns off just keep going at speed set before turn off. Anyone know what's going on?Hi Greg,Could you list a few of the instructions which are at, or around, the 358 seconds mark?Ray Link to comment Share on other sites More sharing options...
GWR Greg Posted June 19, 2015 Author Share Posted June 19, 2015 Hi RayAll the instructions between 358.00 and 361.84 are very similar.358.00 4819 0-4-2T Class 48xx GWR Green Reverse to [0]358.31 4819 0-4-2T Class 48xx GWR Green Reverse to [1]teh 3, 4, 9, 10, 11, 13, 15, 18, 19, 24, 28,(probably turns off about here)and so on to361.84 4819 0-4-2T Class 48xx GWR Green Reverse to [127]Other than the last number all steps are identical.Greg Link to comment Share on other sites More sharing options...
St1ngr4y Posted June 19, 2015 Share Posted June 19, 2015 Hi RayAll the instructions between 358.00 and 361.84 are very similar.358.00 4819 0-4-2T Class 48xx GWR Green Reverse to [0]358.31 4819 0-4-2T Class 48xx GWR Green Reverse to [1]teh 3, 4, 9, 10, 11, 13, 15, 18, 19, 24, 28,(probably turns off about here)and so on to361.84 4819 0-4-2T Class 48xx GWR Green Reverse to [127]Other than the last number all steps are identical.GregOk - not many clues there - what comes before 358? Also, what is the last line of the program?What I usually do after recording a program such as this is to replace all the "Reverse to [nn]" commands by a single "accelerate reverse [xx] to [yy]" command, where xx and yy are the start and finish speeds respectively. There is a third parameter which you can use to set the rate of acceleration. Without this the rate is approximately 1 speed step per second. For a quicker acceleration, you could add to the end of the command e.g. ,0.5. This would cause the rate of acceleration to be 1 speed step per half-second (or 2 speeds steps per second). By tweaking this single command, you can usually get the loco to do exactly what you want, and VERY smoothly. The only proviso with the use of this command is that you shouldn't have it as the last line of a program, otherwise the program terminates immediately and the acceleration isn't carried out. Ray Link to comment Share on other sites More sharing options...
GWR Greg Posted June 19, 2015 Author Share Posted June 19, 2015 RayI have changed the problem section using the "accelerate" principle and now works okay.Will look at using this in future.Thanks Link to comment Share on other sites More sharing options...
St1ngr4y Posted June 20, 2015 Share Posted June 20, 2015 Hi Greg,Just out of interest - was the program misbehaving when run in the main window or from the program editing window or both?Ray Link to comment Share on other sites More sharing options...
GWR Greg Posted June 21, 2015 Author Share Posted June 21, 2015 Only from the main window. Running a short section including the " turn off " went as it should with no turn off. Link to comment Share on other sites More sharing options...
Fishmanoz Posted June 21, 2015 Share Posted June 21, 2015 Oops, posted in the wrong thread. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.