2 Z motors, to endstops



  • 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



  • 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"



  • 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?



  • 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



  • @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



  • Ok. I will try.



  • 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... 🙂



  • 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
    


  • Good to know. Thanks!



  • @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


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.