Primo build in Western Canada

First, I put my Duet in CNC mode, so in the config.g there is the following:

; Tools
M950 R0 C"!exp.heater1" L10000                  ; Spindle 0 uses exp.heater1 as RPM pin and has a max RPM of 10000
M563 P0 R0                                      ; Define the router as tool 0
M453                                            ; Set CNC Mode

; Custom settings
M575 P1 S1 B57600                               ; Enable PanelDUE
G54                                             ; Select Workspace Coordinate 1

Not actually sure that the M950 is still correct with new firmware, but it doesn’t hurt. The important things are the M453 to set CNC mode and the G54 to select the first set of workplace coordinates.

Then under Macros, I have these:

00.1 Probe Work Z.g

; Probe the work, and set the workspace Z coordinate
M291 P"Attach Z Probe" R"Probe Work" S3 Z1          ; Display message with Z jog buttons
G30 S-1                                             ; Probe the work, (report machine position)
M400                                                ; Wait for save to finish
G10 L20 Z0.5                                        ; Set workspace position to 0.5mm
G00 Z5 F450                                         ; Move 5mm above work piece

You don’t need the M291 command if you don’t have a Panel. I almost always have the probe attached and set up at this point, because I’ve probably just homed the machine, and jogged over to the start position, but I only needed to crash a bit into the work once.

00.2 Set Workspace X Y.g

; Set the workspace X and Y to the current machine coordinates
G10 L20 X0.0000 Y0.0000
1 Like