Gcode script to check bed level
Posted: 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
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