Homing issues on a Delta with Duet 2



  • Hi there!

    I've recently joined the duet fanclub as an owner, and I really do like the adventure that this board has taken me on!
    The patient is an FLSUN QQ-S Pro, and after getting the wiring done, work on the proper configuration has started, and of course, being a newbie, I've hit a roadblock I can't seem to get over...

    The basic problem is that when homing, the endstops don't stop the tower from pushing forward and tries to keep going. Here's the twist: according to M119, all the endstops are in their proper state and when I manually trigger each endstop and M119 again, the changes are reflected. According to M119 every endstop is in working order.

    I'm happy to post any and all config files if that helps!


  • Moderator

    Post your config.g and homedelta.g



  • Thank you for looking into this 🙂

    The config came from the online configuration tool, delta parameters came from an "old" mks_robin config file for the QQ-S.

    Only the Z-probe switch has been inverted through manual editing.

    The M119 log:

    10/19/2020, 3:58:23 PM: m119: Endstops - X: not stopped, Y: not stopped, Z: not stopped, Z probe: not stopped
    10/19/2020, 3:58:34 PM: m119: Endstops - X: not stopped, Y: not stopped, Z: at min stop, Z probe: not stopped
    10/19/2020, 3:58:43 PM: m119: Endstops - X: at min stop, Y: not stopped, Z: not stopped, Z probe: not stopped
    10/19/2020, 3:58:52 PM: m119: Endstops - X: not stopped, Y: at min stop, Z: not stopped, Z probe: not stopped
    10/19/2020, 3:59:13 PM: m119: Endstops - X: not stopped, Y: at min stop, Z: not stopped, Z probe: at min stop
    

    config.g

    ; Configuration file for Duet WiFi (firmware version 2.03)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Mon Oct 19 2020 11:02:18 GMT+0200 (Central European Summer Time)
    
    ; General preferences
    G90                                                ; send absolute coordinates...
    M83                                                ; ...but relative extruder moves
    M550 P"Legionare"                                  ; set printer name
    M665 R130 L280 B130 H370                           ; Set delta radius, diagonal rod length, printable radius and homed height
    M666 X0 Y0 Z0                                      ; put your endstop adjustments here, or let auto calibration find them
    
    ; Network
    M552 S1                                            ; enable network
    M586 P0 S1                                         ; enable HTTP
    M586 P1 S0                                         ; disable FTP
    M586 P2 S0                                         ; disable Telnet
    
    ; Drives
    M569 P0 S0                                         ; physical drive 0 goes forwards
    M569 P1 S0                                         ; physical drive 1 goes forwards
    M569 P2 S0                                         ; physical drive 2 goes forwards
    M569 P3 S0                                         ; physical drive 3 goes forwards
    M584 X0 Y1 Z2 E3                                   ; set drive mapping
    M350 X16 Y16 Z16 E16 I1                            ; configure microstepping with interpolation
    M92 X100.00 Y100.00 Z100.00 E417.00                ; set steps per mm
    M566 X1200.00 Y1200.00 Z1200.00 E1200.00           ; set maximum instantaneous speed changes (mm/min)
    M203 X12000.00 Y12000.00 Z12000.00 E12000.00       ; set maximum speeds (mm/min)
    M201 X1000.00 Y1000.00 Z1000.00 E1000.00           ; set accelerations (mm/s^2)
    M906 X1000 Y1000 Z1000 E800 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 Y1 Z1 S1                                   ; set active low and disabled endstops
    
    ; Z-Probe
    M558 P4 I1 H5 F120 T6000                              ; set Z probe type to switch and the dive height + speeds
    G31 P500 X0 Y0 Z16.2                               ; set Z probe trigger value, offset and trigger height
    M557 R85 S20                                       ; define mesh grid
    
    ; Heaters
    M305 P0 T100000 B4138 R4700                        ; set thermistor + ADC parameters for heater 0
    M143 H0 S120                                       ; set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4138 R4700                        ; set thermistor + ADC parameters for heater 1
    M143 H1 S260                                       ; set temperature limit for heater 1 to 260C
    
    ; Fans
    M106 P0 C"Effector" S0 I0 F500 H-1                 ; set fan 0 name, value, PWM signal inversion and frequency. Thermostatic control is turned off
    
    ; Tools
    M563 P0 S"HotEnd" 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 are not defined
    
    ; Miscellaneous
    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
    

    homedelta.g

    ; homedelta.g
    ; called to home all towers on a delta printer
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Mon Oct 19 2020 11:02:18 GMT+0200 (Central European Summer Time)
    G91                        ; relative positioning
    G1 H1 X455 Y455 Z455 F1800 ; move all towers to the high end stopping at the endstops (first pass)
    G1 H2 X-5 Y-5 Z-5 F1800    ; go down a few mm
    G1 H1 X10 Y10 Z10 F360     ; move all towers up once more (second pass)
    G1 Z-5 F6000               ; move down a few mm so that the nozzle can be centred
    G90                        ; absolute positioning
    G1 X0 Y0 F6000             ; move X+Y to the centre
    

  • Moderator

    @Meki said in Homing issues on a Delta with Duet 2:

    ; Endstops M574 X1 Y1 Z1 S1 ; set active low and disabled endstops

    This should be M574 X2 Y2 Z2 S1 for high end endstops.

    If you're a new user to Duet and this is a new build, it might be a good time to jump to RRF v3.1.1 since you're getting a fresh config from the config tool anyway.

    Updating the firmware is easy as uploading two zip files.

    https://github.com/Duet3D/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip

    https://github.com/Duet3D/RepRapFirmware/releases/download/3.1.1/Duet2and3Firmware-3.1.1.zip

    First upload the 3.0 zip file as is without extracting. Then after it updates, do the same for 3.1.1 zip file.

    Then you can upload the config file set from the web tool for RRF3.



  • @Meki said in Homing issues on a Delta with Duet 2:

    M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
    M305 P1 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 1

    your thermistor settings are wrong. look up the correct beta value in your thermistor documentation.



  • @Phaedrux said in Homing issues on a Delta with Duet 2:

    M574 X2 Y2 Z2 S1

    Well, I've upgraded to RRF 3, had a little issue with the iap4e.bin file, bot solved it... I'm now running RRF 3.1.1, but still the grinding is there on the endstops and my z-probe has stopped producing any results... it's locked to at min stop... at least the endstops say at max stop when triggered manually...

    So, z-probe broke, and the towers still want to blow off... 😢

    I'm guessing that the z-probe pin now expects to be on the z-probe-in pin instead of e0_stp as in the RRF2...

    @Veti Thanks, but I've got no idea what type of thermistor is in place... FLSUN has been making changes and documentation is scarce to say the least... at least it's a cartridge type instead of the original bare glass bead version...



  • Can you post your updated config.g and homedelta.g please



  • https://github.com/MarlinFirmware/Configurations/blob/import-2.0.x/config/examples/delta/FLSUN/QQ-S/Configuration.h

    marlin says its
    1 : 100k thermistor - best choice for EPCOS 100k (4.7k pullup)



  • @jay_s_uk
    config.g

    ; Configuration file for Duet WiFi (firmware version 3)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 20 2020 07:47:37 GMT+0200 (Central European Summer Time)
    
    ; General preferences
    G90                                                ; send absolute coordinates...
    M83                                                ; ...but relative extruder moves
    M550 P"Legionare"                                  ; set printer name
    M665 R130 L280 B130 H370                           ; Set delta radius, diagonal rod length, printable radius and homed height
    M666 X0 Y0 Z0                                      ; put your endstop adjustments here, or let auto calibration find them
    
    ; Network
    M552 S1                                            ; enable network
    M586 P0 S1                                         ; enable HTTP
    M586 P1 S0                                         ; disable 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
    M350 X16 Y16 Z16 E16 I1                            ; configure microstepping with interpolation
    M92 X100.00 Y100.00 Z100.00 E417.00                ; set steps per mm
    M566 X1200.00 Y1200.00 Z1200.00 E1200.00           ; set maximum instantaneous speed changes (mm/min)
    M203 X12000.00 Y12000.00 Z12000.00 E12000.00       ; set maximum speeds (mm/min)
    M201 X1000.00 Y1000.00 Z1000.00 E1000.00           ; set accelerations (mm/s^2)
    M906 X1000 Y1000 Z1000 E800 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 X2 S1 P"xstop"                                ; configure active-high endstop for high end on X via pin xstop
    M574 Y2 S1 P"ystop"                                ; configure active-high endstop for high end on Y via pin ystop
    M574 Z2 S1 P"zstop"                                ; configure active-high endstop for high end on Z via pin zstop
    
    ; Z-Probe
    M558 P4 C"^zprobe.in" I1 H5 F120 T6000             ; set Z probe type to switch and the dive height + speeds
    G31 P500 X0 Y0 Z16.2                               ; set Z probe trigger value, offset and trigger height
    M557 R85 S20                                       ; define mesh grid
    
    ; Heaters
    M308 S0 P"bedtemp" Y"thermistor" T100000 B4138     ; 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 S1.00                                   ; enable bang-bang mode for the bed heater and set PWM limit
    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" T100000 B4138      ; 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 B0 S1.00                                   ; disable bang-bang mode for heater  and set PWM limit
    
    ; Fans
    M950 F0 C"fan0" Q500                               ; create fan 0 on pin fan0 and set its frequency
    M106 P0 C"Effector" S0 H-1                         ; set fan 0 name and value. Thermostatic control is turned off
    
    ; Tools
    M563 P0 S"HotEnd" 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 are not defined
    
    ; Miscellaneous
    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
    T0                                                 ; select first tool
    

    homedelta.g

    ; homedelta.g
    ; called to home all towers on a delta printer
    ;
    ; generated by RepRapFirmware Configuration Tool v3.1.4 on Tue Oct 20 2020 07:47:37 GMT+0200 (Central European Summer Time)
    G91                        ; relative positioning
    G1 H1 X455 Y455 Z455 F1800 ; move all towers to the high end stopping at the endstops (first pass)
    G1 H2 X-5 Y-5 Z-5 F1800    ; go down a few mm
    G1 H1 X10 Y10 Z10 F360     ; move all towers up once more (second pass)
    G1 Z-5 F6000               ; move down a few mm so that the nozzle can be centred
    G90                        ; absolute positioning
    G1 X0 Y0 F6000             ; move X+Y to the centre
    

    @Veti Thanks! I mean it!



  • Nothing looks incorrect in your homing files so I don't see why the endstops aren't triggering correctly.

    In the M558, P4 is no longer supported and P5 should be used instead.
    https://duet3d.dozuki.com/Wiki/Gcode#Section_M558_in_RepRapFirmware_Num_3



  • @jay_s_uk Z-probe is fixed, thanks!

    And believe my, I'm just as baffled... M119 reports that all the endstops are in the neutral state and when I'm going around, triggering them manually M119 reports that the endstops are triggered...



  • @jay_s_uk, @Phaedrux, @Veti thanks for all the help!

    After quadruple checking, it turns out that the endstops were mixed up.
    Since then, everything is in working order!


Log in to reply