Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    RRF 3.4.0 Sensorless Homing Issues after Power Cycle

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    8
    28
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Del87undefined
      Del87 @flobler
      last edited by

      @flobler mb because stealthchop is not default mode on 3.4 anymore

      Dmitry

      Krohm Koalaundefined floblerundefined 2 Replies Last reply Reply Quote 0
      • Krohm Koalaundefined
        Krohm Koala @Del87
        last edited by

        @del87 but Everything is set to stealthchop in config.g so it should be a problem

        1 Reply Last reply Reply Quote 0
        • floblerundefined
          flobler @Del87
          last edited by

          @del87 thamks for chiming in but that is accounted for in config.g and I am certain the drivers are set to operate in stealthChop mode when trying to home. Otherwise hpming would not work at all and not just after a power cycle of the printer.

          1 Reply Last reply Reply Quote 0
          • gloomyandyundefined
            gloomyandy @flobler
            last edited by

            @flobler The tuning moves you are using are very small. I wonder if perhaps using a longer move would help? You might also want to add a delay/m400 after the 2nd move as well to see if that makes any difference?

            I agree that it is odd that 3.3 works but 3.4 does not, but perhaps your settings were right on the edge and starting in spreadcycle mode then switching to stealthchop mode (which is in effect what now happens in 3.4), results in slightly different "learned" values after tuning? I suppose you could try switching back to 3.3 and capturing the various register contents just before your homing moves and compare those with 3.4.

            floblerundefined 1 Reply Last reply Reply Quote 1
            • floblerundefined
              flobler @gloomyandy
              last edited by flobler

              @gloomyandy Thanks for the input! I tried to make the move longer and also to add the second M400 which both did not change the behavior.

              What I also tried is to play with the sensitivity for stall detection as I thought maybe something changed here and the drivers are just being configured too sensitive. I used S3 for both axes on RRF 3.3. With RRF 3.4.0 I went all the way up to the least sensitive value (63) which also did not help. The motors still stall immediately when trying to home after a power-cycle.

              So to me there is two things than could be going wrong:

              a) I am doing something wrong with the tuning move (but I am not sure what and the docs are not very clear here); then I am still a bit confused why it did not happen in RRF 3.3

              b) Something changed from RRF 3.3 to 3.4.0 that breaks the stealthChop tuning procedure

              If any of my other settings were wrong (i.e. speed, current, acceleration or jerk) then I don't think the motors would home properly after this initial false stall after a power-cycle.

              1 Reply Last reply Reply Quote 0
              • floblerundefined
                flobler
                last edited by flobler

                @dc42 @Phaedrux I have not managed to figure out what I am doing wrong yet and the behavior is still consistent across two machines.

                Do you have any hints? Is my driver tuning procedure configured wong?

                Thank you 🙂

                P.S.: May I aske why this is categorized under "Beta Firmware"?

                oliofundefined 1 Reply Last reply Reply Quote 0
                • oliofundefined
                  oliof @flobler
                  last edited by

                  @flobler I had issues with sensorless homing after updating to 3.4 until I did M569 Pxx D3 at the beginning of the homing file and switched back to normal hybrid mode doing M569 Pxxx D2 at the end. Maybe that helps. Also the documentation recommends homing moves to be above 40mm/sec so I moved to 40mm/sec just so. With the reduced motor power it is just a light tap and the axis is homed.

                  <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                  floblerundefined 1 Reply Last reply Reply Quote 1
                  • floblerundefined
                    flobler @oliof
                    last edited by

                    @oliof thank you, I will give that a go and report back!

                    1 Reply Last reply Reply Quote 0
                    • floblerundefined
                      flobler
                      last edited by

                      @oliof this did not help in my case. I think in your case you utilized that the drivers were defaulting to stealthChop before going to RRF 3.4.0 and therefore you needed to give them instructions to use stealthChop2 after the upgrade (as with RRF 3.4.0 the default now is spreadCycle).

                      My problem is not really that homing is not working generally. Homing works totally fine and smooth just not right after I power-cycle my printer when trying to home for the first time.

                      Thank you for the suggestion though!

                      oliofundefined 1 Reply Last reply Reply Quote 0
                      • oliofundefined
                        oliof @flobler
                        last edited by

                        @flobler well, without my change homing usually did not work at all, including right after turning on the printer. So yours is a bit of a weird one.

                        <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                        floblerundefined 1 Reply Last reply Reply Quote 0
                        • floblerundefined
                          flobler @oliof
                          last edited by

                          @oliof yes, that makes sense. I assume before you upgraded to RRF 3.4.0 you did not specifically configure your drivers as D3 (because they did that by default). Now they default to D2, hence you need to tell them specifically to operate in stealthChop2 before homing (via D3).

                          If you just configure your drivers as D3 now in config.g you should also be able to home just fine without switching between D2 and D3.

                          May I ask how your homing files look like? I'd like to see if you are doing something different to tune your drivers. Thank you!

                          oliofundefined dc42undefined 2 Replies Last reply Reply Quote 0
                          • oliofundefined
                            oliof @flobler
                            last edited by

                            @flobler https://github.com/oliof/printerconfigs/blob/main/v-minion/sys/homex.g

                            <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                            1 Reply Last reply Reply Quote 0
                            • dc42undefined
                              dc42 administrators @flobler
                              last edited by dc42

                              @flobler your homing files are not right for the Duet 3 Mini because you are not executing the required stealthChop tuning move. For example, the first X move you do in homeall.g is this:

                              G1 H1 X5 F1200

                              Try this instead:

                              M17 X
                              G4 P140
                              G1 H2 X5 F1200

                              Duet WiFi hardware designer and firmware engineer
                              Please do not ask me for Duet support via PM or email, use the forum
                              http://www.escher3d.com, https://miscsolutions.wordpress.com

                              floblerundefined 1 Reply Last reply Reply Quote 1
                              • floblerundefined
                                flobler @dc42
                                last edited by

                                @dc42 Thank you! I just tried that but the behavior did not change. X and Y are still stalling immediately when trying to home after a power cycle and home fine after that initial false stall until I power cycle the printer again.

                                I had a tuning move included in homing-modifications.g (which I removed to test what you suggested).

                                dc42undefined floblerundefined 2 Replies Last reply Reply Quote 0
                                • dc42undefined
                                  dc42 administrators @flobler
                                  last edited by

                                  @flobler when you try to home after a power cycle, does each of the X and Y axes move 5mm away from the endstop before the premature stall?

                                  Duet WiFi hardware designer and firmware engineer
                                  Please do not ask me for Duet support via PM or email, use the forum
                                  http://www.escher3d.com, https://miscsolutions.wordpress.com

                                  floblerundefined 1 Reply Last reply Reply Quote 0
                                  • floblerundefined
                                    flobler @flobler
                                    last edited by

                                    For reference, this is what I just tried:

                                    homeall.g

                                    ;----------------------------------------------------------------------------
                                    ; homeall.g
                                    ;
                                    ; Description:
                                    ; 	- system file
                                    ; 	- called to home all axes
                                    ; 	- used in homez.g
                                    ;----------------------------------------------------------------------------
                                    
                                    
                                    ;----------------------------------------------------------------------------
                                    ; Preparation
                                    ;----------------------------------------------------------------------------
                                    
                                    M98 P"homing-modifications.g" ; calls homing-modifications.g
                                    
                                    ; Lift Z Axis
                                    G91                           ; relative positioning
                                    G1 H2 Z5 F1200                ; lift Z axis by 5mm	
                                    M400                          ; wait for current moves to finish
                                    
                                    
                                    ;----------------------------------------------------------------------------
                                    ; Home X Axis
                                    ;----------------------------------------------------------------------------
                                    
                                    M17 X
                                    G4 P140
                                    G1 H2 X5 F1200
                                    
                                    G1 H1 X5 F1200                ; move X axis away from homing position by 5mm
                                    G1 H1 X-255 F3000             ; move to X axis endstop and stop there
                                    G1 X5 F1200                   ; move back by 5mm
                                    G1 H1 X-10 F3000              ; move to X axis endstop again
                                    G1 X10 F1200                  ; move back by 10mm
                                    M400                          ; wait for current moves to finish
                                    
                                    ;----------------------------------------------------------------------------
                                    ; Home Y Axis
                                    ;----------------------------------------------------------------------------
                                    
                                    M17 Y
                                    G4 P140
                                    G1 H2 Y5 F1200
                                    
                                    G1 H1 Y5 F1200                ; move Y axis away from homing position by 5mm
                                    G1 H1 Y-220 F3000             ; move to Y axis endstop and stop there
                                    G1 Y5 F1200                   ; move back by 5mm
                                    G1 H1 Y-10 F3000              ; move to Y axis endstop again
                                    G1 Y10 F1200                  ; move back by 10 mm
                                    M400                          ; wait for current moves to finish
                                    
                                    ;----------------------------------------------------------------------------
                                    ; Home Z Axis
                                    ;----------------------------------------------------------------------------
                                    
                                    G90                           ; absolute positioning
                                    G1 X11.5 Y4.5 F6000           ; go to first probe point
                                    G30                           ; home Z axis by probing the bed
                                    G1 Z0.6 F500                  ; move Z axis to 0.6mm
                                    G91                           ; relative positioning
                                    G1 Z1 F500                    ; lift Z axis by 1mm
                                    M400	     	              ; wait for current moves to finish
                                    
                                    
                                    ;----------------------------------------------------------------------------
                                    ; Restore Defaults
                                    ;----------------------------------------------------------------------------
                                    
                                    M98 P"homing-modifications-reset.g" ; calls homing-modifications-reset.g
                                    

                                    homing-modifications.g

                                    ;---------------------------------------------------------------------------------
                                    ; homing-modifications.g
                                    ;
                                    ; Description:
                                    ; 	- system file
                                    ; 	- sets motor current and V parameter for homing moves
                                    ; 	- tunes motor drivers
                                    ; 	- used in all homing system files
                                    ;---------------------------------------------------------------------------------
                                    
                                    
                                    ;---------------------------------------------------------------------------------
                                    ; Modifications
                                    ;---------------------------------------------------------------------------------
                                    
                                    M569 P0.3 V10           ; reduce V parameter to ensure stealthChop is enabled for X
                                    M569 P0.2 V10           ; reduce V parameter to ensure stealthChop is enabled for Y
                                    M913 X60 Y60            ; drop X and Y motor current to 60%
                                    G4 P150                 ; wait 150ms
                                    
                                    

                                    homing-modifications-reset.g

                                    ;-----------------------------------------------------------------------
                                    ; homing-modifications-reset.g
                                    ;
                                    ; Description:
                                    ; 	- system file
                                    ; 	- resets all homing modifications applied in homing_modifications.g
                                    ; 	- used in all homing system files
                                    ;-----------------------------------------------------------------------
                                    
                                    
                                    M913 X100 Y100  ; reset X and Y motor current to 100%
                                    M569 P0.3 V2000 ; restore default V parameter for X
                                    M569 P0.2 V2000 ; restore default V parameter for Y
                                    G90             ; absolute positioning
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • floblerundefined
                                      flobler @dc42
                                      last edited by

                                      @dc42 Yes, they do and as soon as the axes move towards the endstop, they stall. If it helps I can send you a video of the behavior?

                                      1 Reply Last reply Reply Quote 0
                                      • floblerundefined
                                        flobler
                                        last edited by

                                        @dc42 my bad, as you can see above I failed to remove the G1 H1 X5 F1200

                                        I re-tested without and this works now. Thank you very much!

                                        1 Reply Last reply Reply Quote 0
                                        • Phaedruxundefined Phaedrux marked this topic as a question
                                        • Phaedruxundefined Phaedrux has marked this topic as solved
                                        • First post
                                          Last post
                                        Unless otherwise noted, all forum content is licensed under CC-BY-SA