skeinforge_tools.raft ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/raft.py |
Raft is a script to create a reusable raft, elevate the nozzle and set the feedrate, flowrate and temperature.
The raft script sets the feedrate, flowrate and temperature. If the "Activate Raft, Elevate Nozzle, Orbit and Set Altitude"
checkbox is checked, the script will also create a raft, elevate the nozzle, orbit and set the altitude of the bottom of the raft.
Raft is based on the Nophead's reusable raft, which has a base layer running one way, and a couple of perpendicular layers
above. Each set of layers can be set to a different temperature. There is the option of having the extruder orbit the raft for a
while, so the heater barrel has time to reach a different temperature, without ooze accumulating around the nozzle. To run
raft, in a shell type:
> python raft.py
The important values for the raft preferences are the temperatures of the raft, the first layer and the next layers. These will be
different for each material. The default preferences for ABS, HDPE, PCL & PLA are from Nophead's experiments. To change
the material, in a shell type:
> python material.py
This brings up the material preferences dialog. In that dialog you can add or delete a material on the listbox and you change
the selected material. After you can change the selected material, run raft again. If there are preferences for the new material,
those will be in the raft dialog. If there are no preferences for the new material, the preferences will be set to defaults and you
will have to set new preferences for the new material.
The "Base Infill Density" preference is the infill density ratio of the base of the raft, the default ratio is half. The
"Base Layer Height over Extrusion Height" preference is the ratio of the height & width of the base layer compared to the
height and width of the shape infill, the default is two. The "Base Layers" preference is the number of base layers, the default
is one. The "Base Nozzle Lift over Half Base Extrusion Height" is the amount the nozzle is above the center of the
extrusion divided by half the base extrusion height.
The interface of the raft has equivalent preferences called "Interface Infill Density",
"Interface Layer Height over Extrusion Height", "Interface Layers" and "Interface Nozzle Lift over Half Base Extrusion Height".
The shape has the equivalent preference of called "Operating Nozzle Lift over Half Extrusion Height".
The altitude that the bottom of the raft will be set to the "Bottom Altitude" preference. The feedrate for the shape will be set
to the 'Feedrate" preference. The feedrate will be slower for raft layers which have thicker extrusions than the shape infill.
The speed of the orbit compared to the operating extruder speed will be set to the 'Orbital Feedrate over Operating Feedrate'
preference.
In the "Flowrate Choice" radio button group, if "Do Not Add Flowrate" is selected then raft will not add a flowrate to the gcode
output. If "Metric" is selected, the flowrate in cubic millimeters per second will be added to the output. If "PWM Setting" is
selected, the value in the "Flowrate PWM Setting" field will be added to the output.
The raft fills a rectangle whose size is the rectangle around the bottom layer of the shape expanded on each side by the
"Raft Outset Radius over Extrusion Width" preference times the extrusion width, minus the "Infill Overhang" ratio times the
width of the extrusion of the raft.
The extruder will orbit for at least "Temperature Change Time of Raft" seconds before extruding the raft. It will orbit for at least
"Temperature Change Time of First Layer" seconds before extruding the first layer of the shape. It will orbit for at least
"Temperature Change Time of Next Layers" seconds before extruding the next layers of the shape. If a time is zero, it will not
orbit.
The "Temperature of Raft" preference sets the temperature of the raft. The "Temperature of Shape First Layer" preference sets
the temperature of the first layer of the shape. The "Temperature of Shape Next Layers" preference sets the temperature of the
next layers of the shape.
The following examples raft the files Hollow Square.gcode & Hollow Square.gts. The examples are run in a terminal in the folder
which contains Hollow Square.gcode, Hollow Square.gts and raft.py. The raft function will raft if
"Activate Raft, Elevate Nozzle, Orbit and Set Altitude" is true, which can be set in the dialog or by changing the preferences file
'raft.csv' with a text editor or a spreadsheet program set to separate tabs. The functions writeOutput and getRaftChainGcode
check to see if the text has been rafted, if not they call getCombChainGcode in comb.py to get combed gcode; once they have
the combed text, then they raft.
> python raft.py
This brings up the dialog, after clicking 'Raft', the following is printed:
File Hollow Square.gts is being chain rafted.
The rafted file is saved as Hollow Square_raft.gcode
>python
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import raft
>>> raft.main()
This brings up the raft dialog.
>>> raft.writeOutput()
Hollow Square.gts
File Hollow Square.gts is being chain rafted.
The rafted file is saved as Hollow Square_raft.gcode
>>> raft.getRaftGcode("
( GCode generated by May 8, 2008 slice.py )
( Extruder Initialization )
..
many lines of gcode
..
")
>>> raft.getRaftChainGcode("
( GCode generated by May 8, 2008 slice.py )
( Extruder Initialization )
..
many lines of gcode
..
")
Classes | ||||||||||||||||||
|
Functions | ||
|
Data | ||
__author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __date__ = '$Date: 2008/21/04 $' __license__ = 'GPL 3.0' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384) |
Author | ||
Enrique Perez (perez_enrique@yahoo.com) |