; 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 ; Configuration file for Duet 3 MB 6XD (firmware version 3.3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.3.15 on Mon Dec 26 2022 15:35:56 GMT+0530 (India Standard Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"DP500" ; set printer name M584 X0.0 Y0.1 Z0.2:0.3:0.4 E121.0:122.0 U0.5 ; set drive mapping M669 K1 X1:0:0:0 Y1:-1:0:-1 Z0:0:1:0 U0:0:0:1 ; ;M669 K1 X1:0:0:0 Y-1:1:0:1 Z0:0:1:0 U0:0:0:1 ; ; Wait a moment for the CAN expansion boards to start G4 S2 ; Network ;M552 P0.0.0.0 S1 ; enable network and acquire dynamic address via DHCP ;M586 P0 S1 ; enable HTTP ;M586 P1 S0 ; disable FTP ;M586 P2 S0 ; disable Telnet ;M564 H0; Move axis without homing M671 X40:470:250 Y163:163:470 S4 ; leadscrews at Left, Right and Back ; Drives M569 P0.0 S1 R0 T5:2.5:5:5 ; X physical drive 0.0 goes forwards T3:3:5:5 M569 P0.1 S1 R0 T5:2.5:5:7.5 ; Y physical drive 0.1 goes forwards T5:5:10:10 M569 P0.2 S1 R0 T2.5:2.5:5:5 ; Z1 physical drive 0.2 goes forwards T5:5:10:10 M569 P0.2 S1 R0 T2.5:2.5:5:5 ; Z2 physical drive 0.3 goes forwards T5:5:10:10 (2nd T5:2.5:5:7.5) M569 P0.4 S1 R0 T2.5:2.5:5:5 ; Z3 physical drive 0.4 goes forwards T5:5:10:10 M569 P0.5 S1 R0 T5:2.5:5:5 ; U physical drive 0.5 goes forwards T3:3:5:5 M569 P121.0 S1 ; E0 physical drive 121.0 goes forwards M569 P122.0 S0 ; E1 physical drive 122.0 goes forwards M92 X80.00 Y80.00 Z640.00 E406:406 U80.00 ; set steps per mm M566 X900.00 Y900.00 Z30.00 E300.00:300.00 U900.00 ; set maximum instantaneous speed changes (mm/min) M203 X18000.00 Y18000.00 Z600.00 E1200.00:1200.00 U18000.00 ; set maximum speeds (mm/min) Max feed rate M201 X4500.00 Y4500.00 Z300.00 E1200.00:1200.00 U4500.00 ; set accelerations (mm/s^2) M906 X800 Y800 Z800 E550:550 U800 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 X-48 Y-10 Z0 U0 S1 ; set axis minima M208 X500 Y500 Z500 U548 S0 ; set axis maxima U571 ; Endstops M574 X1 S1 P"121.io2.in" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin 121.io2.in M574 Y1 S1 P"io0.in" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io0.in M574 U2 S1 P"122.io2.in" ; configure switch-type (e.g. microswitch) endstop for HIGH end on U via pin 122.io2.in M574 Z1 S2 ; configure Z-probe endstop for low end on Z ; Z-Probe M950 S0 C"121.io0.out" ; create servo pin 0 for BLTouch M558 P9 C"121.io0.in" H5 F600 T6000 ; set Z probe type to bltouch and the dive height + speeds G31 P500 X0 Y0 Z2.4 ; set Z probe trigger value, offset and trigger height M557 X50:515 Y40:515 S130 ; define mesh grid ;Filament Runout Sensor M591 D0 P3 C"121.io1.in" E5 S1 R10:190 ; Filament Runout Sensor for tool 0 M591 D1 P3 C"122.io1.in" E5 S1 R10:190 ; Filament Runout Sensor for tool 1 ; Bed 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 R0.487 K0.190:0.000 D9.32 E1.35 S1.00 B0 ;M307 H0 B1 S1.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 ; Chamber Heaters M308 S3 P"temp1" Y"thermistor" T200000 B4138 ; configure sensor 3 as thermistor on pin temp1 M950 H3 C"out1" T3 ; create chamber heater output on out1 and map it to sensor 3 M307 H3 R0.220 K2.058:0.000 D5.39 E1.35 S1.00 B0 ;M307 H3 B0 S1.00 ; enable PWM limit M141 H3 ; map chamber temperature to heater 3 M143 H3 S70 ; set temperature limit for heater 3 to 70C ; Left Hotend ;R25: 10000 Ω β: 4615 K C: 9.245114e-8 ;R25: 10000 Ω β: 4613 K C: 9.168922e-8 ;R25: 9864 Ω β: 4622 K C: 9.942393e-8 ;R25: 10000 Ω β: 4608 K C: 8.963271e-8 M308 S1 P"121.temp0" Y"thermistor" T100000 B4615 C9.168922e-8 ; 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 R5.149 K0.514:0.000 D2.19 E1.35 S0.70 B0 V24.0 M307 H1 R4.292 K0.497:0.000 D2.89 E1.35 S1.00 B0 V23.7 M143 H1 S300 ; set temperature limit for heater 1 to 300C ; Right Hotend ;M308 S2 P"122.temp0" Y"thermistor" T100000 B4690 C6.627848e-8 ; configure sensor 2 as thermistor on pin 122.temp0 M308 S2 P"122.temp0" Y"thermistor" T100000 B4615 C9.168922e-8 ; configure sensor 2 as thermistor 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 R5.132 K0.654:0.000 D2.51 E1.35 S0.70 B0 V24.0 M307 H2 R4.268 K0.661:0.000 D3.07 E1.35 S1.00 B0 V23.7 M143 H2 S300 ; set temperature limit for heater 2 to 300C ; Fans M950 F0 C"121.out1" Q0 ; 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 H-1 ; set fan 1 value. Thermostatic control is turned off M950 F2 C"122.out1" Q0 ; 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 H-1 ; set fan 3 value. Thermostatic control is turned off ; Tools M563 P0 D0 H1 F0 S"Left Hotend" ; 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 D1 H2 X3 F2 S"Right Hotend" ; define tool 1 G10 P1 U24 Y-2 Z0 ; set tool 1 axis offsets G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C M563 P2 D0:1 H1:2 X0:3 F0:2 X3 S"Duplicate" ; tool 2 uses both extruders and hot end heaters, maps X to both X and U, and uses both print cooling fans G10 P2 X125 Y0 U-125 S0 R0 ; set tool offsets and temperatures for tool 2 M567 P2 E1:1 ; set mix ratio 100% on both extruders M568 P2 S1 ; turn on mixing for tool 2 M563 P3 D0:1 H1:2 X0:3 F0:2 X3 S"Mirror" ; tool 3 uses both extruders and hot end heaters, maps X to both X and U, and uses both print cooling fans G10 P3 X125 Y0 U-625 S0 R0 ; set tool offsets and temperatures for tool 3 M567 P3 E1:1 ; set mix ratio 100% on both extruders ; Custom settings are not defined ; Miscellaneous ;T0 ; select first tool M501 ; load saved parameters from non-volatile memory M911 S22.4 R23.4 P"M913 X0 Y0" ; set voltage thresholds and actions to run on power loss ;Accelerometer for left hotend ;M955 P"121.0" I16 ;M956 P"121.0" S3 A0 F"accelerometer.csv" ;Accelerometer for left hotend ;M955 P"122.0" I12 ;M956 P"122.0" S3 A0 F"accelerometer.csv" ;M572 D0 S0.02 ; Pressure Advance for Left Hotend ;M572 D1 S0.02 ; Pressure Advance for Right Hotend M593 P"ZVDDD" F45