Hi Yassaan,
To use automatic routing i thought also about the S88 sensor events into the first case.
basicly this is what have to be done in general, for instancte to make blocks... however just as in your example;
it's not flexible. Only fixed routes can be made. Not
conditional ones, like if...then...else/ random choice/ time involved
I'll try to explain:
Let's look at your example by case. typicly block-after-block trainshuffle control.!!--------block 1---------!!-----------block 2----------!!-----------block3---------!!--------block4---
......................<------ train A....................................train B
- the s88 sensor on block 1 is triggered. So set signal to green to the former block3 on the track (so the other train B can start to drive and enter in block2)
and set at the same time the current block2 signal on red (so train B is stopping in block 2). Train A is moving at the same time to block 1. and so on. and so on.
In this case you can use the S88 sensor events to move trains automatic. But always in the same arrangement, after each other and no 'intelligent' moving.every train has to move up a block. then the other train can move up a block etc.
---
But what to do if you want to have some kind of intelligent moving? Trains just drive not after each other & shuffle, but at most as possible all at once.
For instance:
!-------block 2----------!!-----------block3---------!!--------block4----!!----block5-------!!-----block6-----!!--
............... train A ---------->...................\ ...........................train B
........................................................!!----------block7-----------!!--
........................................................................train C <-----------
Train A moves from block 2 to block 3.
Block 4 after the turnout is free.
However block 7 is not; train C is there already and wants to move in opposite direction to block 3.
How to handle?
We need to have conditional S88 sensor events .
For instance;
IF 'sensor block 4' is set
THEN set turnout to direction block 7,
ELSE set turnout to direction block 4 (move train A into directon of block 4; the free one)
IF 'sensor block 3' is set
THEN set signal on block 7 AND block 4 on red. (block entry of trains coming from block 4 or block 7 to enter block 3 also. train C is stopped.)
WHILE 'sensor block 7' is set
AND 'sensor block 3' is not-set
DO set signal block 7 on green (train C is now moving and entering block 3)
etc. etc.
So we need
conditional settings and scripts to operate more efficient & flexible on the track. Trains moves were the next free block is AND if they are allowed to move on this track (uni-or bidirectional tracks)
I should be nice if you could have some random setting to; for instance red signal or turnout or waitingdelay.
Or a counter; for instance very thirth sensor trigger set turnout to red; else set it green
I hope you get the point... ;-)
Edited by user 16 January 2014 13:13:23(UTC)
| Reason: Not specified