Manual bed mesh leveling improvement
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.
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!
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 `
Thanx for the code. Having such a lot of issues, anything at this stage to make it easier for me :)
Understand now what you mean with this being a bit tedious... need more of a 'live' method as with marlin.
FYI, this is being worked on - see #741.
-Kevin
I'm going to close this in favour of tracking at PR #741.
-Kevin
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
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.
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.
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.
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.
Hello, works this after new start of the printer, or must leveling after every new start? Where the „meshdata“ after leveling stored?
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.
Hm, after leveling and chose save in the lcd menu, there is no mesh data in my printer.cfg.
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
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.
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.
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 .
Ok, thanks again, there was no way of knowing, I have been looking on the web and could not find the solutionEqw
[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