Improvement - Cleanup duplicated M204 - Set default acceleration #2183

Closed
thiagopeixoto16 opened this Issue Jul 28, 2014 · 2 comments

Projects

None yet

2 participants

@thiagopeixoto16

When activating acceleration setting I can see some double commands like below.
On the first occurrence we have a change of acceleration without need.
double-m204

It causes extra bytes on g-code, additional processing time to generate g-code and unnecessary communication cycles with the printer.

In the attached case, we have 7,968 duplicated occurrences from 45,836, so a rate of around 17% of duplicated commands.
double-cases-count

Is it possible to remove the unnecessary commands?

Case details:
https://www.dropbox.com/s/cu046lps0by5o4b/M204_Cleanup.zip

Thanks,

@alexrj
Owner
alexrj commented Aug 3, 2014

Thank you, done

@alexrj alexrj closed this Aug 3, 2014
@alexrj alexrj added this to the 1.2.0 milestone Aug 3, 2014
@alexrj alexrj added the Fixed label Aug 3, 2014
@thiagopeixoto16

I has to come here and congratulate you for the improvement.
You not only removed the sequential duplicated cases but all the duplication cases along the movement commands.
Just to illustrate, I had a file with around 14,000 M204 commands, but now with the fix it contains only 5,500 (!).

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment