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

    Homing of U axis does not work

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    8
    376
    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.
    • Elkoundefined
      Elko
      last edited by Elko

      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!

      1 Reply Last reply Reply Quote 0
      • JoergS5undefined
        JoergS5
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • Elkoundefined
          Elko
          last edited by

          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.

          JoergS5undefined aidarundefined 2 Replies Last reply Reply Quote 0
          • JoergS5undefined
            JoergS5 @Elko
            last edited by JoergS5

            @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?)

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

              @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

              1 Reply Last reply Reply Quote 1
              • Danalundefined
                Danal
                last edited by

                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. 
                

                Delta / Kossel printer fanatic

                1 Reply Last reply Reply Quote 0
                • Elkoundefined
                  Elko
                  last edited by

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

                  JoergS5undefined 1 Reply Last reply Reply Quote 1
                  • JoergS5undefined
                    JoergS5 @Elko
                    last edited by

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

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