| | SLO | ENG | Cookies and privacy

Bigger font | Smaller font

Show document Help

Title:Large language models for G-code generation in CNC machining: A comparison of ChatGPT-3.5 and ChatGPT-4o
Authors:ID Šket, Kristijan (Author)
ID Potočnik, David (Author)
ID Brezočnik, Miran (Author)
ID Ficko, Mirko (Author)
ID Klančnik, Simon (Author)
Files:.pdf APEM20-2_224-238.pdf (4,02 MB)
MD5: 0BF2DCD76F94FF3AF7A74455CBEC9FFE
 
URL https://apem-journal.org/Archives/2025/Abstract-APEM20-2_224-238.html
 
Language:English
Work type:Article
Typology:1.01 - Original Scientific Article
Organization:FS - Faculty of Mechanical Engineering
Abstract:This research explores the viability of producing ISO G-code for 3-axis machining with OpenAI's Chat Generative Pre-Trained Transformer models, particularly ChatGPT-3.5 and the newer GPT-4o. G-code (RS-274-D, ISO 6983) converts human directives into commands that machines can understand, controlling toolpaths, spindle velocities, and feed rates to produce particular aspects of an object. Previously, G-code was generated either by hand or through the use of computer-aided manufacturing (CAM) software along with machine-specific post-processors, both of which may require considerable time and expense. This research aimed to assess the practicality and effectiveness of specific large language models (LLMs) in generating G-code. The assessment took place in three distinct phases on a sample component that required 3-axis machining. These phases included: (1) the self-generated production of G-code for the sample component, (2) the examination of the independently generated G-code in the CAM application, and (3) the recognition and justification of mistakes in the G-code. The outcomes indicated varying abilities with promising findings. This method could accelerate and possibly enhance manufacturing workflows by decreasing reliance on expensive CAM software and specialized knowledge.
Keywords:generative artificial intelligence, intelligent manufacturing, large language models (LLM), ChatGPT, CNC machining, G-code programming
Publication status:Published
Publication version:Version of Record
Submitted for review:09.05.2025
Article acceptance date:19.06.2025
Publication date:29.07.2025
Publisher:University of Maribor
Year of publishing:2025
Number of pages:str. 224-238
Numbering:Vol. 20, no. 2
PID:20.500.12556/DKUM-96065 New window
UDC:621:681.5
ISSN on article:1855-6531
COBISS.SI-ID:256562947 New window
DOI:10.14743/apem2025.2.537 New window
Publication date in DKUM:28.11.2025
Views:392
Downloads:36
Metadata:XML DC-XML DC-RDF
Categories:Misc.
:
Copy citation
  
Average score:(0 votes)
Your score:Voting is allowed only for logged in users.
Share:Bookmark and Share



Hover the mouse pointer over a document title to show the abstract or click on the title to get all document metadata.

Record is a part of a journal

Title:Advances in production engineering & management
Publisher:Fakulteta za strojništvo, Inštitut za proizvodno strojništvo
ISSN:1855-6531
COBISS.SI-ID:244943360 New window

Document is financed by a project

Funder:ARIS - Slovenian Research and Innovation Agency
Project number:P2-0157-2020
Name:Tehnološki sistemi za pametno proizvodnjo

Licences

License:CC BY 4.0, Creative Commons Attribution 4.0 International
Link:http://creativecommons.org/licenses/by/4.0/
Description:This is the standard Creative Commons license that gives others maximum freedom to do what they want with the work as long as they credit the author.

Secondary language

Language:Slovenian
Keywords:generativna umetna inteligenca, pametna proizvodnja, veliki jezikovni modeli, CNC obdelava, programiranje z G-kodo


Collection

This document is a collection and includes these documents:
  1. Advances in production engineering & management

Comments

Leave comment

You must log in to leave a comment.

Comments (0)
0 - 0 / 0
 
There are no comments!

Back
Logos of partners University of Maribor University of Ljubljana University of Primorska University of Nova Gorica