We were prompted to post our adapted LinuxCNC postprocessor to the forum. Our CNC machine and/or the LinuxCNC version we're using doesn't quite like the default GCode FreeCAD is generating. So we had to roll our own
You can see it here: https://github.com/Metalab/freecad-cnc-postprocessor
Quick summary of changes (check the commit log for details):
The tool changing code doesn't work at all for us since a) we don't have a tool changer, and b) we need to start our spindle slowly:
Code: Select all
(begin operation: 3mm_3schn_VHM001)
(machine units: mm/min)
(3mm_3schn_VHM001)
M5
M6 T2
G43 H2
M3 S24000
(finish operation: 3mm_3schn_VHM001)
Code: Select all
M3 (turn clockwise)
(0U/min => 24000.0U/min)
(=> 6000U/min)
S6000
G4 P60.0
(=> 12000U/min)
S12000
G4 P60.0
(=> 18000U/min)
S18000
G4 P60.0
(=> 24000U/min)
S24000
G4 P60.0
The fixture / setup block is a rather weird change. FreeCAD does this:
Code: Select all
(begin operation: G54)
(machine units: mm/min)
G54
G0 Z6.000
(finish operation: G54)
Except for a few smaller changes - that's it. Feel free to ping us here with any questions.