Skip to content

Instantly share code, notes, and snippets.

@joe714
Created June 12, 2022 18:38
Show Gist options
  • Save joe714/5dc852f5fe3001105e92cf3bb5f54010 to your computer and use it in GitHub Desktop.
Save joe714/5dc852f5fe3001105e92cf3bb5f54010 to your computer and use it in GitHub Desktop.
Ender Gcode 3v2 Gcode
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
; Ender 3 Custom Start G-code
G92 E0 ; Reset Extruder
G28 ; Home all axes
;G29 ; Probe Bed Mesh
M420 S1 ; Use mesh from EEPROM
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
G1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X5 Y20 Z0.3 F5000.0 ; Move over to prevent blob squish
; Remember to disable M112 under Settings -> Serial -> Behavior
M75 ;Start Print Job on Display
M117 <F>{{ event.name }} ;Send Filename to Display
; disable motors
M84
;disable all heaters
{% snippet 'disable_hotends' %}
{% snippet 'disable_bed' %}
;disable fan
M106 S0
M77 ;Stop Print Job on Display
M77 ;Stop Print Job on Display
M76 ;Pause Print Job on Display
M75 ;Start Print Job on Display
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment