How to setup Unified Bed Leveling (UBL) - Jbchow/Marlin-Ender-5-Plus GitHub Wiki

To use UBL UBL code: Run to setup UBL: this will heat up bed and then probe bed for UBL then save to slot 1. I always level my bed fully before running this.

M190 S60 ;Set Bed to 60c G28 ; Home Printer G29 P1 ;Runs Automatic Bed Leveling (UBL) G29 P3 ;Extrapolates the leveling to parts the probe cannot reach. G29 F10 ; Sets fade height to 10 mm G29 S1 ; save bed topology to slot 1 G29 A ;ensures UBL is activated @BEDLEVELVISUALIZER G29 L1 ;Loads Mesh #1 M500 ;Saves settings to EEPROM M140 S0 ;Turn-off bed @BEDLEVELVISUALIZER G29 T

add to slicer: In start g code find G28 and after that line add this

G29 A ;activates UBL G29 L1 ;loads UBL slot 1 G29 J; does a 3 point tilt correction on bed level M420 S1 Z2 ;Enable ABL using saved Mesh and Fade Height