Read up on the NCE block detector circuit. See no need for that,at least with 3 rail track. For 3 rail why not just use the outer rails,one insulated with a circuit made by wheels of any car or engine and a resistor to generate a 15 ma signal for each block the same way it is done with electrical meters and instruments? No power draw from the car would be needed that way. Or simple relays and just use binary logic?
Dale H