Is there someone that know the mathematics behind the MeshBedLevel points.

Is there someone that know the mathematics behind the MeshBedLevel points.

I have a “semi working” piece of software that uses the probe to meassure the points that MBL do in the manual procedure.

The X1 Y1 have a Z value of 13.85

The meassured Z value is -2.40 and I know that the Z_PROBE_OFFSET should be 2.40mm ( found with a paper under nozzle).

To transform this 0 ( 2.4 + -2.4 = 0) to the 13.85 I need the mathematics behind how the manual procedure created that value.

When I have the probe-meassured values transformed with the mathematics of the manual MBL I will update the MBL point with

G29 S3 Xn Yn 13.87 ( = the probe meassured value is 0.02mm more accurate than the “feel-the-friction-on-a-paper” method)

This is the last part in Marlin3DprinterTool that I think really will increase performance on the first layer.

First question is where is the parameter that lifts the nozzle efter a home? In my case its 5mm

To get the extra rise I can do G28 Z and G30 S-1 and calculate the lift from the responce.

I suggest you open an issue on the Marlin Github account, and ask Roxy-3D

I think I now got a clue about how the calculation is done