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

    Need help to define Z max endstop

    Scheduled Pinned Locked Moved
    General Discussion
    3
    33
    1.3k
    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

      Hi guys,
      I want to add an endstop to m'y coreXY printer to detect when the bed is down. I modify the config.g file with :

      ; Endstops

      M574 X1 Y1 S3 ; set endstop to use motor stall

      M574 Z2 S0 ; Endstop plateau en bas

      When I press the Switch the led react but the bed continue to going down... Any Idea ?

      Thanks

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

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

        When I press the Switch the led react but the bed continue to going down... Any Idea ?

        the bed will only stop on movements with the parameter S1

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

          Ok I will try, thanks 😉

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

            It's the same problem ... The bed not stop going down when I press the Switch.

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

              post your homez script

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

                ; homez.g
                ; called to home the Z axis
                ;
                ; generated by RepRapFirmware Configuration Tool on Tue Oct 02 2018 19:18:29 GMT+0200 (heure d’été d’Europe centrale)
                G91 ; relative positioning
                G1 Z10 F2000 S2 ; lift Z relative to current position
                G90 ; absolute positioning
                G1 X140 Y140 F2000 S2 ; go to first probe point
                M98 Pdeployprobe.g
                G30 ; home Z by probing the bed
                M98 Pretractprobe.g

                ; Uncomment the following lines to lift Z after probing
                G91 ; relative positioning
                G1 S2 Z10 F2000 ; lift Z relative to current position
                G90 ; absolute positioning

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

                  that script is set up to use a probe to homez not the endstop at max.

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

                    I have a bltouch, but I want also add a switch to lower the bed at the end of the print (like ultimaker)

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

                      you can either have a probe or an endstop, not both.

                      see
                      https://duet3d.dozuki.com/Wiki/Gcode#Section_M574_Set_endstop_configuration

                      Snnn Endstop type: 0 = active low endstop input, 1 = active high endstop input, 2 = Z probe, 3 = motor load detection

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

                        Ok thank you. I will find another solution.
                        Thanks.

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