• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    djstephenson1 @Phaedrux
    last edited by 27 Jul 2020, 20:42

    @Phaedrux Thanks so much! I would probably not have thought of changing the cancel.g file. I added M915 X Y S3 R0 F0. I also changed the stop.g file to include the same.

    I will certainly fix the ending gcode to reflect the the config.g M915. Also, the reason I have the cura and s3d start to include the different M915 is because for the print, I want it to engage stall detection. Is there an easier way to do this through DWC and not the slicer?

    Also, I understand regarding the heat. I have a 120mm noctua blowing on my board, and I have a 40x20 noctua attached to the motors themselves, for extra cooling.

    undefined 1 Reply Last reply 27 Jul 2020, 21:18 Reply Quote 0
    • undefined
      Phaedrux Moderator @djstephenson1
      last edited by 27 Jul 2020, 21:18

      @djstephenson1 said in Sensorless Homing crashing at ending script of first print:

      Is there an easier way to do this through DWC and not the slicer?

      The slicer is an ok place to put it, but since the only place where it changes is in the homing files, perhaps it makes most sense to change it in the homing files exclusively. At the start of the file configure it for homing and at the end configure it for normal detection.

      @djstephenson1 said in Sensorless Homing crashing at ending script of first print:

      Also, I understand regarding the heat. I have a 120mm noctua blowing on my board, and I have a 40x20 noctua attached to the motors themselves, for extra cooling.

      I'm referring to the temperature of the motors themselves as that is where the back emf for stall detection is generated.

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 0
      • undefined
        djstephenson1 @Phaedrux
        last edited by 27 Jul 2020, 21:18

        @Phaedrux I actually just thought a way to do this without having to employ a slicer. I realized that by changing all the files that are called up in DWC buttons, that I can make sensorless homing and stall detection work.

        1 Reply Last reply Reply Quote 0
        • undefined
          Phaedrux Moderator
          last edited by 27 Jul 2020, 21:20

          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

          undefined 1 Reply Last reply 27 Jul 2020, 21:21 Reply Quote 0
          • undefined
            djstephenson1 @Phaedrux
            last edited by 27 Jul 2020, 21:21

            @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
            • undefined
              Phaedrux Moderator
              last edited by 27 Jul 2020, 21:24

              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

              undefined 2 Replies Last reply 27 Jul 2020, 21:26 Reply Quote 0
              • undefined
                djstephenson1 @Phaedrux
                last edited by 27 Jul 2020, 21:26

                @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
                • undefined
                  djstephenson1 @Phaedrux
                  last edited by 27 Jul 2020, 21:30

                  @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
                  • undefined
                    Kolbi
                    last edited by 27 Jul 2020, 21:55

                    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.

                    undefined 1 Reply Last reply 27 Jul 2020, 22:42 Reply Quote 2
                    • undefined
                      Phaedrux Moderator
                      last edited by 27 Jul 2020, 22:13

                      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
                      • undefined
                        djstephenson1 @Kolbi
                        last edited by 27 Jul 2020, 22:42

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

                        undefined 2 Replies Last reply 27 Jul 2020, 22:59 Reply Quote 0
                        • undefined
                          Kolbi @djstephenson1
                          last edited by 27 Jul 2020, 22:59

                          @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
                          • undefined
                            Kolbi @djstephenson1
                            last edited by 28 Jul 2020, 07:34

                            @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

                            undefined 2 Replies Last reply 30 Jul 2020, 13:36 Reply Quote 2
                            • undefined
                              djstephenson1 @Kolbi
                              last edited by 30 Jul 2020, 13:36

                              @Kolbi Awesome! I will certainly check it out

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                djstephenson1 @Kolbi
                                last edited by 30 Jul 2020, 15:00

                                @Kolbi Your github is great!

                                undefined 1 Reply Last reply 30 Jul 2020, 16:52 Reply Quote 0
                                • undefined
                                  Kolbi @djstephenson1
                                  last edited by 30 Jul 2020, 16:52

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

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