Skip to content

Instantly share code, notes, and snippets.

@ij96
Last active December 28, 2019 22:27
Show Gist options
  • Save ij96/e755f40e67fcacd9d3120f8a548ebe6e to your computer and use it in GitHub Desktop.
Save ij96/e755f40e67fcacd9d3120f8a548ebe6e to your computer and use it in GitHub Desktop.
Custom 3D printing scripts for ideaMaker
;;;;;;;;;; start script
G21 ; set unit to mm
G90 ; set to absolute positioning
M82 ; set extruder to absolute mode
M107 ; fans off
G28 X0 Y0; home X and Y axes
G28 Z0 ; home Z axis
G1 Z15 F300 ; move to (0, 0, 15)
G92 E0 ; set new extruder position to 0
G1 F140 E29 ; extrude 29mm of material
; moving Z axis to 0 before printing means that
; the extra material can be wiped off automatically
G1 X20 Y0 Z0 F140 E30 ; move to (20, 0, 0) while extruding 30mm of material
G92 E0 ; set new extruder position to 0
G1 F{travel_xy_speed} ; set travel speed
M117 Printing...
;;;;;;;;;; end script
M221 T0 S100 ; set extrude factor override percentage
M104 S0 ; set extruder temperature
M140 S0 ; set bed temperature
M107 ; fans off
G91 ; set to relative positioning
G1 E-1 F300 ; retract material
G1 Z+0.5 E-5 X-20 Y-20 F9000.00 ; up and out, retract material
G28 X0 Y0 ; home X and Y axes
M84 ; stop idle hold
G90 ; set to absolute positioning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment