train control

Masters:
i updated the code in first post.

Please don't make changes to earlier Posts (other than to correct typos) as it makes a nonsense of the discussion for people reading it later and trying to learn from your experience.

Always post your new code and new comments in the correct chronological position.

If it is possible to reinstate the first Post I suggest you do so.

...R