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.19k stars 19.22k forks source link

[BUG] Z = 1 after G28 on delta #15495

Closed Glodigit closed 4 years ago

Glodigit commented 4 years ago

I git pulled the latest 2.0 and after G28 on my delta, the Z height is set to 1mm instead of the delta height.

Steps to Reproduce

  1. Pull latest marlin
  2. Send G28

Configuration.zip

tincatinca commented 4 years ago

Strange because I came on here because I have the same problem except my Z = 5 been using ver 2 successfully for 2 weeks but now has developed this problem

Glodigit commented 4 years ago

Ok I've determined that the Z is correct when bed levelling is turned "Off". When it is turned back on again and auto homed, Z = 1 again.

tvixen commented 4 years ago

Seems to be the same issue as #15494 You could try the dev-2.1.x version.

Glodigit commented 4 years ago

Updated to dev 2.1 with the same issues.

Studna3D commented 4 years ago

I have the same problem after bed leveling. When I start printing, runs G28 and G29, but after Z axis not moving, it's only Z=5 over the bed and prints only at this height.

RMN9 commented 4 years ago

If we i #define AUTO_BEDLEVELINGLINEAR G28 give Z 10 and then G29 give Z 10->1mm

If we i #define AUTO_BEDLEVELINGBILINEAR G28 give Z 10 and then G29 give Z 10

Glodigit commented 4 years ago

Plugged into MatterControl, I get X: -0.34 Y: -0.22 Z:1.00 with bed leveling on. With it off, I get X:0, Y:0, Z:230.94

Glodigit commented 4 years ago

Looks like there's a sync_plan_position that causes the values to change.

LP_print_log.txt

Evgeny-SPB commented 4 years ago

I have the same problem on prusa like printer. The problem is in "void Planner::apply_leveling(xyz_pos_t &raw)" in planner.cpp and concerns only ABL_PLANAR levelling (in my case 3 point levelling). Function "apply_rotation_xyz(bed_level_matrix, d.x, d.y, raw.z);" always returns Z = 1.0

Glodigit commented 4 years ago

15610 seems to work. Now I need to get my TMC5160 to extrude so that I can see if bed levelling is applied.

Evgeny-SPB commented 4 years ago

Issue is probably solved with PR #15636, which is already merged.

boelle commented 4 years ago

will close this one as it prob fixed by https://github.com/MarlinFirmware/Marlin/pull/15636

we can always reopen

github-actions[bot] commented 4 years 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.