; Configuration file for Duet Ethernet on Tronxy X5S ; General preferences G21 ; Work in millimetres G90 ; Send absolute coordinates... M83 ; ...but relative extruder moves ;M667 S1 ; Select coreXY , rev 2.02 and earlier M669 K1 ; Select CoreXY mode M555 P2 ; Set output to look like marlin ; Network M552 S1 ; Enable network M586 P0 S1 ; Enable HTTP M586 P1 S1 ; Enable FTP M586 P2 S1 ; Enable Telnet ; Stepper Drives M569 P1 S0 ; Drive 0 runs forwards, active low enable, (X) M569 P0 S1 ; Drive 1 runs forwards, active low enable, (Y) M569 P2 S1 ; Drive 2 runs backwards, active low enable, (Z1) M569 P3 S1 ; Drive 3 runs backwards, active low enable, (E0) M569 P4 S1 ; Drive 4 runs backwards, active low enable, (Z2 in the E1) ; Dual Z M584 X0 Y1 Z2:4 E3 ; Dual Z motors Z and E3 (extruder1 drive). Make sure Z drive is L/H stepper and E3 is R/H stepper ; Leadscrew positions: The measurement is taken from X=0, Y=0. Therefore X will be negative, Y positive and middle of bed = 160 M671 X-100:415 Y160:160 S2.0 ; Leadscrews at middle left and middle right (S0 is correction value) ;Drive settings M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation M92 X80.1 Y79.8 Z400 E400 ; Set steps per mm for 16 microsteps ;M350 X32 Y32 Z32 E128 ; Use to setup new microstepping (dont delete default 16 microstepping) M566 X600.00 Y600.00 Z12.00 E120.00 ; Set maximum instantaneous speed changes (mm/min) - Jerk M203 X18000.00 Y18000.00 Z180.00 E1500.00 ; Set maximum speeds (mm/min) M201 X3000.00 Y3000.00 Z100.00 E10000.00 ; set accelerations (mm/s^2) M906 X1000 Y1000 Z1000 E1100 I30 ; Motor currents - mine are 1.68amp, 85% = 1.42 M84 S30 ; Set idle timeout ; Axis Limits M208 X-15 Y-12 Z0 S1 ; Set axis minima (adjust to make X=0 and Y=0 the edges of the bed) M208 X310 Y310 Z380 S0 ; Set axis maxima (adjust to suit your machine) ; Endstops M574 X1 Y1 S0 ; Set active low endstops for X and Y M581 Z1 S1 T0 C0 ; Set Z1 endstop as an e-stop for Z protection if Z probe fails when probing the bed. ; Filament Run Out Sensor ;M591 D0 P1 C4 S1 ; Filament runout Sensor for Extruder E0 on E1 Endstop input P1 = signal HIGH. ; Z-Probe M574 Z1 S1 ; Set endstops controlled by probe ; M558: the P is probe type, H is dive height-the height before probing, A is max number of probing each point, S is tollerance when multi-probing. ;M558 P1 H3 F120 A10 S0.03 I0 M558 P5 H5 F120 T6000 I1 ; Set Z probe type to unmodulated and the dive height + speeds ; G31: the P is the reported Z value when triggered. X,Y are offset coordinates. Z is trigger height, you can decrease value if nozzle is too close ; or increase if too far away. G31 P500 X-30 Y-5 Z2.25 ;2.25 ; Mesh Grid ; The following M557 commands are not needed if you are using a bed.g file to perform bed compensation ;*** Adjust the XY coordinates in the following M557 commands to suit your build and the position of the Z probe M557 X10:280 Y10:280 S90 ; Define mesh grid ; Heaters M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0 (bed) M143 H0 S120 ; Set temperature limit for heater 0 to 90C ;M305 P1 T92000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1 (nozzle) M305 P1 T100000 B4092 R4700 ; Set thermistor + ADC parameters for heater 1 (nozzle) M143 H1 S280 ; Set temperature limit for heater 1 to 250C M307 H1 A299.8 C109.4 D4.0 S1.00 V12.3 B0 ; Autotune result for hotend M307 H0 A109.8 C457.8 D2.1 S1.00 V12.3 B0 ; Autotune result for bed ;Expansion pins M307 H2 A-1 C-1 D-1 ; Make heater2 on extruder2 available and use it for pwm led lighting ; Fans M106 P0 S0 H-1 C"Part Cooling" ; Set fan 0 value (Part Cooling) M106 P1 S255 I0 F259 L125 H1 T60:140. ; Below 60 deg C the fan is off. At 60 deg C the fan will come on at 50% then will ramp up to full full speed between 60 and 140 deg C and remain at 100% for any ; temperature above 140 ; Set fan 2 value (Duet mcu), PWM signal inversion and frequency. Thermostatic control is turned on, fan comes on at 40 deg and reaches full speed at 65 deg M106 P2 F500 T40:65 H100:101:102 ;CPU Temperature Calibration M912 P0 S-15.8 ; Tools M563 P0 D0 H1 S"Extruder" ; 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 ; Automatic power saving M911 S10 R11 P"M911 S10 R11 P*M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss ; Custom settings M42 P2 S255 ; Turn led lighting on full M98 PLevelLeadscrews.g ; Option to perform leadscrew levelling M98 PEnable Mesh Levelling ; Option to enable on start up