Welcome! Log In Create A New Profile

Advanced

Bed leveling data saved?

Posted by gadjet 
Bed leveling data saved?
September 21, 2017 07:37AM
Hi,
I've been using Marlin for a couple of weeks in my DIY Prusa clone and my first layer has been very hit and miss and I might have found out why!
On the Marlin Wiki it says that the bed leveling data is discarded with a home command and is also not saved, this info was for 1.1.2 does anyone know if it's the same in 1.1.4 or 1.1.5 as I can't see it in the release notes.

Cheers


Printers: -
Davinci 1.0 Pro
DIY Prusa Clone
My blog: www.gadjet.co.uk
Re: Bed leveling data saved?
September 21, 2017 08:21AM
I am using Marlin 1.1.5 and the bed leveling data is discarded with a home command and is not saved in Any version of Marlin as of this date.

I hear that they are working on a saving the data for bed leveling thou no released versions are yet stated.
If I am in error please correct me, as I would like to see the code.

Edited 1 time(s). Last edit at 09/21/2017 08:21AM by Roberts_Clif.
Re: Bed leveling data saved?
September 21, 2017 08:24AM
Quote
Roberts_Clif
I am using Marlin 1.1.5 and the bed leveling data is discarded with a home command and is not saved in Any version of Marlin as of this date.

I hear that they are working on a saving the data for bed leveling thou no released versions are yet stated.
If I am in error please correct me, as I would like to see the code.

Thanks for confirming that, it now makes sense as to why I was struggling to get my first layer to work properly as I was often doing a all axis home after I did the bed leveling but not every time.
Re: Bed leveling data saved?
September 21, 2017 09:09AM
Here is the code in Cure Start/End-GCode, Place the G29 after your last G28 Command.

G28 X0 Y0 ; Home XY
;G29 ; auto level

I enable the G29 when I want to use Bed leveling before the Print
Had a 5 X 5 "Bi-Linear / Linear" Matrix for Bed Leveling thou have changed to a Bi-Linear 3 X 3 Matrix to save memory and time.
I rarely use the Bed leveling as my bed is really flat and level, only use auto home and print.
Mainly use when layer height is below 0.15mm and Auto home when layer height is above 0.15mm.

Edited 4 time(s). Last edit at 09/21/2017 09:14AM by Roberts_Clif.
Re: Bed leveling data saved?
September 21, 2017 10:21AM
The thing is I've been using a Davinci for a long time so with my DIY Prusa clone I'm trying different PC hosts and I may not have been doing things consistently and also I used to manually trigger the bed leveling from the LCD but then my repetier host SW on the PC was adding a G28 to the Gcode therefore wiping the bed leveling, unfortunately it took me while to find this out.
Re: Bed leveling data saved?
September 21, 2017 12:37PM
AFAIK,

My bed level data is saved to eeprom. Using the command "M420 V" shows probe data and "Bed leveling Off". The probe data on eeprom persists with a G28 because my start gcode always issues G28 before a print job. After the G28 my gcode enables the bed level grid and it starts printing.

All of this should be in the docs somewhere as that is where I found how to set z offsets, save to eeprom and how to enable the saved autolevel grid.
Re: Bed leveling data saved?
September 21, 2017 07:14PM
Quote
jaded
AFAIK,

My bed level data is saved to eeprom. Using the command "M420 V" shows probe data and "Bed leveling Off". The probe data on eeprom persists with a G28 because my start gcode always issues G28 before a print job. After the G28 my gcode enables the bed level grid and it starts printing.

All of this should be in the docs somewhere as that is where I found how to set z offsets, save to eeprom and how to enable the saved autolevel grid.

Ok I was proved Wrong, Thank you. Today I learned something.

Found More information
use the M420 S1 to enable bed leveling...

M420: Enable/Disable Bed Leveling and/or set the Z fade height.
S[bool] Turns leveling on or off
Z[height] Sets the Z fade height (0 or none to disable)
V[bool] Verbose - Print the leveling grid

Using Cura 15.04.6 click on Print with USB.
send G29 to do start bed leveling
when finished M500 to save Bed leveling

To prove data saved you can reboot 3D Printer and
Send M501 ; Load data
Send a M420 V ; Print the leveling grid
My Bi-Linear Bed Data ; Wow bed is not as level as I thought.
< ----0--------1---------2
< 0 -0.123 +0.082 +0.095
< 1 -0.260 +0.002 +0.017
< 2 -0.025 -0.025 -0.160

Cura Start/End Gcode
After the last G28 add a M501 ; Load Bed Leveling data/ EEprom data

Edited 4 time(s). Last edit at 09/21/2017 07:37PM by Roberts_Clif.
Re: Bed leveling data saved?
September 22, 2017 02:51AM
Thanks for the info. I'll do some experimenting myself.
Don't worry, your bed is more level than mine :-)
Re: Bed leveling data saved?
September 22, 2017 05:29AM
From the ubl/mesh bl source
You should be able to use G29 S



* S Store Store the current Mesh in the Activated area of the EEPROM. It will also store the
* current state of the Unified Bed Leveling system in the EEPROM.
*
* S # Store Store the current Mesh at the specified location in EEPROM. Activate this location
* for subsequent Load and Store operations. Valid storage slot numbers begin at 0 and
* extend to a limit related to the available EEPROM storage.
*
* S -1 Store Store the current Mesh as a print out that is suitable to be feed back into the system
* at a later date. The GCode output can be saved and later replayed by the host software
* to reconstruct the current mesh on another machine.
*
* T Topology Display the Mesh Map Topology.
* 'T' can be used alone (e.g., G29 T) or in combination with most of the other commands.

Edited 1 time(s). Last edit at 09/22/2017 05:29AM by obewan.
Re: Bed leveling data saved?
October 03, 2017 08:05AM
I save My Bi-Linear Grid and restore it using Marlin 1.1.X
Changed to a 4 x 5 Grid for testing Bed level data saving for this POST.
Bed leveling has to be turned back on before every Print after auto homing.

I did not realize this but I must have saved with one of the other methods.
It appears that G29 some commands do not work with Bi-linear.
M500 or Push the " Store Settings " menu item, but the Data is being saved and reused
working G29 commands for Bi-Linear
[B {linear}] Set the back limit of the probing grid
[F {linear}] Set the front limit of the probing grid
[L {linear}] Set the left limit of the probing grid
[R {linear}] Set the right limit of the probing grid
[S {rate}] Set the XY travel speed between probe points


G28
G29

Bilinear Leveling Grid:
----- 0------ 1------ 2------ 3
0 -0.356 -0.059 -0.136 -0.213
1 -0.023 +0.054 -0.085 -0.240
2 +0.083 +0.053 -0.087 -0.250
3 +0.084 -0.025 -0.133 -0.258
4 -0.001 -0.170 -0.236 -0.311
X:198.00 Y:220.00 Z:10.74 E:0.00 Count X:15840 Y:17600 Z:16800
M420 S1
echo:Bed Leveling On
echo:Fade Height Off

Video is a little jerky

[youtu.be]

Just knowing you can save a Bi-linear grid an recover it saves time

Edited 2 time(s). Last edit at 10/03/2017 08:49AM by Roberts_Clif.
Re: Bed leveling data saved?
May 16, 2018 05:20PM
So, let me conclude, if I understood ...

Setting bilinear-leveling into firmware as normal.
G28
G29 to build the grid as usual and then
M500 to save the actual state.

Printer off/on and then
G28
M501 to enable the blinear-leveling with the grid.
G-Code to print

That's all ? eye popping smiley
Re: Bed leveling data saved?
May 16, 2018 06:01PM
Quote
rc-snail
So, let me conclude, if I understood ...

Setting bilinear-leveling into firmware as normal.
G28
G29 to build the grid as usual and then
M500 to save the actual state.

Printer off/on and then
G28
M501 to enable the blinear-leveling with the grid.
G-Code to print

That's all ? eye popping smiley

I have never Used M501 command in connection with "M420 S1" but it looks sound, as long as you "M420 S1" after the last G92 to enable the Saved Data.
Sorry, only registered users may post in this forum.

Click here to login