S3D Print Time not Correct

Have questions or comments about Simplify3D, Slic3r, Cura, Reptier, etc? Or wondering about which CAD software to use...discuss it here...
User avatar
insta
Posts: 2007
Joined: Tue Sep 16, 2014 3:59 am

Re: S3D Print Time not Correct

Post by insta » Thu Aug 13, 2015 5:37 pm

Matt_Sharkey wrote:my print time estimates come from pronterface, and when I see the estimate, I just double it. for the same reasons stated above. The gcode demands that your printer makes a specific move, and then the firmware calculates how to make that move, making estimates a crapshoot.

Now it would be nice if you could clone your firmware to your slicer software and it emulate a print to figure out the time...but maybe were just not there yet.
One of the host softwares did that. They ported Marlin ...
Custom 3D printing for you or your business -- quote [at] pingring.org

User avatar
innkeeper
Posts: 266
Joined: Fri Jun 26, 2015 3:56 am
Location: New Windsor, NY

Re: S3D Print Time not Correct

Post by innkeeper » Fri Aug 14, 2015 4:42 pm

i've never had a print estimate ever be consistently accurate with any software... i use them as a relative numbers and estimate based upon previous relative timings of other similar prints on the same combination of printer and software.
M2 - MKS SBase w Smoothieware, GLCD, 24v, Upg Z & extruder stepper - IR bed leveling, Astrosyn dampers X/Y/Z, MIC 6, Zebra, PEI, & glass Build Plates - E3D, V3B Hotends, & more - many other 3d printers - production printing.

User avatar
Rara
Posts: 117
Joined: Wed Apr 09, 2014 8:48 pm
Location: Portland, OR

Re: S3D Print Time not Correct

Post by Rara » Tue Sep 15, 2015 7:58 pm

Wowwww...you aren't kidding. Until now I've noticed things taking longer than estimated, but I just loaded up a big job...estimate was 22:08. I am currently 38 hours and change, and am in the neighborhood of 60% or so done. If this is a universal problem with printing software, why is this such a hard thing to get even remotely close to accurate? I'm not a programmer/coder; just genuinely curious (and baffled). I mean, even +/- 20% accuracy would be incredibly helpful...had I known this would literally take a week to print I would have just bought what I am printing!
2012 M2 V4-PTFE

jsc
Posts: 1864
Joined: Thu Apr 10, 2014 4:00 am

Re: S3D Print Time not Correct

Post by jsc » Tue Sep 15, 2015 8:17 pm

Here's a simple explanation. The gcode says to move from 0 to 200 at 200 mm/s. So the host says "that should take 1 second" and that's what goes into the print time estimate. But the firmware says, well, you can't go from 0 to 200 mm/s instantaneously, that would cause the stepper to skip, so we have to accelerate up to that speed. Then we have to slow down gradually as well so we don't slam to a stop at the end, which will also cause skipped steps. So now it takes somewhat longer than 1s. But how much longer depends on the firmware settings: what change in velocity is considered acceptable to jump to without acceleration (so called MAX_JERK), and how much acceleration is being used. And there is no way to know what those values are, as they will be different between firmware implementations, firmware builds, and even user adjustable. Oh, and plus the firmware is looking at what happened before and after this segment, because maybe it doesn't have to start or stop at a dead stop; if the segment before was coming in with some velocity, it's not going to bring that one to a stand still, it will blend the velocities together.

Say you're at a drag strip in a car that can max out at 100 mph. According to the time estimator, you can do the quarter mile in 9s because it doesn't consider the time it takes to get up to that speed. But according to the firmware you're in a Honda Civic and there's no way it's a 9s car. And you may or may not be allowed a rolling start, and there may or may not be a brick wall at the finish line....

jsc
Posts: 1864
Joined: Thu Apr 10, 2014 4:00 am

Re: S3D Print Time not Correct

Post by jsc » Tue Sep 15, 2015 8:40 pm

I just found this: https://github.com/davr/Marlin/tree/estimate

It's a branch of Marlin that just does a dry run through your gcode and spits out how long it would take. It should be extremely accurate. I managed to build it on a Mac. Here it is, you should be able to run it if your version of OS X is up to date. Generally, I advise against running random programs downloaded off the internet, but you can trust me :twisted: https://dl.dropboxusercontent.com/u/384 ... _estimator

