-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Invalid M204 Command ... #2492
Comments
This must be a slicer specific... thing.. Prusaslicer (Slic3er) Reprap/Sprinter flavor produces M204 Sxxxxx but Marlin flavor M204 Pxx Txx Rxxx.. After some quick investigation..... |
Thanks for the replies. Marlin/Smoothie seems like the way to go. I will have to slice and compare some smoothie files as I have never used it before. I now recall more about why I thought I had to move away from Marlin with Klipper .... I am coming over from stock Lulzbot TAZ6 firmware and their version of CURA. I recall that the Lulzbot version of CURA generated M104 and M109 commands that used the 'R' parameter, which Klipper does not support. I solved this by switching to RepRap, which I believed was the better choice as it was referenced in the Gcodes.md and solved the "R" parameter issue. Now that I am using Ultimaker CURA (v4.3), I see that I can slice with Marlin flavor selected and get M204 commands with the single 'S' parameter, and M104/M106 commands with the 'S' parameter - which Klipper should be just fine with. Maybe the Marlin Gcode reference page should be linked to instead of RepRap? Also, is there a tool that could be used to use the Klipper engine to parse a Gcode file and report "unknown commands" or syntax before running a print? It would be nice to use something like this to check a Gcode file to ensure that it will run as intended. |
I was just looking through Klipper's M204 code and I noticed that both P and T must be present in order for Klipper to do anything with either one of them. A form such as M204 P1500 raises an "Invalid M204 command" exception, which explains the OP's initial problem. Is this in fact the intended behavior? |
Yes - see docs/G-Codes.md. -Kevin |
I'm going to close this ticket as it appears the original question was answered. -Kevin |
@KevinOConnor, documentation is unclear. |
@robustini You can! Just define your own M204. See this as reference: https://github.com/Desuuuu/klipper-macros/blob/master/macros/M204.cfg |
I noticed (about 8 hrs into a 12 hr print) that the acceleration commands generated in Cura 4.3 using the RepRap flavor GCODE were not being recognized properly. I thought RepRap was the prefered flavor to use with Klipper. Is this not correct? Klipper docs state to refer to the RepRap documentation for GCODE info:
In my GCODE file, I have:
M204 P1500
The docs say:
When I change the GCODE to Marlin, I get:
M204 S1500
I seem to recall that using Marlin flavor with Klipper had compatability issues that were corrected with RepRap flavor, but now the opposite seems to be the case. Can anyone comment on the proper flavor to use with v0.8 with any pitfalls to watch out for?
Thanks!
klippy.log
The text was updated successfully, but these errors were encountered: