I'm trying to run a wall plotter on a FluidNC firmware. I have things calibrated and moving in expected directions. My small test files run okay but larger gcode from svg2gcode ends up sending the pen off into a random space and returns. Previewing the GCode doesn't include these travels and otherwise plots fine.
I've chased it down to a problem with FluidNC crapping itself when a G0/G1 command with the exact same coordinates is repeated. I confirmed by removing duplicate coordinate commands and the error doesn't happen. For some reason svg2gcode randomly includes duplicated lines randomly in the gcode.
...
G1 X24.008 Y484.359 F800
G1 X24.027 Y484.78 F800
G1 X24.041 Y485.21 F800
G1 X24.049 Y485.65 F800
G1 X24.046 Y486.479 F800
G1 X24.046 Y486.479 F800
G0 Z10
;svg#svg1 > g#layer2 > path#path4940
G0 X12.051 Y489.247
G0 Z0
...
Is there a way to remove back-to-back duplicate coordinate travel commands?
I'm trying to run a wall plotter on a FluidNC firmware. I have things calibrated and moving in expected directions. My small test files run okay but larger gcode from svg2gcode ends up sending the pen off into a random space and returns. Previewing the GCode doesn't include these travels and otherwise plots fine.
I've chased it down to a problem with FluidNC crapping itself when a G0/G1 command with the exact same coordinates is repeated. I confirmed by removing duplicate coordinate commands and the error doesn't happen. For some reason svg2gcode randomly includes duplicated lines randomly in the gcode.
...
G1 X24.008 Y484.359 F800
G1 X24.027 Y484.78 F800
G1 X24.041 Y485.21 F800
G1 X24.049 Y485.65 F800
G1 X24.046 Y486.479 F800
G1 X24.046 Y486.479 F800
G0 Z10
;svg#svg1 > g#layer2 > path#path4940
G0 X12.051 Y489.247
G0 Z0
...
Is there a way to remove back-to-back duplicate coordinate travel commands?