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.
    • Vetiundefined
      Veti
      last edited by

      what are you trying to achieve?

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

        Hypercube evolution 🙂

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

          what are you trying to achieve with the z max endstop?

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

            @olivier Rather than using a switch, if you just want to lower the bed then send it to that specific position at the end of the print: G1 Zzzz Fnnnn

            You don't need a switch because the printer knows where Z is at the end of the print.

            www.duet3d.com

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

              Hi @T3P3Tony ,
              Yes but I would like to add a user macro "down the bed" without homing (for exemple after a power failure).

              Maybe it's possible with stall detection ?

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

                @olivier It may be possible with stall detection. but if you just want a macro and you have a switch then just write the macro to move and stop when the switch is sensed, wrap the movement in a line to configure that switch as the Z endstop and then configure it back to the probe after the movement has finished.

                www.duet3d.com

                1 Reply Last reply Reply Quote 0
                • 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
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA