What about M6End? The default M6End macro will move the machine to SafeZ. Do you by chance have SafeZ enabled?
Also, what exactly is the height the machine moves to after the toolchange (in machine coordinates and part coordinates)? That information could be a great help for troubleshooting; we are not trying to pry it out from you just for fun.
Code:
REM The default script here moves the tool back to m6start if any movement has occured during the tool change..
x = GetToolChangeStart( 0 )
y = GetToolChangeStart( 1 )
z = GetToolChangeStart( 2 )
a = GetToolChangeStart( 3 )
b = GetToolChangeStart( 4 )
c = GetToolChangeStart( 5 )
if(IsSafeZ() = 1) Then
SafeZ = GetSafeZ()
if SafeZ > z then StraightTraverse x, y,SafeZ, a, b, c
StraightFeed x, y, z , a, b, c
else
Code"G00 X" & x & "Y" & y
end if