Python Parser for Gcode sliced with Prusa
 
Notifications
Clear all

Python Parser for Gcode sliced with Prusa  

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

Hi. 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: 

[<GCodeLinearMove: G01{Z2.2}>, <GCodeFeedRate: F600>],
[<GCodeRapidMove: G00{X178.26, Y104.753, Z2.2}>, <GCodeFeedRate: F1285.7>],
[<GCodeSpindleSpeed: S500>],

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 Prusa, 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 9:16 pm
Share: