Help for Duet 3 mini config for sensorless
-
Hi
I have received my duet, and I want to configure the sensorless and use stealthchop with firmware 3.2Could you see if my config files have issue ?
resume.g
; ========================================================================================================= ; ; called before a print from SD card is resumed ; ; ========================================================================================================= ; M98 P"current-sense-normal.g" ; Ensure the drivers current and sensitivity is set for normal routines G1 R1 X0 Y0 Z5 F6000 ; go to 5mm above position of the last print move G1 R1 X0 Y0 ; go back to the last print move M83 ; relative extruder moves M121 ; Recover the last state pushed onto the stack.
start.g
M80 ; power on 24V power supply G4 P1000 ; wait 1000ms M144 S0 ; set bed to standby temperature
bed.g
; ========================================================================================================= ; ; bed.g ; called to perform automatic bed compensation via G32 ; ; ========================================================================================================= ; G30 P0 X0 Y310 Z-99999 ; probe near an adjusting screw G30 P1 X170 Y80 Z-99999 ; probe near an adjusting screw G30 P2 X300 Y310 Z-99999 S3 ; probe near an adjusting screw and report adjustments needed G28 ; Home-all M561 ; clear any bed transform G29 S2 ; Clear height map G29 ; probe the bed and enable compensation G1 X0 Y0 F6000 ; Go to X0 Y0
config.g
; ========================================================================================================= ; ; Configuration file for Duet WiFi (firmware version 3) Version 20201129 ; for 0.9° motors on xy ; extruder heater connected on E1 ; BLTOUCH ; ; for CaribouDuet320 ; https://github.com/Caribou3d/CaribouDuet-Configuration-and-Macros/tree/main/Bondtech-E3d-Thermistor/sys ; ; ========================================================================================================= ; Network settings ; ========================================================================================================= ; M550 P"Hypercube" ; set printer name M669 K1 ; switch to CoreXY mode ; <<<<<<< Updated upstream M552 S1 P192.168.1.34 ; enable network, set IP ; enable network >>>>>>> Stashed changes M586 P0 S1 ; enable HTTP M586 P1 S1 ; enable FTP M586 P2 S0 ; disable Telnet M575 P1 S1 B57600 ; Enable support for PanelDue ; ; ========================================================================================================= ; Drives ; ========================================================================================================= ; ; value to be added: ; tbl 2 ; toff 3 ; hend 3 ; hstrt 5 M569 P0 S0 D2 F3 B36 Y5:3 ; Drive 0 goes forwards (X) spread cycle M569 P1 S0 D2 F3 B36 Y5:3 ; Drive 1 goes forwards (Y) spread cycle M569 P2 S0 D2 F3 B36 Y5:3 ; Drive 2 goes forwards (Z) spread cycle M569 P3 S1 D2 F3 B36 Y5:3 ; Drive 3 goes backwards (E0) spread cycle M569 P4 S0 D2 F3 B36 Y5:3 ; Drive 4 goes forwards (E1 or Z) spread cycle M584 X0 Y1 Z2:4 E3 ; Set drive mapping M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation M92 X160 Y160 Z1600 E415 ; Set steps per mm with 1/16 and BMG extruder with 1.8° stepper on XY, 1.8° on Z, leadscrew pas 2mm ;M566 X720 Y720 Z24 E400 ; jerk, Set maximum instantaneous speed changes (mm/min) ;M203 X18000 Y18000 Z300 E3600 ; Set maximum speeds (mm/min) ;M201 X1500 Y1500 Z250 E3000 ; Set accelerations (mm/s^2) M201 X500.00 Y500.00 Z100.00 E500.00 ; set accelerations (mm/s^2) M203 X9000.00 Y9000.00 Z1000.00 E3600.00 ; set maximum speeds (mm/min) M204 P500.0 T500.0 ; set print and travel accelerations (mm(s^2) M566 X480.00 Y480.00 Z48.00 E300.00 ; set maximum instantaneous speed changes (mm/min) ;M906 X1400 Y1400 Z1400 E600 I30 ; Set peak motor currents to 85% (mA) and motor idle factor ;M906 X1100 Y1100 Z800 E600 I40 ; Set peak motor currents between 50% to 85% (mA) and motor idle factor M906 X800 Y800 Z800 E600 I40 ; Set peak motor currents between 50% to 85% (mA) and motor idle factor M84 S30 ; Set idle timeout ; Axis Limits M208 X0:300 Y-3:300 Z0:190 ; Set axis minima maxima ; define the X and Y coordinates of the adjusting screws M671 X-10:176.5:310 Y320:-0.1:320 P0.5 ; adjusting screws at rear left, front middle and rear right, thread pitch 0.5mm ; X Y Endstops M574 X1 S3 ; configure active-high endstop for low end on X via pin xstop M574 Y1 S3 ; configure active-high endstop for low end on Y via pin ystop M574 Z1 S2 ; configure Z-probe endstop for low end on Z M574 Z2 S3 ; configure sensorless endstop for high end on Z ; Stallguard Sensitivy M915 X S2 F0 H400 R0 ; Set X axis Sensitivity M915 Y S1 F0 H400 R0 ; Set Y axis Sensitivity M915 Z S0 F0 H200 R0 ; Set Z axis Sensitivity ; run-out filament detector M591 D0 P3 C"e0stop" S1 R20:200 L25.5 E20.0 ; Duet3D rotating magnet sensor for extruder drive 0 is connected to E0 endstop input, enabled, sensitivity 25.5mm.rev, 20% to 200% tolerance, 20mm detection length ; Z-Probe M950 S0 C"exp.8" ; create servo 0 pin 8 for BLTouch M558 P9 C"zprobe.in+zprobe.mod" F150 H5 R0.5 T3500 A10 S0.03 B0 ; set Z probe type to bltouch and the dive height + speeds, bed on G31 P25 X34.5 Y0.2 Z3.400 ; Set Z probe trigger value, offset and trigger height ;M557 X40:300 Y10:260 P20 ; Set Z probe point or define probing grid 20x20 points per axis M557 X40:300 Y10:260 P3 ; Set Z probe point or define probing grid 3x3 points per axis ; Thermal Sensors and heaters for bed M308 S0 P"bedtemp" Y"thermistor" T100000 B3950 A"Bed" ; 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 S0 R50 ; set temperature for bed 50deg in standby M307 H0 A167.0 C982.2 D5.1 S1.00 V23.1 B0 ; Disable bang-bang mode for the bed heater and set PWM limit M143 H0 S135 A2 ; switch off heater temporarily if it exceeds 135°C M143 H0 S140 A0 ; raise a heater fault if it exceeds 140°C M144 ; put bed heater on standby temperature ; Thermal Sensors and heaters for hotend M308 S1 P"spi.cs1" Y"rtd-max31865" F50 A"Hotend" ; configure sensor 1 as pt100 on spi pin cs1, filter 50Hz M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1 M307 H1 A771.7 C282.9 D6.2 S1.00 V24.0 B0 ; Disable bang-bang mode for the nozzle heater and set PWM limit M143 H1 S275 A2 ; switch off heater temporarily if it exceeds 275°C M143 H1 S285 A0 ; raise a heater fault if it exceeds 285°C ; Thermal Sensors and heaters for TMC drivers M308 S2 Y"drivers" A"Drivers" ; configure sensor 2 as temperature warning and overheat flags on the TMC2660 on Duet ; Thermal Sensors and heaters for water temperature M308 S3 P"e1temp" Y"thermistor" T10000 B3950 A"Water" ; configure sensor 3 as thermistor on pin e1temp for temp water ; Thermal Sensors and heaters for processor M308 S4 Y"mcu-temp" A"Processor" ; configure sensor 4 for cpu temperature ; Calibrate MCU Temperature M912 P0 S6.0 ; Fans M950 F0 C"fan0" Q100 ; create fan 0 on pin fan0 and set its frequency for tool 0 M106 P0 S0 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off M950 F1 C"!fan1+^exp.pb6" Q100 ; create fan 1 on pin fan1 and set its frequency, read pwm M106 P1 S1.0 T45 H1 C"Pump" ; Set fan 1/pump value to 100% when temp >45C ; Tools M563 P0 D0 H1 ; Define tool 0 on extruder 0, heater 1 fan 0 G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets G10 P0 R0 S160 ; Set initial tool 0 active and standby temperatures to 160C T0 ; Select first tool ; Pressure Advance ;M572 D0 S0.8 ; enable pressure advance 0.8mm ; firmware retractation (activate in slicer) ;M207 S4.5 F1500 Z0.5 ; retract 4.5mm 25mm/s z lift 0.5mm ; Automatic saving after power loss is enabled M911 S21.0 R23.0 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Miscellaneous M564 H0 ; allow movement of axes that have not been homed M376 H4 ; Set bed compensation taper to 4mm ; workaround to show ATX button M81 S1 ; 24V PSU OFF M501 ; Read stored parameters from EEPROM G90 ; send absolute coordinates... M83 ; ... but relative extruder moves
homeall.g
; homeall.g ; called to home all axes ; ; generated by RepRapFirmware Configuration Tool v3.1.3 on Thu Jun 11 2020 20:53:46 GMT+0200 (heure d’été d’Europe centrale) M80 ; power on 24V power supply G4 P1000 ; wait 1000ms ; ========================================================================================================= ; ; Home XYZ Axis ; ; ========================================================================================================= ; M98 P"current-sense-homing.g" ; Ensure the current and sensitivity is set for homing routines. ; G1 H2 X0.5 Y-0.5 F10000 ; energise motors to ensure they are not stalled M400 ; wait for current moves to finish M913 X40 Y40 ; drop motor current to 40%/40% G4 P200 ; wait 200ms ; G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position M400 ; wait for current moves to finish ; ; ========================================================================================================= ; Home X Axis ; ========================================================================================================= ; G1 H1 X5 F1000 ; move slowly away G1 H1 X-260 F3000 ; move quickly to X axis endstop and stop there (first pass) G1 H2 X5 F1000 ; go back a few mm G1 H1 X-10 F3000 ; move slowly to X axis endstop once more (second pass) ; ; ========================================================================================================= ; Home Y Axis ; ========================================================================================================= ; M400 ; wait for current moves to finish G1 H1 Y5 F1000 ; move slowly away G1 H1 Y-260 F3000 ; move quickly to X axis endstop and stop there (first pass) G1 H2 Y5 F1000 ; go back a few mm G1 H1 Y-10 F3000 ; move slowly to X axis endstop once more (second pass) ; M400 ; wait for current moves to finish M913 X100 Y100 ; return X & Y motor G4 P200 ; wait 200ms ; G90 ; absolute positioning ; ; ; ========================================================================================================= ; Home Z Axis ; ========================================================================================================= ; G90 ; absolute positioning M280 P3 S160 I1 ; Alarm Release and Push-Pin UP G1 X110 Y145 F6000 ; go to first probe point G30 ; home Z by probing the bed G1 Z0.15 F100 ; move Z to origin G91 ; relative positioning G1 Z1 F100 ; lift Z relative to current position G90 ; absolute positioning M400 ; Wait for current moves to finish ; M98 P"current-sense-homing.g" ; Ensure the current and sensitivity is set for homing routines. M569 P0 S0 D3 F8 H50 V50 ; Drive 0 goes forwards (X) stealthChop M569 P1 S0 D3 F8 H50 V50 ; Drive 1 goes forwards (Y) stealthChop M569 P2 S0 D3 F8 H50 V50 ; Drive 2 goes forwards (Z) stealthChop M569 P3 S1 D3 F4 H50 V50 ; Drive 3 goes backwards (E0) stealthChop M569 P4 S0 D3 F4 H50 V50 ; Drive 4 goes forwards (E1 or Z) stealthChop M915 P0 T50 ; Drive 0 set coolstep M915 P1 T50 ; Drive 1 set coolstep M915 P2 T50 ; Drive 2 set coolstep M915 P3 T50 ; Drive 3 set coolstep M915 P4 T50 ; Drive 4 set coolstep
homex.g
; homex.g ; called to home the X axis ; ; generated by RepRapFirmware Configuration Tool v3.1.3 on Thu Jun 11 2020 20:53:46 GMT+0200 (heure d’été d’Europe centrale) M80 ; power on 24V power supply G4 P1000 ; wait 1000ms ; ========================================================================================================= ; ; Home X Axis ; ; ========================================================================================================= ; M98 P"current-sense-homing.g" ; Ensure the current and sensitivity is set for homing routines. ; G1 H2 X0.5 Y-0.5 F10000 ; energise motors to ensure they are not stalled M400 ; wait for current moves to finish M913 X40 Y40 ; drop motor current to 40% G4 P200 ; wait 200ms ; G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position M400 ; wait for current moves to finish ; G1 H1 X5 F1000 ; move slowly away G1 H1 X-260 F3000 ; move quickly to X axis endstop and stop there (first pass) G1 H2 X5 F1000 ; go back a few mm G1 H1 X-10 F3000 ; move slowly to X axis endstop once more (second pass) G1 H2 Z-5 F6000 ; lower Z again ; M400 ; wait for current moves to finish M913 X100 Y100 ; return X & Y motor currents to 100% G4 P200 ; wait 200ms ; G90 ; absolute positioning ;
homey.g
; homey.g ; called to home the Y axis ; ; generated by RepRapFirmware Configuration Tool v3.1.3 on Thu Jun 11 2020 20:53:46 GMT+0200 (heure d’été d’Europe centrale) M80 ; power on 24V power supply G4 P1000 ; wait 1000ms ; ========================================================================================================= ; ; Home Y Axis ; ; ========================================================================================================= ; M98 P"current-sense-homing.g" ; Ensure the current and sensitivity is set for homing routines. ; G1 H2 X0.5 Y-0.5 F10000 ; energise motors to ensure they are not stalled M400 ; wait for current moves to finish M913 X40 Y40 ; drop motor current to 40%/40% G4 P200 ; wait 200ms ; G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position M400 ; wait for current moves to finish ; G1 H1 Y5 F1000 ; move slowly away G1 H1 Y-215 F3000 ; move quickly to X axis endstop and stop there (first pass) G1 H2 Y5 F1000 ; go back a few mm G1 H1 Y-10 F3000 ; move slowly to X axis endstop once more (second pass) G1 H2 Z-5 F6000 ; lower Z again ; M400 ; wait for current moves to finish M913 X100 Y100 ; return X & Y motor currents to 100% G4 P200 ; wait 200ms ; G90 ; absolute positioning ;
-
homez.g
; homez.g ; called to home the Z axis ; ; generated by RepRapFirmware Configuration Tool v3.1.3 on Thu Jun 11 2020 20:53:46 GMT+0200 (heure d’été d’Europe centrale) M80 ; power on 24V power supply G4 P1000 ; wait 1000ms ; ========================================================================================================= ; ; Home XYZ Axis ; ; ========================================================================================================= ; M98 P"current-sense-homing.g" ; Ensure the current and sensitivity is set for homing routines. ; G1 H2 X0.5 Y-0.5 F10000 ; energise motors to ensure they are not stalled M400 ; wait for current moves to finish M913 X40 Y40 ; drop motor current to 40%/40% G4 P200 ; wait 200ms ; G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position M400 ; wait for current moves to finish ; ; ========================================================================================================= ; Home X Axis ; ========================================================================================================= ; G1 H1 X5 F1000 ; move slowly away G1 H1 X-260 F3000 ; move quickly to X axis endstop and stop there (first pass) G1 H2 X5 F1000 ; go back a few mm G1 H1 X-10 F3000 ; move slowly to X axis endstop once more (second pass) ; ; ========================================================================================================= ; Home Y Axis ; ========================================================================================================= ; M400 ; wait for current moves to finish G1 H1 Y5 F1000 ; move slowly away G1 H1 Y-260 F3000 ; move quickly to X axis endstop and stop there (first pass) G1 H2 Y5 F1000 ; go back a few mm G1 H1 Y-10 F3000 ; move slowly to X axis endstop once more (second pass) ; M400 ; wait for current moves to finish M913 X100 Y100 ; return X & Y motor G4 P200 ; wait 200ms ; G90 ; absolute positioning ; ; ; ========================================================================================================= ; Home Z Axis ; ========================================================================================================= ; G90 ; absolute positioning G1 X150 Y80 F6000 ; go to first probe point G30 ; home Z by probing the bed G1 Z0.15 F100 ; move Z to origin G91 ; relative positioning G1 Z1 F100 ; lift Z relative to current position G90 ; absolute positioning M400 ; Wait for current moves to finish
current-sense-homing.g
; ========================================================================================================= ; ; Set the current and sensitivity for homing, non-printing, routines ; ; ========================================================================================================= ; M915 X S2 F0 H400 R0 ; Set the X axis sensitivity. M915 Y S2 F0 H400 R0 ; Set the Y axis sensitivity. M913 X30 Y30 Z60 ; Set the X, Y, and Z drivers current percentage for non-print moves, per config.g. ; ; =========================================================================================================
current-sense-normal.g
; ========================================================================================================= ; ; Set the current and sensitivity for normal routines ; ; ========================================================================================================= ; M913 X100 Y100 Z100 ; Set the X, Y, and Z drivers to 100% of their normal current per config.g. M915 X S3 F0 H200 R0 ; Set the X axis sensitivity. M915 Y S3 F0 H200 R0 ; Set the Y axis sensitivity. ; ; =========================================================================================================
primeLine.g
; ========================================================================================================= ; ; Print prime-line at a 'randomized' Y position from -1.1 to -2.9 ; ; ========================================================================================================= ; Charge! tune M400 ; Finish all moves, clear the buffer. G4 S1 M300 P200 S523.25 G4 P200 M300 P200 S659.25 G4 P200 M300 P200 S739.99 G4 P250 M300 P285 S880.00 G4 P450 M300 P285 S880.00 G4 P285 M300 P625 S1108.73 G4 S1 M400 G1 X0 Z0.6 Y{-2+(0.1*(floor(10*(cos(sqrt(sensors.analog[0].lastReading * state.upTime))))))} F3000.0; G92 E0.0 ; Reset the extrusion distance. G1 E8 ; Purge Bubble. G1 X60.0 E11.0 F1000.0 ; Intro line part 1. G1 X120.0 E16.0 F1000.0 ; Intro line part 2. G1 X122.0 F1000.0 ; Wipe 2mm of filament. G92 E0.0 ; Reset the extrusion distance. M400 ; Finish all moves, clear the buffer ; ; =========================================================================================================
-
In bed.g you should probably use M561 at the start of the file.