; Configuration file for Duet 3 (firmware version 3) ; executed by the firmware on start-up ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Duet3" ; set printer name M667 S1 ; select CoreXY mode ; Drives M569 P0.0 S1 ; X (alpha) Forward M569 P0.1 S1 ; Y (beta) Forward M569 P0.2 S0 ; Z1 Reverse M569 P0.3 S0 ; Z2 Reverse M569 P0.4 S0 ; Z3 Reverse M569 P0.5 S0 ; Coupler Reverse M569 P1.0 S0 ; T0 Extruder Reverse M569 P1.1 S0 ; T1 Extruder Reverse M569 P1.2 S0 ; T2 Extruder Reverse M569 P2.0 S0 ; T3 Extruder Reverse M569 P2.1 S0 ; T4 Extruder Reverse M569 P2.2 S0 ; T5 Extruder Reverse M584 X0.0 Y0.1 C0.5 ; set drive mapping M584 Z0.2:0.3:0.4 ; set drive mapping M584 E1.0:1.1:1.2:2.0:2.1:2.2 ; set drive mapping M671 X-65:375:150 Y190:190:375 S2.0 ; leadscrews at left front, right front and center rear M350 C8 I0 ; configure microstepping without interpolation M350 X16 Y16 Z16 E16:16:16:16:16:16 I1 ; configure microstepping with interpolation M92 X100 Y100 Z800 C100 E140:140:140:140:140:140 ; set steps per mm M566 X1000 Y1000 Z12 C2 E120:120:120:120:120:120 ; set maximum instantaneous speed changes (mm/min) M203 X35000 Y35000 Z900 C5000 M203 E10000:10000:10000:10000:10000:10000 ; set maximum speeds (mm/min) M201 X2400 Y2400 Z500 E500:500:500:500:500 ; set accelerations (mm/s^2) M906 X1800 Y1800 Z1900 C400 E800:800:800:800:800:800 I20 ; set motor currents (mA) and motor idle factor in percent M84 S15 ; Set idle timeout ; Axis Limits M208 X-40 Y-10 Z-3 C0 S1 ; set axis minima M208 X347 Y363 Z380 C500 S0 ; set axis maxima ; Endstops M574 X1 S1 P"!^io1.in" ; configure active-high endstop for low end on X via pin !^io1.in M574 Y1 S1 P"!^io2.in" ; configure active-high endstop for low end on Y via pin !^io2.in M574 Z1 S1 P"!^io3.in+!^io4.in+!^io5.in" ; configure active-high endstop for low end on Z via pin !^io3.in ; Z-Probe M558 P8 C"!^io6.in" H6 F100 T15000 ; set Z probe type to switch and the dive height + speeds G31 P500 X-5 Y0 Z-1.8 ; set Z probe trigger value, offset and trigger height M557 X10:300 Y10:300 S48 ; define mesh grid ;Stall Detection M915 C S1 F0 H50 R1 ; Coupler ; Heaters M308 S0 P"1.temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin 1.temp0 M950 H0 C"1.out0" T0 ; create nozzle heater output on 1.out0 and map it to sensor 0 M143 H0 S300 ; set temperature limit for heater 0 to 300C M307 H0 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M308 S1 P"1.temp1" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin 1.temp1 M950 H1 C"1.out1" T1 ; create nozzle heater output on 1.out1 and map it to sensor 1 M143 H1 S300 ; set temperature limit for heater 1 to 300C M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M308 S2 P"1.temp2" Y"thermistor" T100000 B4138 ; configure sensor 2 as thermistor on pin 1.temp2 M950 H2 C"1.out2" T2 ; create nozzle heater output on 1.out2 and map it to sensor 2 M143 H2 S300 ; set temperature limit for heater 2 to 300C M307 H2 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M308 S3 P"2.temp0" Y"thermistor" T100000 B4138 ; configure sensor 3 as thermistor on pin 2.temp0 M950 H3 C"2.out0" T3 ; create nozzle heater output on 2.out0 and map it to sensor 3 M143 H3 S300 ; set temperature limit for heater 3 to 300C M307 H3 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M308 S4 P"2.temp1" Y"thermistor" T100000 B4138 ; configure sensor 4 as thermistor on pin 2.temp1 M950 H4 C"2.out1" T4 ; create nozzle heater output on 2.out1 and map it to sensor 4 M143 H4 S300 ; set temperature limit for heater 4 to 300C M307 H4 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M308 S5 P"2.temp2" Y"thermistor" T100000 B4138 ; configure sensor 5 as thermistor on pin 2.temp2 M950 H5 C"2.out2" T5 ; create nozzle heater output on 2.out2 and map it to sensor 5 M143 H5 S300 ; set temperature limit for heater 5 to 300C M307 H5 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M308 S6 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 6 as thermistor on pin temp0 M950 H6 C"out0" T6 ; create bed heater output on out0 and map it to sensor 6 M143 H6 S300 ; set temperature limit for heater 6 to 300C M307 H6 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit M140 H6 ; map heated bed to heater 6 M308 S7 P"temp1" Y"thermistor" T100000 B4138 ; configure sensor 7 as thermistor on pin temp1 M950 H7 C"out1" T7 ; create chamber heater output on out1 and map it to sensor 7 M143 H7 S300 ; set temperature limit for heater 7 to 300C M307 H7 B1 S1.00 ; enable bang-bang mode for the chamber heater and set PWM limit M141 H7 ; map chamber to heater 7 ; Fans M950 F0 C"1.out6" Q500 ; create fan 0 on pin 1.out6 and set its frequency M106 P0 S0 H0 T45 ; set fan 0 value. Thermostatic control is turned on M950 F1 C"1.out7" Q500 ; create fan 1 on pin 1.out4 and set its frequency M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on M950 F2 C"1.out8" Q500 ; create fan 2 on pin 1.out5 and set its frequency M106 P2 S1 H2 T45 ; set fan 2 value. Thermostatic control is turned on M950 F3 C"2.out6" Q500 ; create fan 3 on pin 2.out6 and set its frequency M106 P3 S1 H3 T45 ; set fan 3 value. Thermostatic control is turned on M950 F4 C"2.out7" Q500 ; create fan 4 on pin 2.out4 and set its frequency M106 P4 S1 H4 T45 ; set fan 4 value. Thermostatic control is turned on M950 F5 C"2.out8" Q500 ; create fan 5 on pin 2.out5 and set its frequency M106 P5 S1 H5 T45 ; set fan 5 value. Thermostatic control is turned on M950 F6 C"out7" Q500 ; create fan 6 on pin out7 and set its frequency M106 P6 S1 H-1 ; set fan 6 value. Thermostatic control is turned off ; Tools M563 P0 D0 H0 F0:6 ; 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 H1 F0:6 ; 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 M563 P2 D2 H2 F0:6 ; define tool 2 G10 P2 X0 Y0 Z0 ; set tool 2 axis offsets G10 P2 R0 S0 ; set initial tool 2 active and standby temperatures to 0C M563 P3 D3 H3 F0:6 ; define tool 3 G10 P3 X0 Y0 Z0 ; set tool 3 axis offsets G10 P3 R0 S0 ; set initial tool 3 active and standby temperatures to 0C M563 P4 D4 H4 F0:6 ; define tool 4 G10 P4 X0 Y0 Z0 ; set tool 4 axis offsets G10 P4 R0 S0 ; set initial tool 4 active and standby temperatures to 0C M563 P5 D5 H5 F0:6 ; define tool 5 G10 P5 X0 Y0 Z0 ; set tool 5 axis offsets G10 P5 R0 S0 ; set initial tool 5 active and standby temperatures to 0C T-1 ;deselect tools ;M572 D0 S0.2 ; pressure advance T0 ;M572 D1 S0.2 ; pressure advance T1 ;M572 D2 S0.2 ; pressure advance T2 ; Miscellaneous ;M911 S20 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss