MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.28k stars 19.23k forks source link

[BUG] Z_SAFE_HOMING is broken #25010

Closed francuz152 closed 1 year ago

francuz152 commented 1 year ago

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

while homing Z axis the printer "sets" the X and Y value to the correct for z safe homing (middle of the bed) but the extruder doesn't actually moves, if i home x and y, then manually move to the center of the bed and then home Z, it goes right down and probe correctly but any command that have a homing in it is impossible to use (like g29)

Bug Timeline

No response

Expected behavior

extruder actually moves before homing Z

Actual behavior

extruder after homing X and Y go strait down (in my setup crash into the bed)

Steps to Reproduce

No response

Version of Marlin Firmware

FIRMWARE_NAME:Marlin 2.1.1 (Nov 23 2022 11:46:42)

Printer model

anet A8 plus (moded)

Electronics

SKR 1.7 Turbo

Add-ons

No response

Bed Leveling

UBL Bilinear mesh

Your Slicer

Prusa Slicer

Host Software

OctoPrint

Don't forget to include

Additional information & file uploads

config : https://pastebin.com/zpQ0yLNc config adv : https://pastebin.com/VK9Gf5Ly Marlin.zip

ellensp commented 1 year ago

reset your eeprom to firmware defaults M502 then M500, you should do this after every upload until firmware is in it final configuration or enable EEPROM_INIT_NOW so that it sets eeprom to defaults on every upload of new firmware

francuz152 commented 1 year ago

done it multiple times, no change

francuz152 commented 1 year ago

the biggest issue that i see is that the LCD show that X and Y coordinates change but the extruder don't move

thisiskeithb commented 1 year ago

Whenever there are homing or leveling issues, we now ask everyone to follow a standard procedure to gather more information:

Repeat this procedure, if needed, to demonstrate inconsistencies. From these logs we should hopefully get a better idea of what's going on with your machine.

thisiskeithb commented 1 year ago

I use Z_SAFE_HOMING on my builds here using the current bugfix-2.1.x and it works fine, so it's probably something specific to your config/hardware. Please follow the steps outlined in my previous comment so we have more data to review.

francuz152 commented 1 year ago

did everything you said up to G28 (that is the problem)

https://pastebin.com/2LeVxrvm

the issue is that when it is supposed to go to the middle of the bed it just don't move and go strait down and the LCD shows it changed coordinates but the extruder don't move homing X and Y work fine, logs.txt

thinkyhead commented 1 year ago

According to the log there is a move being sent to the planner after X and Y have homed to X283 Y-3

Recv: <<< do_blocking_move_to  X111.00 Y121.00 Z5.00

So it's a mystery why the commanded move is not actually taking place. It implies that the X and Y steppers have gone into standstill, or something. See if it makes any difference to set the acceleration really low with M201 X500 Y500 or M204 T500 before homing.

ellensp commented 1 year ago

From the posted configs you have

define X_HOME_DIR 1

define USE_XMIN_PLUG

define USE_XMAX_PLUG

But what is plugged into XMIN_PLUG? I suspect nothing.

I suspect this is why It will not move

Your performing a Z home with z_safe_homie marlin want to move toward the X min endstop after homing to max but the min endstpp is saying I am triggered don't move

Comment out #define USE_XMIN_PLUG

francuz152 commented 1 year ago

that done it, thank you very much

ellensp commented 1 year ago

@thinkyhead do you want to chase this further? add endstop triggered message to the debugging ? This is not the first time I have seen this

github-actions[bot] commented 1 year ago

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.