ISSN 1068-798X, Russian Engineering Research, 2018, Vol. 38, No. 2, pp. 123–125. © Allerton Press, Inc., 2018.
Original Russian Text © A.V. Shchekin, S.P. Sul’din, E.V. Mitin, 2017, published in STIN, 2017, No. 8, pp. 16–18.
CNC Module for Turning: A New CAM Application
A. V. Shchekin*, S. P. Sul’din**, and E. V. Mitin***
Ogarev Mordovia State University, Saransk, Russia
Abstract—The integrated CAM application for the KOMPAS-3D environment known as CNC Module for
Turning is considered. This application permits automated development of control programs for numerically
controlled lathes. The user may readily adapt the CAM application for specific production conditions and
machine tools, thanks to features such as the following: representation of the cutting tools by means of para-
metric 3D models, the possibility of including fixed CNC cycles in the control programs, and the use of the
Python language for programming of the postprocessors.
Keywords: KOMPAS-3D software, CAM systems, control software, 3D models, turning
The integrated CAM application known as CNC
Module for Turning permits the automated develop-
ment of control programs for numerically controlled
lathes in the KOMPAS-3D environment. Despite its
limited applicability (two-coordinate turning), the
application has all the basic functional capabilities of
up-to-date CAM systems [1–3]: a broad set of turning
strategies; a set of tools and machine-tool attach-
ments; postprocessing; and realistic visualization with
monitoring of the machining process.
The initial data for the application take the form of
a 3D design model created directly in a window of the
KOMPAS-3D system. The automatically generated
machining trajectory is completely associative with the
supporting elements of the design model .
The CAM application has several distinctive fea-
tures: complete integration in the KOMPAS-3D envi-
ronment; parametric 3D models of the tools and
attachments; the use of the Python language for pro-
gramming of the postprocessors; and the possibility of
including fixed CNC cycles in the control programs.
We now consider these features in more detail.
The user interface of the CAM application (Fig. 1a)
is completely integrated in the KOMPAS-3D platform
and uses KOMPAS-3D elements such as an insert in
the model-construction tree (the machining tree), an
instrument panel, and a properties panel. The instru-
ment panel (Fig. 1b) permits rapid implementation of
The machining tree (Fig. 1c) is responsible for vis-
ible display of the sequence of technological opera-
tions (the machining plan). It also permits control of
this sequence: change in the machining site; the intro-
duction or removal of machining operations; control
of the visibility of trajectories on the screen; and the
elimination of machining operations from the calcula-
tion. The machining tree is an individual OCX ele-
ment, with which the library interacts through the
COM interface, using events in the KOMPAS-3D
The panel of library properties (Fig. 1d) permits
specification of the library’s command parameters.
Using the properties panel, the reference elements of
the design model (faces of the 3D model or sketches)
and the machining parameters are selected. This panel
permits parallel operation with the KOMPAS-3D
window (rotation of the machined part, scale change,
and other actions with the model).
These three standard elements of the interface facili-
tate operation with the CAM application in the manner
most convenient for the user of the KOMPAS-3D
PARAMETRIC 3D MODELS OF THE TOOLS
Each CAM system must include a database of cut-
ting tools and machine-tool attachments. In the CAM
application here considered, the method of working
with tools, equipment, and attachments is somewhat
unusual: it involves three-dimensional models that
may be controlled by means of parametric variables
(Fig. 2). The parameter database for standard tools