Professional Documents
Culture Documents
2011 - Simulated Verification of NC Part Programs From 2D
2011 - Simulated Verification of NC Part Programs From 2D
Srinivasa Rao]
On: 19 August 2011, At: 09:32
Publisher: Taylor & Francis
Informa Ltd Registered in England and Wales Registered Number: 1072954 Registered office: Mortimer House,
37-41 Mortimer Street, London W1T 3JH, UK
To cite this article: S. Srinivasa Rao, B. Satyanarayana & M.M.M. Sarcar (2011): Simulated verification of NC part programs
from 2D images, International Journal of Computer Integrated Manufacturing, 24:9, 800-810
This article may be used for research, teaching and private study purposes. Any substantial or systematic
reproduction, re-distribution, re-selling, loan, sub-licensing, systematic supply or distribution in any form to
anyone is expressly forbidden.
The publisher does not give any warranty express or implied or make any representation that the contents
will be complete or accurate or up to date. The accuracy of any instructions, formulae and drug doses should
be independently verified with primary sources. The publisher shall not be liable for any loss, actions, claims,
proceedings, demand or costs or damages whatsoever or howsoever caused arising directly or indirectly in
connection with or arising out of the use of this material.
International Journal of Computer Integrated Manufacturing
Vol. 24, No. 9, September 2011, 800–810
This paper describes a new approach to extract information from the 2D-drawing image files to determine turning
features existing on rotational parts to be machined on turning centres; and later utilise this information to generate
process plans and numerical control (NC) part programs. The software package is developed using ‘Java’ language
incorporating the advanced features of Java Advanced Image (JAI) package. With the developed software package,
one can achieve full automation of all aspects of the process plan, including sequence of operations, selection of
tools, machining parameter selection and NC part program generation, etc. Thus, it becomes possible to go from
image to NC part program in a fully automated fashion. This package is menu-driven and needs no programming
Downloaded by [S. Srinivasa Rao] at 09:32 19 August 2011
skills to prepare NC part program for machining the parts. The paper includes an illustration of the procedure for
extracting turned features, generating process plans and NC part programs from the image. The results are verified
through CNC train simulation package and are satisfactory.
Keywords: turned features; process planning; NC part programs
with arbitrary feature interactions. A pre-processor is by minimising the number of tool changes and
used to screen out invalid 2.5D parts automatically tool-travelling distance to decrease the cost per
and calculate the possible machining directions. Valino operation. The part programs are then automatically
et al. (2007) presents an automatic set-up planning generated in standard ISO codes on the basis of
module integrated in a CAPP system for rotational specific CNC lathe controllers. Sabourin and Ville-
parts to be machined on a lathe. Satish and Prakash neuve (1996) developed an expert system for CAPP,
(2006) developed a novel method for automated which takes the feature-based model from CATIA as
process planning for boring of turned components input and determines the operation sequence and
with arbitrary internal geometry from a semi-finished setups for the machining features.
stock. Tolouei-Rad and Payeganeh (2006) deal with It is observed from the literature review that based
different machining problems with the aid of two on many of researchers extracting geometrical data
expert systems. It recognises machining features, from the standard formats like IGES, DXF, STEP,
determines required machining process plans, cutting etc., there is no literature reporting the study of how to
tools and parameters necessary for generation of NC extract geometrical data from the 2D drawing images.
programs. Therefore, there is a vital need to make an attempt to
Yildiz et al. (2006) developed an automatic feature extract surface features from the image files. This paper
recognition and CNC code generation (AFR/ACCG) addresses the algorithms developed for automatic
system for rotational parts. This system was prepared recognition of surface features, generation of process
Downloaded by [S. Srinivasa Rao] at 09:32 19 August 2011
using Delphi 7 programming language. The data input plans and NC code for axisymmetric component
to the system is done by DXF prepared in any CAD drawing images.
program. Kingsly et al. (2005) developed a feature-
based design system that can be applied in the concept-
to-manufacturing stages of the machining process is 2. Feature recognition
explained. Srinivasa rao and Satyanarayana (2005) Significant research has been focussed on automatic
developed interactive modules using C language to feature recognition in the last two decades. In
generate process plans and NC code for axisymmetric automatic feature recognition, a computer application
components. Ben-arieh et al. (2003) proposed an automatically generates a feature model, given a
algorithmic graph-theoretic approach towards deter- geometric model and some description of all possible
mining the optimal process plan such that the part’s features. Automatic feature recognition is an impor-
overall accuracy is maximised. Saad and Khalil (2001) tant component in knowledge-based machining, is
proposed three modules, namely, structured modelling, used to scan the image, determine salient point
feature recognition and feature sequencing for machin- coordinates of features exist and extract the features
ing rotational components. Saravanan et al. (2001) for subsequent processing. It will be possible for the
used the genetic algorithm (GA), simulated annealing software to automatically select the machining pro-
algorithm (SA), simplex and boundary search proce- cesses, speeds and feeds and cutting tools, and then
dures for optimising the CNC turning process, but the automatically create the final NC part programs.
work was limited to straight turning only. Bhandarkar Automated feature recognition has been an active
and Nagi (2000) developed a standard oriented form- research area in solid modelling for many years, and
feature extraction system that converts lower level is considered a critical component for CAD/CAM
geometrical and topological data specified in a STEP integration. Automatic use of feature recognition
file into relevant manufacturing data. minimises the need to manually analyse and manip-
Liu (2000) reported a new approach for a ulate part geometry to prepare it for machining
component framework for feature-based design and (Kumar and Saha 2008). Automated feature recogni-
process planning in order to provide a productive and tion can best be facilitated by CAD systems capable of
powerful development mode. Tu et al. (2000) described generating the product geometry based on features
a computer-aided process-planning system for virtual exist.
one-of-a-kind production. Prasad et al. (1997) pre-
sented the advantages of implementing optimisation
techniques for determining the process parameter for 3. Process planning
rotational components. A combination of geometric Process planning can be defined in simple terms as
programming and linear programming were used in converting a given engineering 2D drawing image into
the CAPP system to predict the optimum parameters manufacturing instructions, which gives the informa-
for each operation. Kayacan et al. (1996) presents an tion about sequence of operations, tools, cutting
optimised process-planning system for rotational parameters such as speed, feed and depth of cut,
parts. An optimum sequence of operations is found etc. Process planning is also defined by the Society
802 S. S. Rao et al.
of Manufacturing Engineers as ‘the systematic deter- of the present work is to develop a software package
mination of the methods by which a product is to be for automation of process planning and NC code
manufactured economically and competitively’. The generation for axisymmetric turned components. The
quality of a product and its cost of production are package has been developed using ‘Java’ language
strongly influenced by the process plan (Jain et al. incorporating the advanced features of Java Advanced
1998). CAPP has been seen as a critical link between Image (JAI) package. The developed package contains
CAD and CAM. There are two approaches to CAPP. five modules, namely, extract module, geometrical data
The first is the variant approach, in which a new module, turning features module, process-planning
process plan is generated using existing standard module and NC part program module. These have a
process plans stored in the database. The second is user-friendly environment and interact effectively
the generative approach, in which a new process plan is during data transfer compared with the commercial
generated from scratch, i.e. it will not use any standard software tools. The overall structure of these modules
existing process plan. The basic requirement for a is briefly given in this section. Figure 1 shows the
generative process-planning system is to interpret the architecture of the developed software package and is
given component image in terms of manufacturable explained through the following steps.
features. The technology used for this purpose is called
feature recognition technology. As feature recognition Step 1: After executing the Java program, the
technology has not yet matured (Sadaiah et al. 2002), main window will be displayed.
Downloaded by [S. Srinivasa Rao] at 09:32 19 August 2011
there is a third category of process-planning approach Step 2: Enter 2D drawing image file name with jpg
called the semi-generative approach. In this approach, extension, by pressing extract button, the centre Y
attempts have been made to integrate features of the coordinate of the part will be extracted and
above two approaches and to relieve certain require- determined from the image and assigned to
ments of a truly generative process-planning system. variable Y for further processing.
Most of the developed CAPP systems are in this Step 3: Enter the size of raw workpiece and
category. Further, a semi-generative approach is choose the part material, then by pressing
considered to be a good option for present industrial geometrical data button, the complete geometri-
applications until a truly generative CAPP system has cal data of the image will be extracted and stored
been developed (Sadaiah et al. 2002). in a file.
Step 4: By pressing the turning features button,
the turning features of the image from left to right
4. Part programming are generated and displayed on the screen.
Today, the operation and appearance of production
systems have changed propelling us into the world of
computer integrated manufacturing. However, prepar-
ing tapes or tape images is time consuming. Since part
programmers have difficulty keeping up with the
demand for new part programs, the tendency is to
develop efficient procedures capable of replicating this
human process and install them on the shop floor.
Once the geometric data is processed, the preparation
of NC tape images and many other downstream
manufacturing applications can be done more easily
(Wang and Lin 1987). The methods mentioned above
are largely being replaced by the proposed system.
By implementing this, the system will reduce human
interaction and results in the reduction of time
required for hiring and training labour; and increases
production, reduces lead-times, facilitating quicker
response to customer needs; minimises waste, inven-
tory and work-in-progress, etc.
Shape of
Sl. no. Logic the feature Name of the feature Geometrical data
1 If (Y2 ¼ Y3 ¼ Y4 ¼ Y5 ¼ Y6) Plain turning D ¼ 2 6 (Y2 7 Y)/SF
2 If (Y3 ¼ Y4 ¼ Y5 ¼ Y6) & (Y2 4 Y6) Step turning D ¼ 2 6 (Y2 7 Y)/SF
Step 1: Scan the image again, pixel by pixel and The exact size of the part is obtained only if the
extract black colour pixel coordinates starting image is in normal position. In all other positions (zoom
from left top to right bottom of the image. in or zoom out), the size may vary. To overcome this
Step 2: If X1 equals to X coordinate of the pixel, problem, the scale factor is considered in the algorithm.
corresponding Y coordinate is assigned to Y2. The system will compute scale factor automatically
Step 3: If Y coordinate of the centre axis of the based on size of raw workpiece available. This scale
part equals to Y coordinate of the pixel, then factor is used to compute all the dimensions proportio-
increase counter j by one (1) nately to the size of raw workpiece.
Step 4: If j equals 2, assign X coordinate of the Table 1 presents the logics used to recognise
pixel to X6 j equals 3, assign X coordinate of the different types of turned features of the axisymmetric
pixel to X10 etc. parts. As shown in the first row of Table 1, if the value
Step 5: If X2 þ 1 equals X coordinate of the pixel, of Y coordinates of all the salient points is equal then
corresponding Y coordinate is assigned to Y7. recognise the feature as a plain turning. Similarly,
Step 6: Calculate X coordinate of the second compare Y coordinates of different points of the
segment at 1/4th length X3 ¼ X2 þ (X6 7 X2)/4, segment and recognise other features as shown in
at 1/2 length X4 ¼ X2 þ (X6 7 X2)/2 and at 3/4th Table 1. For all the features, length of the feature is
length X5 ¼ X4 þ (X6 7 X2)/4. computed by using the formula L ¼ (X6 7 X2)/SF,
Step 7: If X3 equals X coordinate of the pixel,
Downloaded by [S. Srinivasa Rao] at 09:32 19 August 2011
ðy4 y2Þ
Slope of the first line m1 ¼ and 5.4. Process-planning algorithm
ðx4 x2Þ
Automation of process planning implies a methodol-
ðy6 y4Þ ogy that is able to generate process plans based on the
Slope of the second line m2 ¼
ðx6 x4Þ information available in the feature extraction data-
base. The optimum sequence of operations is con-
X coordinate of centre of the curve a sidered based on minimum number of tool changes
m1 m2 ðy2 y6Þ þ m2 ðx2 þ x4Þ and the minimum tool travelling time, in order to
m1 ðx4 þ x6Þ maximise the amount of products in a unit time. Under
¼ this condition, the non-cutting time, namely, the time
2 ðm2 m1Þ
for extracting tools while producing a part, is mini-
mised. After selection of the machining operations,
Y coordinate of centre of the curve b process planning moves on to the selection of cutting
ðx2 x6Þ þ m1 ðy2 þ y4Þ m2 ðy4 þ y6Þ tools. The main concerns in tool selection include the
Downloaded by [S. Srinivasa Rao] at 09:32 19 August 2011
¼
2 ðm1 m2Þ tool type, material, geometry and tool dimensions.
Selection of the tool type is based mainly on the The process-planning generation algorithm can be
operations to be carried out and the machined tools expressed in the form of a flow chart as shown in
(CNC trainer lathe) involved. Figure 4. A brief description of the flow chart is shown
below.
Step 4: Select the appropriate machining data, i.e. program have been implemented on a microcomputer.
cutting speed, feed and depth of cut corresponding These modules are independent of the design/drawing
to assigned material and size of raw material from system in which it is implemented. The use of object-
the database. oriented (including advanced features of JAI package)
Step 5: Always choose first operation as facing approach for the implementation of the entire system
and second operation as plain turning for overall was chosen. This approach helps in extracting the
length of the job. geometrical data of the image and recognises part
Step 6: Call an appropriate sub-routine based on feature geometry and related process information
variable K and assign sequence of operations. to achieve the desired part-process integration. The
Step 7: Select an appropriate tool corresponding following example illustrates and explains the proce-
to type of operations carried out. dure for extracting turning features, generating process
Step 8: Write the results in a tabular form and plans and NC code generation for a typical axisym-
displayed. metric part.
Step 9: Stop.
displays the main window. By pressing turning features Table 2 presents the list of NC part program generated
button, the turning features of the image from left by the developed algorithm. The sequence of machin-
to right are recognised and displayed as shown in ing operations is verified through simulation package
Figure 7. By pressing process-planning button, the as shown in Figure 9. The results are obtained
sequence of operations is generated and displayed satisfactorily.
as shown in Figure 8. This file will give input to the
NC machine for machining the workpiece as per the
process planning generated by the package. By 7. Conclusions
pressing NC part program button, the NC part This paper reports an attempt to design and develop a
program of the 2D drawing image job84.jpg is software package for axisymmetric parts. The package
generated and stored in an output file pjob84. The developed can be applied to auxiliary industrial parts
International Journal of Computer Integrated Manufacturing 809
like, shafts, spindles, axles, etc. This package facilitates Liu, X., 2000. CFACA: component framework for feature
to extract turning features, prepare process-planning based design and process planning. Computer-Aided
Design, 32, 397–408.
sheet and generate NC part program for external Prasad, A.V.S.R.K., Rao, P.N., and Rao, U.R.K., 1997.
features of axisymmetric parts. The sequential steps of Optimal selection of process parameters for turning
operations, tool station numbers and cutting para- operations in a CAPP system. International Journal of
meters like spindle speed, feed and depth of cut can be Production Research, 35 (6), 1495–1522.
obtained during process-planning phase. In part Saad, M.A.S. and Khalil, A.A., 2001. Automatic
recognition of turning features using 2-D drawing files.
program module, the system generates and displays JSME International Journal Series C: Mechanical
NC code, and stores in a file that will be sent to NC Systems, Machine Elements and Manufacturing, 44 (2),
lathe (Fanuc O Turning) for machining part. All the 527–533.
developed modules are implemented on a micro- Sabourin, L. and Villeneuve, F., 1996. Omega, an expert
computer and the way of implementation is explained CAPP system. Advances in Engineering Software, 25,
51–59.
with a specific example in the paper. NC part programs Sadaiah, M., et al., 2002. A generative computer-aided
are also verified through CNC train simulation package process planning system for prismatic components.
and are satisfactory. Hence this software package is International Journal of Advanced Manufacturing Tech-
very much useful to produce the axisymmetric parts nology, 20, 709–719.
through the scanned image of the product drawing, Saravanan, R., Asokan, P., and Sachithanandam, M., 2001.
Comparative analysis of conventional and non-conven-
where the dimensional data is not available. The
Downloaded by [S. Srinivasa Rao] at 09:32 19 August 2011
Wang, H.-P. and Lin, C.-A., 1987. Automated generation Yusof, Y. and Case, K., 2008. STEP compliant CAD/CAPP/
of NC part programs for turned parts based on 2-D CAM system for turning operations. In: Proceedings of
drawing files. The International Journal of Advanced the world congress on engineering and computer science,
Manufacturing Technology, 2 (3), 23–35. 22–24 October, San Francisco, USA.
_ and Şeker, U., 2006. Development of
Yildiz, Y., Korkut, I.,
a feature based CAM system for rotational parts. G.U.
Journal of Science, 19 (1), 35–40.
Downloaded by [S. Srinivasa Rao] at 09:32 19 August 2011