Skip to content

Instantly share code, notes, and snippets.

@BDFife
Last active February 24, 2019 23:12
Show Gist options
  • Save BDFife/6d1372e01dabaff5ecb1fa966d0cb3b9 to your computer and use it in GitHub Desktop.
Save BDFife/6d1372e01dabaff5ecb1fa966d0cb3b9 to your computer and use it in GitHub Desktop.
Printrbot Simple Pro Start gcode
(==Configuration Settings==)
G21 ;set metric mode - use mm as units
M100 ({{ysv:1000}}) ;slow y-axis homing velocity so it doesn't slam
M100 ({{4pl:0.6}}) ;this is setting the motor power level on the Extruder - motor 4 - to 60 percent
;skipping all other configuration. The stock settings should be correct
(==Home Printer==)
M100 ({{_leds:3}}) ;turn LED on, blue color
G92.1 X0 Y0 Z0 A0 B0 ;reset origin offsets on all axes -clean slate
G28.2 X0 Y0 Z0 ;home the x, y and z axes.
(==Level Bed==)
M100 ({{_leds:5}}) ;turn LED on, yellow color
;probe first point
G0 X0 Y145 Z6 F6000 ;travel to X=0, Y=145mm, Z=6mm
G38.2 Z-10 F200 ;slowly travel down until the z-probe activates
G0 Z5 ;travel back up to Z=5mm
;probe second point
G0 X210 Y65 F6000 ;travel to X=210mm Y=65mm
G38.2 Z-10 F200 ;slowly travel down until the z-probe activates
G0 Z5 ;travel back up to Z=5mm
;probe third point
G0 X=0 Y=10 F6000 ;travel to X=0mm, Y=10mm
G38.2 Z-10 F200 ;slowly travel down until the z-probe activates
G0 Z5 ;travel back up to Z=5mm
M100 ({{tram:1}}) ;set the bed height based on the probe values from the three previous G38.2 commands
(==Z Offset==)
G0 Z5 ;make sure we are at a decent Z height
G92 Z0.1 ;set Z-axis offset ;** REPLACE THIS WITH YOUR OFFSET **
(==Heat==)
M100 ({{_leds:2}}) ;turn LED on, red color
M109 S{material_print_temperature} ;start heating hotend, wait until temperature hits
(==Prime==)
M100 ({{_leds:1}}) ;turn LED on, white color
G92 A0 ;reset extruder origin
G0 X10 Y10 Z0.3 F6000;travel to X=10mm, Y=10mm, Z=0.3mm
G1 X200 A12 F1200 ;extrude 12mm of filament while moving to X=200mm
G0 Y0.4 F6000;travel to Y=0.4
G1 X110 A18 F1200;extrude 6mm more filament while moving back to X=110mm
G0 Z1 ;raise to Z=1mm
G92 A0 ;reset extruder origin
(==Print Gcode Starts Below==)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment