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

    3.5.0-rc.4 Z (print head) crashes into bed at end of print

    Scheduled Pinned Locked Moved
    Beta Firmware
    3
    11
    325
    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.
    • gloomyandyundefined
      gloomyandy @Nate.Nygren
      last edited by

      @Nate-Nygren I think we would need to see your homex.g file as well.

      Nate.Nygrenundefined 1 Reply Last reply Reply Quote 0
      • Nate.Nygrenundefined
        Nate.Nygren @gloomyandy
        last edited by Nate.Nygren

        @gloomyandy
        Using the Home X button in DWC works fine, no Z crash.

        homex.g

        ; homex.g
        ; called to home the X axis
        ;
        ; generated by RepRapFirmware Configuration Tool v3.5.0-rc.3+2 on Fri Apr 05 2024 23:17:10 GMT-0500 (Central Daylight Time)
        
        ; lift Z
        G91 ; relative positioning
        G1 H2 Z2 ; move Z relative to current position to avoid dragging nozzle over the bed
        G90 ; absolute positioning
        
        ; home X
        var maxTravel = move.axes[0].max - move.axes[0].min + 5 ; calculate how far X can travel plus 5mm
        G1 H1 X{-var.maxTravel} F6000 ; coarse home in the -X direction
        G1 H2 X5 F6000 ; move back 5mm
        G1 H1 X{-var.maxTravel} F3000 ; fine home in the -X direction
        G1 H2 Z-2 F6000 ; lower Z again
        
        gloomyandyundefined 1 Reply Last reply Reply Quote 0
        • gloomyandyundefined
          gloomyandy @Nate.Nygren
          last edited by

          @Nate-Nygren I'm not sure you correctly understand what the H2 parameter to a move is doing. So for instance it looks like you expect that the final G1 H2 Z-2 move to be a relative move, it will not be. Instead it will be moving Z to -2 (which is probably what is causing your crash). So for many of those moves you need to be setting relative mode before you make them. I'd also suggest removing the H2 parameter from most of those moves, it probably is not needed.

          Nate.Nygrenundefined gloomyandyundefined 2 Replies Last reply Reply Quote 0
          • Nate.Nygrenundefined
            Nate.Nygren @gloomyandy
            last edited by

            @gloomyandy I agree the H2 doesn't need to be there, but this homex.g file was generated by the RepRapFirmware Config tool, and like I mentioned above it works fine if it's called by the Home X button in DWC, so I didn't edit them out.

            1 Reply Last reply Reply Quote 0
            • gloomyandyundefined
              gloomyandy @gloomyandy
              last edited by

              @gloomyandy Well something is wrong with it, look at the first Z move it is relative, but the second one isn't. I'm pretty sure that last z move is what is causing your problem. Why not try making the changes and see if it fixes the problem?

              Nate.Nygrenundefined 2 Replies Last reply Reply Quote 0
              • Nate.Nygrenundefined
                Nate.Nygren @gloomyandy
                last edited by

                @gloomyandy I'm already on it 🙂 I commented out the last G1 move in the homex.g file, which isn't really necessary anyway, and am heating up for a quick print test.

                1 Reply Last reply Reply Quote 0
                • Nate.Nygrenundefined
                  Nate.Nygren @gloomyandy
                  last edited by

                  @gloomyandy Bingo, commenting out the last G1 move was the key. Thank!

                  gloomyandyundefined 1 Reply Last reply Reply Quote 0
                  • gloomyandyundefined
                    gloomyandy @Nate.Nygren
                    last edited by

                    @Nate-Nygren You might be better off moving the G90 to the end of the file, it looks to me like all of those moves are intended to be relative moves.

                    Nate.Nygrenundefined 1 Reply Last reply Reply Quote 0
                    • Nate.Nygrenundefined
                      Nate.Nygren @gloomyandy
                      last edited by

                      @gloomyandy 👍 I'll suggest that in the report to the ConfigTool repo.

                      chrishammundefined 1 Reply Last reply Reply Quote 2
                      • chrishammundefined
                        chrishamm administrators @Nate.Nygren
                        last edited by

                        @Nate-Nygren Thanks for reporting this, I just fixed it in the configtool.

                        Duet software engineer

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