The problem I am having is that the stock Mach4 post processor for milling is outputting the following code at the beginning, moving from the XYZ zero position to the first part of the operation without moving to a safe height 1st. Here are the 1st few lines of output G-code:
(1001)
(T8 D=6.35 CR=0. - ZMIN=-7. - FLAT END MILL)
G90 G94 G91.1 G40 G49 G17
G21
(WHEN USING FUSION 360 FOR PERSONAL USE, THE FEEDRATE OF)
(RAPID MOVES IS REDUCED TO MATCH THE FEEDRATE OF CUTTING)
(MOVES, WHICH CAN INCREASE MACHINING TIME. UNRESTRICTED RAPID)
(MOVES ARE AVAILABLE WITH A FUSION 360 SUBSCRIPTION.)
G28 G91 Z0.
G90
(2D CONTOUR1)
M5
T8 M6
S2000 M3
G54
M8
G0 X38.032 Y157.831
G43 Z15. H8
G1 Z5. F50.
Z-6.365 F17.
I think the highlighted line shout be written before the line above it. What is happening is it moves the tool to the G0 X38.032 Y157.831 1st dragging the tool across the surface, often hitting things I don't want it to. If it moved to G43 Z15. H8 1st, this wouldn't happen.
I know I can edit the gcode after the fact, but that seems like a thing that could easily be fixed in the post-processor. Unfortunately, I don't know what to change to make that happen.
Like this:
G28 G91 Z0.
G90
(2D CONTOUR1)
M5
T8 M6
S2000 M3
G54
M8
G43 Z15. H8
G0 X38.032 Y157.831
G1 Z5. F50.
Z-6.365 F17.