Repository for CNC Config's and Macro's

  • Hello everyone, I was hoping I could start a thread where we could begin to gather some CNC specific configs and custom macros from all the experienced Duet CNC users. I've seen @dc42 's repository he created for the 3d printer side of things in the past and just wanted to see if there was interested in creating the same thing on the CNC side?

    I'm just beginning my Duet 3 CNC build here, using a MB6HC with 3.2b2 loaded and have it controlling a 1000x1500 Workbee Leadscrew kit. I also have a couple 3d printer builds with Duet hardware so the initial config wasn't too bad. I'm getting to the spindle control stage to where I'm starting to ponder which macros I want to start to build. I've been reading through all the various posts on here and often times users mention creating macros to "perform this" or to "stop this" and thought it may be beneficial to get these great ideas all listed in one place?

    I don't have much to contribute other than my config for the workbee at this time, but will include it to get the ball rolling. As users add their info I'll try and keep this post updated with a sort of

    "Table of Contents"

    1. Workbee CNC 1050 Config.g

    Otherwise, if this repository already exists somewhere and I've just completely overlooked it, I will happily bow out and this thread can be removed! 😁

  • Workbee CNC 1000 x 1500 Leadscrew Kit
    -Dual Y motors with dual endstops

    ; Configuration file for Duet 3 (firmware version 3)
    ; executed by the firmware on start-up
    ; General preferences
    G90                                   ; send absolute coordinates...
    M83                                   ; ...but relative extruder moves
    M550 P"Duet3"                         ; set printer name
    ;DUAL Y
    M584 X0.0 Y0.1:0.2 Z0.3 U0.2 P3       ;assign drives including U for Y2
    ; Drives
    M569 P0.0 S0                          	    ; physical drive 0.0 goes forwards
    M569 P0.1 S0                          	    ; physical drive 0.1 goes forwards
    M569 P0.2 S0                          	    ; physical drive 0.2 goes forwards
    M569 P0.3 S0                          	    ; physical drive 0.3 goes forwards
    M350 X16 Y16 U16 Z16 I1               	    ; configure microstepping with interpolation
    M92 X400.00 Y400.00 U400.00 Z400.00         ; set steps per mm
    M566 X300.00 Y300.00 U300.00 Z300.00        ; set maximum instantaneous speed changes (mm/min)
    M203 X1500.00 Y1500.00 U1500.00 Z1500.00    ; set maximum speeds (mm/min)
    M201 X150.00 Y150.00 U150.00 Z150.00        ; set accelerations (mm/s^2)
    M906 X2400 Y2400 U2400 Z2400 I30            ; set motor currents (mA) and motor idle factor in per cent
    M84 S30                               	    ; Set idle timeout
    ; Axis Limits
    M208 X0 Y0 Z0 U0 S1                     	; set axis minima
    M208 X1000 Y1500 U1500 Z60 S0                   ; set axis maxima
    ; Endstops
    M574 X1 S1 P"!^"                ; configure active-high endstop for low end on X via pin !^
    M574 Y1 S1 P"!^"                ; configure active-high endstop for low end on Y via pin !^
    M574 U1 S1 P"!^"                ; configure active-high endstop for low end on Y via pin !^
    M574 Z2 S1 P"!"                 ; configure active-high endstop for high end on Z via pin !
    ; Z-Probe
    M558 P0 H5 F120 T6000                 ; disable Z probe but set dive height, probe speed and travel speed
    M557 X15:215 Y15:195 U15:195 S20      ; define mesh grid
    ; Heaters
    ; Fans
    ; Tools
    M563 P0 F0                                 ; define tool 0
    G10 P0 X0 Y0 U0 Z0                         ; set tool 0 axis offsets
    G10 P0 R0 S0                               ; set initial tool 0 active and standby temperatures to 0C
    ; Custom settings are not defined

  • Moderator

    Feel free to submit your configs and macros to the official repository as well.

  • Sure, that sounds good. If anything gets posted here, I'll do a fork and can start adding there. Would it be possible to have a dedicated CNC folder in the root to fork from?

  • Moderator

    @Arcnsparks said in Repository for CNC Config's and Macro's:

    Would it be possible to have a dedicated CNC folder in the root to fork from?

    Sure, I can add one.

Log in to reply