Skip to content

Instantly share code, notes, and snippets.

@dmoulton
Last active January 5, 2023 16:16
Show Gist options
  • Save dmoulton/5e76ff868d4ba94ff4acdb65aba2ed9a to your computer and use it in GitHub Desktop.
Save dmoulton/5e76ff868d4ba94ff4acdb65aba2ed9a to your computer and use it in GitHub Desktop.
Printer
X Width 235
Y Width 235
Z Height 285
origin at center NOT checked
Heated bed checked
Head build volume NOT checked
G-Code Flavor Marlin
Printhead
X min -20
Y Min -10
X max 10
y max 10
Gantry Height 285
Number of Extruders 1
Start G-Code
G28 ;home
G92 E0 ;Reset Extruder
G1 Z4.0 F3000 ;Move Z Axis up
G92 E0 ;Reset Extruder
G1 X1.1 Y20 Z0.28 F5000.0 ;Move to start position
G1 X1.1 Y80.0 Z0.28 F1500.0 E10 ;Draw the first line
G1 X1.4 Y80.0 Z0.28 F5000.0 ;Move to side a little
G1 X1.4 Y20 Z0.28 F1500.0 E20 ;Draw the second line
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
End G-Code
G91 ;Relative positionning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F1600 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positionning
G1 X0 Y{machine_depth} ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
M140 S0 ;Turn-off bed
M84 X Y E ;Disable all steppers but Z
-----------------
Extruder 1
Nozzle size 0.4
Compatible material diameter 1.75
Nozzle offset X 0
Nozzle offset Y 0
Cooling fan number 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment