Friday, November 5, 2010

Jul 30, 2010 scratching out Gcode

I've spent most of the day toying with a Gcode routine to push and heat filament on my reprap. It seems to be working finially, but not a consistently las I would like. I think I need an extruder drive with more torque, like the anymore standard Wade Extruder... Anyway here's the code:


; PUSH!
; GCode Written by Jeremy Fischer
; Created: July 30, 2010 3:43 pm
; heating and pushing filament to find optimal temperature for the machine, change S### as needed
G21 ;metric is go!
G91 ;relative positioning
T0; select new extruder
M113; set extruder to use pot for PWM
G92 E0 ;zero the extruded length
;#!LAYER: 1/9
G28; go home
G1 X40 Z30.0 F500 ;move to postion to extrude
G1 F900
M109 S245.0 ;set temperature to 246 and wait
G4 P8000
G1 E50 ;extrude 50mm
;#!LAYER: 2/9
M109 S245.0 ;set temperature tp 246 and wait
G4 P8000
G1 E50 ;extrude 50mm
G4 P3000
;#!LAYER: 3/9
M109 S244.0 ;set temperature to 246 and wait
G4 P8000
G1 E50 ;extrude 50mm
G4 P3000
;#!LAYER: 4/9
M109 S244.0 ;set temperature and wait
G4 P8000
G1 E75 ;extrude 75mm
G4 P3000
;#!LAYER: 5/9
M109 S243.0 ;set temperature and wait
G4 P8000
G1 E75 ;extrude 75mm
G4 P3000
;#!LAYER: 6/9
M109 S242.0 ;set temperature and wait
G4 P9000
G1 E75 ;extrude 75mm
G4 P3000
;#!LAYER: 7/9
M109 S241.0 ;set temperature and wait
G4 P9000
G1 E75 ;extrude 75mm
G4 P3000
;#!LAYER: 8/9
M109 S241.0 ;set temperature and wait
G4 P9000
G1 E75 ;extrude 75mm
G4 P3000
;#!LAYER: 9/9
M109 S240.0 ;set temperature and wait
G4 P9000
G1 E75 ;extrude 75mm
G4 P3000
;#!LAYER: 10/9
M109 S240.0 ;set temperature and wait
G4 P9000
G1 E75 ;extrude 75mm
G4 P3000
G1 F400
G1 X10 ;move X 10
M0 ;totally done


On a side note it appears my repstrap doesn't properly shutdown with an M0 command, and the reprap host doesn't think it finished. Weird more firmware fixes to get to I guess.

No comments:

Post a Comment