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

    Sensorless Homing oddness

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    5
    21
    3.3k
    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.
    • mhackneyundefined
      mhackney
      last edited by

      I noticed something else, when I run Home X by itself, most of the time it works correctly. But in 6-10 runs, it will also move in the wrong direction and stop the "back off to edge of bed" (see in code) distance. So, the behavior is, none of movement code above that line is run but the G1 X25 F2000 is executed and the carriage moves 25mm in the +X direction on occasion.

      ; Sensorless Homing for X axis
      ; BL Touch prep
      M280 P3 S160 I1			; alarm release and push-pin up
      M402				; retract probe in case its down    
      
      M400                    	; make sure everything has stopped before we make changes
      M913 X50             		; reduce motor current to 50% to prevent belts slipping
      M915 X S3 R0 F0			; X sensitivity to 3, do nothing when stall, unfiltered
      
      G91                   	 	; use relative positioning
      G1 S1 X-270 F4000    		; move to home position
      G1 X25 F2000          		; back off to edge of bed
      	
      G90            			; back to absolute positioning
      M913 X100        		; motor currents back to normal
      

      My 3D Printing blog: http://www.sublimelayers.com
      Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

      1 Reply Last reply Reply Quote 0
      • mhackneyundefined
        mhackney
        last edited by mhackney

        Here's a CoreXY question! In my homex.g script above, I reduce the current for the X stepper. However, CoreXY movements in X use both the X and Y steppers. The M913 command sets motor current % for the MOTOR not the axis, correct? So all of us with CoreXYs need to reduce current on both X and Y motors when we use senseless homing. I'll try this now. Don't think it will affect my issue but I think this is the correct configuration for CoreXY right?

        And this would apply to M915 motor stall detection too wouldn't it.

        My 3D Printing blog: http://www.sublimelayers.com
        Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

        1 Reply Last reply Reply Quote 0
        • mhackneyundefined
          mhackney
          last edited by

          Ok, I think I have a handle on things. It required understanding the M913 and M915 behavior - they apply to drives no axes (I had to use the M915 P0:1, the X Y did not provide consistent behavior) AND an issue with my printer. First, code:

          Simple homeall execute individual homing scripts

          ; homeall by executing individual axes homing macros
          M98 Phomex.g
          M98 Phomey.g
          M98 Phomez.g 
          

          homex.g

          ; home X with BL Touch
          
          ; Sensorless Homing for X axis
          ; BL Touch prep
          M280 P3 S160 I1			; alarm release and push-pin up
          M402				; retract probe in case its down
          
          M400                    	; make sure everything has stopped before we make changes
          M913 X30 Y30             	; reduce motor current to 50% to prevent belts slipping unfiltered
          M915 P0:1 S3 R0 F0
          
          G91                   	 	; use relative positioning
          G1 S1 X-270 F4000    		; move to home position
          G1 X25 F2000          		; back off to edge of bed
          	
          G90            			; back to absolute positioning
          M400
          M913 X100 Y100        		; motor currents back to normal
          

          homey.g is the similar to above

          homez.g uses BL Touch probe

          ; BL Touch prep
          M280 P3 S160 I1			; alarm release and push-pin up
          G4 S1
          M402				; retract probe in case its down
          G4 S0.5
          
          ; lower bed for travel
          G91				; relative moves
          G1 Z5 F200 S2			; lower bed 5mm
          
          ; move probe into position
          G90
          G1 X135 Y135 F4000		; move to bed center
          
          M400
          ; slow down for probing
          M566 Z10			; max instantaneous speed change (mm/min) (jerk)
          M203 Z400			; max speed (mm/min)
          M201 Z100			; max acceleration (mm/s^2)
          
          ; probe
          M558 A1 F400			; set single probe at faster feed rate
          G30				; probe
          M558 A10 F100			; set single probe at slower feed rate (more accurate)
          G30				; probe to get a more accurate postion
          
          M400
          ; set normal speeds
          M566 Z60			; max instantaneous speed change (mm/min) (jerk)
          M203 Z900			; max speed (mm/min)
          M201 Z20			; max acceleration (mm/s^2) 
          

          Now for my problem - the X linear rail carriage bearings are horrible and bind slightly. Not noticeable (except the grating noise) at normal current but turning the current down to 30% creates sporadic issues with slight binding.

          I have new bearings to pack these carriages and in fact was planning to do that after I got senseless homing working. I'll claim victory (pending any recommendations from @dc42 on the code above) and take the rails off to R&R.

          My 3D Printing blog: http://www.sublimelayers.com
          Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

          1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators
            last edited by

            That's correct, M913 and M915 on a CoreXY machine relate to drives not axes.

            If an axis sometimes moves the wrong way when homing, then it could be that you have reduced the motor currents too much to overcome friction, and one motor + friction in one axis is driving the other motor backwards.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • mhackneyundefined
              mhackney
              last edited by

              Makes sense. I know my Z linear rail carriages are gritty - they occasionally make a grinding noise that "just ain't right".

              My 3D Printing blog: http://www.sublimelayers.com
              Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

              klcjr89undefined 1 Reply Last reply Reply Quote 0
              • klcjr89undefined
                klcjr89 @mhackney
                last edited by

                @mhackney How did the LM76 speed demon linear rails work out? Any cons? I want to do a build based around them.

                1 Reply Last reply Reply Quote 0
                • mhackneyundefined
                  mhackney
                  last edited by

                  I like them a lot. I do still need to complete the big CoreXY they are on but I got them moving plus I had them operational on a delta 2 years ago.

                  My 3D Printing blog: http://www.sublimelayers.com
                  Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

                  klcjr89undefined 1 Reply Last reply Reply Quote 0
                  • klcjr89undefined
                    klcjr89 @mhackney
                    last edited by

                    @mhackney The speed demon guides do seem like a better choice than the Hiwin style, less points of failure and no grit ingestion.

                    mhackneyundefined 1 Reply Last reply Reply Quote 0
                    • mhackneyundefined
                      mhackney @klcjr89
                      last edited by

                      @klcjr89 the only downside is they do not have a model as compact as a 12mm hiwin

                      My 3D Printing blog: http://www.sublimelayers.com
                      Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

                      klcjr89undefined 1 Reply Last reply Reply Quote 0
                      • klcjr89undefined
                        klcjr89 @mhackney
                        last edited by klcjr89

                        @mhackney True, but I do not see that as a shortcoming if you're designing a printer from scratch. I got a chinese clone speed demon and did a 10,000 cycle gcode test that was approximately 12 miles of movement, they wore out and there was surface rust and grit falling off the rails. The centerline of the three bearings weren't even in the same plane; poor quality!

                        I did the same gcode cycle test on a genuine LM76 one and there was zero wear!

                        This was the smallest version and the 3 roller block with one eccentric.

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