; Configuration file for Duet WiFi (firmware version 1.21)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool on Tue Oct 09 2018 13:27:56 GMT+0300
; General preferences
M80 ; Turns on the ATX power supply
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"BLV MGN CUBE Z-565" ; Set machine name
M669 K1 ; Select CoreXY mode - war 667
; Network
M552 S1 ; Enable network
M587 S"BlackIC" P"/Taschi99" ; 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
; Drives
M569 P0 S1 ; Drive 0 goes backwards blv: its was S1
M569 P1 S1 ; Drive 1 goes backwards blv: its was S1
M569 P2 S0 ; Drive 2 goes forwards
M569 P3 S0 ; Drive 3 goes backwards WAS 0
M584 X0 Y1 Z2 E4 ; NEW set drive mapping Z2 left, Z4 right
M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation war 16 16 16 1
M92 X200 Y200 Z400 E409.27 ; Set steps per mm for Bondtech. X200 Y200 Z400 E415 ; Kali: X198.51 Y198.90
M566 X700 Y700 Z24 E2000 ; Set maximum instantaneous speed changes (Jerk) (mm/min) Z240
M203 X18000 Y18000 Z250 E2000 ; Set maximum speeds (mm/min) z1000
M201 X3000 Y3000 Z100 E4000 ; Set accelerations (mm/s^2) z100
M906 X1600 Y1600 Z1600 E1600 I30 ; Set motor currents (mA) and motor idle factor in per cent z800
M84 S120 ; Set idle timeout
; Pressure advance
; M572 D0 S0.05 ; disabled Pressure advance
; Axis Limits
M208 X-22 Y22 Z0 S1 ; Set axis minima
M208 X301 Y310 Z500 S0 ; Set axis maxima
; Endstops
M574 X1 S1 P"xstop" ; configure active-high endstop for low end on X via pin xstop
M574 Y2 S1 P"ystop" ; configure active-high endstop for high end on Y via pin ystop
; Filament sensor
M591 D0 P1 C3 S1 ; Set Filament sensor Simple type (High) for extruder drive 0, connected to endstop input 3 (E0)
; Z-Probe
M950 S0 C"exp.heater3" ; create servo pin 0 for BLTouch
M558 P1 C"^zprobe.in" H5 F300 T9000 ; set Z probe type to bltouch and the dive height + speeds
G31 P500 X0 Y0 Z0.74 ; set Z probe trigger value, offset and trigger height
M557 X25:300 Y60:300 S80 ; define mesh grid
; Heaters
M308 S0 P"bedtemp" Y"thermistor" A"Bed" T100000 B4725 C0.0000000706 R4700 ; 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
M307 H0 A156.6 C925.3 D2.2 V23.4 B0 ; Heatbed PID Heater 0 model: gain 159.6, time constant 925.3, dead time 2.2, max PWM 1.00, calibration voltage 23.4, mode PID
M140 H0 ; map heated bed to heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M308 S1 P"e0temp" Y"thermistor" A"Hotend" T100000 B4725 C0.0000000706 R4700 ; 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
M307 H1 A269.2 C128.8 D7.6 V23.7 S0.9 B0 ; Hotend PID .4mm Heater 1 model: gain 269.2, time constant 128.8, dead time 7.6, max PWM 0.90, calibration voltage 23.7, mode PID
M143 H1 S270 ; set temperature limit for heater 0 to 260C
M308 S2 P"mcu-temp" Y"mcu-temp" A"Duet Board" ; Configure MCU sensor
; Fans
M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
M950 F1 C"fan2" Q500 ; create fan 1 on pin fan1 and set its frequency
M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on
; Tools
M563 P0 S"E3Dv6" D0 H1 F0 ; 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
M564 H0 ; Let the Jog buttons work blv: added to allow jog buttons
; Miscellaneous
M575 P1 S1 B57600 ; enable support for PanelDue
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss