Setup | Example | Example Image |
---|---|---|
Rocrail Properties / Automatic / Routing / Calculate | Calculate = ON | ![]() |
Plan Properties / Scale and Plan Properties / Metric units | Scale = 87 Metric units = mm | ![]() |
Block / General / Length a) Logical Length b) (optional) Physical Length see Block Length Usage | Block Length = 2002 | ![]() |
Route / Permissions / Length | Route Length = 1002 | ![]() |
Route / Speed / Max. km/h | Max. km/h = 80 | ![]() |
Locomotive / Speed / Mode | Locomotive Speed = Percent (in any case "km/h" has to be filled with values other then zero) | ![]() |
Rocrail uses the values of speed, scale and lengths to calculate the traveling time of the locomotive and generates an internal virtual enter2in event with this timing.
If the locomotive has to wait in a block, the timing will be calculated with half of the locomotive speed value for simulating the deceleration of the locomotive.
Hint: When transferring the virtual results to a real layout, best results will be given with calibrated locomotives.
To specify the length of a block with Rocrail version 15721+ two fields are available:
The "Logical Length" is mainly used for permission calculations. Each locomotive and/or train must fit into this "Logical Length".
The "Physical Length" holds the distance between the ENTER sensor and the IN sensor of the block. This "Physical Length" is useful if the train is allowed be longer than the distance between the installed sensors.
The following table shows
Logical Length | Physical Length | Permission | RealTime Simulation |
---|---|---|---|
0 | 0 | yes | no RealTime Simulation |
0 | PLength | yes | PLength will be used for RealTime Simulation |
LLength | 0 | (loco+gap) < LLength | LLength will be used for RealTime Simulation |
LLength | PLength | (loco+gap) < LLength | PLength will be used for RealTime Simulation |
"(loco+gap)": the length of the locomotive plus the value taken from "Rocrail Properties / Automatic / Block / Min. block - train length"
Within XML scripting these attributes may be used:
For testing this workspace is provided: realtimesimulation.zip
The calculated result can be found in the Rocrail trace files. Call Menu → Help → Trace… for reading the trace files and filter the RealTime Simulation values with Text: "virtual" and Typ: "OLoc".
"virtualeventtimer" and "virtualtimer" will show the used parameters and the calculated result.
The trace filter is described here: tracefilter