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

    Endstop Not stopping Movement

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    5
    34
    4.4k
    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.
    • Sharpieundefined
      Sharpie
      last edited by

      I just upgraded my firmware from 1.18 to 1.20 and been having a hell of a time getting the config set back up. I got the machine moving again but now when my endstops are hit the machine still does not stop.

      Attached are my Config.g and my Homing files. Is there something new in this latist version that I am missing?

      4_1536118102283_homez.g 3_1536118102283_homey.g 2_1536118102283_homex.g 1_1536118102283_homeall.g 0_1536118102282_config.g

      deckingmanundefined 1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        I don't see anything wrong with your configs.

        I don't think anything has changed between 1.18 and 1.20 that would affect your endstops. You're already using G1 S2 moves to move axis that havent been homed yet.

        Have you changed hardware at all? What type of endstops are they?

        If you trigger the endstop by hand and send M119 what does the duet report?

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • deckingmanundefined
          deckingman @Sharpie
          last edited by

          @sharpie Bit confused by your homing files. For homex and homey you move to the negative direction indicating that your end stops are on the left and front. In homeall you move to the positive direction which is away from the end stops. Which one moves in the correct direction?

          When upgrading from 1.18 to 1.20, there is a change to CoreXY and you have to reverse the direction of the Y motor - see release notes here https://github.com/dc42/RepRapFirmware/blob/dev/WHATS_NEW.md. Did you do that?

          Also, unless you use a probe that has to be deployed, you need to remove the deploy ad retract probe macros. That's also in the release notes. Did you do that?

          The only other change that I can think of is that you either need to add S2 to any Z moves in homex and homey or use M564 H0 in config.g. I see that you have done both but it shouldn't matter.

          Other than that, use DWC - machine properties and look at the state of the end stop switches. They should show as not triggered normally, then change state when you trigger each one by hand.

          HTH

          Ian
          https://somei3deas.wordpress.com/
          https://www.youtube.com/@deckingman

          1 Reply Last reply Reply Quote 0
          • wilrikerundefined
            wilriker
            last edited by

            To expand a little bit on what @deckingman said:

            1. In config.g you define all endstops to be at the min positions.
            2. In homex.g you try to home to max position
            3. In homey.g you try to home to min position but instead of going back up after the first hit of the endstop you try to go even further down (luckily without S2 so it just won't do anything and there will be effectively no second pass)
            4. In homez.g you first lift Z 5mm (unnecessary) and then go to min position but only once - also setting Z to 0 with G92 Z0 is superfluous
            5. In homeall.g you try to home X and Y to max (twice) and Z to min (again once plus unnecessary G92 Z0)

            I guess there is a bit of fixing required. 😉

            Manuel
            Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
            with probably always latest firmware/DWC (incl. betas or self-compiled)
            My Tool Collection

            1 Reply Last reply Reply Quote 0
            • Sharpieundefined
              Sharpie
              last edited by

              ok thanks guys for the help. Is there a sample config I can use to get running? I am running a D-Bot that was all dialed in before the update. Is is there some changes I can make to my old config file to get it working in the new 1.20?

              deckingmanundefined 1 Reply Last reply Reply Quote 0
              • deckingmanundefined
                deckingman @Sharpie
                last edited by deckingman

                @sharpie said in Endstop Not stopping Movement:

                ok thanks guys for the help. Is there a sample config I can use to get running? I am running a D-Bot that was all dialed in before the update. Is is there some changes I can make to my old config file to get it working in the new 1.20?

                As per my post above.

                Take your old 1.18 config.g and reverse the Y motor direction. Assuming you haven't re-mapped any motors, then the X motor will be 0 and the Y motor will be 1. So you'll have something like M569 P1 S1 and you'll need to change it to M569 P1 S0. Obviously, if it was S0 then you'll need to change it to S1. That'll take care of the CoreXY motor direction change which was introduced in 1.19.

                Then add M564 H0 anywhere to config.g and that will take care of the axes not being able to move until they have been homed which was introduced in 1.20 (or thereabouts).

                That should be all you need to do I think, but read the release notes that I linked to to make sure. If you make those changes, then you don't need to make any changes to the homing files and what you had originally should work (I think - but check the release notes to be sure).

                Alternatively, leave out the M564 H0 from config.g but add S2 to the Z moves in your original (working) homex and homey but don't change anything else.

                Ian
                https://somei3deas.wordpress.com/
                https://www.youtube.com/@deckingman

                1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator
                  last edited by

                  Totally didn't think of the core xy change! Good catch @deckingman

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 0
                  • Sharpieundefined
                    Sharpie
                    last edited by

                    ok I made the changes, but I still get the problem when the endstop is hit the machine does NOT stop. Is there something I can put in to stop the machine.

                    1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator
                      last edited by

                      What kind of endstops are you using?

                      When you test them by hand to they show as triggered?

                      https://duet3d.dozuki.com/Wiki/Connecting_endstop_switches

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 0
                      • Sharpieundefined
                        Sharpie
                        last edited by

                        I have these endstops and they show as triggered in the screen when I press them by hand but it takes a few seconds to register. Is that normal?

                        1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by

                          Those are makerbot style endstops which are active high. It looks like you have them set up correctly in your config.g

                          ; Endstops
                          M574 X1 Y2 Z1 S0                                   ; Set active high endstops
                          

                          Double check the instructions here. I had to swap the wires on mine.

                          https://duet3d.dozuki.com/Wiki/Connecting_endstop_switches#Section_Makerbot_Mechanical_Endstop_v1_Num_2

                          Z-Bot CoreXY Build | Thingiverse Profile

                          1 Reply Last reply Reply Quote 0
                          • Sharpieundefined
                            Sharpie
                            last edited by

                            I have not changed any wiring from 1.18 to 1.20 they has been only software. I have noticed though that when Homing X only 1 stepper motor moves and with my Core XY config dont both have to move?

                            1 Reply Last reply Reply Quote 0
                            • Phaedruxundefined
                              Phaedrux Moderator
                              last edited by

                              The only changes to corexy are mentioned above. So if you've double checked wiring and adjusted for the changes mentioned and the motor tests move as expected and the endstops trigger properly by hand I'm not sure what else to say.

                              You say the endstop seems to have a delay in the DWC. Does the led on the duet itself also have a delay? Does the led on the endstop have a delay?

                              Z-Bot CoreXY Build | Thingiverse Profile

                              1 Reply Last reply Reply Quote 0
                              • Sharpieundefined
                                Sharpie
                                last edited by

                                Would you suggest me going back down to 1.18?

                                1 Reply Last reply Reply Quote 0
                                • Phaedruxundefined
                                  Phaedrux Moderator
                                  last edited by

                                  For troubleshooting, sure give it a shot.

                                  Remember to take into account any changes you've made during the upgrade. Ideally you have a backup of your configs from before?

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  1 Reply Last reply Reply Quote 0
                                  • Sharpieundefined
                                    Sharpie
                                    last edited by

                                    So I dont have a backup of my config =(, but I am still when I send move commands it works as intended but when I Home only one of my 2 steppers move. I ran through the RepRap config file generator again and it gave me the same settings so I am not sure what to change.

                                    Is there a setting that makes it not move both steppers as needed for CoreXY or does my machine think its in Cartesian mode when it Homes?

                                    1 Reply Last reply Reply Quote 0
                                    • Phaedruxundefined
                                      Phaedrux Moderator
                                      last edited by

                                      Is your config the same as your first post?

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      1 Reply Last reply Reply Quote 0
                                      • Sharpieundefined
                                        Sharpie
                                        last edited by

                                        Here are my current config files

                                        3_1536536828297_homey.g 2_1536536828296_homex.g 1_1536536828296_homeall.g 0_1536536828296_config.g

                                        1 Reply Last reply Reply Quote 0
                                        • Phaedruxundefined
                                          Phaedrux Moderator
                                          last edited by

                                          So if you command a Y or X movement in the DWC it will move correctly?

                                          It's just homex.g that doesn't move properly? or do you mean the endstop doesn't trigger properly?

                                          Z-Bot CoreXY Build | Thingiverse Profile

                                          1 Reply Last reply Reply Quote 0
                                          • Sharpieundefined
                                            Sharpie
                                            last edited by

                                            When I send a move command the machine moves correctly the issue is that when I issue a Home command on either X or Y that only one Stepper moves and does not stop when the end stop is triggered.

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