Treffer: CNC Milling Optimization via Intelligent Algorithms: An AI-Based Methodology

Title:
CNC Milling Optimization via Intelligent Algorithms: An AI-Based Methodology
Source:
Machines ; Volume 14 ; Issue 1 ; Pages: 89
Publisher Information:
Multidisciplinary Digital Publishing Institute
Publication Year:
2026
Collection:
MDPI Open Access Publishing
Document Type:
Fachzeitschrift text
File Description:
application/pdf
Language:
English
Relation:
DOI:
10.3390/machines14010089
Accession Number:
edsbas.2D22A71
Database:
BASE

Weitere Informationen

Artificial intelligence (AI) is becoming more and more integrated into manufacturing processes, revolutionizing conventional production, like CNC (Computer Numerical Control) machining. This study analyzes how large language models (LLMs), exemplified by ChatGPT, behave when tasked with G-code optimization for improving surface quality and productivity of automotive metal parts, with emphasis on systematically documenting failure modes and limitations that emerge when general-purpose AI encounters specialized manufacturing domains. Even if software programming remains essential for highly regulated sectors, free AI tools will be increasingly used due to advantages like cost-effectiveness, adaptability, and continuous innovation. The condition is that there is sufficient technical expertise available in-house. The experiment carried out involved milling three identical parts using a Haas VF-3 SS CNC machine. The G-code was generated by SolidCam and was optimized using ChatGPT considering user-specified criteria. The aim was to improve the quality of the part’s surface, as well as increase productivity. The measurements were performed using an ISR C-300 Portable Surface Roughness Tester and Axiom Too 3D measuring equipment. The experiment revealed that while AI-generated code achieved a 37% reduction in cycle time (from 2.39 to 1.45 min) and significantly improved surface roughness (Ra—arithmetic mean deviation of the evaluated profile—decreased from 0.68 µm to 0.11 µm—an 84% improvement), it critically eliminated the pocket-milling operation, resulting in a non-conforming part. The AI optimization also removed essential safety features including tool length compensation (G43/H codes) and return-to-safe-position commands (G28), which required manual intervention to prevent tool breakage and part damage. Critical analysis revealed that ChatGPT failures stemmed from three factors: (1) token-minimization bias in LLM training leading to removal of the longest code block (31% of total code), (2) lack of semantic ...