klipper icon indicating copy to clipboard operation
klipper copied to clipboard

Manual bed mesh leveling improvement

Open rlesac opened this issue 7 years ago • 23 comments

As my ABL is not working and I'm still waiting on replacement, I have to use the manual mesh bed leveling.

It would be very helpful to have support for continuous z movement in discrete steps.

Currently there is no interface support for it, so I edited the menu.cfg: [menu __bedmesh __movez0025mm] type: input enable: !toolhead.is_printing name: "MZ 0.025:{0:05.3f}" parameter: toolhead.zpos input_min: -1.0 input_max: 5.0 input_step: 0.025 input_step2: 0.100 gcode: G1 Z{0:.3f} I also added menu items for start, next and save.

That did not work, as moving the z axis in uneven steps, gave garbage results. The only way I could get a useful mesh is by moving in discrete steps, ie. press button, move 0.025, press again, repeat ad nauseam.

Same with corner leveling. Very tedious.

Also, if the scroll slipped and instead of moving z went to the next point, I had to start all over again.

In Marlin, it just a simple routine, scroll to move z, press to go to the next point. I'm sure it would be very useful to a lot of people.

rlesac avatar Dec 10 '18 14:12 rlesac

Can you perhaps also give the menu code for 'start, next and save'? Also having issues getting ABL to work, so this will save me a ton of time!

reefwarrior avatar Dec 10 '18 15:12 reefwarrior

Can you perhaps also give the menu code for 'start, next and save'? Also having issues getting ABL to work, so this will save me a ton of time!

Sure. I was planning to do a pull request, but I'm not satisfied with the current implementation.

First, you need to add the bed mesh submenu to the main one, like this: `### menu main ### [menu __main] type: list name: Main Menu items: __tune __octoprint __sdcard __control __temp __filament __prepare __bedmesh

` And then add the submenu:

`### menu bedmesh ### [menu __bedmesh] type: list enable: !toolhead.is_printing name: Mesh Calib items: .__bedmeshhome .__bedmeshmanual .__movez0025mm .__bedmeshnext .__bedmeshsave

[menu __bedmesh __bedmeshmanual] type: command name: Start Mesh Calib gcode: BED_MESH_CALIBRATE METHOD=manual enable: !toolhead.is_printing

[menu __bedmesh __bedmeshhome] type: command name: Home All gcode: G28 enable: !toolhead.is_printing

[menu __bedmesh __movez0025mm] type: input enable: !toolhead.is_printing name: "MZ 0.025:{0:05.3f}" parameter: toolhead.zpos input_min: -1.0 input_max: 5.0 input_step: 0.025 gcode: G1 Z{0:.3f}

[menu __bedmesh __bedmeshnext] type: command name: Next mesh point gcode: NEXT enable: !toolhead.is_printing

[menu __bedmesh __bedmeshsave] type: command name: Save Bed Mesh gcode: BED_MESH_PROFILE save=profile1 enable: !toolhead.is_printing `

rlesac avatar Dec 10 '18 15:12 rlesac

Thanx for the code. Having such a lot of issues, anything at this stage to make it easier for me :)

reefwarrior avatar Dec 10 '18 15:12 reefwarrior

Understand now what you mean with this being a bit tedious... need more of a 'live' method as with marlin.

reefwarrior avatar Dec 10 '18 15:12 reefwarrior

FYI, this is being worked on - see #741.

-Kevin

KevinOConnor avatar Dec 17 '18 02:12 KevinOConnor

I'm going to close this in favour of tracking at PR #741.

-Kevin

KevinOConnor avatar Jan 06 '19 00:01 KevinOConnor

I know a better mesh bed leveling is being worked on. Meanwhile, here is my configuration entries, in case someone else wants to use a graphic display to manually generate the mesh.

[stepper_z]
position_min: -0.5

[bed_mesh]
min_point: 20,20
max_point: 230,230
probe_count: 3,3
fade_start: 1.0
fade_end: 10.0


	
[menu __prepare meshBed]
type: list
enable: !toolhead.is_printing
name: Mesh Bed Level
items:
    .start
    .zposition
    .zNudgeDown
    .zNudgeUp
    .next
    .save

[menu __prepare meshBed zposition]
type: item
name: "Z Pos= {0:05.3f}"
parameter: toolhead.zpos
	
[menu __prepare meshBed start]
type: command
name: Start Callibration
gcode: 
	G28
	BED_MESH_CALIBRATE
	TESTZ Z=-5

[menu __prepare meshBed zNudgeDown]
type: command
name: Nudge Down
gcode: TESTZ Z=-0.025

[menu __prepare meshBed zNudgeUp]
type: command
name: Nudge Up
gcode: TESTZ Z=0.025

[menu __prepare meshBed next]
type: command
name: Next
gcode: 
	ACCEPT
	TESTZ Z=-5
	
