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

    Slow down before endstop?

    Scheduled Pinned Locked Moved
    CNC
    11
    101
    6.7k
    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.
    • theKMundefined
      theKM @sinned6915
      last edited by theKM

      @sinned6915 ...so, your less complicated solution is to set up the circuitry of the switches so that it emulates the analog output of an IR probe...

      (pregnant pause)

      ...clearly we have different definitions of what "more complicated" means.

      1 Reply Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt @sinned6915
        last edited by

        @sinned6915 said in Slow down before endstop?:

        @thekm the probe and type already have the functionality that you want built into it.

        I looked at the docs but I cannot figure out how to connect a given probe to a given axis.

        This states a probe is to be used for the X axis:

        M574 X2 S2

        This configures a switch type probe:

        M558 P5 C"io8.in" H300 F300 T300 R0.0 A1 S0.01
        G1 P500 X0 Y0 Z0

        But what connects the two?

        Frederick

        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

        1 Reply Last reply Reply Quote 0
        • sinned6915undefined
          sinned6915
          last edited by

          But what connects the two?

          G38

          fcwiltundefined theKMundefined 2 Replies Last reply Reply Quote 0
          • fcwiltundefined
            fcwilt @sinned6915
            last edited by

            @sinned6915 said in Slow down before endstop?:

            But what connects the two?

            G38

            Thanks. I will give it a try.

            But it is more complicated than just changing the behavior of an existing endstop.

            Frederick

            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

            sinned6915undefined 1 Reply Last reply Reply Quote 0
            • theKMundefined
              theKM @sinned6915
              last edited by theKM

              @sinned6915

              ...I see the two feedrates in 558 that I wasn't seeing before (nor someone nicely saying "you can provide both the fast and slower rates with 558")...

              M558 F600:120

              ...so, voltage dividers to 1 or 2 volts on the first switch to emulate the initial analog, then send it high with the endstop?

              ...I guess I'll go play a little. Thanks for the help, generally appreciated.

              sinned6915undefined 1 Reply Last reply Reply Quote 0
              • sinned6915undefined
                sinned6915 @fcwilt
                last edited by

                @fcwilt said in Slow down before endstop?:

                But it is more complicated than just changing the behavior of an existing endstop.

                I dont see how a probing command is any more complicated than homing or controlled move command.

                G38.2 K5 X0

                fcwiltundefined theKMundefined 2 Replies Last reply Reply Quote 0
                • sinned6915undefined
                  sinned6915 @theKM
                  last edited by

                  @thekm that might work of you wire them in parallel, not sure of the voltage divider though. voltage dividers are 'dirty signals'. if the MCU tolerates it you might be ok.

                  you might have more consistent repeatability with an opamp instead of the voltage divider.

                  theKMundefined 1 Reply Last reply Reply Quote 0
                  • fcwiltundefined
                    fcwilt @sinned6915
                    last edited by

                    @sinned6915 said in Slow down before endstop?:

                    @fcwilt said in Slow down before endstop?:

                    But it is more complicated than just changing the behavior of an existing endstop.

                    I dont see how a probing command is any more complicated than homing or controlled move command.

                    G38.2 K5 X0

                    Assume. The endstops of the kind discussed previously are in place and working. The new goal is to have the first movement slow to a stop, the last stop immediately as done now.

                    ; as done now for a Xmax endstop
                    G91
                    G1 H1 Xmax Ffast
                    G1 X-25
                    G1 H1 X30 Fslow
                    
                    ; with new parameter
                    G91
                    G1 H5 Xmax Ffast
                    G1 X-25
                    G1 H1 X30 Fslow

                    Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                    theKMundefined 1 Reply Last reply Reply Quote 0
                    • theKMundefined
                      theKM @fcwilt
                      last edited by

                      @fcwilt ...with an extra line to change the endstop switches from the proximity to the endstop?

                      fcwiltundefined 1 Reply Last reply Reply Quote 0
                      • fcwiltundefined
                        fcwilt @theKM
                        last edited by

                        @thekm said in Slow down before endstop?:

                        @fcwilt ...with an extra line to change the endstop switches from the proximity to the endstop?

                        Sorry but I don't understand what you are saying.

                        Frederick

                        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                        theKMundefined 1 Reply Last reply Reply Quote 0
                        • theKMundefined
                          theKM @fcwilt
                          last edited by theKM

                          @fcwilt there's two switches, so it's not just two lines of G1 at different rates, as it needs to change from the switch indicating it's close, to the endstop switch.

                          fcwiltundefined 1 Reply Last reply Reply Quote 0
                          • fcwiltundefined
                            fcwilt @theKM
                            last edited by

                            @thekm said in Slow down before endstop?:

                            @fcwilt there's two switches, so it's not just two lines of G1 at different rates, as it needs to change from the switch indicating it's close, to the endstop switch.

                            Depending on the breaking distance there may not be a need for two switches.

                            My IR beam break endstop sensors are positioned some 25mm away from the end of the axis. The part that breaks the beam will keep the beam broken all the way to the end of the axis.

                            So it would provide 25mm to slow to a stop. If 25mm was not enough I could move them and print a new part that breaks the beam to handle the longer distance.

                            Frederick

                            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                            theKMundefined 1 Reply Last reply Reply Quote 0
                            • theKMundefined
                              theKM @fcwilt
                              last edited by

                              @fcwilt there's a move that's interrupted by the IR beam breaking, how does it change to using a different interrupt on the second move when it hits the endstop?... G1 is "move until trigger", doesn't something have to change to let the second G1 stop on something different than the first G1?... the little backup on my machine would be much less than the distance needed to decelerate, and would still be true.

                              fcwiltundefined 1 Reply Last reply Reply Quote 0
                              • fcwiltundefined
                                fcwilt @theKM
                                last edited by

                                @thekm said in Slow down before endstop?:

                                @fcwilt there's a move that's interrupted by the IR beam breaking, how does it change to using a different interrupt on the second move when it hits the endstop?... G1 is "move until trigger", doesn't something have to change to let the second G1 stop on something different than the first G1?... the little backup on my machine would be much less than the distance needed to decelerate, and would still be true.

                                The proposed H5 parameter would work that same as H1, H3 and H4 - terminating the move.

                                The only difference is that H5 would respect the M204 setting (acceleration) as opposed to the immediate stop of H1, H3 and H4.

                                Clearly the "backup" move needs to move enough so the sensor is no longer triggered. Perhaps I should have pointed that out.

                                Frederick

                                Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                theKMundefined 1 Reply Last reply Reply Quote 0
                                • theKMundefined
                                  theKM @fcwilt
                                  last edited by

                                  @fcwilt ...always fascinates me how geeks typing to each other can be such a struggle 🙂

                                  My machine wouldn't be backing up at all... it would pass the proximity switches, slow down, stop, then disable the proximity switches change to use the actual endstop switches for the second move. This way the endstop switches will still work as endstop switches, and the proximity switches in use for this procedure as needed.

                                  fcwiltundefined 1 Reply Last reply Reply Quote 1
                                  • fcwiltundefined
                                    fcwilt @theKM
                                    last edited by

                                    @thekm said in Slow down before endstop?:

                                    @fcwilt ...always fascinates me how geeks typing to each other can be such a struggle 🙂

                                    My machine wouldn't be backing up at all... it would pass the proximity switches, slow down, stop, then disable the proximity switches change to use the actual endstop switches for the second move. This way the endstop switches will still work as endstop switches, and the proximity switches in use for this procedure as needed.

                                    That is certainly one way to do it if you don't mind having two sensors instead of one. It would save a small amount of time by adding the additional hardware and wiring.

                                    Is there a particular reason why you want to avoid the backup?

                                    Frederick

                                    Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                    theKMundefined 1 Reply Last reply Reply Quote 0
                                    • theKMundefined
                                      theKM @fcwilt
                                      last edited by

                                      @fcwilt ...it's not the backup, just that using only one trigger would reduce the effective working area, and no longer are the estops representing the absolute max of travel.

                                      Once there was such a feature I could measure the deceleration distance... if it's small enough single switch would be fine.

                                      fcwiltundefined 1 Reply Last reply Reply Quote 0
                                      • fcwiltundefined
                                        fcwilt @theKM
                                        last edited by

                                        @thekm said in Slow down before endstop?:

                                        @fcwilt ...it's not the backup, just that using only one trigger would reduce the effective working area

                                        Then I did a rotten job of explaining.

                                        Having a endstop sensor some distance away from the end of the axis doesn't have to result in a change to the working area.

                                        Homing is simply a means of the firmware determining where things are. The fact the a G1 H1 move sets the position to the min/max value in M208 is a not an issue.

                                        Let's say my X axis min/max are 0 and 300. And that the sensor is at 275.

                                        So I do a normal G1 H1 move and it stops at 275 but the logical position is set to 300 because of the M208 settings. All I have to do is include a G92 275 after the last G1 H1 and now the logical position matches the physical position.

                                        And movement to 300 is retained.

                                        It is required that the endstop activation is done in such a way that it remains activated from, in this case, 275 to 300. This is usually easily done.

                                        In my case of using IR beam break sensors I simply make the moving part that breaks the beam long enough that it keeps the beam broken until the end of travel.

                                        Frederick

                                        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                        theKMundefined 1 Reply Last reply Reply Quote 0
                                        • theKMundefined
                                          theKM @fcwilt
                                          last edited by theKM

                                          @fcwilt I get that once you know where the machine is, you can tell it basically anything about the machine and workspace from there... but if it's triggering at 275... how does it happily cut a job at 285 and have the sensors work as endstops by leaving the machine alone unless it goes to cross 300?... this is what I mean about losing that area of workspace. If something goes wrong, bad feeds and speeds loses steps, endstops should shut it all down at 300.

                                          fcwiltundefined 1 Reply Last reply Reply Quote 0
                                          • fcwiltundefined
                                            fcwilt @theKM
                                            last edited by fcwilt

                                            @thekm said in Slow down before endstop?:

                                            @fcwilt I get that once you know where the machine is, you can tell it basically anything about the machine and workspace from there... but if it's triggering at 275... how does it happily cut a job at 285 and have the sensors work as endstops by leaving the machine alone unless it goes to cross 300?... this is what I mean about losing that area of workspace. If something goes wrong, bad feeds and speeds loses steps, endstops should shut it all down at 300.

                                            Endstops don't work for normal G1 moves as used during printing.

                                            I know of nothing in the current firmware that can do what you mentioned - short of using a trigger to activate an external relay to kill power.

                                            But I now understand what you were talking about in earlier posts.

                                            Thanks.

                                            Frederick

                                            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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