flexi-bot/docs/marlin/_gcode/M420.md
2023-09-05 20:38:49 +02:00

2.2 KiB

tag title brief author contrib requires group related codes notes parameters examples
m0420 Bed Leveling State Get and/or set bed leveling state and parameters thinkyhead sustmi, shitcreek AUTO_BED_LEVELING_(3POINT|LINEAR|BILINEAR|UBL)|MESH_BED_LEVELING motion
G29
M421
M420
- [`G28`](/docs/gcode/G028.html) disables bed leveling. Follow with `M420 S` to turn leveling on, or use `RESTORE_LEVELING_AFTER_G28` to automatically keep leveling on after [`G28`](/docs/gcode/G028.html). - The "current position" may change in response to `M420 Sn`.
tag optional description values
L true Load mesh from EEPROM index (Requires `AUTO_BED_LEVELING_UBL` and `EEPROM_SETTINGS`)
type
int
tag optional description values
S true Set enabled or disabled. A valid mesh is required to enable bed leveling. If the mesh is invalid / incomplete leveling will not be enabled.
type
bool
tag optional description values
V true Verbose: Print the stored mesh / matrix data
type
bool
tag optional description values
T true Format to print the mesh data
tag description
0 Human readable
tag description
1 CSV
tag description
4 Compact
tag optional description values
Z true Set Z fade height (Requires `ENABLE_LEVELING_FADE_HEIGHT`) - With Fade enabled, bed leveling correction is gradually reduced as the nozzle gets closer to the Fade height. Above the Fade height no bed leveling compensation is applied at all, so movement is machine true. - Set to 0 to disable fade, and leveling compensation will be fully applied to all layers of the print.
type tag
float linear
tag optional description values
C true Center the mesh on the mean of the lowest and highest points
type
bool

Get and/or set bed leveling state. For mesh-based leveling systems use Z parameter to set the Z Fade Height.

With AUTO_BED_LEVELING_UBL you can use L to load a mesh from EEPROM.