Homing of U axis does not work



  • Hi,

    I am at a loss right now. The command

    G1 400 F6000 H1
    

    in homeu.g does not trigger the motor to drive the U axis. However,

    G1 400 F6000 H2
    

    does drive the axis, but does not trigger the end stop.

    For reference, here's the relevant config section:

    ; Drives
    M569 P0 S1                                      ; physical drive 0 X 
    M569 P1 S0                                      ; physical drive 1 Y 
    M569 P2 S1                                      ; physical drive 2 Z 
    M569 P3 S1                                      ; physical drive 3 E0 
    M569 P4 S1                                      ; physical drive 4 E1 
    M569 P5 S0			                ; physical drive 5 U 		
    M584 X0 Y1 Z2 E3:4 U5                           ; set drive mapping
    M350 X16 Y16 Z16 E16:16 U16 I1                      ; configure microstepping with interpolation
    M92 X80.00 Y80.00 Z2433 E400:400 U80.00              ; set steps per mm
    M566 X900.00 Y900.00 Z12.00 E120.00:120.00 U900.00    ; set maximum instantaneous speed changes (mm/min)
    M203 X6000.00 Y6000.00 Z180.00 E1200.00:1200.00 U6000.00 ; set maximum speeds (mm/min)
    M201 X500.00 Y500.00 Z20.00 E250.00:250.00 U500.00     ; set accelerations (mm/s^2)
    M906 X1000 Y1000 Z1000 E1000:1000 U1000 I30                ; set motor currents (mA) and motor idle factor in per cent
    M84 S10                                     ; Set idle timeout              
    M575 P1 S1 B57600
    ; Axis Limits
    M208 X-65 Y-35 Z0 U0 S1                               ; set axis minima
    M208 X330 Y305 Z330 U395 S0                             ; set axis maxima
    
    ; Endstops
    M574 X1 S1 P"xstop"                                ; configure active-high endstop for low end on X via pin xstop
    M574 Y2 S1 P"ystop"                                ; configure active-high endstop for high end on Y via pin ystop
    M574 Z1 S1 P"!zstop"                                ; configure active-high endstop for low end on Z via pin zstop
    M574 U2 S1 P"e0stop"
    

    The driver is connected to the add-on board DUEX5.

    Thanks in advance for any assistance!



  • my only idea to check is whether after the "e0stop" is a new line. Maybe the line ends without a return, making the line invalid.



  • Thanks for the answer, but that shouldn't be the case. That's just part of the config and there definitely is a linefeed there. The endstop itself works (the LED on the board lights up). The issue is that with the first command (G1 400 F6000 H1) the motor doesn't actually drive anything, but the panel displays the end position without the endstop actually being touched.



  • @Elko so maybe active low/high turned and endstop thinks it is triggered from the beginning? There was a similar thread in https://forum.duet3d.com/topic/13136/m574-usage-on-rrf-3 maybe you find a hint there. (but it is for RRF3. What is your firmware version?)



  • @Elko said in Homing of U axis does not work:

    Thanks for the answer, but that shouldn't be the case. That's just part of the config and there definitely is a linefeed there. The endstop itself works (the LED on the board lights up). The issue is that with the first command (G1 400 F6000 H1) the motor doesn't actually drive anything, but the panel displays the end position without the endstop actually being touched.

    Looks like something is missing, probably should looks like G1 U400 F6000 H1



  • If it helps, here are the bits a pieces relevant to a U on a toolchanger that works:

    config.g

    ; Axis to driver mapping
    M584 X0 Y1 U2 Z3:4:5          ; X and Y for CoreXY.  U for toolchanger lock. Z has three drivers for kinematic bed suspension. 
    M584 E1.0:1.1:22.0            ; Extruders for three tools. First two on 3HC 1, third one on Tool Board 22
    
    M350 U4 I1                        ; Set 4x for toolchanger lock. Use interpolation.
    M906 U1100 I40                          ; Motor currents (mA) and Idle percentage
    M574 U1 S1 P"io3.in"                      ; Set homing switch configuration U1 = low-end, S1 = active-high (NC)
    M208 U0:180
    

    homeu.g

    ; Home U Axis
    
    G91                     ; Set relative mode
    G1 U-360 F9000 H1        ; Big move to search for home endstop in the direction that would lock a tool. 
    G1 U6 F600             ; Back off the endstop
    G1 U-10 F600 H1          ; Find endstop again slowly
    G90                     ; Set absolute mode
    
    

    And, as mentioned, your homeu.g G1 command is missing the "U".

    G1 400 F6000 H1         ; Yours now. 
    G1 U400 F6000 H1      ; Should be like this. 
    


  • Thank you for your help.
    The limit switch was in the wrong PIN
    Excuse me



  • @Elko Sounds familiar! 🙂 Good you found the reason.


Log in to reply