; Configuration file for Duet 3 (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.2.3 on Tue Apr 06 2021 17:21:14 GMT+0200 (CEST) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"ubuntu" ; set printer name G21 ; work in millimetres ; Drives M569 P0.5 S1 ; physical drive 0.5 goes forwards M569 P0.4 S0 ; physical drive 0.4 goes forwards M569 P0.3 S1 ; physical drive 0.3 goes forwards M569 P0.2 S1 ; physical drive 0.2 goes forwards M569 P0.1 S1 ; physical drive 0.1 goes forwards M569 P0.0 S1 ; physical drive 0.0 goes forwards M584 X0.3 Y0.2 Z0.1:0.0 U0.4 V0.5 ; set drive mapping M671 X-418.0:418.0 Y38.0:38.0 S4.0 ; define Z leadscrew position and the max compensation M350 X16 Y16 Z16 U16 I1 ; configure microstepping with interpolation M92 X53.33 Y53.33 Z800.00 U53.33 V163.00 ; set steps per mm M566 X900.00 Y900.00 Z60.00 U900.00 V900.00 ; set maximum instantaneous speed changes (mm/min) M203 X18000.00 Y18000.00 Z1000.00 U18000.00 V5000.00 ; set maximum speeds (mm/min) M201 X2000.00 Y2000.00 Z20.00 U2000.00 V250.00 ; set accelerations (mm/s^2) M906 X1150 Y1500 Z1150 U1150 V1200 I60 ; set motor currents (mA) and motor idle factor in per cent M84 S0 ; Disable idle timeout ; Axis Limits M208 X-284.15 Y-150 Z0 U-210 V0 S1 ; set axis minima M208 X210 Y230 Z450 U284.15 V10000 S0 ; set axis maxima ; Endstops M574 X1 S1 P"!0.io4.in" ; configure active-high endstop for low end on X via pin !io3.in M574 Y2 S1 P"!0.io2.in" ; configure active-high endstop for high end on Y via pin !io2.in M574 Z2 S1 P"!0.io0.in+!0.io1.in" ; configure active-high endstop for high end on Z via pin !io0.in M574 U2 S1 P"!0.io3.in" ; configure active-high endstop for high end on U via pin !io4.in M574 V1 S1 P"^0.io5.in" ; configure active-high endstop for low end on V via pin !^0.io5.in ; Heaters ; Bed M308 S2 P"0.temp0" Y"thermistor" A"Bed" T100000 B3950 ; configure sensor 0 as thermistor on pin temp0 M950 H2 C"0.out7" T2 Q10 ; create bed heater output on out7 and map it to sensor 0 M307 H2 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit M307 H2 R0.791 C392.0 D4.77 S1.00 M140 H2 ; map heated bed to heater 0 M143 H2 P0 S145 ; raise a heater fault if heater 0 exceeds 145C M143 H2 P1 S150 A3 ; shut down the printer if heater 0 exceeds 150C ; Chamber M308 S3 P"0.temp1" Y"thermistor" A"Chamber" T100000 B4190 ; configure sensor 3 as thermistor on pin temp1 M950 P0 C"0.out8" ;M950 H3 C"0.out8" T3 Q10 ; create chamber heater output on out8 and map it to sensor 3 ;M307 H3 B1 S1.00 ; disable bang-bang mode for the chamber heater and set PWM limit ;M141 H3 ; map heated chamber to heater 3 ;M570 H3 P600 T60 ; deactivate the heater safety ;M143 H3 P0 S65 ; raise a heater fault if heater 3 exceeds 65C ;M143 H3 P1 S70 A3 ; shut down the printer if heater 3 exceeds 70C M308 S4 P"0.temp2" Y"thermistor" A"Chamber heater" T100000 B4190 ; configure sensor 4 as thermistor on pin temp2 M308 S5 P"0.temp3" Y"thermistor" A"Structure" T100000 B4190 ; configure sensor 4 as thermistor on pin temp2 ; Fans ; Chamber M950 F0 C"0.out4" Q500 ; create fan 0 on pin out4 and set its frequency M106 P0 S0 H4 T50 C"Chamber" ; set fan 0 value. Fan on when chamber heater above 50C ; Filter M950 F1 C"0.out5" Q500 ; create fan 1 on pin out5 and set its frequency M106 P1 S1.0 H-1 C"Filter" ; set fan 1 value. Thermostatic control is turned off ; Material and Electronics M950 F2 C"0.out9" Q500 ; create fan 2 on pin out9 and set its frequency M106 P2 S1.0 H-1 C"Material and Electronics" ; set fan 2 value. Thermostatic control is turned off ; Light M950 P2 C"0.out3" ; create the power port of the light on P2 M42 P2 S1.0 ; set P2 to 100% ; Door M950 J0 C"!^0.io6.in" ; create the door opening sensor on J0 ;M581 P0 T1 S0 R1 ; pause when J0 goes active to inactive ;M581 P0 T4 S1 R1 ; trigger trigger4.g when J0 goes inactive to active ; Spool drawer M950 J1 C"^0.io8.in" ; create the end filament left sensor on J2 M950 J2 C"^0.io7.in" ; create the end filament right sensor on J3 ; Triggers M581 T2 V S0 R2 ; invoke trigger 2 when an inactive-to-active edge is detected on the V endstop switch ;M581 T0 Z S1 R0 ; emergency stop when an inactive-to-active edge is detected on the Z endstop ; Bed grid M557 X-210:183 Y-150:150 P5:5 ; define bed calibration grid ; Miscellaneous M911 S21 R22 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss ; Tools Power ;M950 P0 C"0.out1" ; create the power port of the tool left on P0 ;M950 P1 C"0.out2" ; create the power port of the tool right on P1 ;M42 P0 S1.0 ; switch on tool 0 (left) ;M42 P1 S1.0 ; switch on tool 1 (right) G4 S3 ; wait 1 second for the tools to init ; Tools Drives M569 P20.0 S0 ; set tool left extruder direction M569 P21.0 S0 ; set tool left extruder direction M584 E20.0:21.0 ; set extruder drive mapping M350 E16:16 I1 ; configure microstepping with interpolation M92 E335.40:335.40 ; set steps per mm M566 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min) M203 E1200.00:1200.00 ; set maximum speeds (mm/min) M201 E250.00:250.00 ; set accelerations (mm/s^2) M906 E800:800 I60 ; set motor currents (mA) and motor idle factor in per cent M84 S0 ; Disable idle timeout ; Tools Heaters M308 S0 P"20.temp0" Y"thermistor" A"Hotend L" T100000 B4267 ; configure sensor 0 as thermistor on pin 20.temp0 M950 H0 C"20.out0" T0 ; create nozzle heater output on 20.out0 and map it to sensor 0 M308 S1 P"21.temp0" Y"thermistor" A"Hotend R" T100000 B4267 ; configure sensor 1 as thermistor on pin 21.temp0 M950 H1 C"21.out0" T1 ; create nozzle heater output on 21.out0 and map it to sensor 1 M307 H0 R3.492 C347.8 D14.91 S1.00 V23.8 ; set the heating parameters of the tool left M307 H1 R3.492 C347.8 D14.91 S1.00 V23.8 ; set the heating parameters of the tool right ; Tools Fans M950 F4 C"20.out2+out2.tach" Q500 ; create fan 4 on tool left out2 M106 P4 H0 T45 C"Coldend Tool L" ; set up the coldend cooling fan with thermostatic mode on H0 M950 F6 C"!20.out1+out1.tach" Q25000 ; create fan 6 on tool left out1 M106 P6 S0 H-1 C"Part Cooling Tool L" ; set up the part cooling fan of the tool left M950 F5 C"21.out2+out2.tach" Q500 ; create fan 5 on tool right out2 M106 P5 H1 T45 C"Coldend Tool R" ; set up the coldend cooling fan with thermostatic mode on H1 M950 F7 C"!21.out1+out1.tach" Q25000 ; create fan 7 on tool right out1 M106 P7 S0 H-1 C"Part Cooling Tool R" ; set up the part cooling fan of the tool right ; Tools Zprobes M558 K0 P9 C"!20.io0.in" H5 F120 T3000 ; Z probe connected to 20.io0.in G31 K0 X-27 Y0 Z7.15 ; define the zprobe offset on tool left M558 K1 P9 C"!21.io0.in" H5 F120 T3000 ; Z probe connected to 27.io0.in G31 K1 X27 Y0 Z7.10 ; define the zprobe offset on tool right ; Tools Creation ; Tool 0 and Tool 1 for standard simple/dual extrusion mode M563 P0 S"Tool L" D0 H0 F6 ; define tool 0 G10 P0 X0 Y0 Z0 U0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set standby and active temperatures for tool 0 M563 P1 S"Tool R" D1 H1 X3 F7 ; define tool 1 and maps X to U G10 P1 X0 Y0 Z0 U0 ; set tool 1 axis offsets G10 P1 R0 S0 ; set standby and active temperatures for tool 1 ; Tool 2 for duplicate extrusion mode M563 P2 S"Tool Duplicate" D0:1 H0:1 X0:3 F6:7 ; tool 2 uses both extruders and hot end heaters, maps X to both X and U, and uses both print cooling fans G10 P2 X105 Y0 U-105 S0 R0 ; set default tool offsets and temperatures for tool 2 (offset X/U=210mm) M567 P2 E1:1 ; set mix ratio 100% on both extruders ; Tool 3 for mirror extrusion mode M563 P3 S"Tool Mirror" D0:1 H0:1 X0:3 F6:7 ; tool 2 uses both extruders and hot end heaters, maps X to both X and U, and uses both print cooling fans G10 P3 X122.5 Y0 U-122.5 S0 R0 ; set default tool offsets and temperatures for tool 2 (offset X/U=210mm) M567 P3 E1:1 ; set mix ratio 100% on both extruders ; Tools read setup files M98 P"0:/macros/TB20" ; load the tool specific parameters (offsets, heating model...) M98 P"0:/macros/TB21" ; load the tool specific parameters (offsets, heating model...) T0 P0 ; select Tool Left as the active tool without playing the changing tool macros M552 S1 P192.168.1.73