Welcome! Log In Create A New Profile

Advanced

Volume of plastic used - per layer?

Posted by richrap 
Volume of plastic used - per layer?
June 23, 2011 10:12AM
Hello all, I wonder if anyone can help me on this, I have done searches but not found anything -

I can see Skeinforge reports total mass and volume extruded for the whole object but does anyone know how to get info on the volume of extruded plastic for each object layer.

I need to know how much filament (Length of input feedstock) is being used per layer, anyone know if this is possible to get out of Skeinforge.

Obviously it's going to change and depend on filament size and layer height, but Skeinforge knows these so hopefully it's possible.

Or any other way I could get a fairly accurate approximation from the output Gcode?

Any pointers, much appreciated.

Rich.


[richrap.blogspot.com]
Re: Volume of plastic used - per layer?
June 23, 2011 12:41PM
Well the volume in should be the same as the volume out. But even if it isn't, you already know the scaling factor from the Volumetric Dimension module.

divide the number skeinforge gives you for the volume by your packing density number, i think.

example
85mm^3 / .85(ABS) = 100mm^2 feedstock

edit: or do you want the length? shouldn't be too much harder, you just need to find the volume for a set length of your feedstock.

V=Pi *r^2*h
if your using 3mm feedstock. each mm is 7.07 mm^3
1.5mm is ~1.77 mm^3

edit 2:
Ah, each layer. no way to calculate that easily. Why do you need that?

Edited 3 time(s). Last edit at 06/23/2011 12:58PM by Buback.
Re: Volume of plastic used - per layer?
June 24, 2011 12:04AM
Shouldn't there be a way to use the gcode E function? since it adds for each line it extrudes you "should" be able to look at the last line of your gcode to see how much filament has been extruded in total for your part. Please correct me if I'm mistaken.

Edit: I looked at my calibration gcode and it shows E366 for just the first line so I guess I am mistaken. Oh well, I'm still learning this stuff...

Edited 1 time(s). Last edit at 06/24/2011 12:08AM by germanicus.


Germanicus
Re: Volume of plastic used - per layer?
June 24, 2011 03:06AM
Buback Wrote:
-------------------------------------------------------
> edit 2:
> Ah, each layer. no way to calculate that easily.
> Why do you need that?

If I tell you that it'll spoil my next blog post winking smiley - I will post back when I have it working and hopefully have something to show for it.

I will either slice the .STL part up into layers and work out the volume for each slice (I think Netfabb can help me with that) then apply that to get filament used.

Or maybe look at the Gcode movements for each extruding move and work it out that way.

And if all that fails, I can print the object and physically measure the filament being used.


[richrap.blogspot.com]
Re: Volume of plastic used - per layer?
June 24, 2011 08:19AM
On Linux or Git Bash on windows, do this command (assuming your file is called file_export.gcode)

grep -E "E0$|G1 .*Z.* E" file_export.gcode | grep -B1 E0$ | grep "G1 .*Z.*E"

That will give you all of the final moves. If you add all the E values for the lines with the same Z, that will give you the filament extruded for that layer.

the first grep gets the extruder reset lines and all the extruder move lines. the second grep selects the extruder reset lines and the line before that. the third grep removes the extruder reset lines leaving you with just the last move on each extruder run.
Re: Volume of plastic used - per layer?
June 25, 2011 05:44AM
Thanks Greg, that looks like it should be a perfect solution, I'll give it a try.

Cheers,

Rich


[richrap.blogspot.com]
Re: Volume of plastic used - per layer?
July 01, 2011 05:05AM
Hi Greg and everyone,

The reason I wanted to know how to calculate the volume (length) of filament used per layer was for doing things like this -

I'm calling it 'layer selective colour printing' grinning smiley

And a close up -

Info on my Blog here if anyone is interested in how it was done.

Rich.


[richrap.blogspot.com]
Re: Volume of plastic used - per layer?
July 01, 2011 06:54AM
Fantastic!
Re: Volume of plastic used - per layer?
July 01, 2011 07:51AM
Brilliant! I wondered why you wanted that info.


[www.hydraraptor.blogspot.com]
Re: Volume of plastic used - per layer?
July 01, 2011 10:41AM
Very neat. I like the filament joiner.

JB


--
Check out my blog: AdventuresIn3-DPrinting
Re: Volume of plastic used - per layer?
July 02, 2011 07:33AM
Excellent idea! Now, someone just need to make an automatic filament joiner to make even finer control of multicolored prints. smiling smiley

You've convinced me to make a filament joiner to make it easier to refill the feed at the end of each spool. I usually switch to another roll near the end so that I don't run out in the middle of a print. With one of those, I can just join the new roll to the end of the current one.
Re: Volume of plastic used - per layer?
July 02, 2011 08:49AM
I get a much slower transition of colour when removing one colour and inserting the next. It would seem that joining them instead of just following one by another gets a much sharper change.


[www.hydraraptor.blogspot.com]
Re: Volume of plastic used - per layer?
July 03, 2011 09:26PM
nophead: Is that with your no-compromise extruder? I imagine if you taper outwards as the barrel of your no-compromise extruder did, then the new plastic doesn't just push a plug through like it might with straight barelled extruder or even one that tapered inwards. Instead it would push into the middle of the melt chamber leaving residual plastic (of the previous colour) behind.

Edited 1 time(s). Last edit at 07/04/2011 03:31AM by Greg Frost.
Re: Volume of plastic used - per layer?
July 04, 2011 01:25AM
Yes that could be a factor.


[www.hydraraptor.blogspot.com]
Sorry, only registered users may post in this forum.

Click here to login