Page 1 of 1

Gcode script to check bed level

Posted: Thu Mar 21, 2019 8:25 pm
by airscapes
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
G1 F1000 X100 Y125 Z0
pause code
continue ??
G1 F1000 X10 Y235 Z0
Pause code
G1 F1000 X100 Y235 Z0
Pause code
G1 F1000 X190 Y235 Z0

etc etc

Re: Gcode script to check bed level

Posted: Fri Mar 22, 2019 12:54 am
by airscapes
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 ;-)

This the DI I puchased ... UTF8&psc=1
Just remove the back and the spring so the pin drops on the bed with gravity only