User:Asj/Notes about using cnc mill with openscad

From Nottinghack Wiki
Revision as of 19:40, 6 May 2023 by Asj (talk | contribs) (Created page with " * 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • 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