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 asdfghjkl ; Set machine name M552 S1 ; Enable network M587 S"asdfghjkl" P"sdfghjkl;'" ; 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 E3:4 ; 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 S0 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 with interpolation M92 X80 Y80 Z2126,73195730232 E88.208871:88.208871 ; Set steps per mm M350 X16 Y16 E16:16 Z16 I1 M203 X96000 Y96000 Z800 E4500:4500 ; Set maximum speeds (mm/min) M201 X24000 Y24000 Z1200 E1000:1000 ; Set accelerations (mm/s^2) M906 X2500 Y2500 Z2500 E2500:2500 I40 ; Set motor currents (mA) and motor idle factor in per cent M566 X500 Y500 Z600 E1000:1000 ; Set maximum instantaneous speed changes (mm/min) M84 S30 ; Set idle timeout M593 F40 ; cancel ringing at F Hz ; Axis Limits M208 X0 Y0 Z0 S1 ; Set axis minima M208 X480 Y457 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 T2 C0 M558 P4 I1 H3 F300 T48000 ; Set Z probe type, travel speed (T, mm/min), probe speed (F) G31 P500 X-25 Y0 Z0.65 ; Set Z probe trigger value (P), offset (X, Y) and trigger or home height (Z) ;G31 P500 X-25 Y0 Z1.10 ; 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) ; Heaters ; Extruder M305 P1 B4725 C7.060000e-8 ; Semitec 104-GT2 (used by E3D) ; Bed M305 P0 R4700 T100000 B3950 M570 H0 P30 T20 ; M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0 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 S3 R0.0125 F20000 Z0.5 ; set retraction length (S), un-retract length (R), Z hop ;M592 D0:1 A0.02 B0.0005 L0.1 ; nonlinear extrusion, (D) Extruder drive number (0, 1, 2...), A coefficient, B coefficient, L Upper limit M572 D0:1 S0.0 ; pressure advance (S) in seconds M572 D0:1 S0 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 F10 H1 T45:50 L0.5 ; 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 ;M106 P7 S1.0 B2 I0 F100 L0.3 ; Duex5 front fan ;M106 P8 S1.0 B2 I0 F100 L0.3 ; DuetWifi front 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