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 PHEVO ; Set machine name M552 S1 ; Enable network M587 S"123456789" P"123456789" ; Configure 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:3 ; 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 ; B0 F6 Y0:14:0 ; S - direction 1: forwards 0: backwards M569 P3 S1 ; B0 F6 Y0:14:0 ; S - direction 1: forwards 0: backwards M569 P4 S1 ; B0 F6 Y0:14:0 ; 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 E8:8 Z16 I1 ; Configure microstepping, interpolation (I) M92 X160 Y160 Z2128 E424.41318:424.41318 ; Set computed steps per mm M350 X16 Y16 E64:64 Z16 I1 ; Configure microstepping, interpolation (I) M566 X4000 Y4000 Z150 E100:100 ; Set maximum instantaneous speed changes (mm/min) M203 X48000 Y48000 Z800 E3000:3000 ; Set maximum speeds (mm/min) M201 X10000 Y10000 Z400 E900:900 ; Set accelerations (mm/s^2) M906 X1750 Y1750 Z1500 E1500:1500 I60 ; 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 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) M558 P4 I1 H3 F300 T48000 B1 ; Set Z probe type (P), travel speed (T, mm/min), probe speed (F), disable heater when probing (B) G31 P500 X-25 Y0 Z0.20 ; Set Z probe trigger value (P), offset (X, Y) and trigger or home height (Z) M557 X25:480 Y25:457 S71:70 ; Define mesh grid, interval (S) M376 H20 ; Taper bed compensation, final height (H) ; 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:1 H1 ; define tool (P), extruder drives (D, D0:1) M207 S1.5 R0 F20000 Z0.8 ; set retraction length (S), un-retract length (R), Z hop M572 D0:1 S0.6 ; pressure advance (S) in seconds M200 D1.85 ; 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 M568 P1 S1 ; Enable mixing for tool M567 P1 E0.5:0.5 ; set tool mix ratios ; Fans M106 P0 S0 ; Print nozzle blower fan M106 P1 S1.0 B1 I0 F30 H1 T45:100 L1.0 X1.0 ; Extruder fan M106 P2 S0.4 B2 I0 F50 L0.3 ; Duex5 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