Table of Contents
Kopfbahnhof - hinaus und hinein
Userpages - Hermann (hermannk) 
 
Die Aufgabenstellung und die Lösung basieren auf einer Forums-Benutzer-Anfrage. 
Aufgabenstellung
a) aus zwei Abstellbereichen sollen Loks zufällig herausfahren; 
b) in einem Bahnhof soll am Ende eines Fahrplanes entschieden werden, ob 
- die Lok den Fahrplan noch einmal verwendet oder 
- die Lok in einen der beiden Abstellbereiche einrückt. 
Lösungsvorschlag
- jeder Abstellbereich hat einen Schalter, der genau eine Lok herausfahren lässt; 
- der Bahnhof hat je einen Schalter für das Einrücken in den Abstellbereich 
 
 
Details
- Abstellbereich 1 (location01) bestehend aus den Blöcken "bk01" bis "bk04" 
- Abstellbereich 2 (location02) bestehend aus den Blöcken "bk11" bis "bk14" 
- Bahnhof bestehend aus Block - "bk21" 
Fahrpläne
- "sc_location01_exit" von "location01" nach "bk21" 
- "sc_location02_exit" von "location02" nach "bk21" 
 
- "sc_CircleClockWise" von "bk21" über "bk22", "bk23", "bk24" nach "bk21" 
 
- "sc_location01_enter" von "bk21" nach "location01" 
- "sc_location02_enter" von "bk21" nach "location02" 
Handhabung
- "co_location01_exit" anklicken und eine Lok benutzt den Fahrplan "sc_location01_exit" 
- "co_location02_exit" anklicken und eine Lok benutzt den Fahrplan "sc_location02_exit" 
 
eine Lok fährt im Kreis: 
- "co_location01_enter" aktivieren, dann benutzt die Lok den Fahrplan "sc_location01_enter" 
- "co_location02_enter" aktivieren, dann benutzt die Lok den Fahrplan "sc_location02_enter" 
 
Option: 
- mit "co_govirtual" fahren die Loks virtuell bzw. real 
Aktionen
- "ac_location01_exit" aktiviert von "co_location01_exit";  
– ruft das XML-Script "ac_location01_exit.xml" auf 
 
- "ac_location02_exit" aktiviert von "co_location02_exit";  
– ruft das XML-Script "ac_location02_exit.xml" auf 
 
- "bk21_continue" aktiviert von Block "bk21" bei Status "in"; 
– ruft das XML-Script "ac_bk21_continue.xml" auf 
 
- "ac_location01_in" aktiviert von jedem Block aus "location01" 
– ruft das XML-Script "ac_location01_in.xml" auf 
 
- "ac_location02_in" aktiviert von jedem Block aus "location02" 
– ruft das XML-Script "ac_location02_in.xml" auf 
 
- "ac_let_loco_go" ruft das XML-Script "ac_let_loco_go.xml" auf; 
– enthält eine XML-Funktion, die von allen XML-Scripts aufgerufen wird, um den Fahr-Befehl für die Lok zu erzeugen; 
– erzeugt abhängig von "co_govirtual" den Befehl "govirtual" bzw. "go" 
XML-Scripts
ac_bk21_continue.xml 
ac_let_loco_go.xml 
ac_location01_exit.xml 
ac_location01_in.xml 
ac_location02_exit.xml 
ac_location02_in.xml 
Highlights
- Zufallsgenerator für Blöcke (nicht Aufstellblöcke!) einer Ortschaft 
- virtueller Betrieb (mit Unterstützungsschlüssel) und realer Betrieb möglich 
- zum selber weiter entwickeln: Fahrtrichtung gegen die Uhr 
Realisierung mit Rocrail
Rocrail-Arbeitsbereich: terminal_station.zip 
