G90 ; Send absolute coordinates... M83 ; ...but relative extruder moves M555 P0 ; Set firmware compatibility to look like native output M667 S1 ; Select CoreXY mode ; Network M550 Pxxxxx ; Set machine name M552 S1 ; Enable network M587 S"xxxxxxxxxxxxx" P"xxxxxxxxxxxxxxxxxx access point. You can delete this line once connected M586 P0 S1 ; Enable HTTP M586 P1 S0 ; Disable FTP M586 P2 S0 ; Disable Telnet ; Drives M584 X0 Y1 Z5:6:7:8 E2 ; All the drives M569 P0 S1 B0 F6 Y0:14:0 ; S - direction 1: forwards 0: backwards M569 P1 S1 B0 F6 Y0:14:0 ; S - direction 1: forwards 0: backwards M569 P2 S1 ; S - direction 1: forwards 0: backwards M569 P3 S1 ; S - direction 1: forwards 0: backwards M569 P4 S1 ; S - direction 1: forwards 0: backwards M569 P5 S0 B0 F6 Y0:14:0 ; S - direction 1: forwards 0: backwards M569 P6 S0 B0 F6 Y0:14:0 ; S - direction 1: forwards 0: backwards M569 P7 S0 B0 F6 Y0:14:0 ; S - direction 1: forwards 0: backwards M569 P8 S0 B0 F6 Y0:14:0 ; S - direction 1: forwards 0: backwards M350 X16 Y16 E16 Z16 I1 ; Configure microstepping, interpolation (I) M92 X160 Y160 Z2128 E424.41318 ; Set computed steps per mm M566 X4000 Y4000 Z150 E400 P1 ; Set maximum instantaneous speed changes (mm/min), jerk policy (P) M203 X48000 Y48000 Z600 E2000 ; Set maximum speeds (mm/min) M201 X6500 Y6500 Z400 E600 ; Set accelerations (mm/s^2) M906 X2000 Y2000 Z1500 E2100 I60 ; Set motor currents (mA) and motor idle factor in % M84 S30 ; Set idle timeout ; Axis Limits M208 X0 Y0 Z0 S1 ; Set axis minima M208 X478 Y470 Z550 S0 ; Set axis maxima M564 S1 H1 ; Limit axes movements, only allow movements after homing ; Endstops M574 Z1 S2 M574 Y1 S1 M574 X1 S1 M574 E2:3 S1 ; Endstop trigger for homing XY to avoid crash M581 E2:3 X1:0 Y1:0 S1 T0 C0 ; Configure trigger number (T, 0 - emergency stop, 1 - pause, 2 - run trigger#.gcode) M581 E5:6 T1 S1 C1 M558 P4 I1 H3 F600 T48000 B1 ; Set Z probe type (P), travel speed (T, mm/min), probe speed (F), disable heater when probing (B) G31 P500 X25 Y0 Z0.5 ; Set Z probe trigger value (P), offset (X, Y) and trigger or home height (Z) M557 X85:503 Y30:440 P7:7 ; Define mesh grid, interval (S) M376 H20 ; Taper bed compensation, final height (H) M671 X30:478:30:478 Y70:408:408:70 S2 F1 ; Define positions of Z leadscrews, E2:E3:E4:E5, Fudge factor (F, multiplies error values), Max adjustment (S in mm) ; Heaters ; Extruder M305 P1 B4725 C7.060000e-8 ; Semitec 104-GT2 (used by E3D) ; Bed M305 P0 R4700 T100000 B3950 M570 H0 P30 T20 M143 H0 S170 ; Set temperature limit for heater M143 H1 S300 ; Set temperature limit for heater ; Extruders M563 P1 S"Extruder0" D0 H1 ; define tool (P), extruder drives (D, D0:1) M207 S1.5 R0 F1100 Z0.4 ; set retraction length (S), un-retract length (R), Z hop M572 D0 S0.4 ; pressure advance (S) in seconds M200 D1.75 ; set filament diameter G10 P1 X0 Y0 Z0 ; Set tool axis offsets G10 P1 R0 S0 ; Set initial tool active and standby temperatures to 0C ; Fans M106 P0 S0 L0.1 F50 ; Part cooling blower fan M106 P1 S1.0 B1 I0 F50 H1 T45:300 L1.0 X1.0 ; Heat break fan M106 P2 S0.4 B2 I0 F50 L0.3 ; Duex back fan M106 P3 S1.0 B1 I0 M106 P4 S1.0 B1 I0 M106 P5 S1.0 B1 I0 ; power supply fan M106 P6 S1.0 B2 I0 F100 L0.3 ; DuetWifi back fan ; Automatic saving after power loss M911 S20 R22.0 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Disable XY, Retract E and lift Z ; Motor stall detection M915 Z S25 R2 F1 G29 S1 ; load last saved mesh grid bed compensation M501 M586 P2 S1