• Tags
  • Documentation
  • Order
  • Register
  • Login
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
390
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
    turtlecrawler @turtlecrawler
    last edited by 26 Jun 2024, 03:33

    1000004922.jpg 1000004924.jpg

    Added a picture of my y endstop setup and a overall picture of the printer in its current state. Still need to finish some wiring and finish wire management. Had to cut some zip ties as I didn't have my steppers wired properly the first time.

    undefined undefined 2 Replies Last reply 26 Jun 2024, 09:38 Reply Quote 0
    • undefined
      dc42 administrators @turtlecrawler
      last edited by 26 Jun 2024, 09:38

      @turtlecrawler currently the easiest way of doing is to use M208 in your homing file to temporarily change the axis maximum to the endstop position before performing the homing moves, and change it back again after the homing moves.

      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
      • undefined
        droftarts administrators @turtlecrawler
        last edited by 26 Jun 2024, 10:08

        @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
        • undefined
          turtlecrawler
          last edited by 26 Jun 2024, 12:25

          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
          • undefined
            gtrider @turtlecrawler
            last edited by gtrider 26 Jun 2024, 12:31

            @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.

            undefined 1 Reply Last reply 26 Jun 2024, 13:52 Reply Quote 0
            • undefined
              turtlecrawler @gtrider
              last edited by 26 Jun 2024, 13:52

              @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
              • undefined
                mikeabuilder
                last edited by 26 Jun 2024, 18:07

                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.

                undefined undefined 2 Replies Last reply 26 Jun 2024, 18:20 Reply Quote 0
                • undefined
                  turtlecrawler @mikeabuilder
                  last edited by 26 Jun 2024, 18:20

                  @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.

                  undefined 1 Reply Last reply 26 Jun 2024, 19:17 Reply Quote 0
                  • undefined
                    gtrider @mikeabuilder
                    last edited by 26 Jun 2024, 19:14

                    @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
                    • undefined
                      gtrider @turtlecrawler
                      last edited by gtrider 26 Jun 2024, 19:17

                      @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

                      undefined 1 Reply Last reply 27 Jun 2024, 00:21 Reply Quote 0
                      • undefined
                        turtlecrawler @gtrider
                        last edited by 27 Jun 2024, 00:21

                        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.

                        undefined 1 Reply Last reply 27 Jun 2024, 09:13 Reply Quote 0
                        • undefined
                          droftarts administrators @turtlecrawler
                          last edited by 27 Jun 2024, 09:13

                          @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
                          11 out of 13
                          • First post
                            11/13
                            Last post
                          Unless otherwise noted, all forum content is licensed under CC-BY-SA