Skip to content

[BUG] Z-Offset Not Working Properly After Upgrading to Marlin 2.1.3-b1: Reported Z Height Inaccuracies #27581

Open
@Skaifer

Description

@Skaifer

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

Yes, and the problem still exists.

Bug Description

Hello,
So, I'm trying to upgrade firmware from old version 2.1.1 to 2.1.3-b1, and stumbled upon an issue, that I think could be a bug.

I can't get Z-offset to work properly. After flashing new firmware, I do as usual and reset EEPROM. Then I do homing, probes the middle of the bed, double-click on knob and adjust babysteps until the nozzle touches the build plate. Then I save settings and run homing to check if Z height is correct or needs further adjusting.

But instead of it being at least close to target height, its final actual Z height always stays approximately at 1.4mm, but the screen reports Z height as whatever negative Z-offset I entered but with a positive value.

Did transfer settings manually from the old configs and Z_AFTER_HOMING is set to 0. I did try latest bugfix, transferred only essential settings and it still behaves this way. Flashed old 2.1.1 back, and there is no problem, so that's not a hardware issue.
Included configuration files from version 2.1.3-b1 and two homing procedures with old Marlin 2.1.1, which preforms as it should and the new version.

Hopefully, I managed to describe my issue across somehow. =)

G28_tests.zip
Configuration.zip

Bug Timeline

New. After upgrade from Marlin 2.1.1 to 2.1.3-b1.

Expected behavior

I expected nozzle with z-offset -10mm to crash into buildplate or to be at Z0 position after homing, with nozzle touching the buildplate, as adjusted to actual z-offset of -1.33mm.

Actual behavior

The nozzle is ~1.4mm above the buildplate, but reported Z height is either 10mm or 1.33mm with z-offset being -10 and -1.33 respectively.

Steps to Reproduce

Steps followed in G28 test files:

  1. Enabled DEBUG_LEVELING_FEATURE and M114_DETAIL, flashed to printer via SD card
  2. Connect my laptop through Pronterface
  3. Reset EEPROM with M502 followed by M500
  4. Enabled maximum logging with M111 S247
  5. Did G28 as a base reference with Z-offset 0
  6. Then I've set Z-offset to insane M851 Z-10 (For demonstration purposes, similarly happens with actual -1.33mm)
  7. Final G28
  8. Following the same commands through LCD gives the same results.

Version of Marlin Firmware

Marlin 2.1.3-b1

Printer model

Creality CR-10S

Electronics

BTT SKRv1.3, BL-Touch v1.2, TMC2208, E3Dv6, DirectDrive

LCD/Controller

Stock

Other add-ons

No response

Bed Leveling

ABL Bilinear mesh

Your Slicer

None

Host Software

Pronterface

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Did not change any other files except Configuration.h and Configuration_adv.h. Bootscreen and statusscreen files, which should be irrelevant.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions