I was getting an unexpected Z move after a tool change.
The file M6ENd.m1s that come with the Mach3 download contains this:
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
Should it not really be THIS:
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
else StraightFeed x, y, z , a, b, c
else
Code"G00 X" & x & "Y" & y
end if
_______________
My safeZ was higher than z.....so it was doing a rapid move to safeZ and then ALSO an unexpected feed move to z (i'm ignoring other axis for this discussion)
The else needs to be included otherwise it performs both moves (when SafeZ > z) ...?