Skip to content

Instantly share code, notes, and snippets.

@llamadeus
Created February 8, 2024 12:47
Show Gist options
  • Save llamadeus/d8e894343cf8c69efd932d20cc99a6f2 to your computer and use it in GitHub Desktop.
Save llamadeus/d8e894343cf8c69efd932d20cc99a6f2 to your computer and use it in GitHub Desktop.
CR-10s Pro start & end g-code
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;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
M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration
M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate
M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration
M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk
M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
G28
M420 S1 Z2
G92 E0
G0 X25 Y30 Z2 F5000
G0 Z0.4 F5000
G1 X80 E35 F400
G92 E0
G1 E-3 F2500
G1 X120 F4000
G1 Z2 F3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment