Welcome! Log In Create A New Profile

Advanced

Marlin 1.1.8+ M420 S1 required after G28

Posted by DaHai8 
Marlin 1.1.8+ M420 S1 required after G28
March 04, 2018 05:24AM
Trying to clarify a question on this. I've seen many older posting saying that older versions of Marlin Require M420 S1 after G28 to re-enable a Bed Level Mesh as the G28 disables this.
However, after looking through the code in 1.1.8, I've noted these two pieces in the G28 routine:
/**
   * For mesh bed leveling deactivate the mesh calculations, will be turned
   * on again when homing all axis
   */
...
mbl.set_active(false);
Then...
// Enable mesh leveling again
...
mbl.set_active(true);

So while older versions of Marlin appear to have disabled Meshes, it seems that as of 1.1.8 it is automatically re-enabled after the G28 command completes.
Is this true, or do you still need M420 S1 after the G28 in your startup script to re-enabled an EEPROM saved Mesh?
Re: Marlin 1.1.8+ M420 S1 required after G28
March 06, 2018 11:51AM
I would imagine that adding the M420 S1 line would not matter if it has already been set after the G29 process, but would be good practice or insurance.

Having said that, I have yet to get bed leveling to work. It seems to ignore the z-offset of the probe and the bed leveling mesh as it carves grooves into the left side of the bed surface. using a dial indicator, my bed is within 0.25mm overall of absolute level, so I am not needing a lot of leveling assistance. Alas the grooves prevail.

I have tied the latest bugfix version, but no difference. "Bed leveling" seems to be by name alone. smiling smiley
Re: Marlin 1.1.8+ M420 S1 required after G28
March 07, 2018 01:57PM
it re-enables if the option to do it is enabled
/**
* Normally G28 leaves leveling disabled on completion. Enable
* this option to have G28 restore the prior leveling state.
*/
#define RESTORE_LEVELING_AFTER_G28
Re: Marlin 1.1.8+ M420 S1 required after G28
March 08, 2018 08:56AM
Where are you finding that option?
I cannot find it anywhere in Marlin 1.1.8...

Quote
ruggb
it re-enables if the option to do it is enabled
/**
* Normally G28 leaves leveling disabled on completion. Enable
* this option to have G28 restore the prior leveling state.
*/
#define RESTORE_LEVELING_AFTER_G28
Re: Marlin 1.1.8+ M420 S1 required after G28
March 08, 2018 02:15PM
approx line 900 in configuration.h almost the latest 1.1.x bugfix
Sorry, only registered users may post in this forum.

Click here to login