jschuh / klipper-macros

A collection of useful macros for the Klipper 3D printer firmware
GNU General Public License v3.0
921 stars 167 forks source link

[BUG] All surface offsets are changed after PROBE_CALIBRATE #158

Closed lettore closed 1 year ago

lettore commented 1 year ago

When I do PROBE_CALIBRATE and restart I found that the difference between before and after is added at the z-offset of the bed surfaces. While this is maybe by design when you have a z-endstop and a probe to measure the bed mesh, it's not logical when you have a printer with only the probe sensor. Because with this behaviour it's impossible to fix the z-offset of the nozzle and the probe. I can't say how much time I spent before figuring out the problem. I also don't understand what trigger this action, so I can just simply disable it. At the moment I have to manually correct every surface offset manually.

SarcasmRules commented 1 year ago

The above is correct, there's a G28 after probing/leveling needed (or at least a G28 Z), before extruder stage 2 starts. When pre-level Z=0 and bed/gantry moves, 0 != 0

SarcasmRules commented 1 year ago

@lettore

I've successfully added a G28 Z, however, heating the extruder is already called and may delay the Z homing till it cools off but for now I guess it should work. If you're using the latest (with phased print_start) add this in your custom gcode (slicer print_start):

`_PRINT_START_PHASE_PROBING
; Insert custom gcode here

G28 Z
_PRINT_START_PHASE_EXTRUDER`

jschuh commented 1 year ago

Please see the documentation for ADJUST_SURFACE_OFFSETS. When a Z probe or endstop offset change is detected at startup the console will contain a message instructing you to run this command, which can adjust the surface offsets or just accept the change without adjustments. The offsets are not adjusted automatically; you must run the command manually (or place it somewhere where it runs at startup).

@SarcasmRules Your comment doesn't appear to be related to this report. Perhaps you meant to reply to something else?

lettore commented 1 year ago

How you can say that the offsets are not adjusted automatically if is what I said is happening. I never run anything at restart but I get every surface offset changed after a PROBE_CALIBRATE, without running any other commands.