Welcome! Log In Create A New Profile

Advanced

M851 command

Posted by warankarp 
M851 command
March 01, 2016 03:12PM
Hello All,

I have auto bed leveling configured on my 3D Printer. Here is what my config file reads for custom M codes
Marlin v1.1

// Custom M code points
#define CUSTOM_M_CODES
#ifdef CUSTOM_M_CODES
#define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
#define Z_PROBE_OFFSET_RANGE_MIN -15
#define Z_PROBE_OFFSET_RANGE_MAX -5

I am trying to send M851 Z-1.5 and it is not taking effect because of this range. Am I supposed to change the max value ? Just wondering if changing this value will have implications elsewhere
Re: M851 command
March 01, 2016 05:49PM
I had a similar issue and changed the Max to 0. Not seen any issue so far, 3 months in with the change.
Re: M851 command
March 02, 2016 03:29PM
Is there a way to read this value once set?

I do a M851 and then do a M500 to store it. But M501 does not display this setting
Re: M851 command
March 04, 2016 04:36PM
Strange, running those commands in Repetier gives me the recorded z offset.
Re: M851 command
March 05, 2016 03:18PM
Yeah. M500 on Printrbot returns the offset though. But they have their own custom command M212.
Re: M851 command
April 02, 2016 12:22AM
did you try to put that command into your startup gcode file before home the printer
Re: M851 command
April 02, 2016 12:27AM
No, I did not try that.

But I ended up changing the limits in firmware as stated above and things work fine now.
Sorry, only registered users may post in this forum.

Click here to login