The Machinist Times B2B HomeTimes B2B Home
 
       
 
Home | About Us | Events | Choice Board | Message Board | Advertise With Us | Subscribe | Contribute Articles | Feedback |
Our Advertisers | Archives |Contact Us
    Channels
CNC PART PROGRAM GENERATION AND TOOL PATH SIMULATION
OUR b2b MAGAZINES
 
>>
>>
>>
>>
>>
>>

 




 


Abstract
This paper gives details about generation of a CNC part program and tool path simulation for rotational parts on FANUC systems using computational techniques. This work involves two phases: feature extraction of the component and CNC part program generation.

To start with, 2-D figure of a symmetrical component to be machined on a Fanuc turning center is drawn using AutoCAD. In order to interpret the various features of the component, the interfaces like DXF, IGES, etc., available with the drafting package are made use of. A DXF (Data Exchange Format) file gives suitable codes for the various entities used for creating the drawing feature can be recognized. To do this an interface between the ‘C’ program and the DXF file is created. A module in the ‘C’ program and the DXF file is created. A module in the ‘C’ program does the recognition of the component features and then arranges the entities in the sequence they appear in the drawing. It then encodes every entity and prompts the user to enter the work material and then searches the appropriate tool material stored in the database which is created using WIDIA standards. Another database is created for the speeds and feeds for the various tool work material combinations. The output of the ‘C’ program is a CNC part program necessary to generate the required profile of the workspace incorporating the G and M code used on the Fanuc control systems. The tool path can be simulated using these generated codes in ‘C’ graphics. The ‘C’ graphics editor interprets the X and Z codes of the generated part program and based on these the tool path is simulated which could be used for checking the validity of the part program before the component is actually machined.

Introduction

This program is built up using Visual Basic 5 as a front end tool which contains six menus for creating a drawing, feature extraction and recognition, code generation view, help and quit. The program has four modules. The first module opens up in AutoCAD, which is a drafting package. The second module is for extraction of the features of the drawing drawn in AutoCAD and the program in C also recognizes the features extracted. The third module uses the features and generates a CNC code for FANUC system only for rotating parts and the fourth module gives the toll path simulation in C graphics. A database for the tool and work material combination using WIDIA Standards is also provided to the user of the software.

Feature Extraction

Figure 1.1 : Glow Chart depicting the Program Methodology

The 2-D feature extraction is done by interpretation of the DXF files. These DXF files are one of the CAD interfaces available for interpretation of the drawings. The DXF file contains the details of the drawings in the form of specific codes, which are read and interpreted. These DXF files form the input to the package for feature recognition of 2-D drawings. The various steps to be followed in the extraction of features from 2-d drawings are given below.

To recognize the entities present in the drawing viz. lines, circles and arcs the DXF file is analysed by the ‘C’ program. In case if, the recognized entity is a line, the starting and ending (X,Y) co-ordinates of the line are noted. Depending upon the start and end (X,Y) co-ordinates, the line status (i.e., horizontal, vertical or inclined) is determined below.

• If, start X - co-ordinate = end X - co-ordinate, then the line is vertical.
• If, start Y - co-ordinate = end Y - co-ordinate, then the line is horizontal.
• If none of the above is true, then the line is inclined.
• If the recoginsed entity is an arc, the aspects of arc, starting and end angles, radius and center point are noted down. The extracted values are for the figure 1.1 are tabulated in table 1.1 and table 1.2.

In order to bring the line and arc on a common platform the start and end point of an arc are calculated using trigonometric relations.

• Say A is start angle & B is end angle
• Start X - co-ordinates = (radius * Cos A) + center point X - co-ordinate
• Start Y - co-ordinates = (radius * Sin A) + center point Y - co-ordinate
• End X - co-ordinates = (radius * Cos B) + center point X - co-ordinate
• End Y - co-ordinates = (radius * Sin B) + center point Y - co-ordinate

Table 1.1: Entity arc
Table 1.2

 

The Machinist
The Machinist
Times Shipping Journal
Times Shipping Journal
Times Journal of Construction & Design
Times Journal of Construction & Design
Instrumentatio & Control Journal
Instrumentation & Control Journal
Fluid Power
Fluid Power
Food Processing Journal
Times Food Processing Journal
E T Polymers
ET Polymers
Times Agriculture Journal
Times Agriculture Journal

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Copyright © Bennett Coleman & Co. Ltd. • All rights reserved • Disclaimer
Other Times Group Sites - The Times Of India | The Economic Times | ET Invest | ETintelligence | Femina | Filmfare | Navbharat Times | Times Classifieds | Property Times | Education Times | Maharashtra Times | Responservice | Indianadsabroad | Jobs & Careers | Times Multimedia