ademes Posted July 1, 2019 Share Posted July 1, 2019 Hello, I'm happy to present here a layout (not too complex) where I've tried to limit the number of different events. And the objective is to use this approach for bigger layout without the need to add new events. The events cover the following goals : 1. Decide and pilot a train at the entry of a station : this will be executed in a section called "Decision" and the event, depending on a predefined itinerary defined as the "object.variable" trajet into the object of the engine. The decision that has to be taken is : - to which next section must the train go? - Which are the switches necessary to conduct te train to the correct next section and how must those switches be positonned. To solve this, the following events are necessary : - Decision for next section : 1 for each itinerary - Set switch for all : 1 event per switch - Toggle switch for all : 1 event per switch 2. Decision on station : here, the itinerary is not relevant as, normally, each train will go to a next COMMON section. So, the only think to do is to position correctly all switches. The following event are necessary ; - Prepare exit from station - Reservation of next switches and section - Stop at station - Toggle switch at exit : 1 per needed switch 3. Decision for sections used to link 2 stations : here, also, the itinerarry is not relevant as there is only one next section. The following event are needed : - Toggle next for common : check if next section is free - Stop if next section is not free - Exit if next section is free 4. Actions to take at entry of a section : maily freed the former section and former switches, if any - Free former switches and section Is this perfect? No, of course as all options aren't yet covered, like train entering a station by both side. This will be the next problem to solve. I also add event to force all trains to go back to predefined tracks used as the "garage" These events reset the variables and stop the trains. It will occur when the switch is toggled to "STOP". To start, just push the switch to "GO". Please let me know your comments and remarks and also how to improve this model. I thank you all in advance Regards André test trigger 9.mbp Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now