Greetings Makers,
I have been working on a piece of custom gcode to help with the whole bed level process. Why, because I find that manually moving the x and y axis affects the calibration process.
This short program places the nozzle near the 4 corners and the centre of the print bed. At each point it waits for the user to press the select button on the printer before it moves to the next location. If your printer does not have end stops or an lcd screen / select button then I wouldn't recommend using this exact code at it uses "Home All" and "Wait" commands.
G28 ; Home all
G1 Z10 ; Move Z to 10mm
G1 X10 Y10 F9000 ; Move X to 10mm, Y to 10mm at 900mm/min
G1 Z0 ; Move Z to 0mm
M0 ; Wait for button press
G1 Z10 ; Move Z to 10mm
G1 X190 F9000 ; Move X to 190mm, Y to 10mm at 900mm/min
G1 Z0 ; Move Z to 0mm
M0 ; Wait for button press
G1 Z10 ; Move Z to 10mm
G1 Y190 F9000 ; Move X to 190mm, Y to 190mm at 900mm/min
G1 Z0 ; Move Z to 0mm
M0 ; Wait for button press
G1 Z10 ; Move Z to 10mm
G1 X10 F9000 ; Move X to 10mm, Y to 190mm at 900mm/min
G1 Z0 ; Move Z to 0mm
M0 ; Wait for button press
G1 Z10 ; Move Z to 10mm
G1 X100 Y100 F9000 ; Move X to 100mm, Y to 100mm at 900mm/min
G1 Z0 ; Move Z to 0mm
M0 ; Wait for button press
G1 Z10 ; Move z to 10mm
G28 ; Home all
If you do use this code, or code like it please be aware that there must be an empty line after the last command. If this line is missed then the last command will not run.
I guess the "Home All" lines can be removed and the "Wait" lines can have S10 added to make the code wait for 10 seconds at each point and not rely on the select button being pressed.
I'll be working on a Nozzle Clean and Bed Glue Application code next. I'll install them on the ebay printer at the Space in a subfolder on the SD card so it will make maintenance easier.
Eventually, I'd like to also add these to Marlin so they become part of the printers menu, but I have no idea how to do that.
Hope this helps if anyone else is trying to write gcode.
thanks
Steve