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

    Sensorless Homing crashing at ending script of first print

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    23
    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.
    • Phaedruxundefined
      Phaedrux Moderator
      last edited by

      Yes placing the relevant commands in separate macros is a good way to do it because it means only changing it in a single place, it can be executed manually, or it can be called in other places as a macro with M98.

      Z-Bot CoreXY Build | Thingiverse Profile

      djstephenson1undefined 1 Reply Last reply Reply Quote 0
      • djstephenson1undefined
        djstephenson1 @Phaedrux
        last edited by

        @Phaedrux okay I am starting to get it now. How successful could a macro be? Would it be easier for calibration, actual stall detection, or both?

        1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          Well it would be easier to tune, since you only have one place to change, and it's more flexible because you can just click on the macro to change the config. So it has benefits, but it won't change the actual performance of the stall detection.

          Z-Bot CoreXY Build | Thingiverse Profile

          djstephenson1undefined 2 Replies Last reply Reply Quote 0
          • djstephenson1undefined
            djstephenson1 @Phaedrux
            last edited by

            @Phaedrux can you expand on what you mean by "won't change the actual performance of the stall detection?"

            1 Reply Last reply Reply Quote 0
            • djstephenson1undefined
              djstephenson1 @Phaedrux
              last edited by

              @Phaedrux do you have a basic structure I could use to build off of?

              It would really help an enormous amount. And I will be sure to include it in the dozuki so others can tune theirs too!

              1 Reply Last reply Reply Quote 0
              • Kolbiundefined
                Kolbi
                last edited by

                Perhaps something like this? 🤔

                stalld-printing.g

                ; sets stall detection values to be used when printing
                M915 X Y S7 R1 F1 ; Stall-d threshold 7, Action to 1 - log it, Filter mode 1 -filtered, one reading per 4 full steps
                

                stalld-homing.g:

                ; sets stall detection values to be used when homing
                M915 X Y S3 R0 F0 ; Stall-d threshold 3, Action to 0 - no action, Filter mode 0 - unfiltered, one reading per full step
                

                Place M98 P"stalld-homing.g" at the start of each homing file, and M98 P"stalld-printing.g" at the end of each homing file. This way you can take the commands out of your slicer and also just make changes to the stalld files for adjusting.

                djstephenson1undefined 1 Reply Last reply Reply Quote 2
                • Phaedruxundefined
                  Phaedrux Moderator
                  last edited by

                  Yes that's exactly it. I use the same method for changing motor currents, etc

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 1
                  • djstephenson1undefined
                    djstephenson1 @Kolbi
                    last edited by

                    @Kolbi you guys are rock stars. Thank you so much. I will make sure that this info is out there for everyone else.

                    Kolbiundefined 2 Replies Last reply Reply Quote 0
                    • Kolbiundefined
                      Kolbi @djstephenson1
                      last edited by

                      @djstephenson1 No worries. I keep meaning to do the same type of thing to my homing routines too; having homeall call the individual axes, but I've been in a combination of busy and lazy 😂

                      1 Reply Last reply Reply Quote 1
                      • Kolbiundefined
                        Kolbi @djstephenson1
                        last edited by

                        @djstephenson1 I just did this to my files since it was fresh on the brain but I decided to leave the homeall.g as a standalone (not calling each homing file from within it).
                        You can see it here if you want: https://github.com/rkolbi/RRF-machine-config-files/tree/master/Prusa MK3s

                        djstephenson1undefined 2 Replies Last reply Reply Quote 2
                        • djstephenson1undefined
                          djstephenson1 @Kolbi
                          last edited by

                          @Kolbi Awesome! I will certainly check it out

                          1 Reply Last reply Reply Quote 0
                          • djstephenson1undefined
                            djstephenson1 @Kolbi
                            last edited by

                            @Kolbi Your github is great!

                            Kolbiundefined 1 Reply Last reply Reply Quote 0
                            • Kolbiundefined
                              Kolbi @djstephenson1
                              last edited by

                              @djstephenson1 Thanks! Glad you like it / found it useful. 👍

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