public
Created

Slic3r 0.9.8 Post Processing Script to make it work with MakerWare 2.0 and Firmware 7 (only tested on a Rep1)

  • Download Gist
slic3r_makerbot_fix.pl
Perl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
#!/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 $_;
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.