Skip to content

Instantly share code, notes, and snippets.

@tedder
Created September 10, 2018 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tedder/487816dc125a8330bbcc945c68703709 to your computer and use it in GitHub Desktop.
Save tedder/487816dc125a8330bbcc945c68703709 to your computer and use it in GitHub Desktop.
monoprice mini delta starting gcode
; Monoprice Mini Delta
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
M104 S[first_layer_temperature] T0 ; set extruder temp
M109 S[first_layer_temperature] T0 ; wait for extruder temp
G92 E0 ; reset extrusion distance
G28 ; Start from home position
G1 E-6 F900 ; retract 6mm of filament before starting the bed leveling process
G92 E0 ; reset extrusion distance
G4 S5 ; Pause for 5 seconds to allow time for removing extruded filament
G29 P6 Z0.45 ;If your first layer is too far from the bed then lower the Z number, if it is to close, then raise it.
G1 Z60 ; raise Z 60mm to prepare for priming the nozzle
G1 E20 F300 ; extrude 20mm of filament to help prime the nozzle just prior to the start of the print
G92 E0 ; reset extrusion distance
G4 S10 ; Pause for 10 seconds to allow time for cleaniing the nozzle and build plate if needed
G92 E0
;Put printing message on LCD screen
M117 Printing...
; Monoprice Mini Delta
M92 X116.5 Y116.5 Z116.5 E97.0 ; set xyz scale
M104 S150 T0 ; set extruder preheat temp
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
M109 S150 T0 ; wait for extruder preheat temp
G92 E0 ; reset extrusion distance
G28 ; Start from home position
; can't retract bc we aren't going up to full extruder temp.
; G1 E-6 F900 ; retract 6mm of filament before starting the bed leveling process
; G92 E0 ; reset extrusion distance
G29 P6 Z0.4 ; bed alignment. If your first layer is too far from the bed then lower the Z number, if it is too close, then raise it.
G1 Z10 ; raise Z 10mm to heat nozzle
M104 S[first_layer_temperature] T0 ; set extruder temp
M109 S[first_layer_temperature] T0 ; wait for extruder temp
G92 E0 ; reset extrusion distance
G1 X-54 Y0 Z0.4 F3000 ; move to arc start
G3 X0 Y-54 I52 Z0.4 E40 F400 ; lay arc stripe 90deg
G92 E0 ; reset extrusion distance
G1 X0 Y-50 Z4 E-2 F3000 ; get off the bed
M109 S[first_layer_temperature] T0 ; wait for extruder temp
G92 E0
G28 ; Start from home position again
;Put printing message on LCD screen
M117 Printing...
@Ajax157
Copy link

Ajax157 commented Mar 23, 2024

How do you get the numbers for the M92? Can I just use yours or do I have to do it myself? Also, is the Z in line 14 my Z-offset?

@tedder
Copy link
Author

tedder commented Mar 23, 2024

hey @Ajax157 you can print a cube, like a 50mm cube, and then measure it. Use the M92 numbers to make it the correct size. You can start without values there and see if it's correct.

And you're correct, line 14 is the z-offset. Just plug and chug to find a good enough number :) I'm not sure where the P6 comes from, it's been six years since I thought about this.

@Ajax157
Copy link

Ajax157 commented Mar 23, 2024 via email

@Ajax157
Copy link

Ajax157 commented Apr 14, 2024

Do you know why the z offset doesn't change when I change it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment