1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

question on auto leveling

Discussion in 'Software' started by Lance Weston, Aug 2, 2025.

  1. Lance Weston

    Lance Weston Active Member

    Joined:
    Jun 2, 2018
    Messages:
    682
    Likes Received:
    236
    Is M420 L1 the way to load the mesh
    Is M420 S1 the way to activate mesh leveling
    does the following gcode script make sense with initial mesh set up commented out

    ; home
    G28
    set K-factor PLA+
    ; M900 K5
    warm hotend
    M140 S150
    ; home
    G28
    ;heatup of bed
    M190 S55
    M190 S65
    ;M190 S70
    ;M190 S75
    ;M190 S85
    ;M190 S90
    ; set to millimeters
    G21
    ; set absolute mode
    G90
    ; turn off fans
    M107
    ; home
    G28
    ; zero extruder
    G92 E0
    ; home
    G28
    ; Robo Leveling
    ; G36
    ;store the mesh
    ; M500
    ; home XY axis
    G28 X0 Y0
    ; zero extruder
    G92 E0
    ;heatup of extruder
    M109 S200
    ; home
    G28
    ; zero extruder
    G92 E0
    ; home
    G28
    :Load from eeprom including mesh
    M420 L1
    ; Enable mesh leveling
    M420 S1
    ; move bed to printing position
    G1 Z0.2
    ;non blocking heatup of bed
    M140 S65
    ;heatup of extruder
    M109 S200
    ; zero extruder
    G92 E0
    ; print 150mm priming line
    G1 Y-150 E10.0 F500
    ; Retract
    G10
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    24,018
    Likes Received:
    7,347
    I am not current with the version of the firmware in the R2 and what they had enabled. If the firmware has ENABLE_LEVELING_AFTER_G28 then it should automatically be enabled after the G28 (go home command).

    If not then yes, those would the way to go:
    M420 S1 -> set the bed leveling state
    M420 L1 -> load stored data from eeprom slot 1

    I can't recall if the R2 (pretty sure NOT for the C2) uses Unified Bed Leveling (UBL) so that may be moot.

    If you have upgraded the stock Marlin firmware to another (or custom) version then "it depends" on what you have set.
     
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    24,018
    Likes Received:
    7,347
    If need be I can pull and look through the R2 firmware and potentially even experiment with it, but that will not be possible before this weekend.
     
  4. Lance Weston

    Lance Weston Active Member

    Joined:
    Jun 2, 2018
    Messages:
    682
    Likes Received:
    236
    That confirms it. It has been working. I have two identical machines with creality glass beds. I fully clean the beds then spray a coat of hairspray for uniform reflectivity. One machine has the standard z speed, I use a 6x6 matrix. This does not work well. The other machine I set for 1/10 Z speed for setting the grid offsets. This works very well.
    What works for you?
     
  5. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    24,018
    Likes Received:
    7,347
    The R2? Well, I have not changed it from stock. In all fairness it does not get used a lot anymore. We have been doing a lot more metal and wood work of late :) From a 3D printer perspective the resin printers get more use than the FDM printers any more (but they are a bit more expensive given the cost of resin).

    If the slower Z speed works -- try that on the other one.
     

Share This Page