Hi,
not sure I can help, I changed over to Mach 4 so I didn't have to bother with Visual Basic...
If you have a look at the default M6End script you will see the move to the last programmed position before M6Start.
Could you not just delete, or better still comment it out?
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
I can think of a few situations where diving into the next lot of code is likely to cause a crash...imagine a line of code
G1 X5 Y5 Z-0.5 F50 immediately after a tool change at X0 Y0 Z4, ie work co-ords 0,0 with the tool 4 inches above the material.
The tool will now make a linear move to 5,5,-0.5, ie the cut is going to ramp down. Is that desired behaviour?
It sounds to me like you actually want to go to some location but without cutting, ie at SafeZ height and THEN resume your
Gcode. That's possible but will require some programming and you may find that a modification to your post becomes
attractive again.
Craig