Skip to content

Instantly share code, notes, and snippets.

/config.g Secret

Created January 26, 2018 05:15
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 anonymous/288a079496bd24ee46ef7bd0f8aee2a0 to your computer and use it in GitHub Desktop.
Save anonymous/288a079496bd24ee46ef7bd0f8aee2a0 to your computer and use it in GitHub Desktop.
;m Configuration file for Duet WiFi (firmware version 1.20 or newer)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool on Thu Oct 26 2017 19:14:01 GMT-0400 (EDT)
; 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
; Automatic saving after power loss is not enabled
M667 S1 ; Select CoreXY mode
M208 X0 Y0 Z0 S1 ; Set axis minima
M208 X220 Y220 Z300 S0 ; Set axis maxima
; Endstops
M574 X1 Y2 Z0 S0 ; Define active low and unused microswitches
; Piezo
M558 P1 I0 R0.4 F400 X0 Y0 Z1
G31 X0 Y0 Z-0.20 P600
M557 X10:210 Y10:210 S20 ; Define mesh grid
; Drives
M569 P0 S0 ; Drive 0
M569 P1 S0 ; Drive 1
M569 P2 S0 ; Drive 2
M569 P3 S0 ; Drive 3
M569 P5 S0 ; Drive 5
M569 P6 S0 ; Drive 6
M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
M92 X100 Y100 Z1600 E828 ; Set steps per mm
;M566 X900 Y900 Z20 E120 ; Set maximum instantaneous speed changes (mm/min)
;M203 X6000 Y6000 Z300 E1200 ; Set maximum speeds (mm/min)
;M201 X500 Y1000 Z20 E250 ; Set accelerations (mm/s^2)
M566 X600 Y600 Z12 E120:120 ; Set maximum instantaneous speed changes (mm/min)
M203 X30000 Y30000 Z1500 E1200:1200 ; Set maximum speeds (mm/min)
M201 X1000 Y1000 Z500 E2000:2000 ; Set accelerations (mm/s^2)
M906 X1450 Y1450 Z1200 E1400 I30 ; Set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout
; Screw bed leveling
M584 X0 Y1 Z2:5:6
M671 X-100:270:90 Y45:45:390 S5
; Heaters
M143 S285 ; Set maximum heater temperature to 285C
M305 P0 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 0
;M305 P1 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 1
M305 P1 T100000 B4725 R4700 C7.06e-8 H0 L0
; 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
; Network
M550 PD-Bot ; Set machine name
M552 S1 ; Enable network
M587 S"millhaven" P"x" ; 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
; Fans
M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P2 S1 I0 F500 H1 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 S0 ; stop fan0 at start (part fan)
; Fans as led control
M106 P3 I-1 ; disable fan 3
M106 P4 I-1 ; disable fan 4
M106 P5 I-1 ; disable fan 5
; Set light on/white on startup
M42 P23 S255
M42 P24 S255
M42 P25 S255
; Custom settings are not configured
; Miscellaneous
M501 ; Load saved parameters from non-volatile memory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment