Skip to content

Instantly share code, notes, and snippets.

@datacoda
Last active February 1, 2020 02:29
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 datacoda/19974671b68727def66ddfdf16030da4 to your computer and use it in GitHub Desktop.
Save datacoda/19974671b68727def66ddfdf16030da4 to your computer and use it in GitHub Desktop.
Ender 3 Start/End G-codes
; START
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
M117 Bed Probing
M75 ; Start Print Timer and Engage Fil Sensor if USB Printing
G92 E0 ; Reset Extruder distance to 0
G1 E-2 ; Retracts filament to prevent blobs during probing
M84 E ; Disable E Motor for probe accuracy on direct drive systems
G28 ; home all axes
G28 Z ; home Z to get more accurate Z position
;G29; DISABLED DO MANUALLY and M500 - EZABL mesh generation
M420 S1 Z10 ; Use stored bed mesh with fade.
G4 S10; wait for heaters to recover
M117 Purge extruder
G92 E0 ; reset extruder
G1 Z1.0 F3000 ; move z up little
G1 X0.1 Y20 Z0.3 F5000.0 ; move to start-line position
G1 X0.1 Y100.0 Z0.3 F750.0 E15 ; draw 1st line
G1 X0.4 Y100.0 Z0.3 F5000.0 ; move to side a little
G1 X0.4 Y20 Z0.3 F750.0 E30 ; draw 2nd line
G92 E0 ; reset extruder
G1 Z1.0 F3000 ; move z up little
M117 Printing.....
; END
M117 Wiping
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
M117 Printing Done
G4 ; Wait
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
G90 ; Set coordinates to absolute
G1 X0 Y{machine_depth} F1000 ; Move Heat Bed to the front for easy print removal
M104 S0 ;Turn-off hotend
M140 S0 ;Turn-off bed
M84 ; Disable stepper motors
M300 S1046 P375
M300 S1046 P375
M300 S1567 P375
M300 S1567 P375
M300 S880 P375
M300 S880 P375
M300 S1567 P375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment