First, I assume you're reflecting on Dale H's wisdom in these matters.
I'm taking your idea at face-value and if you're interested in continuing, if only as a discussion, I think it's an intriguing concept irrespective of complexity.
Originally Posted by lckiii:
What I need is some way of passing a variable from one block to another. This could be done by the train itself (different magnetic, IR, etc markers affixed to locomotive) or with electronics (more elegant). I Do not know enough about electronics to know if there is are off the shelf components that could pass the variable (which throttle to connect to) when a relay is triggered.
I think you identified the key. Re-stating in engineering logic terms, I see this as choosing between absolute or relative addressing.
Absolute would be to read the address of the train itself (bar code, RFID tag, whatever) and translate that to the throttle to be assigned to it. So each engine is uniquely tagged, each block has a reader, each reader output has control logic to select which throttle to switch to the block.
Relative would not require unique tagging. Each block control logic simply looks at the block(s) ahead and switches in the next throttle. So it sees that throttle N was used on the active block ahead and uses throttle N+1. When the train leaves a block, the control logic advances by "1" so that the throttles follow the engine. There are some boundary-value considerations such as getting the pairing correct in the first place. For example, one engine could have a magnet and one control block logic could see this and reset the order.
Either method is probably most efficiently (wiring, cost) implemented with an Arduino-like microcontroller board but that requires programming savvy. Programming can be a deal-breaker for some. I think the "elegant" approach using relative addressing could be done without programming. Unfortunately it would require assembling a custom block-control-logic circuit - one per block. Each circuit would be the same and cost "only" a few dollars in parts but lots of assembly/soldering so also a deal-breaker for some.
In any case, I think the low-cost relay modules on eBay could be part of the implementation. For less than $3 (free shipping from Asia), you get a 4-relay module with 10 Amp contacts. So these could switch in one of four throttles to a block. Of course it could switch in none of the throttles if a null block. One of these relay modules would be used for each block.