Skip to content

Instantly share code, notes, and snippets.

@nraynaud
Created June 15, 2018 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nraynaud/7b509e8e19c61cfc438613f131a76f32 to your computer and use it in GitHub Desktop.
Save nraynaud/7b509e8e19c61cfc438613f131a76f32 to your computer and use it in GitHub Desktop.
; Configuration file for Duet WiFi (firmware version 1.17 to 1.19)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool on Wed Nov 15 2017 23:36:04 GMT-0700 (MST)
; General preferences
M111 S0 ; Debugging off
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
M555 P2 ; Set firmware compatibility to look like Marlin
M208 X0 Y0 Z0 U0 S1 ; Set axis minima
M208 X210 Y210 Z200 U200 S0 ; Set axis maxima
;DUAL Z
M584 X0 Y1 Z2:3 U3 E4 P3
; Endstops
M574 X1 Y1 Z1 U1 S0 ; Set active low endstops
M558 P0 X0 Y0 Z0 H2 F60 T6000 ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds
G31 P600 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
M557 X15:195 Y15:195 S20 ; Define mesh grid
; Drives
M569 P0 S1 ; Drive 0 goes forwards
M569 P1 S0 ; Drive 1 goes backwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M569 P4 S1 ; Drive 4 goes forwards
; M350 X32 Y32 Z32 E16:16 I1 ; Configure microstepping with interpolation
; M92 X160 Y160 Z800 E92.6:92.6 ; Set steps per mm
M350 X64 Y64 Z64 U64 E16:16 I1 ; Configure microstepping with interpolation
M92 X320 Y320 Z1600 U1600 E92.6:92.6 ; Set steps per mm
M906 X1100 Y1100 Z800 U800 E1000:1000 I50 ; Set motor currents (mA) and motor idle factor in per cent
M84 S2 ; Set idle timeout
M566 X600 Y600 Z12 U12 E300:300 ; Set maximum instantaneous speed changes (mm/min)
M203 X30000 Y30000 Z1200 U1200 E1800:1800 ; Set maximum speeds (mm/min)
M201 X2500 Y2500 Z500 U500 E3000:3000 ; Set accelerations (mm/s^2)
; Heaters
M301 H0 S1.00 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
M305 P0 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 0
M143 H0 S120 ; Set temperature limit for heater 0 to 120C
M305 P1 T100000 B4388 C0 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S280 ; Set temperature limit for heater 1 to 280C
M305 P2 T100000 B4388 C0 R4700 ; Set thermistor + ADC parameters for heater 2
M143 H2 S280 ; Set temperature limit for heater 2 to 280C
; snip -----8<---- 8<---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment