• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    dc42 administrators @greenlee
    last edited by 20 Sept 2021, 09:01

    @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

    undefined 2 Replies Last reply 30 Sept 2021, 20:28 Reply Quote 0
    • undefined
      Diamondback @dc42
      last edited by Diamondback 30 Sept 2021, 20:28

      @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
      • undefined
        Diamondback @dc42
        last edited by 30 Sept 2021, 20:29

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

        undefined 1 Reply Last reply 1 Oct 2021, 07:25 Reply Quote 0
        • undefined
          dc42 administrators @Diamondback
          last edited by 1 Oct 2021, 07:25

          @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

          undefined 1 Reply Last reply 1 Oct 2021, 09:01 Reply Quote 0
          • undefined
            Diamondback @dc42
            last edited by 1 Oct 2021, 09:01

            @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.

            undefined undefined 2 Replies Last reply 6 Oct 2021, 20:09 Reply Quote 0
            • undefined
              rjenkinsgb @Diamondback
              last edited by 6 Oct 2021, 20:09

              @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
              • undefined
                rpoltera @Diamondback
                last edited by 11 Oct 2021, 03:21

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

                undefined undefined 2 Replies Last reply 11 Oct 2021, 09:53 Reply Quote 0
                • undefined
                  T3P3Tony administrators @rpoltera
                  last edited by 11 Oct 2021, 09:53

                  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
                  • undefined
                    Diamondback @rpoltera
                    last edited by 11 Oct 2021, 10:13

                    @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

                    undefined 1 Reply Last reply 12 Oct 2021, 17:46 Reply Quote 0
                    • undefined
                      dc42 administrators @Diamondback
                      last edited by 12 Oct 2021, 17:46

                      @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

                      undefined 2 Replies Last reply 12 Oct 2021, 20:13 Reply Quote 0
                      • undefined
                        Diamondback @dc42
                        last edited by Diamondback 10 Dec 2021, 20:13 12 Oct 2021, 20:13

                        @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
                        • undefined
                          Diamondback @dc42
                          last edited by 19 Oct 2021, 16:55

                          @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
                          • undefined
                            Diamondback
                            last edited by 22 Oct 2021, 08:31

                            @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?

                            undefined 1 Reply Last reply 22 Oct 2021, 08:45 Reply Quote 1
                            • undefined
                              T3P3Tony administrators @Diamondback
                              last edited by 22 Oct 2021, 08:45

                              @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

                              undefined 1 Reply Last reply 22 Oct 2021, 08:52 Reply Quote 1
                              • undefined
                                Diamondback @T3P3Tony
                                last edited by 22 Oct 2021, 08:52

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

                                undefined 1 Reply Last reply 22 Oct 2021, 08:59 Reply Quote 0
                                • undefined
                                  T3P3Tony administrators @Diamondback
                                  last edited by 22 Oct 2021, 08:59

                                  @diamondback what does sending:

                                  M574

                                  With no arguments report?

                                  Also try sending
                                  G1 H2 C-300 F10000
                                  And
                                  G1 H2 C300 F10000

                                  From the console

                                  www.duet3d.com

                                  undefined 1 Reply Last reply 22 Oct 2021, 09:51 Reply Quote 0
                                  • undefined
                                    Diamondback @T3P3Tony
                                    last edited by 22 Oct 2021, 09:51

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

                                    M574

                                    It reports nothing for C when nothing is set, so that's good.

                                    	M574
                                    Endstop configuration:
                                    X: high end switch connected to pin xstop
                                    Y: low end switch connected to pin ystop
                                    Z: none
                                    C: none
                                    

                                    The G1 commands also work on their own, it's literally just within the homeall file where things go south...

                                    undefined 2 Replies Last reply 22 Oct 2021, 10:01 Reply Quote 0
                                    • undefined
                                      dc42 administrators @Diamondback
                                      last edited by 22 Oct 2021, 10:01

                                      @diamondback I am having problems homing the coupler on my TC right now, which I am investigating.

                                      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

                                      1 Reply Last reply Reply Quote 1
                                      • undefined
                                        dc42 administrators @Diamondback
                                        last edited by 22 Oct 2021, 10:28

                                        @diamondback please can you try adding parameter R0 to the M584 command that creates the C axis, and reboot.

                                        I am still investigating, however last time I had this problem, it disappeared when I rebooted the controller. So I don't want to do anything that needs a reset, such as trying this M584 change myself.

                                        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

                                        undefined 1 Reply Last reply 22 Oct 2021, 13:36 Reply Quote 1
                                        • undefined
                                          Diamondback @dc42
                                          last edited by 22 Oct 2021, 13:36

                                          @dc42 Didn't change anything, with R0 it still homes incorrectly.

                                          undefined 1 Reply Last reply 22 Oct 2021, 14:26 Reply Quote 0
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA