-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
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
Change G27 to allow Z raise if homing needed #26789
base: bugfix-2.1.x
Are you sure you want to change the base?
Change G27 to allow Z raise if homing needed #26789
Conversation
… into bugfix-2.1.x-Feb
… into bugfix-2.1.x-Feb
… into bugfix-2.1.x-Feb
…3/Marlin into bugfix-2.1.x-Feb
I think your change to G27 is worth considering. Can you remove all the other unrelated changes from the PR, so that the G27 change can be reviewed and evaluated in isolation? |
done |
@InsanityAutomation now that the scope of this PR is very small, I'd like your opinion on these G-Code changes. The changes seem reasonable to me. Yes, with the Z-raise it may be possible to crash to the endstop, but it is a small move (presumably at low speed), and it is a compromise between that and potentially dragging across the bed or whatever else is beneath the head. |
With advanced pause, we allow either behavior with HOME_BEFORE_FILAMENT_CHANGE as the behavior is nearly identical. For consistency sake, I would prefer to see the option in configuration.h to allow or disallow this behavior. As @sjasonsmith notes, the impact is fairly small however the viable use cases are also few and far between. Personally I would configure my own machines to block the behavior. We could look at the axis trust factor on the function, and possibly allow it if position is is known but not trusted (eg manually set or steppers disabled prior) for a general case finding a middle ground that should be viable on both sides. |
oh i see so like in configuration.h add something like let me know what I should do, option 1? |
Yup, adding the config option as described to allow this behavior is the route I would go. |
added if #define G27_BYPASS_TRUST // Allows `G27 P3` to raise Z even if axis is not trusted not sure about the wording/placement, but anyone got something better? |
b47a445 disables this by default to retain existing behavior. |
… into bugfix-2.1.x-Feb
I don't understand, what is causing the error in checks? only says operation cancelled on very last one. surely it cannot be something in this PR two files |
Sometimes there are issues on GitHub's end. I restarted the failed job(s), so watch the checks page for details: https://github.com/MarlinFirmware/Marlin/pull/26789/checks |
ok thanks, I figured it was something like that. seems to be working. it was strange because it was the same error a couple times in a row |
c792921
to
37fb26b
Compare
37d77d6
to
aa44542
Compare
… into bugfix-2.1.x-Feb
Description
When using
G27 P3
, this allows Z axis to be raised even if homing may be needed.Same for
G27 P4
, allows XY to move if Z axis is not homed.When a blocking move is done only in the Z axis, it moves up by
NOZZLE_PARK_Z_RAISE_MIN
which is around 10mm.G27 P3
to allow Z raise if homing neededG27 P4
)tweak ProUI caselightmoved to other PRupdate macros.h so previous#define
are above next calladd millis_t to libs/duration_t.hduration_t.h/compat.h/stepper.cpp/motion.h/motion.cppunrelated but should be addressed
IF_DISABLED(O,A) TERN(O,,A)
before it wasdefined as_TERN(_ENA_1(O),,A)
which is the same asTERN_
, which doesnt make sense.IF_DISABLED(O,A) TERN(O,,A)
, no?FT_MOTION
-ftMotion_stepper()
,ENDSTOP_INTERRUPTS_FEATURE
should enable the update, not disable??? (When FT_Motion enabled Print doesn't start and Homing failure [BUG] classicrocker883/MRiscoCProUI#113)Requirements
Benefits
Configurations
Related Issues
The only foreseen negative consequence of this change is if the axis is already near its max limit. This really should not be an issue, a user doesn't have to be extra careful in that regard knowing where the limit is.
But if a user just wants to raise the Z, homing isn't required, and this can be beneficial when aborting a print, when a print is complete, or just wanting to raise Z say if the head is too close to the bed, or printed part, for any reason.
Then
G27 P3
can be used without needing to "Home"/"trusted axis"