Closed Amachete closed 5 years ago
Hello again.
I have messing around the code, and changing the following made it work:
My setup: Zmin is under level of bed as safety endstop just in case the probe does not work prperly. Z_Probe as the real Z_min, and for bed leveling.
if (stepper.axis_is_moving(Z_AXIS)) {
if (stepper.motor_direction(Z_AXIS_HEAD)) { // Z -direction. Gantry down, bed up.
#if HAS_Z_MIN
#if ENABLED(Z_DUAL_ENDSTOPS)
PROCESS_DUAL_ENDSTOP(Z, Z2, MIN);
#else
#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
if (z_probe_enabled) PROCESS_ENDSTOP(Z, MIN);
#elif ENABLED(Z_MIN_PROBE_ENDSTOP)
//if (!z_probe_enabled) PROCESS_ENDSTOP(Z, MIN);
if (z_probe_enabled) PROCESS_ENDSTOP(Z, MIN);
#else
PROCESS_ENDSTOP(Z, MIN);
#endif
#endif
#endif
//#define HOMING_Z_WITH_PROBE (HAS_BED_PROBE && Z_HOME_DIR < 0 && ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN))
#define HOMING_Z_WITH_PROBE (HAS_BED_PROBE && Z_HOME_DIR < 0 && (ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)||ENABLED(Z_MIN_PROBE_ENDSTOP)))
With this changes I can make the z axis stops with both Z_endstop and with the Z_Probe.
The Bed leveling works too!!!!
I just want you all to know!
I do not know If it´s worth to add those changes to the code source.
Bye.
Yes, I can confirm
Z_MIN_PROBE
without function
@Amachete — Marlin doesn't currently support both a Z min endstop and a Z probe used for homing, as you discovered. In Marlin a Z probe attached to the Z min pin replaces the Z endstop (Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
), and a Z probe attached to another pin, (so that a Z min endstop may exist) will not be used to home Z (Z_MIN_PROBE_ENDSTOP
). But in either case the probe will always be used for G29
, etc.
There's an argument to be made for having both a Z min endstop and a Z probe, where both may be used for homing. Perhaps as an extra measure for a probe that isn't trusted, or which is off the bed.
Hello
Thank you for your quick replay.
My printer is a PRUSA STYLE, the Z_HOMING is ON the bed, It does not matter if It is on the 0.0.0 corner or just in the middle of the bed (Z_SAFE).
My point of view is if you have a pretty level bed printer the mechanical Z_ENDSTOP works right for you. But if your bed is unleveled….
Look at the picture , when the Z_HOME is done There is some places of the bed level I can not reach because of the mechanical endstop, If it were optical I could pass through, but not with mechanical.
In the last picture you can see if you make a Z_HOMING OUTSIDE of the bed you could reach the whole bed, ishhh. the current marlín setup Works perfect, but It is not my case, yet (Dual Z_motor and Z_DUALENDSTOP, are on its way)
That´s why I thing we need at least a way to use Z_HOME sensor as Z_ENDSTOP, both at the same time, without using the same pin (my setup).
In my opinion It should not be so difficult to implement something to make the Z_end_stop and Z_probe to work together as Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN does , something like "Z_MIN_PROBE_WORK_TOGETHER"
Sorry for my English but I hope you can understand what I mean.
Cheers!!
hey friends i use the normal configuration.
z min is without function! have already tried the above-mentioned moifikation with copy and paste. without success !!
@swap81 — Please don't post your whole configuration in a comment. And [code]
doesn't work here. GitHub comments use Markdown.
thanks for compressing. what is the solution for the z-min with cap.sensor problem?
Many possibilities. Lower the mechanical endstop so it doesn't get in the way. Or raise the bed a little. And/or increase the triggering distance to the capacitive probe. And/or, lower the capacitive probe.
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.
Hello
I am trying to update to the last version, i have tried with both versions 1.1.9 and 2.0, and my probe does not stop at homing.
Z_min is below bed level and I use the z_probe as Z_homing.
In a very old setup this used to work but I am not able to do it work with this latest releases.
I will attach the three files, ramps, configuration and configuration_adv of the latest 1.1.9.
Marlin_1.1.9_z_probe_issue.zip
Thank you.