Thanks again Alex.
Not sure I should be sending English beer to Germany as you have that department well and truely sorted!
I didn't get chance to play with the code tonight as I have just finished work for my German employers.
I am going to try and put the first part of the standard macro on the front of yours as I need the axis to travel to a safe tool change position, z particularly, before the atc cycle starts. When i tried it last night, without fully reading the code, i crashed the carousel into the spindle. Fortunatley its air powered so no danage done.
...Sweep