Welcome to Our Community

Some features disabled for guests. Register Today.

X-axis doesn’t back up from limit switch when homing

Discussion in 'Controller Boards' started by David Kater, Mar 24, 2022.

  1. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
  2. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    I did a test cut, and something definitely is not right here. When jogging 1 axis at a time all is fine, but in this g code there were some steps lost on the Y-axis. That probably happened in the stutter, now to find out where the stutter comes from
     

    Attached Files:

    Peter Van Der Walt likes this.
  3. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    Best news yet - reaffirms the theory that the machine is unable to move - and that the control system is fine.

    Time for a mechanical teardown to see what's loose - that still looks like classic slippage from loose shaft couplers, loose leadnuts etc
     
  4. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    I checked all of that, and everything is tight. Checked for backlash, nothing there. Loosened and re-tightened leadscrew nuts, and couplers, also all fine.
     
  5. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    This is one of those cases where the symptoms says the above statement is not true. Something is slipping (or binding) instead of moving properly.
    The only question is what and that can only be found by systematically inspecting your machine
     
  6. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    But doesn’t it lose steps because of the stutter?
     
  7. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    Could also be, thus why I said:


     
  8. Alex Chambers

    Alex Chambers Master
    Moderator Builder

    Joined:
    Nov 1, 2018
    Messages:
    2,783
    Likes Received:
    1,364
    The stutter is what you see when it is losing steps - its the symptom rather than the cause.
    Alex.
     
  9. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    Not always... rails versus wheels - could just be binding first. Less forgiving to installation alignment than V-Wheels
     
  10. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    I did align them within 30 microns, and the minimum is 40, so that should be good. When there werent any screws installed, it was buttery-smooth, so the rails cant be the issue. I also tried adjusting the torque on the blackbox, but that also made no difference
     
  11. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    Disconnect the motor shafts (mechanically) and spin the leadscrews by hand - feeling for play/binding spots/etc
    (Don't spin the motors - backfeeding your stepper drivers can damage them)
     
    #71 Peter Van Der Walt, Mar 30, 2022
    Last edited: Mar 30, 2022
    David Kater likes this.
  12. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    I did this on the Y, and they are spinning freely. I also pressed home all axis, while the leadscrews were disconnected. The next thing happened, as can be seen on the video:

    The motors all stuttered, but when X reached the switch, and stopped moving, it stopped stuttering, and moved freely again.
     
  13. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    What about X (where this thread originates from)?
     
  14. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    X runs really smooth too, even better than the Y's
     
  15. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    Was not attached :)
     
  16. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    Sorry, my bad!
     

    Attached Files:

  17. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    What power supply do you have?
     
  18. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    The standard one from RatRig, 350watt, 24V, 14.6a. Running on 240 volts
     
  19. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    Post another Grbl settings backup please?
     
  20. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    I think this is the most recent one
     

    Attached Files:

  21. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    Just comparing your settings to the Grbl defaults, and yeah that $1 will be the stutter... Defaults in Grbl is pretty good. Steps per mm, acceleration, max rate, any direction inversions (or just build the machine correctly so you don't need inversions) and your homing/limits preferences are about all you need to change. Don't change advanced settings like timing, junction deviations, arc tolerances etc

    upload_2022-3-31_16-46-1.png


    Perhaps try a clean set of Grbl defaults (Reset EEPROM)
    - Fix any motors spinning the wrong way round - by fixing the wiring order (yes, you can use $3 - but its one less thing to remember to change)
    - Put the limits all at axis maximas (see Frequently Asked Questions · gnea/grbl Wiki) - yes you can change it but if its "as expected" its easier to troubleshoot
    - Don't change any values other than Steps per mm
    - Try enabling Homing again
    - Test homing
     
  22. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    Alright, I will change that! I did built the machine correctly, but RatRig, from which I bought the machine, has the switches located on different locations than the stock workbee. I will try this, and come back on it!
     
  23. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    Doesn't matter too much, but still here's something odd, so lets do it the Grbl way (not the manufacturer way) just to take bring it in a little first
     
  24. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    Only problem is, I don't have enough wire length to change to switches to maximum, so is there a workaround for that?
     
  25. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    OK, leave them there and set $23 then :)
     
  26. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    Now i did a fresh install, reset everything, and switched the wires arround so the jogging directions are right. When I press home, x goes to right, and y to the front, while they need to go to back-left. So I invert home X and Y, but then Y comes forward, untill X hits the switch, and then Y reverses, untill it hits its swich. Then Y backs off, and it is finished, but X doesnt back off. Is there a way to send the machine to back left?
     
  27. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    These are the settings from the fresh reset
     

    Attached Files:

  28. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    First make sure its Jogging the right directions! Machine has to comply with cartesian standard in its own moves FIRST!

    X+ = to the right
    Y+ = to the back of machine
    Z+ = up and away from the bed
    If not, fix it with either the wiring (recommended) or $3 parameters (Use CONTROL's toggle switches - easier to understand that calculating bitmask)

    Only once it JOGS the right way, can you move onto homing

    $23 doesn't reverse the axis it tells Grbl "I put the switches on the wrong side for these axis" - ie at axis minimums not axis maximas.
    Default ($23=0) expects all three switches at axis maxima
    But yours is Left (i.e X-min), back (Y-Max) and Z-top (Z-Max)
    So you need to apply a mask that only inverts the X switch position as its not where Grbl would have preferred it.

    From the Grbl wiki, that would be: $23=1

    upload_2022-3-31_17-37-20.png

    $23 is not set by observation, but by facts -- where is the switch located on the machine.
    The "normal" position is axis maximum. Any switch placed on the other end is "inverse" of the expected normal position
     
  29. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,047
    Likes Received:
    4,313
    Looking over machine parameters, also set Max Travel - or later when you are far away from the switches and try homing it will error about not finding the switches within the allowed distance (as machine is bigger than 200x200mm)
     
  30. David Kater

    Builder

    Joined:
    Feb 4, 2022
    Messages:
    67
    Likes Received:
    10
    Alright! I have the jogging sorted, that is all fine, I will apply that mask with no. 1, hope it works!
     
    Peter Van Der Walt likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice