Autor Thema: How to "reserve" a track for a tour? (With Virtual devices)  (Gelesen 2919 mal)

Offline Klippert

  • Junior-Mitglied
  • Beiträge: 23
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?



Zu diesem Beitrag gehören 3 Anhäng(e). Um diese zu sehen oder zum Download müssen Sie sich einloggen.

Offline Hwnel

  • Senior-Mitglied
  • Beiträge: 175
  • Ort: Hawaii Ort bei GoogleMaps suchen
  • Aloha from Hawaii
Re: How to "reserve" a track for a tour? (With Virtual devices)
« Antwort #1 am: 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



« Letzte Änderung: 07. Mai 2010, 01:27:00 von Hwnel »
Layout:
WDP 2015.2, Märklin HO K-Gleise, CS2 4.1.2(3), CS1 2.0.4, 3x 60174 Booster, 13x 60880 s88 on L88 Bus 3, DSD 2010 Sven Brandt decoder, Märklin rolling stock

Computer:
Dell Studio 15, Intel Core i3, 4 GB RAM, Windows 10 Home Premium

Offline Klippert

  • Junior-Mitglied
  • Beiträge: 23
Re: How to "reserve" a track for a tour? (With Virtual devices)
« Antwort #2 am: 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

Offline Stefan Lersch

  • Moderator
  • Senior-Mitglied
  • *
  • Beiträge: 6433
  • Ort: Brühl (bei Köln) Ort bei GoogleMaps suchen de
    • Infos zum Down-Syndrom alias Trisomie 21
Re: How to "reserve" a track for a tour? (With Virtual devices)
« Antwort #3 am: 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.
Viele Grüße,
Stefan
  • Win-Digipet-Version:
    WDP 2021.x Beta
  • Anlagenkonfiguration:
    N-Anlage im Bau, Minitrix &amp Co., Tams MC 2.2.3, DCC
  • Rechnerkonfiguration:
    Quad Core 8 GB mit Win 10, 32"quot Bildschirm

Offline Klippert

  • Junior-Mitglied
  • Beiträge: 23
Re: How to "reserve" a track for a tour? (With Virtual devices)
« Antwort #4 am: 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

Offline Stefan Lersch

  • Moderator
  • Senior-Mitglied
  • *
  • Beiträge: 6433
  • Ort: Brühl (bei Köln) Ort bei GoogleMaps suchen de
    • Infos zum Down-Syndrom alias Trisomie 21
Re: How to "reserve" a track for a tour? (With Virtual devices)
« Antwort #5 am: 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.
Viele Grüße,
Stefan
  • Win-Digipet-Version:
    WDP 2021.x Beta
  • Anlagenkonfiguration:
    N-Anlage im Bau, Minitrix &amp Co., Tams MC 2.2.3, DCC
  • Rechnerkonfiguration:
    Quad Core 8 GB mit Win 10, 32"quot Bildschirm