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

    2 Z motors, to endstops

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    5
    21
    2.0k
    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.
    • Torroundefined
      Torro
      last edited by

      Just started a print...

      yesterday, there was no message from DWC.
      A click on "home all" did nothing, but i couldn´t move the motors by hand anymore.

      will test G28 asap

      1 Reply Last reply Reply Quote 0
      • Torroundefined
        Torro
        last edited by

        after powering up the printer, a single G28 without any parameter does nothing. the circle in the "send" button spins and spins and spins. when i click "emergency stop", a message "homing failed" appears.

        then i homed only Z. works. after that, G28 works without any issue, same as the button "homeall"

        1 Reply Last reply Reply Quote 0
        • aidarundefined
          aidar
          last edited by

          That is odd. You are not supposed to be able home Z at all before X and Y are not homed. What firmware version are you using and what version of DWC?

          1 Reply Last reply Reply Quote 0
          • Torroundefined
            Torro
            last edited by

            Duet Web Control 2.0.0-RC3

            Electronics: Duet WiFi 1.02 or later
            Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 2.02(RTOS) (2018-12-24b1)
            Duet WiFi Server Version: 1.22

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

              @torro said in 2 Z motors, to endstops:

              homeall
              G91 ; relative positioning
              G1 S1 X-300 Y-300 F5000 ; move quickly to X or Y endstop and stop there (first pass)
              G1 S1 X-300
              G1 S1 Y-300
              G1 X10 Y10 F6000 ; go back a few mm
              G1 S1 X-20 F360 ; move slowly to X axis endstop once more (second pass)
              G1 S1 Y-20 ; then move slowly to Y axis endstop
              M98 Phomez.g

              Try changing M98 Phomez.g to G28 Z

              Z-Bot CoreXY Build | Thingiverse Profile

              Torroundefined 1 Reply Last reply Reply Quote 0
              • Torroundefined
                Torro
                last edited by

                Ok. I will try.

                1 Reply Last reply Reply Quote 0
                • Torroundefined
                  Torro
                  last edited by

                  I didn't test it yet, but i have an idea, i could put the home Z order on top in the first line. I Guess it works... 🙂

                  1 Reply Last reply Reply Quote 0
                  • thweundefined
                    thwe
                    last edited by thwe

                    On my CoreXY also with 2 Z-Motors and 2 Endstops (1 for Z and 1 for U - Drive 2 and 3) i have to home Z also at first.

                    Only for example - without any garanty - see my homeall.g:

                    ; ##############  homeall.g -> called to home all axes  ##############
                    
                    M98 Phomez.g                 ; X homing
                    
                    M98 Phomex.g                 ; Y homing
                    
                    M98 Phomey.g                 ; Z homing
                    
                    G90
                    
                    
                    ; #################    checking trigger height + Z null adjusting    #################
                    G1 X144 Y150 F12000
                    G1 Z20 F1800
                    G1 Z15 F1200
                    G1 Z10 F600
                    T0
                    G30                            ; Probe the bed at the current XY position, set the Z coordinate to the probe trigger height
                    G4 P200
                    G1 Z50 F1800
                    
                    ; END OF FILE
                    

                    and my homez.g:

                    ; ##############  homez.g -> called to home the Z axis  ##############
                    
                    G91                         ; relative positioning
                    
                    M584 Z2 U3 P4               ; Split Z into 2 (Z+U)
                    
                    G1 S1 Z999 U999 F600        ; Move the bed down in the Z direction. S1 to stop if endstop is triggered
                    G1 S2 Z-3 U-3 F600          ; Move the bed up 3mm in the -Z direction, ignore if axis are not homed
                    G1 S1 Z9 U9 F200            ; Move slowly in the +Z direction again to stop exactly at the homing switch
                    M400                        ; Wait for current moves to finish
                    
                    G4 P100
                    G1 S2 Z0.00 U0.00 F200      ; Compensation the limit switch from z-axis drive 2 (!!can be adjusted here!!)
                    G4 P100
                    
                    M584 Z2:3 P3                ; Join U to Z again
                    G4 P100
                    
                    G92 Z282.00                 ; set position of Z relativ to the bed (!!must be adjusted here!!)
                    
                    G90                         ; Back to absolute mode
                    
                    G1 S2 Z270 F900
                    ; End of file
                    

                    Thomas

                    1 Reply Last reply Reply Quote 0
                    • Torroundefined
                      Torro
                      last edited by

                      Good to know. Thanks!

                      1 Reply Last reply Reply Quote 0
                      • Torroundefined
                        Torro @Phaedrux
                        last edited by

                        @phaedrux said in 2 Z motors, to endstops:

                        @torro said in 2 Z motors, to endstops:

                        homeall
                        G91 ; relative positioning
                        G1 S1 X-300 Y-300 F5000 ; move quickly to X or Y endstop and stop there (first pass)
                        G1 S1 X-300
                        G1 S1 Y-300
                        G1 X10 Y10 F6000 ; go back a few mm
                        G1 S1 X-20 F360 ; move slowly to X axis endstop once more (second pass)
                        G1 S1 Y-20 ; then move slowly to Y axis endstop
                        M98 Phomez.g

                        Try changing M98 Phomez.g to G28 Z

                        Same behaviour. I just put the m98 phomez. G in the first line of homeall.g

                        Now it works as expected

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