Gcode script to check bed level

Ask the MakerGear community for assistance...
Post Reply
airscapes
Posts: 323
Joined: Wed Jan 31, 2018 11:36 pm

Gcode script to check bed level

Post by airscapes » Thu Mar 21, 2019 8:25 pm

I would like to write a short script that can be run to position the extruder at different location on the bed.
I have made an adapter that attaches in place of the hot end and will hold a dial indicator. Last time i use this I manually move it around the bed taking measurements. I would like to have 12 or 16 locations in the script with a pause between each that would then move on to the next on when something is triggered.. (Using Octoprint console)
I know I can go to the website with all the gcode on it and figure this out as I do need to learn more gcode but was hoping someone could provide that needed items for the pause and continue. I guess I could just set the pause to a number of ms long enough for me to read the dial.. probably a better options anyway.

Code would be something like
G28
G1 F1000 X100 Y125 Z0
pause code
continue ??
G1 F1000 X10 Y235 Z0
Pause code
Contiue
G1 F1000 X100 Y235 Z0
Pause code
Contiue
G1 F1000 X190 Y235 Z0

etc etc

airscapes
Posts: 323
Joined: Wed Jan 31, 2018 11:36 pm

Re: Gcode script to check bed level

Post by airscapes » Fri Mar 22, 2019 12:54 am

Never mind.. I figured it out.. For the next newbie who want to level his bed or fix a bowed gantry

I have attached the DI mount SLT and the gcode to move it around the bed. The plunger spring in the DI must be removed to allow gravity only pressure on the plunger or it will actually mover the bed under the spring pressure.

Gcode should be really be called measuring.gcode as it does not level anything ;-)
Attachments
M2 DI Mount shorter.stl
(1.47 MiB) Downloaded 8 times
leveling.gcode
(1.17 KiB) Downloaded 6 times

Post Reply