; Configuration file for Duet WiFi (firmware version 1.20 or newer) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool on Sun Jun 03 2018 17:35:19 GMT-0300 (Horário Padrão de Brasília) ; General preferences G90 ; Send absolute coordinates... M83 ; ...but relative extruder moves M555 P1 ; Set firmware compatibility to look like RepRapFirmare M669 K1 ; Select CoreXY mode ; Network M550 PDuDuet ; Set machine name M552 S1 ; Enable network M587 S"XXXX" P"XXXX" ; Configure access point. You can delete this line once connected M586 P0 S1 ; Enable HTTP M586 P1 S1 ; Enable FTP M586 P2 S1 ; Enable Telnet ; Panel due M575 P1 S1 B57600 ; Enable Panel Due ; Drives M569 P0 S0 ; Driver 0 goes forwards M569 P1 S0 ; Driver 1 goes forwards M569 P2 S0 ; Driver 2 goes forwards M569 P3 S1 ; Driver 3 goes backwards M569 P4 S0 ; Driver 4 goes forwards M584 X1 Y0 Z2:4 E3 ; Apply custom drive mapping - Two Z motors connected to driver outputs Z and E1 M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation M92 X100.85 Y100.33 Z404.61 E409 ; Set steps per mm M84 S30 ; Set idle timeout M566 X900 Y900 Z50 E900 ; Set maximum instantaneous speed changes (mm/min) M203 X30000 Y30000 Z900 E2500 ; Set maximum speeds (mm/min) M201 X2000 Y2000 Z1000 E2500 ; Set accelerations (mm/s^2) M906 X1200 Y1200 Z1200 E1000 I30 ; Set motor currents (mA) and motor idle factor in per cent ; Axis Limits M208 X0 Y0 Z-2.2 S1 ; Set axis minima M208 X254 Y270 Z265 S0 ; Set axis maxima ; Endstops M574 X1 S1 P"xstop" ; configure active-high endstop for low end on X via pin xstop M574 Y1 S1 P"ystop" ; configure active-high endstop for low end on Y via pin ystop ; Dual Z M671 X334:-48 Y138:141 S4 ; Leadscrews at left (connected to Z) and right (connected to E1) of X axis ; Compensation using 4 screws ; M671 X24:264:264:24 Y17:17:257:257 ; Define positions of bed leveling screws ; Z-Probe M558 P9 C"^zprobe.in" H5 F400 T6000 ; BLTouch connected to Z probe IN pin M950 S0 C"exp.heater3" ; Create servo/gpio 0 on heater 3 pin on expansion connector G31 P25 X59.5 Y0 Z0.72 ; Set Z probe trigger value, offset and trigger height - Bigger is closer M557 X59.5:254 Y0:270 P7 ; Define mesh grid M376 H2 ; Stop compensation at 2mm height ; Heaters and thermistors ; Bed M308 S0 P"bedtemp" Y"thermistor" A"Bed" T100000 B4138 C0 R4700 ; 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 M140 H0 ; Map heated bed to heater 0 M307 H0 A752.4 C509.3 D6.9 S1.00 V24.1 B0 ; Configure bed heater profile (to be used on PID) M143 H0 S110 ; Set temperature limit for heater 0 to 110C ; Extruder ;M305 P1 B4725 C7.06e-8 ; Set thermistor + ADC parameters for heater 1 M308 S1 P"e0temp" Y"thermistor" A"Extruder" B4725 C7.06e-8 ; Configure sensor 1 as thermistor on pin e0temp M950 H1 C"e0heat" T1 ; Create nozzle heater output on e0heat and map it to sensor 1 ;M307 H1 A462.9 C218.4 D4.0 S1.00 V24.0 B0 ; Configure extruder heater profile (to be used on PID) M307 H1 R2.035 C205.6 D5.16 S1.00 V24.1 ; Configure extruder heater profile (to be used on PID) M307 H1 B0 S1.00 ; Configure extruder heater profile (to be used on PID) M143 H1 S300 ; Set temperature limit for heater 1 to 300C ; Fans M950 F0 C"fan0" Q500 A"Blower" ; Create fan 0 (blower) on pin fan0 and set its frequency M106 P0 S0 H-1 C"Blower" ; Set fan 0 value. Thermostatic control is turned off M950 F1 C"fan1" Q500 A"Fan Extruder" ; Create fan 1 (throat) on pin fan1 and set its frequency M106 P1 H1 T45 C"Fan Extruder" ; Set fan 1 value. Thermostatic control is turned on M950 F2 C"fan2" Q500 A"Filter" ; Create fan 2 (filter) on pin fan2 and set its frequency M106 P2 S0 H-1 C"Filter" ; Set fan 1 value. Thermostatic control is turned off ; Tools M563 P0 D0 H1 ; 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 ; Automatic power saving M911 S23.0 R23.8 P"M913 X0 Y0 Z0 M106 P0 S0 M106 P1 S0 M106 P2 S0 G91 M83 G1 E-1 F1000 M913 Z0 E0" ; Set voltage thresholds and actions to run on power loss ; Miscellaneous T0 ; Select first tool ; Filament sensor M591 D0 P1 C"e0stop" S1 ; Enables filament sensor on E0 M581 P"e0stop" T1 ; Pressure advance ; M572 D0 S0.8 ; Set pressure advance to 0.8s ; Firmware retraction M207 S0.3 R0 F4200 Z0.0