@fcwilt
; Configuration file for Duet 3 Mini 5+ (firmware version 3.3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v3.3.4 on Sat Oct 23 2021 12:57:10 GMT-0400 (Eastern Daylight Time)
; General preferences
M575 P1 S1 B57600 ; enable support for PanelDue
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Viper_3D" ; set printer name
; Wait a moment for the CAN expansion boards to start
G4 S2
; Network
M552 S1 ; enable network
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet
; Drives
M569 P0.0 S0 ; physical drive 0.0 goes backwards
M569 P0.1 S1 ; physical drive 0.1 goes forwards
M569 P0.2 S0 ; physical drive 0.2 goes backwards
M569 P0.3 S1 ; physical drive 0.3 goes forwards
M569 P121.0 S0 ; physical drive 121.0 goes forwards
M569 P122.0 S1 ; physical drive 122.0 goes forwards
M584 X0.0 Y0.2 Z0.3 U0.1 E121.0:122.0 ; set drive mapping
M350 X16 Y16 Z16 U16 E16:16 I1 ; configure microstepping with interpolation
M92 X200.00 Y160.00 Z1300.00 U200.00 E660.00:660.00 ; set steps per mm
M566 X900.00 Y900.00 Z60.00 U900.00 E300.00:300.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z180.00 U6000.00 E3600.00:3600.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20.00 U500.00 E600.00:600.00 ; set accelerations (mm/s^2)
M906 X1200 Y1200 Z1500 U1200 E1000:1000 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout
; Axis Limits
M208 X0 Y-4 Z0 U31 S1 ; set axis minima
M208 X470 Y500 Z490 U497.4 S0 ; set axis maxima
; Endstops
M574 X1 S1 P"!io2.in" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin !io2.in
M574 Y1 S1 P"!io3.in" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin !io3.in
M574 Z1 S2 ; configure Z-probe endstop for low end on Z
M574 U2 S1 P"!io1.in" ; configure switch-type (e.g. microswitch) endstop for high end on U via pin !io1.in
; Z-Probe
M950 S0 C"121.io0.out" ; create servo pin 0 for BLTouch
M558 P9 C"^121.io0.in" H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds
G31 P500 X-38 Y-13 Z2.75 ; set Z probe trigger value, offset and trigger height
M557 X40:460 Y40:450 S40 ; define mesh grid
; Heaters
M308 S0 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp0
M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0
M307 H0 B1 S2.00 ; enable bang-bang mode for the bed heater and set PWM limit
M140 H0 ; map heated bed to heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M308 S1 P"121.temp0" Y"thermistor" T100000 B3950 ; configure sensor 1 as thermistor on pin 121.temp0
M950 H1 C"121.out0" T1 ; create nozzle heater output on 121.out0 and map it to sensor 1
M307 H1 B0 R1.899 C260.7:211.4 D8.27 S1.00 V23.5 ; disable bang-bang mode for heater and set PWM limit
M143 H1 S350 ; set temperature limit for heater 1 to 350C
M308 S2 P"122.temp0" Y"pt1000" R2200 ; configure sensor 2 as PT1000 on pin 122.temp0
M950 H2 C"122.out0" T2 ; create nozzle heater output on 122.out0 and map it to sensor 2
M307 H2 B0 R1.714 C203.4:187.5 D6.32 S1.00 V23.8 ; disable bang-bang mode for heater and set PWM limit
M143 H2 S350 ; set temperature limit for heater 2 to 350C
; Fans
M950 F0 C"121.out1" Q500 ; create fan 0 on pin 121.out1 and set its frequency
M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
M950 F1 C"121.out2" Q500 ; create fan 1 on pin 121.out2 and set its frequency
M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on
M950 F2 C"122.out1" Q500 ; create fan 2 on pin 122.out1 and set its frequency
M106 P2 S1 H-1 ; set fan 2 value. Thermostatic control is turned off
M950 F3 C"122.out2" Q500 ; create fan 3 on pin 122.out2 and set its frequency
M106 P3 S1 H2 T45 ; set fan 3 value. Thermostatic control is turned on
; Tools
M563 P0 S"hotend 0" D0 H1 F0 ; define tool 0
G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C
M563 P1 S"hotend 1" D1 H2 X3 F2 ; define tool 1 to use U
G10 P1 X0 Y0 Z0 ; set tool 1 axis offsets
G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C
''' Create a tool that prints 2 copies of the object using both carriages'''
M563 P2 S"dual ext" D0:1 H1:2 X0:3 F0:2 ; tool 2 uses both extruders, hot end heaters and fans, and maps X to both X and U
G10 P2 X40 Y0 U-40 S0 R0 ; set tool offsets and temperatures
M567 P2 E1:1 ; set mix ratio 100% on both extruders
M568 P2 S1 ; turn on mixing for tool 2
; Custom settings are not defined
; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool v3.3.4 on Sat Oct 23 2021 12:57:10 GMT-0400 (Eastern Daylight Time)
G91 ; relative positioning
G1 H2 Z5 F6000 ; lift Z relative to current position
G1 H1 X-475 Y-505 U500 F3000 ; move quickly to X and Y and U axis endstops and stop there (first pass)
G1 H2 X5 Y5 U5 F6000 ; go back a few mm
G1 H1 X-475 Y-505 U500 F360 ; move slowly to X and Y and U axis endstops once more (second pass)
G90 ; absolute positioning
G1 X80 Y40 F6000 ; go to first bed probe point and home Z
G30 ; home Z by probing the bed
G1 X0 Y0 F1200 ; return to X and Y to 0
; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z5 F100 ; lift Z relative to current position
;G90 ; absolute positioning
; homeu.g
; called to home the U axis
;
G91 ; relative positioning
G1 H2 Z5 F6000 ; lift Z relative to current position
G1 H1 U500 F1800 ; move quickly to U axis endstop and stop there (first pass)
G1 H2 U-5 F6000 ; go back a few mm
G1 H1 U500 F360 ; move slowly to U axis endstop once more (second pass)
G1 H2 Z-5 F6000 ; lower Z again
G90 ; absolute positioning
; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool v3.3.4 on Sat Oct 23 2021 12:57:10 GMT-0400 (Eastern Daylight Time)
G91 ; relative positioning
G1 H2 Z5 F6000 ; lift Z relative to current position
G1 H1 X-475 F1800 ; move quickly to X axis endstop and stop there (first pass)
G1 H2 X5 F6000 ; go back a few mm
G1 H1 X-475 F360 ; move slowly to X axis endstop once more (second pass)
G1 H2 Z-5 F6000 ; lower Z again
G90 ; absolute positioning
; homey.g
; called to home the Y axis
;
; generated by RepRapFirmware Configuration Tool v3.3.4 on Sat Oct 23 2021 12:57:10 GMT-0400 (Eastern Daylight Time)
G91 ; relative positioning
G1 H2 Z5 F6000 ; lift Z relative to current position
G1 H1 Y-505 F1800 ; move quickly to Y axis endstop and stop there (first pass)
G1 H2 Y5 F6000 ; go back a few mm
G1 H1 Y-505 F360 ; move slowly to Y axis endstop once more (second pass)
G1 H2 Z-5 F6000 ; lower Z again
G90 ; absolute positioning
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v3.3.4 on Sat Oct 23 2021 12:57:10 GMT-0400 (Eastern Daylight Time)
G91 ; relative positioning
G1 H2 Z5 F6000 ; lift Z relative to current position
G1 U500 F2000 ; make sure the U carriage is out of the way
G90 ; absolute positioning
G1 X80 Y40 F6000 ; go to first probe point
G30 ; home Z by probing the bed
; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z5 F100 ; lift Z relative to current position
;G90 ; absolute positioning
Here you go