; Configuration file for Duet WiFi (firmware version 2.03)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Fri Mar 27 2020 09:56:13 GMT-0400 (Eastern Daylight Time)

; General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Voron 2.2" ; set printer name

M667 S1 ; select CoreXY mode

; Network
M552 S-1
G4 S3
M552 S0
G4 S5
M587 S"Rogers" P"QcRt34E5g"
M552 S1 ; enable network
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet

; Drives
M569 P0 S1 ; physical drive 0 goes forwards
M569 P1 S1 ; physical drive 1 goes forwards
M569 P2 S1 ; physical drive 2 goes forwards
M569 P3 S0 ; physical drive 3 goes forwards
M569 P4 S1 ; physical drive 4 goes forwards
M569 P5 S1 ; physical drive 5 goes forwards
M569 P6 S0 ; physical drive 6 goes forwards
M584 X0 Y1 Z2:3:4:6 E5 ; set drive mapping
M671 X-55:-55:305:305 Y-7:320:320:-7 S10 ; set positions of Z belts
M350 X16 Y16 Z16 E16 I1 ; configure microstepping without interpolation
M92 X78.3 Y79.05 Z320.98 E411.72 ; set steps per mm
M566 X600.00 Y600.00 Z3600 E900.00 ; set maximum instantaneous speed changes (mm/min)
M203 X18000.00 Y18000.00 Z18000.00 E7500 ; set maximum speeds (mm/min)
M201 X1000.00 Y1000.00 Z60 E10000.00 ; set accelerations (mm/s^2)
M906 X1200 Y1200 Z1200 E1000 I70 ; 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 X280 Y300 Z260 S0 ; set axis maxima

; Endstops
M574 X2 Y2 S1 ; set active high endstops
M574 Z1 S2 ; set endstops controlled by probe

; Z-Probe
M558 P5 H5 F120 T7200 R0.1 ; set Z probe type to switch and the dive height + speeds
G31 P500 X0 Y-25 Z4.6 ; set Z probe trigger value, offset and trigger height
M557 X20:260 Y-5:210 S120:107.5 ; define mesh grid

; Heaters
M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
M307 H1 A284.6 C91.0 D2.1 V12.1 B0
M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M305 P1 T100000 B4138 R4700 X3 ; set thermistor + ADC parameters for heater 1 and remap it to channel 3
M143 H1 S280 ; set temperature limit for heater 1 to 280C

; Fans
M106 P0 S1 I0 F500 H1 T45 ; set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P1 S0 I0 F500 H-1 ; set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P2 S0 I0 F500 H-1 ; set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off

; Tools
M563 P0 D0 H1 F1:2 ; 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

; Custom settings are not defined