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

    Question about Stall Detection

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    7
    1.3k
    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.
    • okerchoundefined
      okercho
      last edited by

      Hi there,

      I'm starting to use the Stall detection as I'm having some layer shifting (I've changed back from CF to steel in my rods, and I think I still need to increase the power for the drivers a bit more), and I've tuned the stall detection (I'm not having false positives so far).

      Here my question, for the moment, I've configured the stall detection to just log it, and I've run a few prints where I had layer shifting, and I was able to see the layer shifts in the PanelDue, but now I want to change the configuration to be aware of it and re-home, but I'm not quite sure how R3 works.

      As I see in the documentation, if I select R3 instead of R1 (which is what I've now), it will "pause and execute a restart"โ€ฆ. but what is a restart? home of the axis that failed? (as I'm using a CoreXY, I need to re-home both, X and Y, not just the stalled one), or a script/macro where I can put whatever?

      Thanks!

      Okercho
      Custom Prusa i3 Hephestos with Duet Wi-Fi
      E3d V6 with Bondtech BMG DirectDrive and PrecisionPiezo Sensor
      Rebuilding Hypercube Evolution

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

        Good question, because I forgot to document it! You need to create file sys/rehome.g and put the following commands in it:

        • Retract a little filament
        • Raise the head a little
        • Re-home whatever axes you want to (probably just X and Y on a Cartesian or CoreXY printer)
        • Restore the original head position and undo the retraction, just as in the resume.g file.

        Please test this before relying on it!

        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 0
        • okerchoundefined
          okercho
          last edited by

          @dc42:

          Good question, because I forgot to document it! You need to create file sys/rehome.g and put the following commands in it:

          • Retract a little filament
          • Raise the head a little
          • Re-home whatever axes you want to (probably just X and Y on a Cartesian or CoreXY printer)
          • Restore the original head position and undo the retraction, just as in the resume.g file.

          Please test this before relying on it!

          Thanks!

          For testing it, can you suggest a better way than to stop the head by hand and see if it works as expected? ๐Ÿ˜„

          Regards

          Okercho
          Custom Prusa i3 Hephestos with Duet Wi-Fi
          E3d V6 with Bondtech BMG DirectDrive and PrecisionPiezo Sensor
          Rebuilding Hypercube Evolution

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

            @okercho:

            @dc42:

            Good question, because I forgot to document it! You need to create file sys/rehome.g and put the following commands in it:

            • Retract a little filament
            • Raise the head a little
            • Re-home whatever axes you want to (probably just X and Y on a Cartesian or CoreXY printer)
            • Restore the original head position and undo the retraction, just as in the resume.g file.

            Please test this before relying on it!

            Thanks!

            For testing it, can you suggest a better way than to stop the head by hand and see if it works as expected? ๐Ÿ˜„

            Regards

            You could send a M915 command to set the stall detection threshold artificially low temporarily.

            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 0
            • okerchoundefined
              okercho
              last edited by

              Ok, I've been testing it, and I've found that the homing works perfectly, but the stall detection during the print since I changed the driver power to 1'5 doesn't work so wellโ€ฆ Maybe is due to the motor temperature? I can feel it warm, but not hot.

              I've tried during a print to force an stall, and if I setup it to "M915 P0:1 S3 F0 R3", it doesn't detect the stall even if I do a lot of force to stop it (and I actually stop it), however, if I setup it to S2, it gives me a lot of false positives... how can that be?

              I forgot to test to change F value, maybe that will reduce the false positives? will it affect the homing?

              Cheers

              Okercho
              Custom Prusa i3 Hephestos with Duet Wi-Fi
              E3d V6 with Bondtech BMG DirectDrive and PrecisionPiezo Sensor
              Rebuilding Hypercube Evolution

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

                1. You can use F0 for homing and F1 for stall detection, if that helps.

                2. Have you tried using S2 but either decreasing allowed acceleration (and maybe jerk) or increasing the H parameter in M915?

                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 0
                • okerchoundefined
                  okercho
                  last edited by

                  @dc42:

                  1. You can use F0 for homing and F1 for stall detection, if that helps.

                  2. Have you tried using S2 but either decreasing allowed acceleration (and maybe jerk) or increasing the H parameter in M915?

                  Will try both and report back, thanks ๐Ÿ™‚

                  Okercho
                  Custom Prusa i3 Hephestos with Duet Wi-Fi
                  E3d V6 with Bondtech BMG DirectDrive and PrecisionPiezo Sensor
                  Rebuilding Hypercube Evolution

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