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

Marlin M205 command not being sent properly #2032

Closed
Jailcee opened this issue Jun 26, 2017 · 7 comments
Closed

Marlin M205 command not being sent properly #2032

Jailcee opened this issue Jun 26, 2017 · 7 comments

Comments

@Jailcee
Copy link

Jailcee commented Jun 26, 2017

Using Cura 2.5 and 2.6, my printer is set up as a custom printer using GCode flavor "RepRap (Marlin/Sprinter)".

In Cura I have these as my settings:

Print Accel: 800

Travel Accel: 850

Print Jerk: 10

Travel Jerk: 15

According to documentation (http://marlinfw.org/docs/gcode/M204.html and http://marlinfw.org/docs/gcode/M205.html) this should produce the following Gcode:

M204 P800 T850

M205 X10 Y10

What I find in the GCode instead is:

M204 S850

M205 X15

M204 S800

M205 X10

Cura is interpreting the M205 command as if M205 Xnn will set both X and Y jerk to nn but in fact it only sets X. I have manually edited a Gcode file to add a M205 X10 Y10 command and saw a difference in the Y jerk (through ghosting in the print). This confirms that the way Cura handles Jerk settings for Marlin is incorrect.

@smartavionics
Copy link
Contributor

Hi, have you seen this...
http://reprap.org/wiki/G-code#M205:_Advanced_settings
Perhaps marlin has changed?
The whole acceleration/jerk thing looks to be in need of some TLC as the output doesn't work for some other firmwares either.

@smartavionics
Copy link
Contributor

Yes, in the more recent marlin source they expect the X and Y jerk to be specified separately as you show above but what cura does is compatible with earlier marlin versions. Looking at the earlier marlin code, it would ignore a Y value if it was specified so I don't see why we can't change cura to output both X and Y values.

@Jailcee
Copy link
Author

Jailcee commented Jun 26, 2017

Exactly. The alternative is to set the max jerk settings in the eeprom but that's a bit of a hack. Better for the Gcode to generate properly.

@smartavionics
Copy link
Contributor

Yes, but a potential problem is that adding the Y param to M205 could upset other printers (repetier, smoothie, etc.)

@smartavionics
Copy link
Contributor

OK, I think the only other firmware that could be affected is sprinter and that looks like the early marlin code so I shall put together a little PR to add the Y value...

@smartavionics
Copy link
Contributor

See Ultimaker/CuraEngine#541

@smartavionics
Copy link
Contributor

The PR has been incorporated into the master branch so it should be in release 2.7. You can close this issue now.

@nallath nallath closed this as completed Jun 27, 2017
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