Novel integration of capp in a g-code generation module using macro programming for CNC application

Trung Kien Nguyen, Lan Xuan Phung, Ngoc Tam Bui

Research output: Contribution to journalArticlepeer-review

10 Citations (Scopus)


In the modern manufacturing industry, the role of computer-aided process planning (CAPP) is becoming increasingly crucial. Through the application of new technologies, experience, and intelligence, CAPP is contributing to the automation of manufacturing processes. In this article, the integration of a proposed CAPP system that is named as BKCAPP and G-code generation module provides a completed CAD–CAPP–CNC system that does not involve any manual processing in the CAM modules. The BKCAPP system is capable of automatically performing machining feature and operation recognition processes from design features in three-dimensional (3D) solid models, incorporating technical requirements such as the surface roughness, geometric dimensions, and tolerance in order to provide process planning for machining processes, including information on the machine tools, cutting tools, machining conditions, and operation sequences. G-code programs based on macro programming are automatically generated by the G-code generation module on the basis of the basic information for the machining features, such as the contour shape, basic dimensions, and cutting information obtained from BKCAPP. The G-code generation module can be applied to standard machining features, such as faces, pockets, bosses, slots, holes, and contours. This novel integration approach produces a practical CAPP method enabling end users to generate operation consequences and G-code files and to customize specific cutting tools and machine tool data. In this paper, a machining part consisting of basic machining features was used in order to describe the method and verify its implementation.

Original languageEnglish
Article number61
Pages (from-to)1-16
Number of pages16
Issue number4
Publication statusPublished - 2020


  • CAPP
  • CNC machining
  • G-code generation
  • Machining feature
  • Macro programming

ASJC Scopus subject areas

  • Computer Science (miscellaneous)
  • Control and Systems Engineering
  • Mechanical Engineering
  • Control and Optimization
  • Industrial and Manufacturing Engineering
  • Electrical and Electronic Engineering


Dive into the research topics of 'Novel integration of capp in a g-code generation module using macro programming for CNC application'. Together they form a unique fingerprint.

Cite this