Thankyou for the feed back and I may well switch to track current sensing for block occupancy as the IR sensors haven't cost a great deal and can be used for other applications on the setup.? However before I do that? I was wondering if there is any merit in my current thoughts and how easy could it be scaled up?
Two sensors are at the start of Block A,? ?pseudo sensor PS1? and IR sensor S1, ?the Block occupancy is set by PS1. The loco passes S1 which via scripting sets PS1 ACTIVE and thus Block A occupied and even though S1 goes INACTIVE as the loco passes it, ?PS1 is still Active because of the script until the loco passes the exit sensor S2 at the end of Block A at which point the script is triggered making PS1 INACTIVE and thus Block A unoccupied, this way the block a stays occupied until the exit sensor is triggered,? it could even be possible to cater for the fact as the loco passes S2 it will go from INACTIVE to ACTIVE back to INACTIVE but it only sets PS1 to INACTIVE when S2 finally goes INACTIVE.
I'm not sure how this could be applied to several blocks and how complcated the script gets, i've been looking through the samples scripts at CombineSensors.py and similar to get some feel for how it could done, but if there's a flaw in what i am thinking then no point,. Also figuring out what happens in reverse direction etc may need to be worked on at some point.
Thanks Steve