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

    Filament loading with stall detection macro issue

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    3
    12
    1.1k
    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.
    • totalitarianundefined
      totalitarian @carlosspr
      last edited by

      @carlosspr said in Filament loading with stall detection macro issue:

      maybe you need to enable cold extrusion with M302 P1 and afterwards disable with M302 P0

      I don't want to do this cold. I preheat the hotend

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

        Your macro looks OK to me, although the G91 and G90 commands are not needed unless you are running old firmware. Which firmware version are you using?

        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

        totalitarianundefined 1 Reply Last reply Reply Quote 0
        • totalitarianundefined
          totalitarian @dc42
          last edited by

          @dc42 Duet WiFi 1.02 or later

          Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 2.03RC2 (2019-05-14b2)

          Duet WiFi Server Version: 1.22

          1 Reply Last reply Reply Quote 0
          • totalitarianundefined
            totalitarian
            last edited by

            Maybe a daft question but is there anything else I need to do to enable sensorless loading? Maybe i'm missing something in my config.g file?

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

              @totalitarian said in Filament loading with stall detection macro issue:

              Maybe a daft question but is there anything else I need to do to enable sensorless loading? Maybe i'm missing something in my config.g file?

              You need to set the stall detection threshold using M915, but that's all.

              I'll try out your macro on my bench system tomorrow.

              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
              • dc42undefined
                dc42 administrators
                last edited by dc42

                I changed some values in your macro to work with my bench setup:

                M400; Wait for current moves to finish
                M913 E90; reduce the motor current
                M83; relative extrude
                G91; set relative motion required for delta
                G1 S1 E500 F3000; extrude
                M400; wait for current moves to finish
                M913 E100; restore motor current
                G1 E50 F300 ; extrude slowly 50mm of filament
                G90; restore absolute movement

                Note in particular that I greatly reduced the extrusion speed for the last 50mm of filament, to 5mm/sec. It's working for me.

                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
                • totalitarianundefined
                  totalitarian
                  last edited by

                  Thanks, I suspect it's the fact I didn't set any M915 values. I'll also give your code a go. 🙂

                  1 Reply Last reply Reply Quote 0
                  • totalitarianundefined
                    totalitarian
                    last edited by

                    Getting there, it now does the fast load - stalls but doesn't stops loading - then loads the slows part

                    This is my revised macro. Just need to figure put why it isn't stopping when the motor stalls now

                    M400; Wait for current moves to finish
                    M915 P3 S10 F0 R0; set stall detection threshold
                    M913 E90; reduce the motor current
                    M83; relative extrude
                    G91; set relative motion required for delta
                    G1 S1 E500 F3000; extrude
                    M400; wait for current moves to finish
                    M913 E100; restore motor current
                    G1 E50 F300 ; extrude slowly 50mm of filament
                    G90; restore absolute movement

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

                      The stall isn't being detected.

                      @totalitarian said in Filament loading with stall detection macro issue:

                      M915 P3 S10 F0 R0; set stall detection threshold
                      M913 E90; reduce the motor current

                      I know those are the values I used, but those M915 S and M913 E values are highly unusual. This is because I was running 3A Nema 23 motors (which I happened to have on my test rig) at 1A, so they were already running at a very low current for the size of motor. More commonly you would use E30 or E50 in the M913 command, and about S3 in the M915 command. You will need to tune those values until the stall is detected reliably.

                      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
                      • totalitarianundefined
                        totalitarian
                        last edited by totalitarian

                        Thanks dc42, got it working in the end

                        M400; Wait for current moves to finish
                        M915 P3 S2 F0 R0; set stall detection threshold
                        M913 E90; reduce the motor current
                        M83; relative extrude
                        G1 S1 E500 F3000; fast extrude
                        M400; wait for current moves to finish
                        M913 E100; restore motor current
                        G1 E20 F300 ; extrude slowly 20mm of filament

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