Notifications
Clear all

Python Parser for Gcode sliced with Prusa  

  RSS
ablam
(@ablam)
New Member
Python Parser for Gcode sliced with Prusa

I'm using pygcode to parse through Gcode files sliced in Prusa. I explored the parser using files sliced in CURA and it worked well. It helped me understand and identify syntax in Gcode as follows: 

GCodeSpindleSpeed, GCodeLinearMove, GCodeRapidMove, GCodeFeedRate...

Now, I want to do the same for Gcode files sliced in Prusa too but I get the following:

error: word 'P' value invalid

Is there a parser equivalent for Pursa, or perhaps a way to extract the information above? I thought the PyGcode extend PrusaSlicer would be of help, though it serves to insert lines into Gcode to add customization. Thank you!

Posted : 03/05/2022 8:11 pm
Tojik
(@tojik)
Member Moderator
RE:

Hi, please try using a different forum section https://forum.prusa3d.com/forum/prusaslicer/ this is primarily for Prusa Connect and PrusaLink testing and troubleshooting.
We have some tailored gcodes that the analyzer might have a hard time with. I am unsure what do you mean by Spindle speed, 3d printers don't have spindles.
Gcode comes from subtractive manufacturing machines, so pygcode might have been made primarily for analyzing that gcode. Either way it looks pretty inactive, so i don't think there's going to be much of anything happening regarding new features

Posted : 03/05/2022 9:12 pm
ablam
(@ablam)
New Member
Topic starter answered:
RE: Python Parser for Gcode sliced with Prusa

Thank you. I've moved my question and will remove this one shortly. Indeed, I think it's the tailored gcode it's having a rough problem with, which is why I thought I'd find something of sort, but I'll keep looking. I also think the spindle may be a reference to the number of rotations/min to mill 3D printed parts. Maybe something to consider. Thanks!

Posted : 03/05/2022 9:22 pm
Share: