Table of Contents
Link Locomotives and Trains
Introduction
The word "train" will probably confuse us in the following description. Therefore the common word "train" and the Rocrail object "Rocrail-train" will be used. The "Rocrail-train" is a sequence of "cars".
Now that there are locomotives and Rocrail-trains they should be coupled to each other:
Operation | Wiki Reference | Description | what it looks like | examples |
---|---|---|---|---|
Consist | Multiple Units | couple a locomotive to a locomotive | a) manual operated b) by action c) XML script |
|
Assign Train | Assign Train | assign a "Rocrail-train" to a locomotive | a) manual operated b) by action c) XML script |
|
Link Train | Link Train | link another train to a train | a) manual operated b) by action c) XML script |
The examples will show the general process.
The examples will not show the coppling itself. This is up to the reader and its hardware.
The examples are limited to a maximum of two locomotives and two trains.
The description of the functionality of the examples can be found here.
The Rocrail workspace for the examples can be found here.
The corresponding inverse operations are not (yet) described here:
Operation (en) | inverse operation (en) | Operation (de) | inverse Operation (de) |
---|---|---|---|
Consist | Consist | Mehrfachtraktion | Mehrfachtraktion |
Assign Train | Release Train | Zug zuordnen | Zug lösen |
Link Train | Unlink Train | Zug koppeln | Zug entkoppeln |
Additional Information
Some additional information to "link train":
More References
english:
* Operational features of Trains
german only:
* XmlScript Rangierbeispiel
* Erweitertes Rangierbeispiel
* Scriptesammlungen (Script "Lok-Standort-wiederherstellen")
* Zugkopplung
Examples (Rocrail plan)
The Rocrail plan does include the XML-coded examples for "consist", "assigntrain" and "linktrain".
The plan file may be used to play with "manual" operation and to play with "action" performed solutions.
The plan file may be used for executing the XML-scripts:
* there is an output button to initialize all predefined locomotives and trains.
* there are output buttons to start the examples for "consist", "assign train" and "linktain".
* there is an output button for generating "go" or "govirtual" commands for the locomotives.
Use the example as is. Use the example of your own risk! Make backups before using the examples. Have fun!
- zip-file of the Rocrail workspace - linklocosandtrains.zip
The zip-file includes:
* the Rocrail plan file "plan.xml"
* all XML script files "ac_llat_*.xml"
* the folder "images" with all loco images ("lc_*.png") and car images ("car*.png")
The plan file was edited using Rocrail version 15542.
- display of the Rocrail plan -
The trains are already predefined. Trains and locomotives have their predefined initial places.
locomotive | init block | train | init block | used for | schedule | cars |
---|---|---|---|---|---|---|
lc_01 | bk31 | - | - | consist | - | - |
lc_02 | bk32 | - | - | consist | - | - |
lc_01+lc_02 | bk23 | - | - | consist | - | - |
lc_01+lc_02 | - | op_01 | bk11 | assigntrain | sc_llat_l2t_23_11 | car001, car002, car003 |
lc_03 | bk41 | op_03 | bk42 | assigntrain | sc_llat_l2t_41_42 | car031 |
lc_04 | bk46 | op_04 | bk47 | assigntrain | sc_llat_l2t_46_47 | car041,car042 |
lc_03+op_03 | bk51 | - | - | linktrain | - | - |
lc_04+op_04 | bk52 | - | - | linktrain | - | - |
lc_03+op_03+lc_04+op_04 | bk53 | - | - | linktrain | - | - |
Examples (manual)
Consist (manual)
Couple a locomotive to a locomotive.
Assign Train (manual)
Assign a "Rocrail-train" to a locomotive.
Link Train (manual)
Link another train to a train.
Examples (by action)
Consist (by action)
Couple a locomotive to a locomotive.
Assign Train (by action)
Assign a "Rocrail-train" to a locomotive.
Link Train (by action)
Link another train to a train.
As an action it is available with Rocrail Version 15542+.
Examples (XML script)
Consist (XML script)
Couple a locomotive to a locomotive.
Assign Train (XML script)
Assign a "Rocrail-train" to a locomotive.
Link Train (XML script)
Link another train to a train.