Duet Wifi Firmware version 2.02(RTOS) (2018-12-24b1)
Config.g
; Configuration file for Duet WiFi
; Communication and general
M111 S0 ; Debug off
M550 PDarthVader ; Machine name (can be anything you like)
M551 PXXXX ; Machine password (currently not used)
M552 S1 ; Enable WiFi
M555 P2 ; Set output to look like Marlin
M575 P1 B57600 S1 ; Set auxiliary serial port baud rate and require checksum (for PanelDue)
; Axis and motor configuration
M584 X0 Y1 Z2:3 E4 P3 ; Dual Z Homing
M671 X-60:460 Y200:200 S10 ; leadscrews offset for leveling
M569 P0 S0 ; Drive 0 goes forwards (change to S0 to reverse it)X Axis
M569 P1 S1 ; Drive 1 goes backwards Y Axis
M569 P2 S0 ; Drive 2 goes forwards Z Axis
M569 P3 S0 ; Drive 3 goes forwards
M569 P4 S0 ; Drive 4 goes forwards
M350 X16 Y16 Z16 E16 I1 ; set 16x microstepping with interpolation
; Endstops
M574 X1 Y2 Z1 S1 ; set homing switch configuration (Y homing switch only, at low end, active high)
M906 X800 Y800 Z1275 U1275 E600 ; Set motor currents (mA)
M143 S300 ; Set max temp
; Motion
M564 H0 ; 1/9/19 If you want to allow axis movement prior to homing
M201 X2000 Y2000 Z100 U100 E1000 ; Accelerations (mm/s^2) - test
M203 X180000 Y180000 Z240000 U240000 E3600 ; Maximum speeds (mm/min)
M566 X900 Y900 Z30 U30 E1200 ; Maximum jerk speeds mm/minute - Current 1/9/19
; Homing
M208 X390 Y380 Z400.5 ; set axis maxima and high homing switch positions (adjust to suit your machine)
M208 X0 Y0 Z-0.5 S1 ; set axis minima and low homing switch positions (adjust to make X=0 and Y=0 the edges of the bed)
M92 X80.48 Y80.48 Z398.6975 U398.6975 ; set axis steps/mm
M92 E389.5 ; set extruder 0 and 1 steps/mm
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
; Pressure Advance
M572 D0 S0.1
; Mesh Compensation
G29 S1
; Thermistors
M305 P0 T100000 B4550 C0 R4700 ; Set thermistor + ADC parameters for heater 0
M305 P1 B4725 C7.06e-8 ; Regular E3Dv6 Thermistor - Set thermistor + ADC parameters for heater 1
; M305 P1 X200 ; PT100
M570 H1 P20 T60 ; Hot end 1. Persist 5. Temp variance 15.
; Fans
M106 P1 T35 H1 ; thermostatic mode for fan 1 - turns on at 35C
; Tool definitions
M563 P0 D0 H1 ; Define tool 0
G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
; Z probe and compensation definition
M307 H3 A-1 C-1 D-1
M557 X40:360 Y40:360 S100 ; probe from X=40 to 360, Y=40 to 360mm with a mesh spacing of 80mm
M558 P9 X0 Y0 Z1 H15 F300 T5000
G31 X17 Y-27 Z1.2 P25 ; More Z = closer
M208 S1 Z-0.2 ; set minimum Z
;
T0 ; select first hot end
; Configure heater fault detection
M570 H1 P10 T15