I have managed to sort this out by using a couple of 2 port valves a relay and a cylinder stat. When the solar tank is above 50C, then the 2 port valve from the thermal store closes, the valve on the solar water heater opens and lets the solar heated hot water run to the showers and taps directly.
Thank you for your ideas.