Herman Posted May 20, 2021 Share Posted May 20, 2021 Hello dear members, I have a solution for the following but ... not entirely happy with it. Task : A track contact with autodecelleration = 0 is triggered by a train. After some time : If the train comes forward on that contact, he must go back to the other direction. If the train comes backwards on that contact, he has to go on further in the same direction. Suggestions for a more elegant solution ? If possible without capturing the current speed in the begin. I did not find another solution to know if the train is triggering with positive speed, or negative speed. Are there ? Probably yes. Thanks for reading - suggestions, Herman (BE) Link to comment Share on other sites More sharing options...
Herman Posted May 20, 2021 Author Share Posted May 20, 2021 Correcttion autodecelleration must be : track contact with Decelerate to 0 km/h Link to comment Share on other sites More sharing options...
Herman Posted May 20, 2021 Author Share Posted May 20, 2021 Hello, Solution in .mdb form. Greetings, Herman (BE)Conditional change of direction.mbp Link to comment Share on other sites More sharing options...
Goetz Posted May 20, 2021 Share Posted May 20, 2021 Hello Herman, vor 40 Minuten schrieb Herman: Suggestions for a more elegant solution? In both instances, your new speed is negative.Deactivate the option "relative to driving direction" and you're done: with kind regards Goetz Link to comment Share on other sites More sharing options...
Herman Posted May 20, 2021 Author Share Posted May 20, 2021 Hello Götz, Thanks, a logical and very elegant solution, we need only the -20 speed in this case indeed. But I did not see it ... again and again. I focused to much on "relative to direction" and the condition. I struggled longer with this one, and should come earlier to the forum. ( as you said before ... but maybe I was stubborn ) As always thank you very much, I appreciate it a lot ! Kind Regards, Herman (BE) PS. Why this question. I'm working on a project around a turntable, where I want the Loc always going backwards into the depot. Works already nice... Link to comment Share on other sites More sharing options...
Atrus Posted May 21, 2021 Share Posted May 21, 2021 Hello Herman, i really agree with you in that case. It's simple boring, if you're very close to find a solution, but however, a little link is always missing in it. You've tryed it again and again, but you can't find the right way. And as well, you don't want to blame yourself, but in the end you have to ask somebody. So it's really good, to get some help at that moment. When ever i've had any problem in this direction and this in several times until now, i've always got some good explanations from the "MBS Forum", especially from @GoetzAnd i'm very thankful for that. Because otherways, one day i would have lost my interest to the MBS Studio, even it's an very exciting program. But that doesn't help you at all, if you don't understand the functions and everything which depends on it. Nice that your'e have fixed your problem. kind regards Atrus Link to comment Share on other sites More sharing options...
Herman Posted May 25, 2021 Author Share Posted May 25, 2021 On 5/21/2021 at 6:16 PM, Atrus said: Nice that your'e have fixed your problem Hello Atrus, Thanks for the nice support. Kind Regards, Herman Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now