<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
               xmlns:atom="http://www.w3.org/2005/Atom"
               xmlns:dc="http://purl.org/dc/elements/1.1/"
               xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
               xmlns:admin="http://webns.net/mvcb/"
               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
               xmlns:content="http://purl.org/rss/1.0/modules/content/">
            <channel>
                <title>
					                		E value Calculation of the G code in Prusa Slicer - PrusaSlicer                                    </title>
                <link>https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/</link>
                <description>Prusa3D Forum Discussion Board</description>
                <language>en-US</language>
                <lastBuildDate>Tue, 09 Jun 2026 05:09:00 +0000</lastBuildDate>
                <generator>wpForo</generator>
                <ttl>60</ttl>
                					                    <item>
                        <title>RE: E value Calculation of the G code in Prusa Slicer</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/paged/2/#post-708844</link>
                        <pubDate>Tue, 23 Apr 2024 21:34:52 +0000</pubDate>
                        <description><![CDATA[@misan@sanglae-kimwe should include in the equation the extrusion multiplier because when this is not equal to 1 will give different results for E Posted by: @misan @sanglae-kim: I have foll...]]></description>
                        <content:encoded><![CDATA[<p>@misan</p><p>@sanglae-kim</p><p>we should include in the equation the extrusion multiplier because when this is not equal to 1 will give different results for E</p><blockquote data-userid="47377" data-postid="607883" data-mention="misan"><div class="wpforo-post-quote-author"><strong> Posted by: @misan </strong></div><p>@sanglae-kim: I have followed your numeric example and found a few problems: </p><pre contenteditable="false">&gt;&gt;&gt; h**2/4*math.pi+w*(w-h)
0.13818583470577037</pre><p>You were missing PI when calculating the section of the extruded path.</p><p>If you calculate the total length needed for the 80.078 mm path at 0.3 mm height and 0.45 mm width you get</p><pre contenteditable="false">def whatL(h,w,K):
    return (4*K*h*w+(pi-4)*K*h**2)/(pi*D**2)

&gt;&gt;&gt; whatL(0.3,0.45,80.074)
3.8512856322385485</pre><p>Which seems quite close to the <strong>E3.85132 </strong>in the second marked line. Maybe the small difference is due to the integer raster mentioned above. </p><p>OTOH, extruder axis may be set to absolute or relative values independently of XYZ axis mode. </p><p>I guess in this case it is set to relative(M83, something you can check at the beginning of the Gcode file) rather than absolute as you were assuming (otherwise there would be a significant calculation difference).</p></blockquote><p> </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>Daniel</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/paged/2/#post-708844</guid>
                    </item>
                                        <item>
                        <title>RE:</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/paged/2/#post-607883</link>
                        <pubDate>Wed, 25 May 2022 06:53:56 +0000</pubDate>
                        <description><![CDATA[@sanglae-kim: I have followed your numeric example and found a few problems: 
&gt;&gt;&gt; h**2/4*math.pi+w*(w-h)
0.13818583470577037
You were missing PI when calculating the section of t...]]></description>
                        <content:encoded><![CDATA[<p>@sanglae-kim: I have followed your numeric example and found a few problems: </p>
<pre contenteditable="false">&gt;&gt;&gt; h**2/4*math.pi+w*(w-h)
0.13818583470577037</pre>
<p>You were missing PI when calculating the section of the extruded path.</p>
<p>If you calculate the total length needed for the 80.078 mm path at 0.3 mm height and 0.45 mm width you get</p>
<pre contenteditable="false">def whatL(h,w,K):
    return (4*K*h*w+(pi-4)*K*h**2)/(pi*D**2)

&gt;&gt;&gt; whatL(0.3,0.45,80.074)
3.8512856322385485</pre>
<p>Which seems quite close to the <strong>E3.85132 </strong>in the second marked line. Maybe the small difference is due to the integer raster mentioned above. </p>
<p>OTOH, extruder axis may be set to absolute or relative values independently of XYZ axis mode. </p>
<p>I guess in this case it is set to relative(M83, something you can check at the beginning of the Gcode file) rather than absolute as you were assuming (otherwise there would be a significant calculation difference).</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>misan</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/paged/2/#post-607883</guid>
                    </item>
                                        <item>
                        <title>RE: E value Calculation of the G code in Prusa Slicer</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/paged/2/#post-607877</link>
                        <pubDate>Wed, 25 May 2022 06:15:44 +0000</pubDate>
                        <description><![CDATA[Yes!If I understand correctly, what you want to do might work properly!The difference between prusaslicer and my customized Gcode generator was very small. (maybe in some cases, this might b...]]></description>
                        <content:encoded><![CDATA[<p>Yes!</p><p>If I understand correctly, what you want to do might work properly!</p><p>The difference between prusaslicer and my customized Gcode generator was very small. (maybe in some cases, this might become big)</p><p>I'm pretty sure your Gcode also works if you calculate correctly (the equation posted here is right)</p><p>Thanks</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>Sanglae Kim</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/paged/2/#post-607877</guid>
                    </item>
                                        <item>
                        <title>RE: E value Calculation of the G code in Prusa Slicer</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/paged/2/#post-607837</link>
                        <pubDate>Tue, 24 May 2022 17:04:23 +0000</pubDate>
                        <description><![CDATA[ah, very interesting and useful! thank you very much @misanCurrently, im working with this font, because of its spacefilling quality:&#039;ll let you know, when trying out your tool]]></description>
                        <content:encoded><![CDATA[<p>ah, very interesting and useful! thank you very much @misan<br />Currently, im working with this font, because of its spacefilling quality: <br />https://www.fontspace.com/absinthelyric-print-font-f30853<br /><a href="https://forum.prusa3d.com/wp-content/uploads/2022/05/delete-3.png"><img class="alignnone size-medium wp-image-141784" src="https://forum.prusa3d.com/wp-content/uploads/2022/05/delete-3-600x256.png" alt="" width="600" height="256" /></a><br /><br />i'll let you know, when trying out your tool<br /><br /></p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>Heiko</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/paged/2/#post-607837</guid>
                    </item>
                                        <item>
                        <title>RE: E value Calculation of the G code in Prusa Slicer</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607833</link>
                        <pubDate>Tue, 24 May 2022 16:38:27 +0000</pubDate>
                        <description><![CDATA[I wrote some code for that (no extrusion though) a while ago. I am mentioning it here in case it can be useful for @heik]]></description>
                        <content:encoded><![CDATA[<p>I wrote some code for that (no extrusion though) a while ago. I am mentioning it here in case it can be useful for @heiko</p><p>https://github.com/misan/gcodeFont</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>misan</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607833</guid>
                    </item>
                                        <item>
                        <title>RE: E value Calculation of the G code in Prusa Slicer</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607813</link>
                        <pubDate>Tue, 24 May 2022 12:37:02 +0000</pubDate>
                        <description><![CDATA[@misan surely...thanks for your reply. so sanglae-kim said (PursaSlicer changes extrusion value automatically (to fit rasters in integer))just wanted to make sure to be on the right track. (...]]></description>
                        <content:encoded><![CDATA[<p>@misan surely...thanks for your reply. so sanglae-kim said (PursaSlicer changes extrusion value automatically (to fit rasters in integer))<br />just wanted to make sure to be on the right track. <br />(i'm looking forward printing very tiny, but still readable text on "filament level") </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>Heiko</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607813</guid>
                    </item>
                                        <item>
                        <title>RE: E value Calculation of the G code in Prusa Slicer</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607811</link>
                        <pubDate>Tue, 24 May 2022 12:13:19 +0000</pubDate>
                        <description><![CDATA[@Heiko: that variation you mention is less than 0,22% so I would assume it might be connected to some simplification on the distance calculations to make it quicker (or another type of math ...]]></description>
                        <content:encoded><![CDATA[<p>@Heiko: that variation you mention is less than 0,22% so I would assume it might be connected to some simplification on the distance calculations to make it quicker (or another type of math artifact).</p><p>To my eyes it does not seem a huge difference but, unfortunately, I cannot shed any more light on a possible reason for that slight variation.</p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>misan</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607811</guid>
                    </item>
                                        <item>
                        <title>RE: E value Calculation of the G code in Prusa Slicer</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607803</link>
                        <pubDate>Tue, 24 May 2022 09:05:04 +0000</pubDate>
                        <description><![CDATA[example infill pattern &quot;line&quot; at 20%.e values per mm range = 0.054281 To 0.054399]]></description>
                        <content:encoded><![CDATA[<p><a href="https://forum.prusa3d.com/wp-content/uploads/2022/05/delete-1.png"><img class="alignnone size-full wp-image-141775" src="https://forum.prusa3d.com/wp-content/uploads/2022/05/delete-1.png" alt="" width="1326" height="917" /></a></p><p>example infill pattern "line" at 20%.<br />e values per mm range = 0.054281 To 0.054399</p><p> </p><p> </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>Heiko</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607803</guid>
                    </item>
                                        <item>
                        <title>RE: E value Calculation of the G code in Prusa Slicer</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607755</link>
                        <pubDate>Mon, 23 May 2022 20:06:46 +0000</pubDate>
                        <description><![CDATA[Just a sample cube in vase mode. You can see that 3 of the sides render precisely the same E value. The fourth one is not because a slicing decision is made;  it will split it into two segme...]]></description>
                        <content:encoded><![CDATA[<p><a href="https://forum.prusa3d.com/wp-content/uploads/2022/05/box.png"><img class="alignnone size-medium wp-image-141766" src="https://forum.prusa3d.com/wp-content/uploads/2022/05/box-600x500.png" alt="" width="600" height="500" /></a></p><p>Just a sample cube in vase mode. You can see that 3 of the sides render precisely the same E value. The fourth one is not because a slicing decision is made;  it will split it into two segments for reasons I ignore. But once you add these two together, 0.81863+0.01235, you get the same E value 0.83098 so at least in this example the idea that a certain distance renders a given E value holds.</p><p> </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>misan</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607755</guid>
                    </item>
                                        <item>
                        <title>RE: E value Calculation of the G code in Prusa Slicer</title>
                        <link>https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607751</link>
                        <pubDate>Mon, 23 May 2022 19:50:19 +0000</pubDate>
                        <description><![CDATA[Answering to @Heiko I reckon if layer height and width are the same, two lines of equal length would get the same E value from the slicer@ misan i think so, but the amount of extrusion per m...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="0" data-postid="607690" data-mention=""><p>Answering to @Heiko I reckon if layer height and width are the same, two lines of equal length would get the same E value from the slicer</p></blockquote><p>@ misan i think so, but the amount of extrusion per mm differs, when the lenght is changing. (you can check it easily by comparing two<br />paths with diffrent lenght of any infill) i'm still wondering, where this might come from, but for my purpose i guess it's ok to just calculate<br />the mean of all e values (per mm) and then multiply with the pathlenghts of my one code</p><p> </p><p> </p><p> </p><p> </p>]]></content:encoded>
                        <category domain="https://forum.prusa3d.com/forum/prusaslicer/">PrusaSlicer</category>                        <dc:creator>Heiko</dc:creator>
                        <guid isPermaLink="true">https://forum.prusa3d.com/forum/prusaslicer/e-value-calculation-of-the-g-code-in-prusa-slicer/#post-607751</guid>
                    </item>
                                                </channel>
        </rss>
        