Configuration file for Duet WiFi (firmware version 1.21)
; executed by the firmware on start-up
; General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
; Drives
M569 P0 S0 ; Drive 0 goes backwards
M569 P1 S0 ; Drive 1 goes backwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes backwards
M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
M92 X80.00 Y80.00 Z400.00 E407.5 ; Set steps per mm
M566 X1000.00 Y1200.00 Z24.00 E300.00 ; Set maximum instantaneous speed changes (mm/min)
M203 X30000.00 Y30000.00 Z300.00 E900.00 ; Set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z100.00 E4000.00 ; Set accelerations (mm/s^2)
M906 X1200.00 Y800.00 Z800.00 E925.00 I20 ; 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 X235 Y235 Z250 S0 ; Set axis maxima
; Endstops
M574 X1 Y1 Z1 S1 ; Set active high endstops
; Z-Probe
M558 P0 H5 F120 T6000 ; Disable Z probe but set dive height, probe speed and travel speed
M557 X15:8 Y15:195 S20 ; Define mesh grid
; Heaters
M307 H0 B0 S1.00 ; Disable bang-bang mode for the bed heater and set PWM limit
M305 P0 T100000 B4066 R4700 ; Set thermistor + ADC parameters for heater 0
M143 H0 S100 ; Set temperature limit for heater 0 to 100C
M305 P1 B4725 C7.060000e-8 ; Set thermistor + ADC parameters for heater 1
M143 H1 S285 ; Set temperature limit for heater 1 to 285C
; Fans
M106 P0 S1 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
; Tools
M563 P0 D0 H1 ; 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
; Automatic power saving
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss
M307 H1 A254.3 C127.8 D2.2 S1.0 V24.3 ; PID configuration
; Custom settings
; M592 D0 A0.0121 B-0.0005