-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[FR] HOMING_BACKOFF_MM confused with Z_AFTER_PROBING #15787
Comments
I set Z_AFTER_PROBING = 5 and HOMING_BACKOFF_MM { 0, 0, 20 } So, it looks like Z_AFTER_PROBING is getting called after a straight Z home. The Z home during probing does not do the backoff and does end at 5, the Z_AFTER_PROBING height. I have a nozzle mounted Piezo probe/endstop connected to the Z_MIN pin so it does not use a custom probe pin. |
This appears dead in the water. Has anyone looked at this? |
@thinkyhead @shitcreek might have time at some point |
Just by the operation, Z_AFTER_PROBING appears to be getting handled in the Z home routine but without testing if the home was called from a probing routine or from a G28. If G28 calls the Z home, after it is homed, G28 backs off Z. So, I would think that a backoff sub should test which one should be done (it is only one) and not have it in the home routine. Just my guess. |
When you home Z with a probe, it qualifies as probing.
|
so maybe rename this one to a FR and rename the title? |
@shitcreek @boelle This is NOT a feature request. Here is why. I set Z_AFTER_PROBING = 0 and HOMING_BACKOFF_MM { 0, 0, 20 } However, I do not want the nozzle to end up on the bed with either Homing or probing, What makes you think that implementing the Z after probing height after HOMING is design intent? Yes, you should apply the requested Z rise after the proper function. Doing both after a HOME is a BUG. |
@boelle update: Now it implements only backoff for homing and Z_AFTER_PROBING only after probing |
@boelle Is this EVER going to get fixed? Logically, removing it will affect no one because it is for PROBING not HOMING. |
ask @thinkyhead or @shitcreek not me |
Is this EVER going to get fixed? Logically, removing it will affect no one because it is for PROBING not HOMING. |
I'm not sure, if I have the same problem, but I found this issue after searching for |
You could use Z_PROBE_END_SCRIPT to set the height and do all kinds of tricks that apply only to probing as that is not run with G28. |
@blackus3r It does not sound like the same issue. However, I recommend implementing the fix I have first. I am not sure why @thinkyhead is not addressing this, but.......... |
we could make a PR... i could even make it i just need to know precise what file to change and what to change |
please add @ in front of my username to get my attention |
@boelle |
@boelle Hey, I just uploaded that build. |
@ruggb change the limits to 9 instead of 20. Was forced due to a rollover issue. Now looks at limit to determine display. Also move amount is not affected by the display change.... |
@InsanityAutomation |
Configuration.h // For M851 give a range for adjusting the Z probe offset
#define Z_PROBE_OFFSET_RANGE_MIN -20
#define Z_PROBE_OFFSET_RANGE_MAX 20 See #16425 - with the 3 digit precision many users insisted on, values were getting rolled over and set incorrectly when over 10. So now we look at the limit and give precision when we can otherwise itll work albeit not as precisely as some prefer. |
@InsanityAutomation My probe IS the nozzle, so my range is 0, right? |
Yes, its display only. If you set them to 9 or below, it will show 3 significant digits. 10 or more it shows 2. Setting to 0 will mean you cant babystep at all, so maybe a reasonable limit like 5. |
@InsanityAutomation |
But BS does work at 0. Since that 4th digit is useless and I don't need it, I will change it to 5 maybe. That number is meaningless to me anyway. |
The amount it changes is up to the same value it has always been, BABYSTEP_MULTIPLICATOR_Z in config_adv and the actual steps/mm as that refers to a step amount based on the lcd encoder increments. |
Yes, mine increments 0.005/step. |
Iff M851 and babystepping are not combined it is not a retained number. |
if changes on how marlin behaves an FR is in order here code is doing as it is written problem here is that it does 2 steps but there should be an option to switch between or one should be removed if homing with probe, probe should be used |
@boelle When the system HOMES Z, it is NOT PROBING, it is HOMING. Doing so causes the system to do HOMING BACKOFF after HOMING, then do Z AFTER PROBING. I cannot be much clearer. The code is definitely "doing as it is written". That is not the problem. And I am tired of trying to educate you, so I will just ignore this and keep modifying MY file to make it work as it should. |
Ill be frank here. I understand the issue is it is executing both and only one of these 2 functions should be executed. The reason nobody has touched even that much of it is because of the combative attitude. You catch more flies with honey than vinegar as they say. From one side, any action done with the probe is probing. It is published in many places to set the desired z after homing there with a probe. It is controlled not just by the presence of a probe, but by the flag of if you are actually using the probe to home. By that logic, the number here should override the number in homing backoff and only a single move executed. If you enable homing backoff and put a number that is not 0 or matching the z after probing, a sanity check should stop you and warn of an inconsistent configuration. This could all be done in an hour. Probably would have been already if the tone here didnt send anyone capable of doing it running. |
then its a FR
now that i'm close to 42years it might be that what is left of the big grey jelly mass on top of my shoulders have calcified up etc, but i dont think i ever asked for this but just an old mans guess here that this issue will hang around for much longer now |
@ruggb I'm out of town and not really able to test any code changes I make. But if this doesn't get resolved to your satisfaction in 2 or 3 weeks... Please send me a message. I'll personally work with you to get the desired behavior. (I value your contributions finding issues and working through them! And I think I've noticed what may be the same strange behavior when homing and starting a print. ) |
@InsanityAutomation Bottom line, you also still do not seem to understand the issue. "From one side, any action done with the probe is probing. It is published in many places to set the desired z after homing there with a probe. It is controlled not just by the presence of a probe, but by the flag of if you are actually using the probe to home. By that logic, the number here should override the number in homing backoff and only a single move executed. If you enable homing backoff and put a number that is not 0 or matching the z after probing, a sanity check should stop you and warn of an inconsistent configuration." Those are two separate items. There is no connection. When you home, you execute HOMING_BACKOFF. You DO NOT then execute Z_AFTER_PROBING. There is nothing to sanity check. After homing I want the nozzle at 20. After probing I want the nozzle at 5. I think you should drop this issue, because I am afraid you will mess it up more than it is, since you do not understand. The "strange behavior when homing and starting a print. " @boelle notices is EXACTLY a result of this BUG. The printer will home Z then go to 20 (HOMING BACKOFF), then go to 5 (Z AFTER PROBING, except it wasn't probing, so it should not DO that), then start the print. |
please dont @ me, your attitude is to toxic for me |
@ruggb — Generally speaking, I see, as you point out, that the At the moment there is no separate option in Marlin for a raise after homing. Of course, this is easy enough to add. The code will be quite straightforward. I'll push something shortly for you to try out. |
See if #16755 is useful. |
@thinkyhead |
Gratitude? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
bugfix-2.0.x.9e8021d
in config...h
#define Z_AFTER_PROBING 10
in config...adv.h
#define HOMING_BACKOFF_MM { 0, 0, 0 }
when homed, nozzle RAISES 10 mm.
I expect it to stay at Z0
If I set #define Z_AFTER_PROBING 0
when homed nozzle stays at Z0
I didn't test it the other way round, but it would appear that homing is using the wrong variable.
So maybe probing is also using the wrong variable, maybe not.
I do have a nozzle probe defined and it appears that in G28.cpp & G29.cpp
should be qualified differently.
configs.zip
The text was updated successfully, but these errors were encountered: