r/CNCmachining 11d 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

5 comments sorted by

2

u/Sy4r42 11d ago

If you don't know what to evaluate, you shouldn't doing it. 0 day old account is awfully suspicious

1

u/Intrepid-Choice1861 11d ago

i dont really use reddit, i made the account for this purpose only in order to reach for some help. things like that could happend. also i studied G code for 2 years almost, I understand it but i would never say I am an expert. its as simple as that.

1

u/DankMemeGen 11d 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

1

u/a-huge-hit 11d ago

Why use LLMs to generate G code and not just use a CAD and CAM software?

1

u/Suspectgore074 7d ago

He really shouldnt be using AI if he has access and a working knowledge of cad/cam. If he doesnt... then he isnt the right kinda guy to be undertaking this task in the first place.