Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print time estimate incorrect for Smoothie flavor with M203 #1259

Closed
CapnBry opened this issue Sep 27, 2018 · 2 comments
Closed

Print time estimate incorrect for Smoothie flavor with M203 #1259

CapnBry opened this issue Sep 27, 2018 · 2 comments

Comments

@CapnBry
Copy link

CapnBry commented Sep 27, 2018

Version

1.41.1 beta and 1.41.0 release

Operating system type + version

Windows 10 Pro x64

Behavior

Print time estimates when using the Smoothie gcode flavor were much higher than expected, reporting 3h+ for a part that would only take 20 minutes to print. The reason is because Smoothieware interprets M203 parameters as mm/sec as Marlin does (reference). If the gcode includes an M203, the max feedrates are 60x too slow and therefore create too large of a print estimate.

Solution: GCodeTimeEstimator.cpp although subject to style

-float factor = (dialect == gcfMarlin) ? 1.0f : MMMIN_TO_MMSEC;
+float factor = (dialect == gcfMarlin || dialect == gcfSmoothie) ? 1.0f : MMMIN_TO_MMSEC;

Attempted workarounds: Switching to the Marlin flavor provides the correct estimate, but due to the 1.41 Machine Limits adding the jerk settings to the gcode, this gcode can not be used on Smoothieware because M205 Xnnn in smoothie sets the junction deviation, not the X jerk, so smoothie will try to run at infinite "jerk". Setting the machine limit X jerk to a reasonable deviation value in Slic3r ruins the print time estimate, due to it interpreting it as a very low jerk value.

STL/Config (.ZIP) where problem occurs

Include the following line in "Start Gcode" and switch between Marlin flavor vs Smoothie flavor. Both should have similar print time estimates.

M203 X250 Y250 Z10 E50 V15 ; max feedrate
@lf-
Copy link
Contributor

lf- commented Dec 16, 2018

Please pull request this, it sounds like you've got the exact issue figured out, and it could get fixed really quickly.

bubnikv added a commit that referenced this issue Dec 17, 2018
Fixes "Print time estimate incorrect for Smoothie flavor with M203 #1259"
@bubnikv
Copy link
Collaborator

bubnikv commented Dec 17, 2018

Merged. Thanks for help. Closing.

@bubnikv bubnikv closed this as completed Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants