3D printer G-code · Marlin
G26: Mesh validation pattern (Marlin)
Mesh validation pattern — Prints a grid of circles and lines over the mesh to check how well it fits the bed. Needs G26_MESH_VALIDATION.
On this page
| Property | Value |
|---|---|
| Command | G26 |
| Function | Mesh validation pattern |
| Firmware | Marlin |
| Group | Bed levelling |
| Syntax | G26 [H<°C>] [B<°C>] [P] |
What does G26 do?
Prints a grid of circles and lines over the mesh to check how well it fits the bed. Needs G26_MESH_VALIDATION.
Parameters
| Parameter | Meaning |
|---|---|
H | Hotend temperature |
B | Bed temperature |
P | Prime the nozzle first |
Example
G26 H210 B60 PMarlin. Many Marlin commands only exist when the feature is enabled in the firmware build. If the printer answers "Unknown command", the feature is missing. Klipper does not understand most of these settings codes; it uses printer.cfg instead.
Related commands
More bed levelling commands
| Command | Function | Firmware |
|---|---|---|
G29 | Bed levelling (probe the mesh) | Marlin |
M420 | Bed levelling state | Marlin |
M851 | Probe offset (Z offset) | Marlin |
M48 | Probe repeatability test | Marlin |
G34 | Z stepper auto-align | Marlin |
BED_MESH_CALIBRATE | Probe the bed mesh (Klipper) | Klipper |
BED_MESH_PROFILE | Save and load mesh profiles | Klipper |
Z_TILT_ADJUST | Level the gantry (two or three Z motors) | Klipper |
QUAD_GANTRY_LEVEL | Quad gantry level | Klipper |
PROBE_CALIBRATE | Find the probe Z offset | Klipper |
SET_GCODE_OFFSET | Live Z (babystep) | Klipper |
SCREWS_TILT_CALCULATE | Bed screw turns | Klipper |
Test it before you print
Paste your start code or a whole file into the 3D printer simulator. It plans every move, shows the time and finds missing waits, cold extrusion and moves outside the bed.
Open the simulatorFrequently asked questions
What does G26 do on a 3D printer?
G26 is mesh validation pattern. Prints a grid of circles and lines over the mesh to check how well it fits the bed. Needs G26_MESH_VALIDATION.
Does G26 work in Klipper and Marlin?
G26 is a Marlin command. Klipper uses its own commands and printer.cfg settings for this task.
Was this page helpful?