Loading...
 

Autoruns

AutoRun module enables to automaticaly move trains between block by program.

Examples of AutoRuns


arrow 1. Moving train from block A to block B

Image

Add 2 block to AutoRun:

- Block A - drive-in block
- Block B - drive-out block
AutoRun (when running) for every train on block A starts passage to block B

arrow 2. Moving trains from block A through B1 or B2 to C e.g.: hidden yard

Image

Add 3 blocks to AutoRun:

- Block A - drive-out block
- Block B1 - drive-in and drive-out
- Block B2 - drive-in and drive-out
- Block C - drive-in

For blocks B1 and B2 you can set minimal and maximal stopping time

AutoRun for every train on block A random sets passage to block B1 or B2. After waiting time program sets passage to block C. If in meanwhile next train appears in block A then program moves it to free B1 or B2.


arrow 3. One-time passage from A to B from context menu

Add 2 blocks to AutoRun:

- Block A - drive-out and mark 'show on context menu'
- Block B - drive-in

Pressing right mouse button on outgoing end of block A you will see 'AutoRuns' and select this AutoRun. Because this is one-time AutoRun then after finish AutoRun will be stopped.

arrow 4. Drive there and back between two blocks.

Image

On AutoRun select 'can change direction'

Add 2 blocks to AutoRun:

- Block A - drive-out and drive-in and 'can change direction' from right side
- Block B - drive-out and drive-in and 'can change direction' from left side

AutoRun will move train from block A to B and from B to A.

arrow 5. Drive there and back between three blocks.

Image

Add 3 blocks to AutoRun:

Block A i C like in previous example
Block B - drive-in and drive-out on both sides without changing direction
AutoRun will move train from block A to C through block B and return


arrow 6. Automatically driving around all blocks

Add all blocks and marks as drive-in and drive-out (for blocks next to end tracks marks only on other side).

On AutoRun set 'can change direction' and minimal seconds or/and blocks.

On selected blocks set 'can change direction'.

AutoRun will move trains randomly around all blocks.

Window to define AutoRuns


Select from menu 'Engines' => 'AutoRuns'. On second tab 'Definitions' you can define AutoRuns.

Image

There must be two on more blocks on every AutoRun.

Blocks can be:

arrow drive-out: train can leave this block from selected end
arrow drive-in: train can enter block on selected end

How AutoRun works: Program every 5 seconds random draws one stopped train from drive-out block and finds all possible passages to drive-in blocks. Next for every passage program count switches (in switch parameters you can change weight of switch: how many switches program count every drive through this switch on selected direction). Next program random select one passage but passages with less switches is more probable to draw. On end program set selected passage and start train.

You can define any number of AutoRuns with any combination of blocks. Any number of AutoRuns can run simultaneously. Every AutoRun can work with more than one train.


For every Block you can set (separately for left/bottom end and right/top end):

arrow Can drive in - can drive-in from selected end.
arrow Can change direction: can change direction if train drive in to selected end
arrow Min/Max stop time - how many seconds train should stop if drive-in from selected end

arrowCan drive-out - can be the start of passage to other drive-in block (on selected block end).
arrow Must reserve outgoing route - this option is usefull if block is by-pass block. Train can drive-in to this block only if drive-out passage can be reserved. This prevent of deadlock situation when train on this block can't drive-out. Program automaticaly try to find the next passage from this block to next drive-in block. If fail then drive-in to this block will be canceled and program try other way for this train. If success than reserved pass will be marked green but signal will be red. When train arrive to this block program will use reservation and pass train to next block.
arrow Non-stop passage - like previous but signal will be already green so train will not stop on block.


arrow Show on context menu - If option is selected than AutoRun will be show on context menu on selected block end. It helps to manually run AutoRun, especially for one-time passage. Additionally AutoRun stared in this way will move train on this block without drawing.

Image

For whole AutoRun you can set following options:

arrow One-time passage - after one run AutoRun will be stopped.
arrow Can change direction - enables direction changes, but only on blocks selected as 'can change direction' and have at least one side drive-in-out. If it is impossible to drive-out without direction change than direction change is made always. In else situation program draw to change direction.
arrow Min no of blocks - minimal number of blocks before next direction change (counted for every train separately)
arrow Min seconds - minimal number of second before next direction change (counted for every train separately)
arrow Start/Stop key - key on keyboard to start or stop AutoRun. There can be the same key to start and stop AutoRun. There can be the same keys for more than one AutoRun. It enables to start/stop more than one AutoRun with one key.

Engine groups


Image

Here you can select Engine group for which AutoRun can be used. (If list is empty, selected Autorun is used for any Engine). Here you can also define Engine group for which AutoRun MUST NOT be used.

If engine belongs to any engine group from upper-lef list and doesn't belongs to any engine group from bottom-left list, AutoRun can be run for this engine. If engine belongs to eny engine group from bottom-left list, AutoRun never will be used for it.

In this way you can define different AutoRuns based on the same Blocks, but for different Engine Groups (in this situation we recommend to define used Engine Group as exclusive: any Engine should not belongs to more than one Engine Groups used in AutoRuns).

Running AutoRun


On first tab you can start or stop AutoRuns

Image

After selecting AutoRun you can press buttons ' Start' or 'Stop'.

Button 'Stop all' stops all running AutoRuns.

Created by system. Last Modification: Thursday 06 August, 2009 22:00:40 CEST by admin.