; Configuration file for Duet WiFi (firmware version 3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v2.1.4 on Mon Jan 06 2020 13:06:19 GMT+0100 (Ora standard dell’Europa centrale)
; General preferences
G28 ; Home all axes
M111 S0 ; Debugging off
G21 ; Works in millimiters
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M555 P1 ; Set firmware compatibility to look like RepRap Firmware
M665 L400.25:400.25:400.25 R165 B160 H485 ; Set delta radius, diagonal rod length, printable radius and homed height (With extra glass 13/07/2020)
M666 X0 Y0 Z0 ; put your endstop adjustments here, or let auto calibration find them
M575 P1 B57600 S1 ; set paneldue communication parameters
; Network
M550 P"TEVO Little Monster" ; Set machine name
M552 S1 ; Enable network
M586 P0 S1 ; Enable HTTP
M586 P1 S1 ; Enable FTP
M586 P2 S0 ; Disable Telnet
; Drives
M569 P0 S0 ; physical drive 0 goes backwards
M569 P1 S0 ; physical drive 1 goes backwards
M569 P2 S0 ; physical drive 2 goes backwards
M569 P3 S0 ; physical drive 3 goes backwards
M584 X0 Y1 Z2 E3 ; set drive mapping
M579 X1.00806 Y1.007252 Z1.0040 ; Scale parameter for axes X, Y and Z calculated on 16/05/2020
M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
M92 X160.00 Y160.00 Z160.00 E819.338 ; set steps per mm
M566 X1200.00 Y1200.00 Z1200.00 E1200.00 ; set maximum instantaneous speed changes (mm/min)
M203 X18000.00 Y18000.00 Z18000.00 E1200.00 ; set maximum speeds (mm/min)
M201 X1000.00 Y1000.00 Z1000.00 E1000.00 ; set accelerations (mm/s^2)
M906 X1250 Y1250 Z1250 E1200 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout
; Axis Limits
M208 Z0 S1 ; set minimum Z
; Endstops
M574 X1 S1 P"xstop" ; configure active-high endstop for low end on X via pin xstop
M574 Y1 S1 P"ystop" ; configure active-high endstop for low end on Y via pin ystop
M574 Z1 S1 P"zstop" ; configure active-high endstop for low end on Z via pin zstop
; Z-Probe
M558 P8 R0.8 C"zprobe.in+zprobe.mod" H5 A5 F1200 T6000 ; set Z probe type to effector and the dive height + speeds (New setting from 15/05/2020)
;M558 P5 R0.4 C"zprobe.in+zprobe.mod" H1 F1200 T6000 ; set Z probe type to effector and the dive height + speeds (New setting from 10/01/2020)
;M558 P5 R0.4 C"zprobe.in+zprobe.mod" H5 F1200 T6000 ; set Z probe type to effector and the dive height + speeds (Original setting)
G31 P500 X0 Y0 Z-0.152 ; set Z probe trigger value, offset and trigger height
M557 R150 S15 ; define mesh grid (New setting from the old config.g)
;M557 R85 S15 ; define mesh grid (Original setting from configurator)
; Heaters
; Reference page : https://duet3d.dozuki.com/Wiki/Connecting_thermistors_or_PT1000_temperature_sensors
M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 R4700 A"Piatto" ; configure sensor 0 as thermistor on pin bedtemp
M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
M140 H0 ; define and create the bed heater (set on 13/05/2020, needed with RRF 3)
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M307 H0 B0 S1.00 ; disable bang-bang mode for the nozzle heater and set PWM limit
M308 S1 P"e0temp" Y"thermistor" T100000 B4725 R4375 C7.06e-8 A"Estrusore"; configure sensor 1 as thermistor on pin e0temp
M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
M143 H1 S280 ; set temperature limit for heater 1 to 280C
M307 H1 B0 S1.00 ; disable bang-bang mode for the nozzle heater and set PWM limit
; Fans
M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
M106 P0 C"Part cooling fan" S0 H-1 ; set fan 0 name and value. Thermostatic control is turned off
M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
M106 P1 C"Hotend fan" S1 H1 T45 ; set fan 1 name and value. Thermostatic control is turned on
; Tools
M563 P0 D0 H1 F-1 ; 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
; Filament run-out sensor
M591 D0 P2 C3 S1 ; Filament run-out sensor Input high when filament is in
; Automatic power saving
M911 S22 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss
; Miscellaneus
M375 ; Load the grid probing mesh
M501 ; read stored parameters from config override