; Default config.g template for DuetPi ; Replace this with a proper configuration file (e.g from https://configtool.reprapfirmware.org) ; Display initial welcome message ; M291 P"Please go to this page for further instructions on how to set it up." R"Welcome to your new Duet 3!" S1 T0 ; Enable network ; M552 P0.0.0.0 S1 ; General preferences G21 ; Units are mm G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Duet 3" ; set printer name M669 K1 ; select CoreXY mode G92 E0.0 ; Drives M569 P0.0 S0 ; physical drive 0.0 goes forwards X M569 P0.1 S0 ; physical drive 0.1 goes forwards Y M569 P0.2 S1 ; physical drive 0.2 goes forwards E M569 P0.3 S1 ; physical drive 0.3 goes Forwards Z1 M569 P0.4 S1 ; physical drive 0.4 goes Forwards Z2 M569 P0.5 S1 ; physical drive 0.5 goes Forwards Z3 M584 X0 Y1 Z3:4:5 E2 ; set drive mapping M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation M92 X160.00 Y160.00 Z1600.00 E402.55 ; set steps per mm M207 S1.4 R0.0 F3000 T3000 Z0.8 ; firmware retraction settings for PETG M204 P200 T400 ; Set printing and travel accelerations M566 X200.00 Y200.00 Z60.00 E50.00 ; set maximum instantaneous speed changes (mm/min) (Jerk) M203 X4000.00 Y4000.00 Z1500.00 E2400 ; set maximum speeds (mm/min) M201 X2000.00 Y2000.00 Z750.00 E1200 ; set accelerations (mm/s^2) M906 X1680 Y1680 Z1330 E1330 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 X0:318 Y0:305 Z0:310 ; set axis Min / Max M671 X-23.7:167.5:358.7 Y31:362.5:31 S10 ; Set Bed Pivot Locations ; Extruder / Hot end ; Heater 0 model: gain 456.9, time constant 268.0, dead time 4.1, max PWM 0.70, calibration voltage 24.0, mode PID ; Computed PID parameters for setpoint change: P25.4, I0.762, D73.3 ; Computed PID parameters for load change: P25.4, I1.897, D73.3 M308 S0 P"spi.cs0" Y" rtd-max31865" A"Hot End" ; configure sensor 0 as a PT100 on Port 1 of temperature daughter board M950 H0 C"out1" T0 ; create nozzle heater output on out2 and map it to sensor 1 M143 H0 S320 ; set temperature limit for heater 1 to 320C ; M307 H0 A850 C268 D3.7 V24 S0.7 B0 M307 H0 R1.573 C348.4 D11.18 S1.00 V24.0 M563 P0 S"Extruder" D0 H0 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 M950 F0 C"out7" Q500 A"Part Cool" ; set part cooling fan output M106 P0 H-1 ; Thermostatic control is turned off M950 F1 C"out8" Q500 A"Extruder" ; set hot end cooling fan output M106 P1 H0 T50 ; Thermostatic control is turned on, enables at 45C ; Bed M308 S1 P"temp0" Y"thermistor" A"Bed" T100000 B4725 C7.06e-8 ; configure sensor 1 as thermistor on pin temp0 M950 H1 C"out2" T1 Q1 ; create bed heater output on out1 and map it to sensor 1 M143 H1 S120 ; set temperature limit for heater 0 to 120C ; M307 H1 A111.9 C111.2 D3.4 V24 S1 B0 ; disable bang-bang mode for the bed heater and set PWM limit M307 H1 R0.842 C375.7 D5.61 S1.00 V24.0 B0 M140 H1 ; map heated bed to heater 1 ; MCU M308 S2 Y"mcu-temp" A"CPU" M950 F2 C"!out4" A"MCU" Q25000 L.7 M106 P2 T40:50 H2 ; set Duet cooling fan ; Pinda Probe M308 S3 P"temp1" Y"thermistor" T100000 A"Pinda" B4725 C7.06e-8 ; configure sensor 3 as thermistor on pin temp1 M558 P5 C"io6.in" H2 A3 F120 T2000 ; set Z probe type to filtered switch ; Spare Sensor ; M308 S4 P"spi.cs1" Y" rtd-max31865" A"Spare" ; configure sensor 4 as a PT100 on Port 2 of temperature daughter board ; Filament Detection M591 D0 P3 C"io5.in" S0 R30:160 L25.8 E3.0 ; Duet3D rotating magnet sensor for extruder drive 0 is connected to I/O 5 input, ; enabled, sensitivity 25.8mm.rev, 70% to 130% tolerance, 3mm detection length ; Endstops M574 X1 S1 P"!io0.in" ; configure active-hi endstop for low end on X via pin io0.in M574 Y1 S1 P"!io1.in" ; configure active-hi endstop for low end on Y via pin io1.in M574 Z1 S4 M915 P3:4:5 S10 F1 R1 ; define mesh grid ; LED Enable Relay M950 P0 C"out9" A"Led Relay" ; set its name ; PINDA - Z-Probe G31 P1 X-21 Y0 Z0.868 C0.002 S29 H3 ; set Z probe trigger, offset, trigger height, temperature compensation ; Miscellaneous M557 X21:270 Y0:270 S20 M501 ; load saved parameters from non-volatile memory M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss