| 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: | APEM20-2_224-238.pdf (4,02 MB) MD5: 0BF2DCD76F94FF3AF7A74455CBEC9FFE
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  |
|---|
| UDC: | 621:681.5 |
|---|
| ISSN on article: | 1855-6531 |
|---|
| COBISS.SI-ID: | 256562947  |
|---|
| DOI: | 10.14743/apem2025.2.537  |
|---|
| Publication date in DKUM: | 28.11.2025 |
|---|
| Views: | 392 |
|---|
| Downloads: | 36 |
|---|
| Metadata: |  |
|---|
| Categories: | Misc.
|
|---|
|
:
|
Copy citation |
|---|
| | | | Average score: | (0 votes) |
|---|
| Your score: | Voting is allowed only for logged in users. |
|---|
| Share: |  |
|---|
Hover the mouse pointer over a document title to show the abstract or click
on the title to get all document metadata. |