Jump to content

Cura doesn't do extrusion reset with G92 E0


greg-smith

Recommended Posts

Posted · Cura doesn't do extrusion reset with G92 E0

[update - it does do this! sorry - could do it more often, though...]

I've noticed that Cura doesn't use 'G92 E0' lines like slc3r does.

As a result, you see the full extrusion towards the end of the print, e.g.

G1 X152.68 Y191.48 E18999.16459

G1 X152.97 Y191.93 E18999.19454

G1 X152.62 Y191.91 E18999.21392

 

This can be a problem for larger prints.

Here's the issue: there's only very small extrusions implied per G1 here - the last two lines differ by less than .02 mm. But in many prints the total extrusion can get to dozens of meters. As far as I'm aware, firmware like Marlin converts these numbers to 32-bit floating point, which has 24 bits of precision - about 7 or 8 significant digits. Specifically, once you reach 16.384 meters, the internal representation of these numbers is rounded to the nearest 1/512 mm (about 0.002 mm) . Once over 32.768 meters, it's rounded to the nearest 0.004 mm, etc. This rounding introduces fairly large differences between the extrusion rate intended by the G-code with all of its significant digits, and the extrusion rate which the firmware will determine after rounding the values to 32-bit floats (the good news is that the effect is worst on very short G1 segments, and the variations on those will tend to average out, but it means you're less likely to get a smooth operation of the extrusion motor).

 

The fix for this is to periodically issue a 'reset' of the extrusion, which is just

G92 E0

... and then you are back to a zero reference point. For instance,

(assuming the previous extrusion was to E18999.1) the following lines have the same effect without the loss of precision.

 

G92 E0 ; reset 18999.1 to 0

G1 X152.68 Y191.48 E0.06459 ; which is 8999.16459 in previous reference

G1 X152.97 Y191.93 E0.09454 ; etc

G1 X152.62 Y191.91 E0.11392

If the E numbers stay below 2000 mm, rounding will be to the nearest .00012mm at worst case.

Slc3r, I believe, does a reset at every retract, and possibly between layers too.

 

  • Link to post
    Share on other sites

    Posted · Cura doesn't do extrusion reset with G92 E0

    OK, I stand corrected, I hadn't noticed the lone G92s. It seems it's being done every 10000 mm. Maybe a bit more often?

    The post you gave mentions u=1.19e-07 as the relative error, this is good as a guideline, but the numbers I gave are accurate for conversions in numbers in the specific ranges. I.e.

    values in range 8192.0 <= x < 16384 have a precision of 1/1024.

    values in range 16384.0 <= x < 32768 have a precision of 1/512.

    values in range 32768.0 <= x < 65536 have a precision of 1/256.

    etc.

    So, It would help if you could even reduce that limit from 10000 mm to 8000 mm, it would keep you out of that range.

    (have made a longer comment on the github thread to the same effect).

     

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
      • Ultimaker Cura 5.6 stable released
        Cura now supports Method series printers!
         
        A year after the merger of Ultimaker and MakerBotQQ, we have unlocked the ability for users of our Method series printers to slice files using UltiMaker Cura. As of this release, users can find profiles for our Method and Method XL printers, as well as material profiles for ABS-R, ABS-CF, and RapidRinse. Meaning it’s now possible to use either Cura or the existing cloud-slicing software CloudPrint when printing with these printers or materials
        • 48 replies
    ×
    ×
    • Create New...