Created
March 3, 2013 03:29
-
-
Save tbuser/5074361 to your computer and use it in GitHub Desktop.
Slic3r 0.9.8 Post Processing Script to make it work with MakerWare 2.0 and Firmware 7 (only tested on a Rep1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -i | |
use strict; | |
use warnings; | |
# Slic3r 0.9.8 Post Processing Script to make it work with MakerWare 2.0 and Firmware 7 (only tested on a Rep1) | |
# Dualstrusion works | |
# Support on secondary extruder works | |
# Save this file somewhere, then under Print Settings, Output Options, Post-processing scripts, enter path to this file | |
# Under Printer Settings, General, set G-code flavor to MakerBot, extruders 2, bedsize 225 x 145, etc... | |
# Under Custom G-Code add this to Start G-Code: | |
# M136 (enable build progress) | |
# M73 P0 | |
# G162 X Y F2000(home XY axes maximum) | |
# G161 Z F900(home Z axis minimum) | |
# G92 X0 Y0 Z-5 A0 B0 (set Z to -5) | |
# G1 Z0.0 F900(move Z to '0') | |
# G161 Z F100(home Z axis minimum) | |
# M132 X Y Z A B (Recall stored home offsets for XYZAB axis) | |
# G92 X152 Y75 Z0 A0 B0 | |
# G1 X-112 Y-73 Z150 F3300.0 (move to waiting position) | |
# G130 X20 Y20 A20 B20 (Lower stepper Vrefs while heating) | |
# M134 T0 | |
# M133 T0 | |
# M133 T1 | |
# G130 X127 Y127 A127 B127 (Set Stepper motor Vref to defaults) | |
# M135 T0 | |
# Add this to end g-code: | |
# M18 A B(Turn off A and B Steppers) | |
# G1 Z155 F900 | |
# G162 X Y F2000 | |
# M18 X Y Z(Turn off steppers after a build) | |
# M109 S0 T0 | |
# M104 S0 T0 | |
# M104 S0 T1 | |
# M70 P5 (We <3 Making Things!) | |
# M72 P1 ( Play Ta-Da song ) | |
# M73 P100 (end build progress ) | |
# M137 (build end notification) | |
while (<>) { | |
if ($_ =~ /(M126|M127|G21|G90)/) { | |
print ";$1\n"; | |
} elsif ($_ =~ /M109 S(.*) ;(.*)/) { | |
print "M109 S$1 T0 ;$2\n"; | |
} elsif ($_ =~ /M108 (.*)/) { | |
print "M135 $1\n"; | |
} else { | |
print $_; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment