; Configuration file for Duet Ethernet (firmware version 1.20 or newer) ; executed by the firmware on start-up ; DBot type CoreXY printer, Duet 2 Ethernet no add-on boards, single extruder (e3D Titan) & Precision Piezo Z probe ; General preferences ; M111 P4 S1 ; Debugging on ; M111 S0 ; Debugging off G21 ; Work in millimetres G90 ; Send absolute coordinates... M83 ; ...but relative extruder moves M669 K1 ; Select CoreXY mode M555 P1 ; Set firmware compatibility to look like RepRap firmware ; Network M550 PDBot-Duet ; Set machine name ; M551 PA-Password ; Set password M540 PBE:EF:DE:AD:FE:ED ; Set MAC address M552 P192.168.0.170 S1 ; Enable network and set IP address M553 P255.255.255.0 ; Set netmask M554 P192.168.0.254 ; Set gateway M586 P0 S1 ; Enable HTTP M586 P1 S0 ; Enable FTP - Disabled M586 P2 S0 ; Enable Telnet - Disabled ; Configure Drives M569 P0 S0 ; Drive 0 goes backwards - X M569 P1 S0 ; Drive 1 goes backwards - Y M569 P2 S0 ; Drive 2 goes backwards - Z motor 1 M569 P3 S0 ; Drive 3 goes backwards - Z motor 2 (was Extruder 0) M569 P4 S0 ; Drive 4 goes backwards - Z motor 3 (was Extruder 1) M569 P5 S0 ; Drive 5 goes backwards - Extruder M584 X0 Y1 Z2:3:4 E5 ; set drive mapping M671 X-45:150:310 Y-95:310:-45 S5 ; leadscrews at Front left, Rear middle and Front right, S - Maximum error allowed before system rejects, Note Motor Connections MUST Match M92 X100 Y100 Z400 E800 ; Set movement steps per mm NOTE: put before M350 so doesn't need to be changed with change in micro-stepping M350 X32 Y32 Z32 E32 I1 ; Configure x32 micro-stepping with interpolatition M566 X2400 Y2400 Z600 E220 ; Set maximum instantaneous speed changes (mm/min) M203 X8000 Y8000 Z1800 E2400 ; Set maximum speeds (mm/min) M201 X800 Y800 Z200 E1000 ; Set accelerations (mm/s^2) M906 X1200 Y1200 Z1200 E1000 I10 ; Set motor currents (mA) and motor idle factor percentage M84 S30 ; Set idle timeout ; Axis Limits M208 X0:300 Y0:300 Z0:300 ; Set axis minima:maxima ; Endstops M574 X1 S1 P"!xstop" ; configure active-low endstop for low end on X via pin xstop M574 Y2 S1 P"!ystop" ; configure active-low endstop for low end on Y via pin ystop M574 Z1 S2 ; configure Z-probe endstop for low end on Z ; Z-Probe - Precision Piezo M558 P8 C"!zprobe.in" H10 F300 T36000 R1 A5 S0.075 ; Set probe type P Peizo, C Probe Pin & invert, H dive hight, F Probing Speed, T inter-probe-point speed, R recovery time, A number of Probes per point, S calculated difference G31 P500 X0 Y0 Z-0.085 ; set Z probe trigger value, offset and trigger height M557 X10:290 Y10:290 P3:3 ; Define mesh grid ; Heaters & Fans ; Bed M308 S0 P"bedtemp" Y"thermistor" A"Bed" T105000 B4138 C0 ; 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 B1 ; enable bang-bang mode for the bed heater M140 H0 ; map heated bed to heater 0 M143 H0 S180 ; set temperature limit for heater 0 to 180C M144 S1 ; set bed 'Active' ; Hot End M308 S1 P"e0temp" Y"thermistor" A"Hot End" T105000 B4725 C7.06e-8 ; configure sensor 1 as E3d thermistor on pin e0temp M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1 M143 H1 S290 ; set temperature limit for heater 1 to 290C M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit ; Fans M950 F0 C"fan1" Q1200 ; create fan 0 on pin fan0 and set its frequency ;M106 P0 S0 H-1 C"Part Cooler" ; set fan 0 value. Thermostatic control is turned off M106 P0 S0 H-1 C" " ; set fan 0 value. Thermostatic control is turned off, C is set to 'blank' to fool DWC as its crap system always shows tool fan.... M950 F1 C"fan0" Q1200 ; create fan 1 on pin fan1 and set its frequency M106 P1 S0 H1 T45 C"Hotend Cooler" ; set fan 1 value. Thermostatic control is turned on ; Case Lights - Uses Fan 2 M950 F2 C"fan2" Q500 ; Create fan 2 for case lights M106 P2 F100 S0.01 B0.00 C"Case Lights" ; Set Case LED's (Fan 2) to minimum ; Tools M563 P0 S" " D0 H1 F0:1 ; define tool 0 - basic does work G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C ; Automatic power saving M911 S22 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F10000" ; set voltage thresholds and actions to run on power loss ; Custom settings are not configured ; Miscellaneous M501 ; Load saved parameters from non-volatile memory T0 ; Select first tool M575 P1 B57600 S1 ; Set Baud rate for Panel Due ; G29 S1 ; Load & use Mesh Bed Level grid ; M376 H3 ; Apply bed leveling below level 3 ; M404 N1.75 D0.4 ; Filament width