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

M204 used instead of M201 when setting acceleration #106

Closed
nebbian opened this issue Jan 30, 2017 · 4 comments
Closed

M204 used instead of M201 when setting acceleration #106

nebbian opened this issue Jan 30, 2017 · 4 comments
Labels

Comments

@nebbian
Copy link

nebbian commented Jan 30, 2017

Version

1.31.6-prusa3d

Operating system type + version

Mac OS X El Capitan 10.11.6

Behavior

Setting the acceleration in the advanced tab sends M204 GCodes instead of M201.

To reproduce, set the acceleration in the advanced tab to 100 for the first layer, then 1000 for the default acceleration.

screen shot 2017-01-30 at 15 13

The GCode produced uses M204 to set acceleration, instead of the more compatible M201. Note, Repetier uses M204 to set PID values, not acceleration.

screen shot 2017-01-30 at 15 10

Here are some links describing the problem:
repetier/Repetier-Firmware#290
http://reprap.org/wiki/G-code#M201:_Set_max_printing_acceleration

Is there a way to modify the printer settings so that it uses M201 instead of M204?

This isn't really a new request, more a bug fix.

Not that it really helps, but I've added the config file here:
acceleration_config.ini.zip

@bubnikv
Copy link
Collaborator

bubnikv commented Jan 30, 2017

Thanks, I know @lordofhyphens did some fixes for repetier on the main Slic3r. I will port them once I have the current code base released.

@bubnikv bubnikv added the bug label Jan 30, 2017
@nebbian
Copy link
Author

nebbian commented Jan 30, 2017

Thanks @bubnikv for the quick response 👍

For anyone wanting a quick fix without needing another build of Slic3r, I've created this post processing script that seems to do the job:

#!/usr/bin/perl -i
#
# Post-processing script for changing default M204 acceleration control,
# to M201 which is compatible with Repetier firmware

use strict;
use warnings;

while (<>) {
    if (/^(M204\s+S(\d+))/) {
        printf "M201 X%d Y%d Z%d E2000\n", $2, $2, $2;
    } else {
        print;
    }
}

@bubnikv
Copy link
Collaborator

bubnikv commented Feb 9, 2017

@bubnikv
Copy link
Collaborator

bubnikv commented Feb 10, 2017

Hopefully fixed by #106
Thanks to @lordofhyphens

@bubnikv bubnikv closed this as completed Feb 10, 2017
Jebtrix pushed a commit to Jebtrix/PrusaSlicer that referenced this issue Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants