User:Asj/Notes about using cnc mill with openscad
< User:Asj
- generate 2d model in OpenSCAD
- export as dxf
- convert dxf to g-code using https://cnc-apps.com/en/app/dxf2gcode
- make sure 'M-codes on' is off, unless you want to clean things up
- make changes to g-code:
G94 F600 (Set the feed rate) G53 G0 Z0 (move in machine coordinates) S100 $0 (Set speed - value not important, since we only have on/off) M3 $0 (Start the spindle)
also need to set the Z position, e.g. for 0.5 below 0
G00 X18.43208 Y4.9726 Z-0.5
remember to move back up again before starting a new cut
ensure the script ends with an M2 command