; Config.g file for Duet WiFi (firmware version 3) ; Last Updated December 4, 2022 at 12:15PM by JADO ; ; General preferences M575 P1 S1 B57600 ; enable support for PanelDue G90 ; send absolute coordinates M83 ; but relative extruder moves M550 P"Jim's Ender 3" ; set printer name M918 P1 E4 F2000000 ; configure direct-connect display ; Network M552 S1 ; enable network M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet ; Drives M569 P0 S0 ; physical drive 0 goes backwards M569 P1 S0 ; physical drive 1 goes backwards M569 P2 S1 ; physical drive 2 goes forwards M569 P3 S0 ; physical drive 3 goes backwards M584 X0 Y1 Z2 E3 ; set drive mapping M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation M92 X80.00 Y80.00 Z410.00 E690 ; set steps per mm M566 X1200.00 Y1200.00 Z24.00 E300.00 ; set maximum instantaneous speed changes (mm/min) M203 X9000.00 Y9000.00 Z180.00 E7200.00 ; set maximum speeds (mm/min) M201 X500.00 Y500.00 Z100.00 E5000.00 ; set accelerations (mm/s^2) M201 E3000 ;Accelleration (mm/s^2) M906 X800 Y800 Z800 E1200 I10 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 X0 Y0 Z0 S1 ; set axis minima M208 X230 Y230 Z240 S0 ; set axis maxima ; Endstops M574 X1 S1 P"xstop" ; configure switch-type (S1 = microswitch) endstop for low end (X1) on X via pin xstop (P"xstop") M574 Y1 S1 P"ystop" ; configure switch-type (S1 = microswitch) endstop for low end on (Y1) Y via pin ystop (P"ystop") ; BLTouch M950 S0 C"exp.heater3" ; Map BLtouch to pin exp.heater3 and S sets servo pin index to 0 M558 P9 C"^zprobe.in" H5 F120 T6000 ; Set the probe parameters ; BLtouch P9 Type of Probe C=Pin Name H=Dive Height in mm F= Speed T= Travel Speed to next probe location G31 P25 X49 Y0 Z2.87 ; set the probe’s offset, Nozzle is 49mm left of probe and 0mm behind it & trigger height is 25mm M557 X50:200 Y20:220 P4 ; Define mesh grid ;Filament Sensor ;RepRapFirmware 3.x, Duet 2 ;M591 D0 P4 C"e0stop" S1 ; rolling magnetic sensor w/microswitch (P4) connected to E0 endstop (e0stop) for drive 0 (D0), enabled (S1) ; Heaters M308 S0 P"bedtemp" Y"thermistor" T100000 B4092 ; configure sensor 0 (S0) on pin bedtemp (P"bedtemp") as thermistor Y"thermistor" with values T100000 and B4092 M950 H0 C"bedheat" T0 ; create bed heater output on bedheat (H0) with name bedheat (C"bedheat") and map it to sensor 0 (T0) M307 H0 B0 R0.961 C462.0 D8.23 S1.00 V25.1 ; Config heater 0 (H0), DISABLE BANG-BANG (B0), heating rate (R.322), cooling time constant (C573.0), dead time (D3.30), max PWM (S1), calibration voltage (V23.7) M140 H0 S0 ; map heated bed to heater 0 (H0) and Set Heater to Active Temp 0 M143 H0 S150 ; set temperature limit for heater 0 (H0) to 150C (S150) M308 S1 P"e0temp" Y"thermistor" T100000 B4725 C7.06e-8 ; configure sensor 1 (S1) as thermistor (Y"thermistor") on pin e0temp (P"e0temp") with values T100000 B4725 C7.06e-8 M950 H1 C"e0heat" T1 ; create hot end heater (H1) on pin e0heat C(e0heat")and map it to sensor 1 (T1) M307 H1 B0 R2.230 C226.6 D6.69 S1.00 V24.0 ; config heater 1 (H1), DISABLE BANG-BANG (B0), heating rate (R2.23), cooling time constant (C226.6), dead time (D6.69), max PWM (S1.00), calibration voltage (V24.0) M143 H1 S320 ; set temperature limit for heater 1 to 300C ; Fans M950 F0 C"Fan0" Q500 ; create Parts Cooling fan 0 (F0) on pin fan0 (CFan0) and set its frequency (Q500) M106 P0 C"Parts Cooling Fan" S0 H-1 ; Config fan 0 Parts Cooling Fan. Set Start Speed to 100% (S1) Thermostatic control is turned off (H-1) M950 F1 C"Fan1" Q500 ; create Hot End fan 1 (F1) on pin fan1 (CFan1) and set its frequency (Q500) M106 P1 C"Hot End" S1.0 L1 H1 T45 ; Config fan 1 Hot End values. Set Start Speed to 100% (S1) Set Thermostatic control to on (H1) Set on Temp to 45C (T45) M950 F2 C"Fan2" Q500 ; create CPU Case Fan fan 2 (F2) on pin fan2 (CFan2) and set its frequency (Q500) M106 P2 C"CPU Case Fan Fan 2" S1 H-1 ; Config fan 2 CPU Case Fan values. Set Start Speed to 100% (S1) Set Thermostatic control to off (H-1) ; Tools M563 P0 S"Hot End" D0 H1 F0 ; define tool 0 Hot End Set Extruder Drive to 0 (D0) Set Heater to Heater 1 (H1) Set Fan to Fan 0 (F0) G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C ; Miscellaneous ;M207 S2.0 F7200 Z0.2 ;Firmware Retraction M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss T0 ; select first tool