-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino Due flashed as ramps 1.6 homing fail #18
Comments
Switches are wired correctly? Trigger each separately and check with $LIM command. |
yes, switches are wired correctly. |
Homing works for me in my test setup. How are the switched wired (to min or max inputs or both)? |
Both |
Are you homing towards max? |
Yes |
Ok, that explains it. You have to home towards min. |
Really? OMG I did not even think of trying that(neither did anybody on Reddit) |
I was kinda hoping and dreading I was just a dumbdumb |
So, just home all axises towards min? |
Yes. |
Thanks I appreciate it |
It was a long time ago that I tried grblHAL and I would like to understand this for the next person asking. In the classic gnea/grbl there was only one input for each axis. It would not matter where you put your limit switches, as long as you configured the homing direction correctly. Default in GRBL $23=0 means that all limit switches needs to be placed in the positive direction for each axis. And this has changed in grblHAL? I am assuming that this is @Kickpunchy:s original post on reddit with the configuration that was used: |
As you state legacy Grbl has no notion of min and max limit switches, grblHAL has, the core can even differentiate between limit switches and home switches. grblHAL uses the min limit inputs for homing if the driver does not support separate inputs for homing. No driver currently support separate homing inputs but that may change in the future.
This still applies, as long as the switches in the homing direction is connected to the min inputs. I guess I selected the min inputs since homing by default sets the home position in negative space.
I believe not. Note that very few driver/board combinations has both min and max limit inputs - this is new in the Grbl world and may cause confusion? |
If the configuration says that homing should be done on the positive end of each axis ($23=0) but you'd need to wire the switches to the min-inputs, which normally should be put on the negative ends of each axis I'd say that it is a bit confusing. Is it ok if I make a note of it on the wiki here on $21 that the min inputs should be used? |
Let me think about this a bit. Currently only the Arduino Due and the LPC176x drivers has max inputs available at the driver level so I could change the behaviour to remove confusion without affecting too many users. In addition only the limit switches used for homing should have interrupt disabled during homing if hard limits is enabled. |
I have now committed an update that significantly changes how limit switches are used for homing. @Kickpunchy The Due driver should be fully compliant with this change. If you have time can you please verify? @breiler I think this change warrant a new Wiki page dedicated to homing. What do you think? |
I think that a page specifically for homing is a good idea. =) |
My NC Limit switches trigger alarm when machine is jogged to limit. However, homing cycle crashes through z max limit. Tried with UGS and gsender.
The text was updated successfully, but these errors were encountered: