HeeksCNC and Smoothieboard

I’m using HeeksCNC with my Smoothieboard on a homebuilt CNC router. It took a little bit of work to get them playing together correctly. Not knowing where else to post this little tip, I’ve started this thread.

The LinuxCNC output for HeeksCNC works perfectly for the Smoothieboard with one exception I’ve noticed thus far. HeeksCNC outputs the g-code with two digits and does not duplicate the ‘GXX’ commands, for example:

1: G00 Z5
2: X80.513 Y98.157
3: Z2
4: G01 Z-5
5: G02 X81.605 Y99.833 I0.545 J0.837
6: X83.294 Y98.602 I-10.906 J-16.738

This seems to work just fine for G01 and G02. However, the Smoothieboard does not recognize G00. This, infuriatingly, means the CNC router would skip the step where it lifts the router out of the material.

This can be fixed by modifying HeeksCNC output or by doing a search+replace on the g-code. Hope this helps somebody figure out why their work is getting destroyed. Cheers.

Imported from wikidot

Hi,

Maybe we (the smoothieboard community) should think about a gcode validater / sanitizer tool!?
So you can export from any source, drop the gcode into the tool and it shows you the lines with problems and in the best case offers you a correction.

I think that should be an easy task in python for example :slight_smile: