Dual-Z Dual-endstop on "Duet 2 Maestro" 3.01-RC9



  • If any one is wondering why the heck the nice tutorial "Independent Z motors and endstop switches" is not working even after exchanging the "S" parameter with "H" and calling those endstops in the config.g names.

    You realy should check your homeall.g and homez.g. As I found out you have to configure your your additional axis again in homez.g and homeall.g that means after splitting the axis into two, you put in steps per mm, axis min and max, corresponding endstop, microstepping, acceleration and jerk.

    After "M584 Z2 U3 P4" the U-axis has no configuration at all everything from config.g is gone maybe even worse everything is set to default. Steps per mm is 80, axis length 0:200, microstepping is 16, motor current is 0 and so on.

    I don't know if it is meant to work that way but I will share my homez.g as a starting point here anyways it might help with some problems.

    ; homez.g
    ; called to home the Z axis
    ;
    
    
    G91                        ; relative positioning
    M584 Z2:3 P3               ; combine axes and hide U
    G1 H2 Z5 F1000             ; lift Z relative to current position
    M584 Z2 U3 P4              ; split Z motor control to Z and U for it to work we have to show U (param P4) in the UI
    
    M574 Z1 S1 P"^zstop"       ; configure active-low endstop for low end on Z via pin zstop
    M574 U1 S1 P"^e0stop"      ; configure active-low endstop for low end on Z via pin zstop
    M92 U400                   ; set steps per mm
    M566 U24                   ; set maximum instantaneous speed changes (mm/min)
    M203 U600                  ; set maximum speeds (mm/min)
    M201 U100                  ; set accelerations (mm/s^2)
    M906 U600                  ; set motor currents (mA) and motor idle factor in per cent
    M208 U0:350                ; set axis maxima
    
    G1 H3 Z-355 U-355 F1000    ; Move Z and U  down until the switches triggers
    G1 H2 Z5 U5 F1000           ; Move Z and U  UP 5mm
    G1 H3 Z-355 U-355 F100     ; Move slow Z and U  down until the switches triggers
    G92 Z0                     ; set Z position to axis minimum (you may want to adjust this)
    G92 U0                     ; set U position to axis minimum (you may want to adjust this)
    M584 Z2:3 P3               ; back to combined axes and hidden U
    M574 Z1 S1 P"^zstop"                                ; configure active-low endstop for low end on Z via pin zstop
    M574 U1 S1 P"^e0stop"                               ; configure active-low endstop for low end on Z via pin zstop
    G92 Z0                     ; set Z position to axis minimum (you may want to adjust this)
    
    ; G1 H1 Z-355 F3600          ; move Z down until the endstop is triggered
    
    
    
    ; Uncomment the following lines to lift Z after probing
    G91              ; relative positioning
    G1 Z5 F100       ; lift Z relative to current position
    G90              ; absolute positioning
    
    

  • administrators

    @tux_on_tour said in Dual-Z Dual-endstop on "Duet 2 Maestro" 3.01-RC9:

    After "M584 Z2 U3 P4" the U-axis has no configuration at all everything from config.g is gone maybe even worse everything is set to default. Steps per mm is 80, axis length 0:200, microstepping is 16, motor current is 0 and so on.

    That has always been the case, if the U axis didn't exist previously. So I assume you didn't create the U axis in config.g.

    With RRF3 you do not need to create new axes in order to use multiple endstops on an axis.



  • Totally my fault. For the first time followed my own advice - RTFM - there was a manual but it did not work as the tutorial does not work correct with version 3.

    Can we get a warning on the tutorial "Independent Z motors and endstop switches" that it does not work with 3.0 and can be easyer done by M584 Z2:3 | M574 Z1 S1 P"zstop+whatever_pin" no other changes needet. That would have saved me a day of grief.


  • Moderator

    Added a note and link.


Log in to reply