Printer Model: Custom Built
MCU / Printerboard: Manta M5P
Host / SBC Raspbery Pi 5
klippy.log
Fill out above information andin all cases attach yourklippy.logfile (use zip to compress it, if too big). Pasting yourprinter.cfgis not needed Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there
Describe your issue:
The recent update to Klipper has broken the mesh zero_reference+position override. I tap the bed within my adaptive mesh but outside the print. I then zero the mesh to this saved position. This does not work anymore. I can replace the dynamic values with x,y coordinates, but it does not work. It will only zero the mesh to the static values in the mesh configuration section. Please help resolve this issue.
gcode_macro TAP_MESH
gcode:
{% set x = (printer[“gcode_macro TAP_POINT”].tap_x | float) | round(1) %}
{% set y = (printer[“gcode_macro TAP_POINT”].tap_y | float) | round(1) %}
RESPOND MSG=“BED MESH ANCHORED AT TAP ({x},{y})”
BED_MESH_CALIBRATE ZERO_REFERENCE_POSITION={x},{y} METHOD=rapid_scan ADAPTIVE=1 ADAPTIVE_MARGIN=15
I am currently running v0.13.0-610-g35ace529 and it is clean according to the Klipper interface. That must be in the logs from before I updated Klipper.
FWIW, Bed Mesh does not support a dynamic zero_refererence_position and never has. When the relative_reference_index was an option it could be changed dynamically, however this was an error which was corrected several years ago when it was deprecated in favor of the zero_reference_position.
The zero_reference_position is determined when you calibrate the endstop_position for the z endstop. Its the position on the bed used to perform the calibration (this position will be Z=0 after homing). This is a value that should not change unless you recalibrate, which is why it isn’t possible to set it dynamically via gcode. If you are homing with a probe then you shouldn’t set a zero reference position, as its necessary that the probe’s z_offset be accurate and that value will be used to zero the mesh.