This post was created following an email in the JMRI User Group list, with sort of a challenge, to create a short back and forth end to end two trains layout, single track with a siding in the middle.
An exercise for anybody wanting to exercise:
Write 
pseudo code for a layout having ten blocks to track two trains starting 
in blocks 1 and 10 towards each other. Blocks are numbered 1-10 from 
left to right. There is a passing siding in blocks 5&6. It is block 
56. 
Train A is in block 1 and train B is in block 10.
Train A is in block 1 and train B is in block 10.
Initially blocks 1 and 10 are the only blocks that are occupied. Each block has a sensor at each end for detecting occupancy. 
Train A direction of travel (DOT) is east and train B DOT is west. 
Each train is shorter than any block. 
Have fun if you choose this exercise. 
Jim K
| 
 | Tue, Jan 4, 10:39 PM (15 hours ago) | ||
| 
 | |||
Following this, and a few emails later, I drew up the following sketch, and an initial setup for JMRI:
I always start with pen and pencil. One thing that is not in the picture is that both trains fit in the end blocks (and of course in the siding/station).
My intention is to use what I have, with is a Digitrax DCS200 system, using BDL168 and DS54 for sensor board and turnout decoder.
To be continued.

Comments
Post a Comment