[Paper Review] Conversion of G-code programs for milling into STEP-NC
This paper presents a holistic, automated method to convert G-code milling programs into STEP-NC, leveraging canonical machining functions and geometric inference to enable feature-based, machine-independent manufacturing data. The approach transforms G-code into standardized Part21 files and optionally extracts machining features with high accuracy using toolpath, workpiece, and tool data, minimizing manual intervention and enhancing interoperability in CAD/CAM/CNC systems.
STEP-NC (ISO 14649) is becoming a promising standard to replace or supplement the conventional G-code programs based on ISO 6983 due to its feature based machine independent characteristics and its centric role to enable efficient CAD/CAM/CNC interoperability. The re-use of G-code programs is important for both manufacturing and capitalization of machining knowledge, nevertheless the conversion is a tedious task when carried out manually and machining knowledge is almost hidden in the low level G-code. Mapping G-code into STEP-NC should benefit from more expressiveness of the manufacturing feature-based characteristics of this new standard. The work presented here proposes an overall method for G-code to STEP-NC conversion. First, G-code is converted into canonical machining functions, this can make the method more applicable and make subsequent processes easier to implement; then these functions are parsed to generate the neutral format of STEP-NC Part21 toolpath file, this turns G-code into object instances, and can facilitate company's usage of legacy programs; and finally, also optionally, machining features are extracted to generate Part21 CC2 (conformance class) file. The proposed extraction method employs geometric information of cutting area inferred from toolpaths and machining strategies, in addition to cutting tools' data and workpiece's dimension data. This comprehensive use of available data makes the extraction more accurate and reliable. The conversion method is holistic, and can be extended to process a wide range of G-code programs (e.g. turning or mill-turn codes) with as few user interventions as possible.
Motivation & Objective
- To address the challenge of reusing legacy G-code programs in modern, feature-based manufacturing systems.
- To overcome the limitations of low-level, machine-specific G-code by enabling semantic understanding and machine independence.
- To develop a method that minimizes user intervention during conversion from G-code to STEP-NC.
- To extract meaningful machining features from G-code by leveraging geometric and process data.
- To support interoperability across CAD/CAM/CNC platforms through standardized STEP-NC Part21 and CC2 formats.
Proposed method
- Convert G-code into canonical machining functions to standardize processing and improve applicability.
- Parse these functions to generate a neutral STEP-NC Part21 toolpath file, enabling platform-agnostic CNC execution.
- Use geometric information from toolpaths, combined with cutting tool data and workpiece dimensions, to infer machining features.
- Apply machining strategies and geometric inference to enhance accuracy and reliability of feature extraction.
- Optionally generate a Part21 CC2 conformance class file to represent extracted machining features.
- Design the method to be extensible to other CNC operations such as turning or mill-turn.
Experimental results
Research questions
- RQ1How can G-code programs be systematically transformed into a feature-based, machine-independent format like STEP-NC?
- RQ2What techniques enable accurate and reliable extraction of machining features from low-level G-code?
- RQ3To what extent can the conversion process be automated with minimal user input?
- RQ4How can geometric and process data be combined to infer machining features from toolpaths?
- RQ5Can the proposed method be generalized to various types of CNC programs beyond milling?
Key findings
- The method successfully converts G-code into standardized STEP-NC Part21 and optionally CC2 files, enabling interoperability across CAD/CAM/CNC systems.
- Geometric inference from toolpaths, combined with tool and workpiece data, enables accurate machining feature extraction without requiring explicit feature annotations in G-code.
- The use of canonical machining functions enhances the method's applicability and simplifies downstream processing.
- The approach minimizes manual intervention, making legacy G-code programs reusable in modern manufacturing environments.
- The framework is extensible to other CNC operations such as turning and mill-turn, demonstrating broad applicability.
- The conversion process supports both toolpath-level and feature-level representations, enabling dual-use of legacy programs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.