G29
created on
Friday, 02 January 2026
by
Stefan Trucker
edited on
Friday, 16 January 2026
by
Stefan Trucker
Firmware
Marlin RepRap Firmware Prusa Buddy Firmware Prusa Firmware Repetier
Tags
G29 is the central command for automatic bed levelling (ABL) or mesh levelling.
Usage
- To measure the bed
- To generate a height mesh
- To activate or deactivate the mesh
- To load or save stored meshes
- To apply Z corrections during printing
- The exact range of functions depends heavily on the firmware.
G29 in Marlin (very extensive)
Marlin supports many ABL methods:
- Bilinear mesh levelling
- UBL (Unified Bed Levelling)
- Linear ABL
- 3-point ABL
- Manual mesh levelling
G29 has different meanings depending on the mode.
Code example
Bilinear ABL
G29 Code in Ablage kopierenSave mesh
G29 S1 Code in Ablage kopierenLoad mesh
G29 L1 Code in Ablage kopierenDisplay mesh
G29 T Code in Ablage kopierenActivate UBL
G29 A Code in Ablage kopierenKlipper
Klipper does not use G29 for levelling. Instead:
- BED_MESH_CALIBRATE
- BED_MESH_PROFILE LOAD=default
BUT: In Klipper, it is possible to define macros that use G29 for calibration.
RepRapFirmware (RRF)
Perform mesh levelling
Result is saved in heightmap.csv
G29
Load mesh
G29 S1 Code in Ablage kopierenDelete mesh
G29 S2 Code in Ablage kopierenTranslated with DeepL.com (free version)
Sources
vewandte Codes
G31
G31 wird in RepRapFirmware (RRF) verwendet, um Eigenschaften des Z‑Probes festzulegen.