Steps to DIY:
  1. git clone https://github.com/davr/Marlin.git
  2. cd Marlin
  3. git checkout estimate
  4. edit Makefile.calc to remove -static everywhere (no static builds on OS X any more)
  5. edit Configuration.h for DEFAULT_MAX_ACCELERATION (4000 for X and Y), DEFAULT_ACCELERATION (2000), and DEFAULT_XYJERK (8)
  6. make -f Makefile.calc
I don't have Windows build tools, but perhaps someone who does can build a binary?
Last edited by jsc on Tue Sep 15, 2015 8:52 pm, edited 1 time in total.

Bratag
Posts: 438
Joined: Wed Jan 14, 2015 5:33 am

Re: S3D Print Time not Correct

Post by Bratag » Tue Sep 15, 2015 8:43 pm

jsc wrote:Here's a simple explanation. The gcode says to move from 0 to 200 at 200 mm/s. So the host says "that should take 1 second" and that's what goes into the print time estimate. But the firmware says, well, you can't go from 0 to 200 mm/s instantaneously, that would cause the stepper to skip, so we have to accelerate up to that speed. Then we have to slow down gradually as well so we don't slam to a stop at the end, which will also cause skipped steps. So now it takes somewhat longer than 1s. But how much longer depends on the firmware settings: what change in velocity is considered acceptable to jump to without acceleration (so called MAX_JERK), and how much acceleration is being used. And there is no way to know what those values are, as they will be different between firmware implementations, firmware builds, and even user adjustable. Oh, and plus the firmware is looking at what happened before and after this segment, because maybe it doesn't have to start or stop at a dead stop; if the segment before was coming in with some velocity, it's not going to bring that one to a stand still, it will blend the velocities together.

Say you're at a drag strip in a car that can max out at 100 mph. According to the time estimator, you can do the quarter mile in 9s because it doesn't consider the time it takes to get up to that speed. But according to the firmware you're in a Honda Civic and there's no way it's a 9s car. And you may or may not be allowed a rolling start, and there may or may not be a brick wall at the finish line....
That's a great explanation. With that being said it should be possible to come up with a ballpark equation that we could plug some numbers into in order to get a better idea of the actual time. My rule of thumb is +30%. If the print time says 120 minutes I assume its going to be close to 160 ish. Its reasonably accurate for my print settings for PETG.

User avatar
Rara
Posts: 117
Joined: Wed Apr 09, 2014 8:48 pm
Location: Portland, OR

Re: S3D Print Time not Correct

Post by Rara » Tue Sep 15, 2015 9:45 pm

Ah, that makes sense, I didn't know the G-code and settings for things like acceleration, etc, were separate entities. It makes more sense now. I wonder how the time accumulates though, as I think I am guessing this job will take about 300% of the estimated time. I'm running the "community approved" PET-G settings with the reduced speed/acceleration..but I am printing out 8 copies of the same part as well.
2012 M2 V4-PTFE

jsc
Posts: 1864
Joined: Thu Apr 10, 2014 4:00 am

Re: S3D Print Time not Correct

Post by jsc » Tue Sep 15, 2015 11:12 pm

The time accumulates because each segment is taking longer than expected. OctoPrint, for one, tries to adjust for that dynamically.

Upload your g-code (if you like) and I can run the time estimator for you. I'm thinking of putting together a simple web service people can use to test it out.

User avatar
Rara
Posts: 117
Joined: Wed Apr 09, 2014 8:48 pm
Location: Portland, OR

Re: S3D Print Time not Correct

Post by Rara » Wed Sep 16, 2015 1:17 am

The file is too big to attach unfortunately (still 15mb zipped!)...I started about 9:00 Sunday night and it's looking like it might another 8-10 hours. :cry:

I am running Windows though and am not much of a coder/programmer so that web interface does sound pretty nice right about now. :D
2012 M2 V4-PTFE

jsc
Posts: 1864
Joined: Thu Apr 10, 2014 4:00 am

Re: S3D Print Time not Correct

Post by jsc » Wed Sep 16, 2015 4:04 am

You can give it a try at http://jinschoi.duckdns.org:4567/

I don't guarantee that it will be up, but if you do give it a shot, let me know how accurate it is. It is compiled using the parameters I outlined below, so if your firmware has some different defaults, it may not be perfectly accurate. Also, it doesn't take into account the time for bed/extruder warmup.

Post Reply