; Configuration file for heavily modified Aldi CocoonCreate using Duet WiFi ; Communication and general G90 ; Send absolute coordinates... M83 ; ...but relative extruder moves G21 ; Work in millimetres ;M555 P2 ; Set output to look like Marlin ; Network M550 P"CocoonCreate" ; Set machine name M552 S1 ; Enable network M587 S"GROUSE" P"BERG1IDG2" ; 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 M551 Preprap ; Machine password (used for FTP) M575 P1 B57600 S1 ; Comms parameters for PanelDue ; Drives M569 P0 S0 ; Drive 0 goes backwards (X) M569 P1 S0 ; Drive 1 goes backwards (Y) M569 P2 S1 ; Drive 2 goes forwards (Z1) M569 P3 S0 ; Drive 3 goes backwards (E) M569 P4 S0 ; Drive 4 goes backwards (Z2) M584 X0 Y1 Z2:4 E3 ; axis to motor output mapping (Z on Z+E1) M350 X16 Y16 Z16:16 E16 I1 ; set 16x microstepping with interpolation M92 X160 Y160 Z400:400 E800 ; set axis steps/mm (0.9deg motors) M906 X1700 Y1700 Z900:900 E900 I30 ; Set motor currents (mA) ;M906 X500 Y500 Z400:400 E900 H1 ; Set motor currents for homing (mA) M201 X1000 Y1000 Z900:900 E900 ; Accelerations (mm/s^2) M203 X15000 Y15000 Z5000:5000 E5000 ; Maximum speeds (mm/min) M566 X800 Y800 Z600:600 E600 ; Maximum jerk speeds mm/minute M593 F25 ; Ringing cancellation (testing in 2.02beta) ;M572 D0 S0.1 ; Pressure advance (testing in 2.02beta) M84 S30 ; Set idle timeout ; Heaters M305 P0 T100000 B3700 H0 L0 ; Set thermistor + ADC parameters for heatbed M305 P1 X200 ; Set thermistor type to PT100 for extruder M307 H0 A156.6 C491.8 D0.5 B0 S1.0 ; Headbed - Heater 0 model: gain 156.6, time constant 491.8, dead time 0.5, max PWM 1.00, mode: PID M307 H1 A444.8 C233.3 D4.5 B0 S0.6 ; Hotend - Heater 1 model: gain 444.8, time constant 233.3, dead time 4.5, max PWM 0.60, mode: PID M570 H0 P30 ; Heatbed heater fault timeout M570 H1 P30 ; Hotend heater fault timeout M143 S275 ; Max temp of hotend ; Axis Limits M208 X1 Y-8 Z-1 S1 ; Set axis minimum (adjust to make X=0 the edge of the bed) M208 X213.3 Y211 Z194 ; Set axis maxima (adjust to suit your machine) ; Endstops M574 X1 Y1 S1 ; set endstop configuration (X/Y hall effect endstop at low end, active high) M574 Z1 S2 ; Z at low end using stall detect M574 E0 S0 ; no endstop on E ; Z probe and compensation definition M558 P1 I0 R0.8 H0.75 A20 S0.02 T1000 F60 X0 Y0 Z1 ; Probe settings for Piezos under heat bed G31 X0 Y0 Z-0.3 P8 ; Set Z probe trigger value, offset and trigger height ;M915 Z S-2 F1 H400 R0 ; Enable stall detection on Z motors(drive 2 and 4) M557 X20:180 Y20:180 S40 ; Mesh grid M376 H5 ; Bed compensation taper ; Fans M106 P1 T45 H1 ; Extruder fan set to turn on when over 45deg ; Tools M563 P0 D0 H1 F2 ; Define tool 0 G10 P0 S0 R155 ; Set tool 0 operating and standby temperatures ; Automatic power saving M911 S20 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss ; Miscellaneous ;M501 ; Load saved parameters from non-volatile memory T0 ; Select first tool