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

    [3.4b3] Homing coupler does not work correctly

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    6
    41
    1.8k
    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.
    • Diamondbackundefined
      Diamondback
      last edited by

      Any ideas? This seems like something goes horribly wrong...

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

        @diamondback I've added this to my list to look at next week. I am running 3.4beta3 on my TC and homing is working, although I think I saw homing the coupler fail once.

        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

        Diamondbackundefined 1 Reply Last reply Reply Quote 1
        • Diamondbackundefined
          Diamondback @dc42
          last edited by

          @dc42 said in [3.4b3] Homing coupler does not work correctly:

          @diamondback I've added this to my list to look at next week. I am running 3.4beta3 on my TC and homing is working, although I think I saw homing the coupler fail once.

          Thank you. For me, this happens every time, so if you need me to validate something, easy to test for me.

          1 Reply Last reply Reply Quote 0
          • Diamondbackundefined
            Diamondback
            last edited by

            Further info on this: Even with the homing of C as the very first part of homeall.g it doesn't always work. I've run into multiple homing failures already and only noticed when the toolhead crashed into the tool with a non-open coupler...
            Can't tell any patterns yet...

            1 Reply Last reply Reply Quote 0
            • greenleeundefined
              greenlee
              last edited by

              I can confirm after 3.4b3 improper homing of the c motor.
              Additional info I haven't seen mentioned.
              After a system reboot, it will work correctly on the first instance of running home all but subsequent homec or home all will move the c motor in the wrong direction.
              for example in homec.g, the first instance calls for G1 H2 C-500 F5000 but appears to actually run G1 H2 C500 F5000 when observing the behavior.
              to recreate, reboot ->homeall then either homec or home all will put the coupler in the wrong position.
              It does appear that homeing the other axes are involved in this as after the first reboot homec works every time.

              dc42undefined 1 Reply Last reply Reply Quote 2
              • dc42undefined
                dc42 administrators @greenlee
                last edited by

                @greenlee @Diamondback please check that the direction has not been changed like this:

                • Reboot
                • Send M569 P# where # is the driver number that the coupler is connected to and record the response, in particular the forwards/backwards direction
                • Home the printer
                • Send M569 P# again and check that the direction hasn't changed/

                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

                Diamondbackundefined 2 Replies Last reply Reply Quote 0
                • Diamondbackundefined
                  Diamondback @dc42
                  last edited by Diamondback

                  @dc42 said in [3.4b3] Homing coupler does not work correctly:

                  @greenlee @Diamondback please check that the direction has not been changed like this:

                  • Reboot
                  • Send M569 P# where # is the driver number that the coupler is connected to and record the response, in particular the forwards/backwards direction
                  • Home the printer
                  • Send M569 P# again and check that the direction hasn't changed/

                  2021-09-30_22-26-10.png

                  The older line is right after booting, the later line is after homing.
                  Btw, it's not just turning in the wrong direction, it's also turning way less than being asked for (in addition to the wrong direction)

                  (Above is with beta4)

                  1 Reply Last reply Reply Quote 0
                  • Diamondbackundefined
                    Diamondback @dc42
                    last edited by

                    @dc42 For what it's worth, my coupler is the only stepper using a different direction...
                    2021-09-30_22-29-03.png

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

                      @diamondback please test the C motor using the following commands:

                      G91
                      G1 H2 C500
                      G1 H2 C-500

                      Repeat the last two as necessary and check that the direction is different for the two commands. Obviously the initial move command one won't work if the coupler is against the stop and can't move in the commanded direction.

                      The other thing that may be changing between the first homing and subsequent homings is the motor current. Send M906 and M913 without parameters to check the current setting.

                      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

                      Diamondbackundefined 1 Reply Last reply Reply Quote 0
                      • Diamondbackundefined
                        Diamondback @dc42
                        last edited by

                        @dc42 said in [3.4b3+] Homing coupler does not work correctly:

                        @diamondback please test the C motor using the following commands:

                        G91
                        G1 H2 C500
                        G1 H2 C-500

                        Repeat the last two as necessary and check that the direction is different for the two commands. Obviously the initial move command one won't work if the coupler is against the stop and can't move in the commanded direction.

                        The other thing that may be changing between the first homing and subsequent homings is the motor current. Send M906 and M913 without parameters to check the current setting.

                        The H2 move seems to work correctly, it correctly switches movement direction based on the sign.

                        Checking the motor current seems to not show anything wrong, they all report the same (and expected) values before and after homing failure.

                        rjenkinsgbundefined rpolteraundefined 2 Replies Last reply Reply Quote 0
                        • rjenkinsgbundefined
                          rjenkinsgb @Diamondback
                          last edited by

                          @diamondback

                          I had a similar problem after updating from 3.3 to 3.4rc4.

                          This is what I ended up with, for reliable operation. It probably has excess M400s and other bits could be tweaked somewhat, but it works..

                          The G91/G90 messed things up, but the negative move also seemed to be a problem.

                          ; homec.g
                          ; called to home the C axis (coupler)
                          ;
                          ;G91
                          M400
                          G92 C499
                          M400
                          M913 C60		; MOTOR TO 60% CURRENT
                          G1 H1 C0 F2000
                          ;
                          M400
                          G92 C0
                          ;G90
                          M913 C100			;MOTOR TO 100% CURRENT
                          G1 C0 F10000
                          
                          ;Open Coupler
                          M98 P"/macros/Coupler - Unlock"
                          

                          Robert J.

                          Printers: Overlord pro, Kossel XL+ with Duet 6HC and "Frankentron", TronXY X5SA Pro converted to E3D toolchange with Duet 6HC and 1LC toolboards.

                          1 Reply Last reply Reply Quote 1
                          • rpolteraundefined
                            rpoltera @Diamondback
                            last edited by

                            @diamondback were you able to fix this having the same problem

                            T3P3Tonyundefined Diamondbackundefined 2 Replies Last reply Reply Quote 0
                            • T3P3Tonyundefined
                              T3P3Tony administrators @rpoltera
                              last edited by

                              This is what I have in my home couple script on a toolchanger running 3.3b5 (pre release)

                              ; homec.g
                              ; called to home the C axis (coupler)
                              
                              ;crashc
                              G92 C350
                              M913 C40			; C MOTOR TO 40% CURRENT
                              G1 C-350 F5000
                              M913 C100			; C MOTOR TO 100% CURRENT
                              G1 C1 F5000
                              G92 C0
                              
                              ;Open Coupler
                              M98 P"/macros/Coupler - Unlock"
                              

                              It worked on previous betas that I tested with this machine (not all were tested with this machine though).

                              If you are having issues and the steps outlined above don't help, can you confirm if the coupler works with 3.3?

                              www.duet3d.com

                              1 Reply Last reply Reply Quote 0
                              • Diamondbackundefined
                                Diamondback @rpoltera
                                last edited by

                                @rpoltera said in [3.4b3+] Homing coupler does not work correctly:

                                @diamondback were you able to fix this having the same problem

                                No, the behavior is still the very same (3.3 works, 3.4 doesn't).
                                I did not have time yet to look into the ideas posted by @rjenkinsgb

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

                                  @diamondback this is what I have in homec.g:

                                  ; homec.g
                                  ; called to home the C axis (coupler)
                                  G91
                                  M400
                                  M913 C60		; XY MOTORS TO 60% CURRENT
                                  G1 H2 C-1000 F10000
                                  G92 C-125
                                  G90
                                  M913 C100			; XY MOTORS TO 100% CURRENT
                                  G1 C0 F10000
                                  
                                  ;Open Coupler
                                  M98 P"/macros/Coupler - Unlock"
                                  

                                  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

                                  Diamondbackundefined 2 Replies Last reply Reply Quote 0
                                  • Diamondbackundefined
                                    Diamondback @dc42
                                    last edited by Diamondback

                                    @dc42 Mine looks like this:

                                    ; homec.g
                                    ; called to home the C axis (coupler)
                                    
                                    if sensors.gpIn[0].value = 0 || sensors.gpIn[1].value = 0 || sensors.gpIn[2].value = 0 || sensors.gpIn[3].value = 0
                                    	M291 S1 T5 P"Please return tool to dock before homing coupler" R"Can't home coupler"
                                    	abort
                                    	
                                    G91
                                    M400
                                    M913 C60		; C MOTOR TO 60% CURRENT
                                    G1 H2 C-300 F10000
                                    G92 C0
                                    G90
                                    M400
                                    M913 C100			; C MOTORS TO 100% CURRENT
                                    
                                    M98 P"/macros/Toolchanging/Coupler - Unlock"		; open coupler
                                    

                                    You mentioned that you saw a couple of failed homes on your TC as well, what happened to that?

                                    1 Reply Last reply Reply Quote 0
                                    • Diamondbackundefined
                                      Diamondback @dc42
                                      last edited by

                                      @dc42 Further info: It seems that if I home Z before C, it works correctly as it did with 3.3. So basically I home C last now and so far, that worked every time.

                                      1 Reply Last reply Reply Quote 0
                                      • Diamondbackundefined
                                        Diamondback
                                        last edited by

                                        @dc42 Hm I'm starting to think that my issue might be related to this thread: https://forum.duet3d.com/topic/25647/3-4b4-and-3-4b5-issue-with-sensorless-homing

                                        If my initial home move command aborted immediately because sensorless homing triggered, the whole behavior makes sense.
                                        I looked at my config and sure enough, C is halfway configured with sensorless homing there:

                                        M574 C1 S3                                      ; Stall detect coupler at low end of its range
                                        ;Stall Detection
                                        ;M915 C S6 F0 H200 R0                            ; Coupler
                                        

                                        (more or less copied from your toolchanger config on github)

                                        I'm not actually using stall detection, but just ram the coupler against its hard stop for some time as recommended.

                                        Thoughts?

                                        T3P3Tonyundefined 1 Reply Last reply Reply Quote 1
                                        • T3P3Tonyundefined
                                          T3P3Tony administrators @Diamondback
                                          last edited by

                                          @diamondback try commenting out the M574 command for C, I also use the "ram the coupler against the hard stop" method on my tool changer. I set the current lower in my home C file during homing and then increase it back up at the end because I want to use more current when coupling the tools than when homing.

                                          www.duet3d.com

                                          Diamondbackundefined 1 Reply Last reply Reply Quote 1
                                          • Diamondbackundefined
                                            Diamondback @T3P3Tony
                                            last edited by

                                            @t3p3tony Hm, no luck šŸ˜ž Still the same broken behavior with no M574 command for C. Maybe there is some default that applies instead?

                                            T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA