MARLIN - adaptive bed mesh leveling / probe print area only

Опубликовано: 11 Апрель 2026
на канале: RH3D
5,876
90

Marlin adaptive bed mesh leveling with print area input from the slicer.
Unfortunately, you can't change the amount of probing points now but only the probe area.


Tested with Prusaslicer.

Before use, check compatibility with your other printer settings like absolute vs relative mode and probing boundaries.



To set up in Prusaslicer, go to printer settings, start G-code.

For bed mesh level, replace your existing G29 with:

G29 L{(max(25, first_layer_print_min[0] - 10))} F{(max(25, first_layer_print_min[1] - 10))} R{(min(print_bed_max[0]-25, first_layer_print_max[0] + 10))} B{(min(print_bed_max[1]-25, first_layer_print_max[1] + 10))} S12000 ; probes printbed with 25 mm boundaries or first layer + 10mm on each side


For purge line close to print area, replace your original intro line with this:

; Prepare nozzle + intro line
G1 Z2 F6000
G1 Y{(max(3, first_layer_print_min[1]) - 5)} X{(max(3, first_layer_print_min[0]) - 5)} F11000 ; go on start position
G1 Z0.300 F6000
G1 X{(max(3, first_layer_print_min[0]) - 5)} E5 F500.0 ; go on start position
G92 E0 ; Set extrusion distance to 0
G1 Y{(max(5, first_layer_print_min[1]) - 5)+60} E12.0  F1000 ; intro line
G1 X{(max(3, first_layer_print_min[0]) - 5)+1} Z0.400 F10000
G1 Y{(max(5, first_layer_print_min[1]) - 5)} E20  F1000 ; intro line
G92 E0 ; Set extrusion distance to 0
G90 ; switch back to absolute mode