thinkyhead

M421 - Set Mesh Value

planner Set a single mesh Z height AUTO_BED_LEVELING_(BILINEAR|UBL)|MESH_BED_LEVELING

This command is used to set a single Z value for a mesh point in the stored bed leveling data.


Allowed forms are M421 In Jn Zn or M421 Xn Yn Zn. (UBL can use Q in place of Z.)


Usage

M421 [I<int>] [J<int>] [Q<linear>] [X<linear>] [Y<linear>] [Z<linear>]

Argument Description
[I<int>]

X index into the mesh array

[J<int>]

Y index into the mesh array

[Q<linear>]

A value to add to the existing Z value (Requires AUTO_BED_LEVELING_UBL)

[X<linear>]

X position (which should be very close to a grid line)

[Y<linear>]

Y position (which should be very close to a grid line)

[Z<linear>]

The new Z value to set

Examples

Set the Z height in the middle of a 5x5 grid

M421 I2 J2 Z-0.05

Set the same Z height using XY

M421 X100 Y100 Z-0.05