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

    I need to allow my max travel to move 4mm past my endstop

    Scheduled Pinned Locked Moved
    General Discussion
    5
    13
    397
    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.
    • droftartsundefined
      droftarts administrators @turtlecrawler
      last edited by

      @turtlecrawler Set the Y axis maximum with M208 Y264, home the axis, then after it backs off 5mm from the endstop (usually after a second, slower homing) send a G92 Y253 (ie 258-5) to set the Y axis position.

      Post your homey.g and homez.g if this doesn't work, perhaps something is overriding the Y axis position in homez.g.

      Ian

      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

      1 Reply Last reply Reply Quote 0
      • turtlecrawlerundefined
        turtlecrawler
        last edited by

        Awesome, so I was on the right track. But I was trying it after homing.

        I will try that before the homing commands after work.

        1 Reply Last reply Reply Quote 0
        • gtriderundefined
          gtrider @turtlecrawler
          last edited by gtrider

          @turtlecrawler May not be kosher but how I do what you are describing is

          M564 H1 S0 ; Allow movement BEYOND X & Y axes boundaries.

          M564 H1 S1 ; Restrict movement to within axes boundaries (for normal X & Y movement)

          edit, I use H1 as I have already homed X and Y and want to reach the rear of a plus size frame.
          Z does not matter since the beam does not move in that direction.

          More edits , oh and hi traveler from the Zero G forum I think.
          My project from there is done and working well.
          But since projects are never really done I bought a frame kit from DLLPDF and am slowly getting it ready for the big move.

          turtlecrawlerundefined 1 Reply Last reply Reply Quote 0
          • turtlecrawlerundefined
            turtlecrawler @gtrider
            last edited by

            @gtrider That might be a even better solution, as I only need to enable this move for the sex bolt. And then I would only be giving it this extra travel when needed.

            The enclosure frame project is my creation. I Tossed around a few ideas for enclosing the Mercury 2-3 years ago and first enclosed my 5 plus. I took what I learned from that and refined it a bit more.

            1 Reply Last reply Reply Quote 0
            • mikeabuilderundefined
              mikeabuilder
              last edited by

              One thing to note if you are using M564 as @gtrider suggests.

              I assume you'd be moving back withing limits before sending the M564 H1 S1 command to re-establish limits. It's a good practice to send an M400 command before that M564 H1 S1. If you don't, it's possible that the machine will still be traveling, but not yet in-bounds when the M564is processed and the fw will think there is a bounds violation. all further moves will get a warming and be ignored. I learned this on the hard way.

              turtlecrawlerundefined gtriderundefined 2 Replies Last reply Reply Quote 0
              • turtlecrawlerundefined
                turtlecrawler @mikeabuilder
                last edited by

                @mikeabuilder Thats a good reminder, I'll make sure to move it back within the max travel after finishing my z probe.

                I probably spend close to 2 hours trying to figure this out last night. It was a good exercise in doing some quick config edits and testing various things out.

                After spending the past 3 years with klipper, moving to something else has been a challenge. But at the same time I have become much more comfortable editing configs then I was when I setup a Duet 2 wifi on my old hypercube.

                gtriderundefined 1 Reply Last reply Reply Quote 0
                • gtriderundefined
                  gtrider @mikeabuilder
                  last edited by

                  @mikeabuilder Yes I return to the original position then issue the M564 H1 S1. Never tested to see what would happen if I did it before then and it sounds from your experience like it is good I did not try.

                  One thing to make sure of if you do this is your movements do not exceed the limits of the machine. It can make some interesting noises if you do. I reversed one movement by accident as it was being set up.

                  1 Reply Last reply Reply Quote 0
                  • gtriderundefined
                    gtrider @turtlecrawler
                    last edited by gtrider

                    @turtlecrawler If it has been awhile then you may not have had the Meta commands to play with. You can do some fancy coding now.

                    https://docs.duet3d.com/User_manual/Reference/Gcode_meta_commands

                    turtlecrawlerundefined 1 Reply Last reply Reply Quote 0
                    • turtlecrawlerundefined
                      turtlecrawler @gtrider
                      last edited by

                      Ended up writting it as a macro, so I can call it any time I need to probe the nozzle.

                      ; nozzleprobe.g
                      
                      var NozzleMaxTravel = move.axes[2].max - move.axes[2].min + 5 ; calculate how far Z can travel plus 5mm
                      
                      M104 S160
                      G90                                                     ; absolute positioning
                      G0 X103                                                 ; Move over sex bolt in the X axis
                      M564 H1 S0                                              ; Allow homed axis to travel outside limits
                      G0 Y261.0                                               ; Move over sex bolt in the Y axis
                      M109 S160
                      G91                                                     ; relative positioning
                      
                      G1 H1 Z{-var.NozzleMaxTravel} F600                            ; coarse home in the -Z direction
                      G1 Z5 F6000                                             ; move back 5mm
                      G1 H1 Z{-var.NozzleMaxTravel} F300    
                      G1 Z10 F6000                                            ; fine home in the -Z direction
                      G90                                                     ; absolute positioning
                      G0 Y250                                                 ; Move inside Y axis limits
                      M564 H1 S1                                              ; Restrict axis movement to machine limits
                      M104 S0
                      
                      

                      Works great, thanks for the help and various ways that I could handle it. The M564 method seems to be the most robust way if I am going to run it as a macro.

                      droftartsundefined 1 Reply Last reply Reply Quote 0
                      • droftartsundefined
                        droftarts administrators @turtlecrawler
                        last edited by

                        @turtlecrawler Great, glad you got it working. However, I didn't know what a "Sex bolt style endstop" was, and was a little scared to Google! Eventually I did, and it's this: https://mods.vorondesign.com/details/t1DBVlcUBbdEK6habEsVzg
                        It's a nozzle touch off probe. You can see the top of it at the back of the bed, just to the left of the Z rail. Looks neat!

                        Ian

                        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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