[menu __prepare meshBed save]
type: command
name: Save & Restart
gcode: SAVE_CONFIG

ardyesp avatar Jul 21 '19 13:07 ardyesp

I know a better mesh bed leveling is being worked on. Meanwhile, here is my configuration entries, in case someone else wants to use a graphic display to manually generate the mesh.

Your a legend thanks for this! My bed is warped to hell now and was just looking up best way to generate a mesh.

s1mpleman avatar Aug 03 '19 10:08 s1mpleman

followed this step for step. the issue i'm having is when i nudge up or down. it goes up then right back to where it was.

mickw99 avatar Sep 15 '19 00:09 mickw99

Net move of a nudge command moves the bed by 0.025mm. You should see the new Z value in the menu item right above nudge, like Z Pos= -0.05 etc.

ardyesp avatar Sep 15 '19 13:09 ardyesp

says it moves but its still in the same position. like i said it moves up then right back to the same spot. doesnt matter if if nudge up or down.

mickw99 avatar Sep 15 '19 18:09 mickw99

Hello, works this after new start of the printer, or must leveling after every new start? Where the „meshdata“ after leveling stored?

The-Holgi avatar May 14 '20 11:05 The-Holgi

If you choose "SAVE_CONFIG" the mesh data is written back to your configuration file (at the end, as a comment block) and printer restarts. It will automatically be loaded upon next restarts.

ardyesp avatar May 14 '20 13:05 ardyesp

Hm, after leveling and chose save in the lcd menu, there is no mesh data in my printer.cfg.

The-Holgi avatar May 14 '20 13:05 The-Holgi

Hello, a great tutorial, but I have a question, after saving the leveling, how do you load it if you want to print something, do you have to execute a command? or does nothing need to be done?

Is that when she had Marlin she had to put the command M421 S1 after G28.

And now I have the doubt of how it is done.

Thank you

RicardoCB76 avatar Sep 22 '20 20:09 RicardoCB76

If you choose "SAVE_CONFIG" the mesh data is written back to your configuration file (at the end, as a comment block) and printer restarts. It will automatically be loaded upon next restarts.

ardyesp avatar Sep 22 '20 20:09 ardyesp

Thanks for the quick response, another thing I wanted to comment on, when you prepare the piece in the laminator (Simplify3D) the initial or final script which would be the most suitable, or it is not necessary to put anything, I comment on the subject of the M420 code S1 it needs to be included in Klipper.

RicardoCB76 avatar Sep 22 '20 20:09 RicardoCB76

Its not necessary to add anything in slicer start gCode.

On Tue, Sep 22, 2020 at 4:41 PM RicardoCB76 [email protected] wrote:

Thanks for the quick response, another thing I wanted to comment on, when you prepare the piece in the laminator (Simplify3D) the initial or final script which would be the most suitable, or it is not necessary to put anything, I comment on the subject of the M420 code S1 it needs to be included in Klipper.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/KevinOConnor/klipper/issues/987#issuecomment-696967653, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADA73YI6VTMLEJAWU7Y4PNDSHEDV5ANCNFSM4GJOBOPQ .

ardyesp avatar Sep 22 '20 21:09 ardyesp

Ok, thanks again, there was no way of knowing, I have been looking on the web and could not find the solutionEqw

RicardoCB76 avatar Sep 22 '20 21:09 RicardoCB76

[menu __prepare meshBed zposition]
type: item
name: "Z Pos= {0:05.3f}"
parameter: toolhead.zpos

This gives me now errors in the klipper.log: error: Choice 'item' for option 'type' is not a valid choice

edit: the menusystem got updated! i changed the config to the new system and tried it on my printer

[menu __main __prepare meshBed]
type: list
enable: {not printer.idle_timeout.state == "Printing"}
name: Mesh Bed Level
	
[menu __main __prepare meshBed start]
type: command
name: Start Callibration
gcode: 
	G28
	BED_MESH_CALIBRATE
	TESTZ Z=-5

[menu __main __prepare meshBed zposition]
type: input
enable: {not printer.idle_timeout.state == "Printing"}
name: Z Pos=:{'%05.3f' % menu.input}
input: {printer.toolhead.position.z}
input_step: 1.0

[menu __main __prepare meshBed zNudgeDown]
type: command
name: Nudge Down
gcode: TESTZ Z=-0.025

[menu __main __prepare meshBed zNudgeUp]
type: command
name: Nudge Up
gcode: TESTZ Z=0.025

[menu __main __prepare meshBed next]
type: command
name: Next
gcode: 
	ACCEPT
	TESTZ Z=-5
	
[menu __main __prepare meshBed save]
type: command
name: Save & Restart
gcode: SAVE_CONFIG

thelastWallE avatar Sep 27 '20 19:09 thelastWallE