Seite drucken - How to "reserve" a track for a tour? (With Virtual devices)

windigipet.de

Win-Digipet - international => Win-Digipet Forum English => Thema gestartet von: Klippert in 06. Mai 2010, 18:01:44

Titel: How to "reserve" a track for a tour? (With Virtual devices)
Beitrag von: Klippert in 06. Mai 2010, 18:01:44
Hello,

I've tried reading a bit about virtual devices and using them to "reserve" tracks for tours, to make sure that one does not get "deadlocks" where two opposing locks tries to use the same track.

My plan is, that the Passenger train (Ae6/6 id:66) departs from Trossingen track 1 (blue circle) (wich now works, thanks to the matrix! :-) - Then it goes up to Oberried track 1 (other blue circle), wich is the only track in front of oberried that is long enough for the passenger train.

Other trains (in this case BR50) are going from Trossingen to the red circle where BR50 is in the screenshot, and then have two follow-up routes (wich are randomly chosen) going to either Oberried track 1 (red circle) or Oberried track 2.

Now my attempt is to the virtual switch (ID:999) "reserve" Oberried track 1. And then have the passenger train only leave Trossingen if the switch is "green".

Now since the tour the BR50 is taking is actually both able to use Oberried track 1 & 2, i figure i need the precondition to be in the routes. But how do i do that?


Titel: Re: How to "reserve" a track for a tour? (With Virtual devices)
Beitrag von: Hwnel in 07. Mai 2010, 01:15:19
Hello Klippert,

You can set up the route to oberried track 1 (in this case for the Br50) in the tour automatic.  Its precondition would be allow if the switch is red.  This way you can use the same switch.  To use track 2 in Oberried (for the br50), set up a separate route without any preconditions.

I would forego the follow-on tours where the Br50 is and use two separate routes.  This way you can put conditions on each route separately.

There are other options too.  Have you read about the Dispatcher?

Aloha,

Elliott



Titel: Re: How to "reserve" a track for a tour? (With Virtual devices)
Beitrag von: Klippert in 08. Mai 2010, 08:21:02
Hello,

Thanks for the answer. So it would seem that making preconditions for a follow up tour, is not possible?

Regarding the dispatcher, i had a brief look at it some weeks ago, but i postponed looking further into it, since it looked rather complicated. I might have a new look. Btw. is there a particoularily good place to start?

Kind regards
Kristoffer
Titel: Re: How to "reserve" a track for a tour? (With Virtual devices)
Beitrag von: Stefan Lersch in 08. Mai 2010, 23:17:35
Hello Kristoffer,

well, yes and no. ;) No, you can't make proconditions directly to follow up tours. There are no fields where could enter them. But using virtual feedback contacts and your virtual switch you can make it, yes. Create an additional route. It is a copy of the one that enters track 1. But here you add the virtual contact that belongs to the virtual switch as a condition. Let's say you switch sets the contact to busy if it is red and to free when it's green. Then the condition must be that your virtual contact must be free, too.

Then you change the follow up list: first you enter the new route then the route to track 2. This will happen: first WDP checks if the first follow up route is available. This is only true if the virtual switch is green. And this is only true if the other train hasn't set the switch yet. But if it's red WDP will try track 2.
Titel: Re: How to "reserve" a track for a tour? (With Virtual devices)
Beitrag von: Klippert in 13. Mai 2010, 13:41:34
Hello,

Thanks for the reply. If i understand it correctly, you simply use the route's precondition, instead of the tour. then the routes precondition will be tested when the tour tries to select a follow up route?

That's exactly what i was looking for :)
Now i'll test it. (assuming i understand correctly).

Kind regards and thanks again
Kristoffer
Titel: Re: How to "reserve" a track for a tour? (With Virtual devices)
Beitrag von: Stefan Lersch in 13. Mai 2010, 19:42:14
Hello Kristoffer,

yes, that's correct. You define two tours to either side of the station. As follow up tour you enter the tours I mentioned above.