GCode optimisation of rapid movements

GCode optimisation of rapid movements

ian.shatwell
Contributor Contributor
372 Views
1 Reply
Message 1 of 2

GCode optimisation of rapid movements

ian.shatwell
Contributor
Contributor

Some time ago I found a tool that would optimise gcode for 2D milling operations, so that the cutter moved from one area to another gradually working across the workpiece, rather than bouncing back and forward like a demented bunny, but it could not cope with deeper models which relied on higher stock layers being cut away before lower ones.

Does anybody know of a tool that can optimise and takes depth into account?

 

In the meantime, I am writing my own optimiser, and I have just added one optimisation that looks for an upwards (Z) movement, followed by a lateral shift at cutting speed, followed by a downwards movement, and replaces this with G0 moves instead of G1s.

I have put this single optimisation on Github. Quick and dirty code, so no guarantees - I use a GCode visualiser to check for unexpected problems. If anybody else might find this useful, it can be found at https://github.com/Squeack/GCodeRapid.

 

0 Likes
373 Views
1 Reply
Reply (1)
Message 2 of 2

ian.shatwell
Contributor
Contributor

It also removes long comment lines, as these cause problems with GRBL based controllers.

0 Likes