@Phaedrux
; Configuration file for Duet WiFi (firmware version 3.3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v3.3.14 on Sun Nov 06 2022 15:34:07 GMT+0000 (Greenwich Mean Time)
; General preferences
M575 P1 S1 B57600 ; enable support for PanelDue
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"My Printer" ; set printer name
M669 K1 ; select CoreXY mode
; Network
M552 S1 ; enable network
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet
; Drives
M569 P0 S0 ;X physical drive 0 goes backwards
M569 P1 S0 ;Y physical drive 1 goes backwards
M569 P2 S0 ;Y physical drive 2 goes backwards
M569 P3 S0 ;E0 physical drive 3 goes backwards
M569 P4 S0 ;E1 physical drive 4 goes backwards
M569 P5 S0 ;U physical drive 5 goes backwards
M584 X0 Y1 Z2 E3:4 U5 ; set drive mapping
M671 X-0.0:305.0:305.0:0.0 Y0.0:0.0:205.0:205.0 ; Z leadscrews are at (0,0),(305,0),(305,205),(0,205)
M350 X16 Y16 Z16 E16:16 U16 I1 ; configure microstepping with interpolation
M92 X200.00 Y200.00 Z1600.00 E30.578 E5273.00:5273.00 ; set steps per mm
M566 X900.00 Y900.00 Z60.00 U50 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X3600.00 Y3600.00 Z180.00 U9000 E1200.00:1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20.00 U800 E250.00:250.00 ; set accelerations (mm/s^2)
M906 X800 Y800 Z800 E800:800 I30 ; set motor currents (mA) and motor idle factor in per cent
M906 U670 I60 ; set motor currents (mA) and motor idle factor in per cent
M84 S20 ; Set idle timeout
; Axis Limits
M208 X0 Y0 Z0 U0 S1 ; set axis minima
M208 X320 Y260 Z200 U80 S0 ; set axis maxima
; Endstops
M574 X1 S1 P"xstop" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
M574 Y1 S1 P"ystop" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
M574 U1 S1 P"e0stop" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
M574 Z1 S2 ; configure Z-probe endstop for low end on Z
; Z-Probe
M558 P1 C"zprobe.in" H3 F120 T5000 ; set Z probe type to unmodulated and the dive height + speeds
G31 P500 X0 Y-42 Z-8.5 ; set Z probe trigger value, offset and trigger height
M557 X40:260 Y40:160 S20 ; define mesh grid
; Heaters
M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
M307 H0 R0.469 K0.337:0.000 D2.38 E1.35 S1.00 B0 ; TESTED 6TH NOV
;M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
M140 H0 ; map heated bed to heater 0
M143 H0 S90 ; set temperature limit for heater 0 to 90C
M308 S1 P"spi.cs1" Y"rtd-max31865" ; create sensor number 1 as a PT100 sensor in the first position on the Duet 2 daughter board connector
M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M143 H1 S220 ; set temperature limit for heater 1 to 220C
M308 S2 P"spi.cs2" Y"rtd-max31865" ; create sensor number 1 as a PT100 sensor in the first position on the Duet 2 daughter board connector
M950 H2 C"e1heat" T2 ; create nozzle heater output on e1heat and map it to sensor 2
M307 H2 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M143 H2 S220 ; set temperature limit for heater 2 to 220C
; Fans
M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
M106 P0 S0 H1 T30 ; set fan 0 value. Thermostatic control is turned on
M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
M106 P1 S0 H2 T30 ; set fan 1 value. Thermostatic control is turned on
M950 F2 C"fan2" Q500 ; create fan 2 on pin fan2 and set its frequency
M106 P2 S0 H-1 ; set fan 2 value. Thermostatic control is turned off
M950 F3 C"duex.fan3" Q500 ; create fan 3 on pin duex.fan3 and set its frequency
M106 P3 S0 H-1 ; set fan 3 value. Thermostatic control is turned off
;HEATER FAULT HANDLING
M570 H0 P5 T15 ; E3D Varipower heated bed with 180s to reach 60deg -check
M570 H1 P5 T15 ; Left extruder (T0)
M570 H2 p5 T15 ; Right extruder (T1)
; Tools
M563 P0 S"LEFT" D0 H1 F0:3:2 ; 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"RIGHT" D1 H2 F1:2:3 ; define tool 1
G10 P1 X0 Y0 Z0 ; set tool 1 axis offsets
G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C
; Custom settings
M555 P2 ; Set output to look like Marlin
M556 S78 X0 Y0 Z0 ; Axis SKEW compensation here
; *** Pressure Advance ; Compensates for elasticity of extrusion system
; ; extrusion_speed = requested_extrusion_speed + (S * current_extruder_acceleration)
; ; The more the system can lag, the greater the compensation required
; ; Typically S = 0.05 for a direct extruder
; ; S = 0.10 for a Bowden with a 400 mm tube
;M572 D0 S0.05 ; Set pressure advance coefficient for tool 0 (Left extruder)
;M572 D1 S0.05 ; Set pressure advance coefficient for tool 1 (Right extruder)
; Miscellaneous
M501 ; load saved parameters from non-volatile memory
M140 S0 ;CORRECT BED ISSUES
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
;----> all below commented out, need?
; *** Load bed height map and activate bed compensation
;G29 S1 ; Load the height map from the last time you used G29 to probe the bed.
; The default height map file is /sys/heightmap.csv.
; Comment this out if you are not using automated mesh leveling.
;
;M376 H10 ; Taper off bed compensation taper
; Hnnn Height (mm) over which to taper off the bed compensation
; Setting H0 leaves compensation always on
; Set bed temperature (to get rid of the -273C reading