User Tools

Site Tools


userpages:hermannk:terminalstationexitenter-en

This is an old revision of the document!


Terminal Station - exit and enter

Userpages - Hermann (hermannk)

The task and the solution are based on a forum user request.

Task

a) Locomotives are supposed to drive out of two parking areas at random ("location1", "location2");
b) In a train station, a decision should be made at the end of a schedule whether
- the locomotive uses the schedule again or
- the locomotive moves into one of the two parking areas.

Proposed solution

- each parking area has a switch that allows exactly one locomotive to move out;
- the train station has a switch each for moving into the parking area

Details

- Parking area 1 (location1) consisting of the blocks "bk01" to "bk04"
- Parking area 2 (location2) consisting of the blocks "bk11" to "bk14"
- Train station consisting of block - "bk21"

Schedules

- "sc_location01_exit" from "location01" to "bk21"
- "sc_location02_exit" from "location02" to "bk21"

- "sc_CircleClockWise" from "bk21" via "bk22", "bk23", "bk24" to "bk21"

- "sc_location01_enter" from "bk21" to "location01"
- "sc_location02_enter" from "bk21" to "location02"

Handling

- Click on "co_location01_exit" and a locomotive uses the schedule "sc_location01_exit"
- Click on "co_location02_exit" and a locomotive uses the schedule "sc_location02_exit"

a locomotive drives in a circle:
- Activate "co_location01_enter", then the locomotive uses the schedule "sc_location01_enter"
- Activate "co_location02_enter", then the locomotive uses the schedule "sc_location02_enter"

Option:
- with "co_govirtual" the locomotives run virtually or real

Aktions

- "ac_location01_exit" activated by "co_location01_exit";
- calls the XML script "ac_location01_exit.xml"

- "ac_location02_exit" activated by "co_location02_exit";
- calls the XML script "ac_location02_exit.xml"

- "bk21_continue" activated by block "bk21" with status "in";
- calls the XML script "ac_bk21_continue.xml"

- "ac_location01_in" activates "location01"
from every block - calls the XML script "ac_location01_in.xml"

- "ac_location02_in" activates "location02"
from every block - calls the XML script "ac_location02_in.xml"

- "ac_let_loco_go" calls the XML script "ac_let_loco_go.xml";
- contains an XML function that is called by all XML scripts to generate the drive command for the locomotive;
- depending on "co_govirtual" generates the command "govirtual" or "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

- Random generator for blocks (not "staging blocks"!) in a Rocrail-location
- virtual operation (with support key) and real operation possible
- to develop further yourself: direction of travel against the clock

Realization with Rocrail

Rocrail Workspace: terminal_station.zip

userpages/hermannk/terminalstationexitenter-en.1616318361.txt.gz · Last modified: 2021/03/21 10:19 by hermannk