Page 1 of 1

Octoprint and M2 print Bed leveling

Posted: Sun Jun 11, 2017 1:34 pm
by 3Dridge
I successfully attached a raspberry Pi 3 and installed Octoprint to my M2 (thanks to a forum member)
So, now I can use my iPad to start print files etc. it's great
My question - is there a M2 "plugin" available for octoprint that will let you level the print bed
Thanks

Re: Octoprint and M2 print Bed leveling

Posted: Mon Jun 12, 2017 1:26 pm
by zemlin
I haven't seen a plugin, but I created custom control buttons I use for leveling the bed.
Capture.JPG
I can share the details of the scripts later, if you like. There's not much to it.

Re: Octoprint and M2 print Bed leveling

Posted: Mon Jun 12, 2017 4:08 pm
by 3dPrintingMD
zemlin wrote:I haven't seen a plugin, but I created custom control buttons I use for leveling the bed.
Capture.JPG
I can share the details of the scripts later, if you like. There's not much to it.
I would love to get more info on this. Hopefully its something I can figure out.

Re: Octoprint and M2 print Bed leveling

Posted: Mon Jun 12, 2017 5:25 pm
by zemlin
Get the Custom Controls Editor plug for Octoprint.
I have a dual extruder, so you might want to tweak the X coordinates - but the leveling screws are all accessible at these points.
I have fixed Z offsets I enter for my various build platforms and I just adjust the hot-end (while cold) with a feeler gauge to get my start height.
Capture.JPG
Capture2.JPG
Center:
G91
G1 Z1
G90
G1 X80 Y125 F3600
G91
G1 Z-1

Left Front:
G91
G1 Z1
G90
G1 X15 Y35 F3600
G91
G1 Z-1

Left Rear:
G91
G1 Z1
G90
G1 X15 Y215 F3600
G91
G1 Z-1

Right Front:
G91
G1 Z1
G90
G1 X160 Y25 F3600
G91
G1 Z-1

Right Rear:
G91
G1 Z1
G90
G1 X160 Y225 F3600
G91
G1 Z-1

Re: Octoprint and M2 print Bed leveling

Posted: Sun Feb 09, 2020 7:20 pm
by mark_tec_wiz
Zemlin

The program that was referenced in this post works like your octoprint scripts. Except it saves the z start point

viewtopic.php?f=7&t=4762&p=38134#p38134

This gcode saves the z start point after reading it and then manually adjusting the number
but I don't know how to get the Z positron after I have run the up and down scripts in octoprint.

Code: Select all

gcode At the terminal, M503.
Look for the Z # that is generated. Write it down.
Subtract .01 - .03 from the number.
M206 ZX.XX
M500 ZX.XX
That will change to the new number, and then save it to memory.
Do you know how to get the final z position using gcode commands then I could save it to memory.

Mark

Re: Octoprint and M2 print Bed leveling

Posted: Wed Mar 04, 2020 5:14 pm
by zemlin
Within the scripting tools, I am not aware of how to interrogate a value and then write an update.