Welcome! Log In Create A New Profile

Advanced

How to store Mesh Bed Leveling values?

Posted by Hatmpatn 
How to store Mesh Bed Leveling values?
November 22, 2016 01:54PM
Hello! I have really big build platform and the Auto Bed Leveling feature doesn't work since it seems like the build plate isn't slanted but bent in different directions.

I therefore probed 25(5x5) points by using the G29 S1, and then S2. All good, seemed to work. Entered G29 after everything was done and the Pronterface returned all the values:

SENDING:M500
>>> G29
SENDING:G29
State: 1
Num X,Y: 5,5
Z search height: 4
Z offset: 0.00000
Measured points:
  -10.20000  -10.20000  -10.10000  -10.00000  -9.90000
  -10.40000  -10.40000  -10.40001  -10.40000  -10.20000
  -10.60000  -10.60000  -10.40000  -10.40000  -10.20000
  -10.50000  -10.50000  -10.40000  -10.30000  -10.10000
  -10.40000  -10.30000  -10.30000  -10.00000  -10.00000

But it doesn't seem like it stores the values? When entering M501:

...
Mesh bed leveling:
echo:  M420 S0 X5 Y5
echo:  G29 S3 X1 Y1 Z0.00000
echo:  G29 S3 X2 Y1 Z0.00000
echo:  G29 S3 X3 Y1 Z0.00000
echo:  G29 S3 X4 Y1 Z0.00000
echo:  G29 S3 X5 Y1 Z0.00000
echo:  G29 S3 X1 Y2 Z0.00000
echo:  G29 S3 X2 Y2 Z0.00000
echo:  G29 S3 X3 Y2 Z0.00000
echo:  G29 S3 X4 Y2 Z0.00000
echo:  G29 S3 X5 Y2 Z0.00000
echo:  G29 S3 X1 Y3 Z0.00000
echo:  G29 S3 X2 Y3 Z0.00000
echo:  G29 S3 X3 Y3 Z0.00000
echo:  G29 S3 X4 Y3 Z0.00000
echo:  G29 S3 X5 Y3 Z0.00000
echo:  G29 S3 X1 Y4 Z0.00000
echo:  G29 S3 X2 Y4 Z0.00000
echo:  G29 S3 X3 Y4 Z0.00000
echo:  G29 S3 X4 Y4 Z0.00000
echo:  G29 S3 X5 Y4 Z0.00000
echo:  G29 S3 X1 Y5 Z0.00000
echo:  G29 S3 X2 Y5 Z0.00000
echo:  G29 S3 X3 Y5 Z0.00000
echo:  G29 S3 X4 Y5 Z0.00000
echo:  G29 S3 X5 Y5 Z0.00000
...

Is there some way to hardcode these values into marlin so that the printer always follows these values?

This is a very manual method, I find it strange that there is not an automated mesh procedure which probes the 25 points everytime a print starts? With a startcode G29 for example..
Re: How to store Mesh Bed Leveling values?
November 22, 2016 06:20PM
When I use mesh bed levelling I run it from the LCD menu. Probe the points then when it's finished click save settings, or m500. Then they're saved.

Are you sure you're sending an m500 afterwards and that your eeprom is enabled?

Edited 1 time(s). Last edit at 11/22/2016 06:20PM by DjDemonD.


Simon Khoury

Co-founder of [www.precisionpiezo.co.uk] Accurate, repeatable, versatile Z-Probes
Published:Inventions
Re: How to store Mesh Bed Leveling values?
November 23, 2016 02:59AM
I must double-check when I get home that I've enabled EEPROM in the firmware, good thinking!

Unfortunately I don't have an LCD screen installed but I'm thinking the following procedure should do it?

Enable EEPROM in Firmware
Write G28 in pronterface
Write G29 S1 in pronterface
Write G29 S2(24 times and probe to desired Z-height each time)
Write M500

And if I cut both the 12V power and USB power to the board, the Mesh Bed Leveling settings won't be reset in EEPROM?
Re: How to store Mesh Bed Leveling values?
November 23, 2016 04:00AM
No the eeprom is persistent even with zero power.


Simon Khoury

Co-founder of [www.precisionpiezo.co.uk] Accurate, repeatable, versatile Z-Probes
Published:Inventions
Re: How to store Mesh Bed Leveling values?
November 24, 2016 06:18AM
Everything is working now since I uncommented the line in configuration.h to activate EEPROM settings! Thanks RepRappers!
Sorry, only registered users may post in this forum.

Click here to login