Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save symmetryninja/e5860af663653859809d7fefe284a33f to your computer and use it in GitHub Desktop.
Save symmetryninja/e5860af663653859809d7fefe284a33f to your computer and use it in GitHub Desktop.
Start/stop scripts - for 3d printer with bl-touch
; Start script
G28 ; Home all axes
G29 ; 9 point measure
G0 X5 Y15 F9000 ; Go to front
G0 Z0.3 ; Drop to bed
G92 E0 ; Zero the extruded length
G1 X50 E20 F300 ; Extrude 20mm of filament in a 50mm line
G92 E0 ; Zero the extruded length
G1 E-3 F500 ; Retract a little
G1 X80 F4000 ; Quickly wipe away from the filament line
G1 Z0.3 ; Raise and begin printing.
; end script
G90 ; Set to absolute motion
G1 E-3 F300 ; Retract 3mm
G1 X5 Y235 F9000 ; Move to rear left corner of bed
M106 S0 ; Turn off fans
M104 S0 ; Turn off extruder
M140 S0 ; Turn off bed
M84 ; Disable motors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment