; Configuration file for Duet WiFi (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.1.4 on Sat Oct 24 2020 10:07:48 GMT-0500 (Central Daylight Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"MyPrinter" ; set printer name ; Temporary for connecting to WiFi M552 S0 ; disable network ;G4 P500 ; wait half a second ;M552 S1 ; enable network G4 P1000 ; wait a second M587 S"WifiName" P"*****" ; configure WiFi -- Password redacted M552 S1 P"WifiName" ; enable network ; ; Network M551 P"****" ; set password -- Password redacted ;M552 S1 ; enable network M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet ; ; PanelDue -- Required for it to work M575 P1 S1 B57600 ; ; Drives M569 P0 S0 ; physical drive 0 goes forwards M569 P1 S0 ; physical drive 1 goes forwards M569 P2 S1 ; physical drive 2 goes backwards M569 P3 S1 ; physical drive 3 goes forwards M569 P4 S1 ; Physical drive 4 (E1) (remapped to second Z motor) goes forwards (S1) ;M584 must come earlier in config.g than any M350 and M906 commands. If it creates new axes, it must also be earlier than any M92, M201, M203, M208, M350, M566, M574 , M667 and M669 commands. M584 X0 Y1 Z2:4 E3 ; set drive mapping --Driver 0 controls the X motor, 1 controls Y, 2 and 4 (E1) control Z motors, 4 controls E motor M350 X128 Y128 Z128 E16 I0 ; configure microstepping without interpolation M92 X640.00 Y640.00 Z3200.00 E95.00 ; set steps per mm M566 X900.00 Y900.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min) M203 X12000.00 Y12000.00 Z1200.00 E3000.00 ; set maximum speeds (mm/min) M201 X1000.00 Y1000.00 Z100.00 E5000.00 ; set accelerations (mm/s^2) M906 X734 Y734 Z300 E734 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 X-2 Y0 Z0 S1 ; set axis minima M208 X214 Y204 Z200 S0 ; set axis maxima ; Endstops M574 X1 S1 P"!xstop" ; configure active-low endstop for low end on X via pin xstop M574 Y1 S1 P"!ystop" ; configure active-low endstop for low end on Y via pin ystop M574 Z1 S2 P"zstop" ; Define Z to use Probe. Home to Min ; Z-Probe M950 S0 C"exp.heater7" ; create servo pin 0 for BLTouch M558 P9 C"^zprobe.in" H5 F120 T3000 ; set Z probe type to bltouch and the dive height + speeds ;M558 P9 C"^zprobe.in" H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds M280 P0 S10 ; send control signal to BLTouch through servo/gpio 0 G31 P25 X23.7 Y-33.1 Z1.15 ; set Z probe trigger value, offset and trigger height M557 X23:200 Y20:170 S29:25 ; define mesh grid (this is a 6x6 mesh-JSN) ; Define the X and Y coordinates of the leadscrews. ; Must come after M584 (Set drive mapping), M667 (Select CoreXY Mode) and M669 (Choosing Kinematics type) ; Motor order: Front right (1), front left (2) ; Snn Maximum correction in mm to apply to each leadscrew (optional, default 1.0) ;M671 X-74.5:264 Y80.8:77.5 ; S3 May be needed at the end if you have Z sync issues - JSN M671 X-74.5:264 Y100:100 S4 ; leadscrews at left (connected to Z) and right (connected to E1) of X axis ; Heaters M308 S0 P"bedtemp" Y"thermistor" T100000 B3988 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 M307 H0 B0 S1.00 ; disable 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 M308 S1 P"e0temp" Y"thermistor" T100000 B3988 R4700 ; 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 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit ; PID Tune for Bed and Nozzle M307 H0 A134.4 C549.7 D1.0 V24.1 B0 S1.00 ; Bed PID Tuned at 65 degrees C on 5 Aug 2019 - JSN M307 H1 A718.0 C255.9 D8.2 V24.1 B0 S1.00 ; Nozzle PID Tuned at 220 degrees C on 5 Aug 2019 - JSN ; Fans M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off ;M950 F1 C"fan1" Q500 ; NOT CONNECTED - JSN create fan 1 on pin fan1 and set its frequency ;M106 P1 S1 H1 T45 ; NOT CONNECTED - JSN set fan 1 value. Thermostatic control is turned on ;M950 F2 C"fan2" Q500 ; NOT CONNECTED - JSN create fan 2 on pin fan2 and set its frequency ;M106 P2 S1 H1 T45 ; NOT CONNECTED - JSN set fan 2 value. Thermostatic control is turned on ; Tools M563 P0 S"Extruder 1" D0 H1 F0 ; 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 ; Custom settings are not defined ; Miscellaneous M501 ; load saved parameters from non-volatile memory 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