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

Use M73 progress instead of byte position if possible #15449

Merged
merged 1 commit into from
Oct 7, 2019

Conversation

LinFor
Copy link
Contributor

@LinFor LinFor commented Oct 3, 2019

Description

Currently M73 is ignored when printing from SD. But slicers has a lot more info to estimate overall difficulty of gcode in file instead of Marlin, which operates only byte position in file to show progress on LCD. Especially that effect visible on layers with many arcs, each of them results in a lot of gcode strings.

This patch will use provided progress in M73 command after first appearance in g-code file. If g-code file doesn't contains M73 old behavior will not changes.

PS: I wrote simple script for Cura to expose internal time estimation calculation to M73 commands on every layer change, just to usage example: https://github.com/LinFor/Marlin/blob/e-bot-skr/cura-profiles/scripts/EnrichPrintProgress.py

Benefits

More accurate print progress reporting on LCD if possible.

Related Issues

#13249, #12682

@thinkyhead
Copy link
Member

At the end of SD printing the progress should be shown as 100%, and it should remain at 100% until there is user interaction with the printer. Please confirm that the described behavior is not broken by this change.

@thinkyhead thinkyhead merged commit 19b7be0 into MarlinFirmware:bugfix-2.0.x Oct 7, 2019
@LinFor
Copy link
Contributor Author

LinFor commented Oct 8, 2019

@thinkyhead Sorry, it's broken now.
100% behavior works normally, but sdpos-based reporting of progress stops after first update.
I'll provide fix today.

@LinFor LinFor deleted the pr_use_m73_for_sd branch October 8, 2019 11:41
@LinFor LinFor mentioned this pull request Oct 8, 2019
thinkyhead pushed a commit to LinFor/Marlin that referenced this pull request Oct 8, 2019
rolkun pushed a commit to rolkun/Marlin that referenced this pull request Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants