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

    dual Z motors and end stops issues

    Scheduled Pinned Locked Moved
    General Discussion
    2
    10
    588
    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.
    • DallasHundefined
      DallasH
      last edited by

      Dual Z motors and end stops issues, my dual z homing stops at first endstop, does not back away and make second contact.

      config.g:
      ; Drives
      M569 P0 S1 ; Drive 0 goes forwards
      M569 P1 S1 ; Drive 1 goes forwards
      M569 P2 S1 ; Drive 2 goes forwards
      M569 P3 S1 ; Drive 3 goes forwards
      M569 P4 S1 ; Drive 4 goes forwards

      M350 X16 Y16 Z16 U16 E16:16 I1 ; Configure microstepping with interpolation
      M92 X80.00 Y80.00 Z1600.00 U1600.00 E1600.00:420.00 ; Set steps per mm
      M566 X900.00 Y900.00 Z12.00 U12.00 E12.00:120.00 ; Set maximum instantaneous speed changes (mm/min)
      M203 X6000.00 Y6000.00 Z1000.00 U1000.00 E180.00:1200.00 ; Set maximum speeds (mm/min)
      M201 X500.00 Y500.00 Z20.00 U20.00 E20.00:250.00 ; Set accelerations (mm/s^2)
      M906 X800.00 Y800.00 Z1600.00 U1600.00 E1600.00:800.00 I30 ; Set motor currents (mA) and motor idle factor in per cent
      M84 S30 ; Set idle timeout

      ; Axis Limits
      M208 X0 Y0 Z0 U0 S1 ; Set axis minima
      M208 X285 Y285 Z230 U230 S0 ; Set axis maxima

      M584 X0 Y1 Z2:3 U3 E4 P3 ; Endstops
      M574 X1 Y1 Z1 U1 S1 ; Set active high endstops

      ; homeall.g
      ; called to home all axes
      ;
      ; generated by RepRapFirmware Configuration Tool v2 on Thu Apr 25 2019 11:16:54 GMT-0400 (EDT)
      G91 ; relative positioning
      G1 Z5 S2 F6000 ; lift Z relative to current position
      G1 S1 X-290 Y-290 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
      G1 X5 Y5 F6000 ; go back a few mm
      G1 S1 X-290 Y-290 F360 ; move slowly to X and Y axis endstops once more (second pass)
      M98 Phomez.g ;

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

      homez:
      ; homez.g
      ; called to home the Z axis
      ;
      ; generated by RepRapFirmware Configuration Tool v2 on Thu Apr 25 2019 11:16:54 GMT-0400 (EDT)
      G91 ; relative positioning
      G1 Z5 F6000 S2 ; lift Z relative to current position
      M584 Z2 U3 P4 ; Split Z and U
      G1 S1 Z-235 U-235 F500 ; move Z down until the endstop is triggered
      M584 Z2:3 P3 ; Combine Z and U
      G92 Z0 ; set Z position to axis minimum (you may want to adjust this)

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

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

        https://duet3d.dozuki.com/Wiki/Gcode#Section_M584_Set_drive_mapping

        Order dependence

        M584 must come earlier in config.g than any M350 and M906 commands. If it creates new axes, it must also be earlier than any M92, M201, M203, M208, M350, M566, M574 , M667 and M669 commands.

        are you aware of https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors ?

        DallasHundefined 1 Reply Last reply Reply Quote 0
        • DallasHundefined
          DallasH @Veti
          last edited by

          @veti Sorry I am new to this post processing coding, so I should cut and paste the endstop section of config.g to above the drive section?

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

            there are several topics about this on the forum
            have a look here
            https://forum.duet3d.com/topic/860/dual-z-axis-endstops/15

            DallasHundefined 1 Reply Last reply Reply Quote 0
            • DallasHundefined
              DallasH @Veti
              last edited by

              @veti I have read many post and followed the guide, but there are so many post and seems that no 2 are even similar.

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

                @dallash said in dual Z motors and end stops issues:

                G1 S1 Z-235 U-235 F500 ; move Z down until the endstop is triggered

                this will go down and stop when one is triggered.
                there is nothing in your script that would trigger them interdependent.

                with the independent z motor set up there is no need for this and it will level your bed in an optimal way for your hotend.

                1 Reply Last reply Reply Quote 0
                • DallasHundefined
                  DallasH
                  last edited by

                  I tried this, but not working correctly
                  https://duet3d.dozuki.com/Guide/Independent+Z+motors+and+endstop+switches/18?lang=en

                  DallasHundefined 1 Reply Last reply Reply Quote 0
                  • DallasHundefined
                    DallasH @DallasH
                    last edited by

                    @dallash also the u axis does not show up in the web interface

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

                      @dallash
                      why would it? you did set the P parameter in M584

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

                        can you tell us what is not working?

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