protoloft / klipper_z_calibration

Klipper plugin for self-calibrating z-offset
GNU General Public License v3.0
1.06k stars 152 forks source link

offset outside of configured range? #98

Closed Gil80 closed 1 year ago

Gil80 commented 1 year ago

Looking at the Z Calibration output, I thought I got it bang on, but when I send it to print, I get the following error: Offset -1.025 is outside the configured range of min=-1.000 and max=1.000

HINT: z position_endstop=1.230 - offset=0.000000 --> possible z position_endstop=1.230 Z-CALIBRATION: probe=6.395 - (switch=7.265 - nozzle=1.260 + switch_offset=0.390) --> new offset=0.000000

Why is that?

Here's what I get when I send it to print:

HINT: z position_endstop=1.230 - offset=-1.038648 --> possible z position_endstop=2.269 7:38 PM Z-CALIBRATION: probe=5.361 - (switch=6.224 - nozzle=0.214 + switch_offset=0.390) --> new offset=-1.038648

TitusLabs commented 1 year ago

It's so hard to say. Maybe you had plastic at the nozzle, your gantry sacks and you did not home after QGL, or there is something else wrong with your mechanics/klicky...

RickDnamps commented 1 year ago

I don't know why but they change the code now and the maximum offset is not adjustable anymore even if you put somehting for the variable like "max_deviation: 2.0" .... the code is hardcoded with min max offset = -1.00 ... +1.00. That is sad cause now if you just want to change your print plate for a thicker one ( like carbon fiber 1mm thick), the auto adjustment doesn't work anymore I have to change manually my "position_endstop" in my print.cfg to add or remove 1.00mm.

So in your case if you want it to work I suggest Redo your Z adjustment direct on the printer with paper and save the value... or just add 1.00 to your current value "position_endstop" at the end of the print.cfg (will be in green probably) The line should look like that:

*# [stepper_z]

*# position_endstop = 1.443

So in your case the new value will become

*# position_endstop = 2.443

Use your own value not mine ...

TitusLabs commented 1 year ago

@RickDnamps are you using the latest version? There was a bug with the default value of the max_deviation. But I suggest to use the newer property: offset_margins

RickDnamps commented 1 year ago

@RickDnamps are you using the latest version? There was a bug with the default value of the max_deviation. But I suggest to use the newer property: offset_margins

I just Saw that the update need to change some parameter in Z_Calibration.cfg .... Probably alot of people do like me and just update it without changing anything to their config file ....

I will update that now and retry the latest version thx

TitusLabs commented 1 year ago

Exactly, there have been deprecated configurations for over a year that I have now removed. The max_deviation is now only marked as deprecated with the current release, so that the update can be completed without any adjustments if possible (if you were almost up to date). So there is no need to switch to offset_margins right now - but it would be great.

TitusLabs commented 1 year ago

I am closing this ticket now. If there is still a problem, please reopen it...