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

    Need help to define Z max endstop

    Scheduled Pinned Locked Moved
    General Discussion
    3
    33
    1.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.
    • Olivierundefined
      Olivier
      last edited by

      I tryed to do that but without good result,
      Could you just write this 2 or 3 lines ? Thank you for your help.

      T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
      • T3P3Tonyundefined
        T3P3Tony administrators @Olivier
        last edited by

        @olivier If you determine the Z axis setting to use a switch at Z max (i think you have already done that) then the macro would be something like:

        Z_Max_home.g macro in /macros/

        M574 Z2 S0
        G1 Z300 F<something sensible> H1
        M574 <whatever you have in your config.g to setup for the BL touch>

        Note i have not tried this so you will need to experiment a bit and have your hand on the power button as things move!

        www.duet3d.com

        Olivierundefined 1 Reply Last reply Reply Quote 0
        • Olivierundefined
          Olivier @T3P3Tony
          last edited by

          @t3p3tony said in Need help to define Z max endstop:

          M574 Z2 S0

          Bed going down but don't stop when I press the switch. The endstop LED react correctly

          Vetiundefined 1 Reply Last reply Reply Quote 0
          • Vetiundefined
            Veti @Olivier
            last edited by

            @olivier
            add S1 to the G1 command

            Olivierundefined 1 Reply Last reply Reply Quote 0
            • Olivierundefined
              Olivier @Veti
              last edited by

              @veti It dont move at all with S1

              T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
              • Vetiundefined
                Veti
                last edited by

                @olivier said in Need help to define Z max endstop:

                M574 Z2 S0

                try changing this to
                M574 Z2 S1

                Olivierundefined 1 Reply Last reply Reply Quote 0
                • Olivierundefined
                  Olivier @Veti
                  last edited by

                  @veti Same problem... 😞

                  1 Reply Last reply Reply Quote 0
                  • T3P3Tonyundefined
                    T3P3Tony administrators @Olivier
                    last edited by

                    @olivier @veti S1/H1 are interchangable in G1

                    www.duet3d.com

                    T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                    • T3P3Tonyundefined
                      T3P3Tony administrators @T3P3Tony
                      last edited by

                      @Olivier what does M119 show when you have the Z switch triggered?

                      www.duet3d.com

                      Olivierundefined 1 Reply Last reply Reply Quote 0
                      • Olivierundefined
                        Olivier @T3P3Tony
                        last edited by

                        @t3p3tony

                        M119
                        Endstops - X: not stopped, Y: not stopped, Z: at min stop, Z probe: at min stop

                        Vetiundefined 1 Reply Last reply Reply Quote 0
                        • Vetiundefined
                          Veti @Olivier
                          last edited by

                          @olivier
                          issue the command
                          M574 Z2 S0

                          check M119 when the endstop is not triggerd
                          hold endstop
                          check M119 again

                          Olivierundefined 1 Reply Last reply Reply Quote 0
                          • Olivierundefined
                            Olivier @Veti
                            last edited by

                            @veti said in Need help to define Z max endstop:

                            M574 Z2 S0

                            14:12:13M119
                            Endstops - X: not stopped, Y: not stopped, Z: not stopped, Z probe: not stopped
                            14:12:04M119
                            Endstops - X: not stopped, Y: not stopped, Z: at max stop, Z probe: not stopped
                            14:11:58M574 Z2 S0

                            1 Reply Last reply Reply Quote 0
                            • Olivierundefined
                              Olivier
                              last edited by Olivier

                              My macro :

                              M574 Z2 S0
                              G1 Z300 F3000
                              M574 Z1 S2 ; Set endstops controlled by probe

                              It was inverted so I put the command M574 Z2 S1 but it not stop anyway...

                              1 Reply Last reply Reply Quote 0
                              • Vetiundefined
                                Veti
                                last edited by

                                @olivier said in Need help to define Z max endstop:

                                There is no endstop command in your macro and it seems you need to invert the endstop
                                try

                                M574 Z2 S1
                                G1 Z300 F3000 H1
                                M574 Z1 S2

                                1 Reply Last reply Reply Quote 1
                                • Olivierundefined
                                  Olivier
                                  last edited by

                                  @veti said in Need help to define Z max endstop:

                                  G1 Z300 F3000 H1

                                  You're right !! it work now 🙂
                                  Thanks a lot.

                                  I will try the stall detection now

                                  1 Reply Last reply Reply Quote 0
                                  • Vetiundefined
                                    Veti
                                    last edited by

                                    i still dont understand what you want to achieve with this.

                                    1 Reply Last reply Reply Quote 0
                                    • Olivierundefined
                                      Olivier
                                      last edited by

                                      If I need to lower the bed without homing and without clicking several time on Z axis move
                                      Stall detection works perfectly too 😉

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