Here's my story so far. Having concluded my sun roof was totally bent out of shape and beyond repair I have sourced another complete roof from a breaker and have now carried out a roof transplant. (I have pictures if anyone is interested) Looks pretty good too, black roof on a blue EOS.
All that remains now is to make it work. The sunroof moves open, that's a good start. The dashboard display thinks the roof is already open and so won't operate. I left it alone for the winter, too cold in my workshop. Now the weather is better I am planning to give it another go. Any top tips about resetting the roof ECU and reading the sensor codes. Hopefully it will turn out to be something simple that I forgot to re-connect!