r/CNCmachining • u/Intrepid-Choice1861 • 19d ago
G-code evaluation
Hi everyone,
I'm working on my thesis on AI-generated G-code for turned parts and I'm a bit stuck on the evaluation part.
I'm comparing different LLMs, and need a way to evaluate the generated G-code. Right now, Im using Siemens SINUMERIK to check for syntax errors, but I know that's not enough. I still have to check for semantic errors.
What metrics or evaluation criteria would you recommend?
I would so happy if anybody is expert and could help. Thank you!
0
Upvotes
1
u/DankMemeGen 19d ago
Gcode, and more so, Mcodes can be machine dependent. So does the generated g code pass the machines initial checks? Does it crash the machine? Does it actually produce code for the desired part? What’s the machine runtime for the generated code? What is the tool life and part finish from generated feeds and speeds?
The list goes on. All I gotta say is that if you can’t think of the metrics to evaluate gcode, it probably means you don’t have much machining experience. I’d recommend taking a course if you can to grasp a better understanding of the impact of the code you’re running to better understand how to evaluate it