128 APPENDIX – A CASESTUDY - 1 The sample part given below, is used to demonstrate the working of the proposed methodology for the integration of feature recognition and CNC code generation. The component shown in Figure A-1 is composed of various line and arc features. It has 14 design features in total each of which is a separate turning surface. In addition to the plain and inclined turning surfaces, this component also consists of a curved surface (convex) and a different type of groove surface as discussed earlier. The component is drawn in AutoCAD with the units expressed in inches.
18
Embed
APPENDIX A CASESTUDY - 1 - Shodhgangashodhganga.inflibnet.ac.in/bitstream/10603/4512/18/18_appendix.pdf · 128 APPENDIX – A CASESTUDY - 1 The sample part given below, is used to
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
128
APPENDIX – A
CASESTUDY - 1
The sample part given below, is used to demonstrate the working of
the proposed methodology for the integration of feature recognition and
CNC code generation. The component shown in Figure A-1 is composed of
various line and arc features. It has 14 design features in total each of
which is a separate turning surface. In addition to the plain and inclined
turning surfaces, this component also consists of a curved surface
(convex) and a different type of groove surface as discussed earlier. The
component is drawn in AutoCAD with the units expressed in inches.
129
Figure A-1 Profile of the component with arc and groove feature (FCD)
Figure A-2 3D view of the component
130
Figure A-3 Output of feature extraction module
Figure A-4 Various pattern primitives in the component
Based on the Output file (DRAWIOUT) all the design features are
rearranged as per the syntactic pattern recognition methodology. The
given component has only external features and Figure A-4 illustrates all
the design features arranged in an order, starting from the right most
feature (D) to the leftmost feature (B). The arc feature (represented by
pattern I) is shown with its starting and ending coordinates, but the
details like radius and the starting angle and ending angles are stored in
the database for downstream applications of manufacturing. Thus the
final string pattern for the given component is- “BCBCFCIDCFCGCD”.
131
Figure A-5 Manufacturing features of the component
From the final string pattern “BCBCFCIDCFCGCD”, various
manufacturing features are extracted, using the string reduction
algorithm. The string is reduced in to 8 predefined manufacturing
features as shown in the Figure A-5.
132
Figure A-6 Rule-based sequence of operations
The manufacturing features are converted into their corresponding
operations by feature mapping algorithm. And the operations are
sequenced as per the rule-based sequencing discussed earlier. The first
operation is plain turning operation (CD) and the last operation to be
performed is the profile (arc (I)) turning.
133
Figure A-7 Excerpt of the CNC code generated for the component.
The CNC code generated by the proposed methodology accommodates
all the operations as given in the Figure A-6. The first line in the above
program provides the billet size as given by the user. The values of the
process parameters speed, feed and depth of cut are provided by the user.
The number of steps in each operation depends on the depth of cut. The
part program is saved as a text file which may be given as an input to the
simulation package for the simulation runs, to validate the proposed
novel methodology.
134
CASESTUDY - 2
The second component consists of 15 design features which include
an arc profile (concave) and a vivid groove element. A combination of
polyline command, line command and arc commands are used to
generate the profile of the component.
Figure A-8 Profile of the component with arc and groove feature (FBCDG)
135
Figure A-8 3D view of the TEST2 component
Figure A-9 Output of feature extraction module
136
Figure A-10 Various pattern primitives in the component
Based on the Output file (TEST2OUT) all the design features are
rearranged as per the syntactic pattern recognition methodology. The
given component has only external features and Figure A-10 provides all
the design features with their patterns. The arc feature (represented by
pattern V) is shown with its starting and ending coordinates, but the
details like radius and the starting angle and ending angles are stored in
the database for downstream applications of manufacturing.
137
Figure A-11 Manufacturing features of the component
138
From the final string pattern various manufacturing features are
extracted and the string is reduced in to 10 predefined manufacturing
features viz. one profile turning, two outer grooves and four turning
surfaces on as shown in the Figure A-11.
Figure A-12 Rule-based sequence of operations
139
Figure A-13 Excerpt of the CNC code generated for TEST2 component.
140
Appendix-B
Group Codes
Table B-1 List of various Group Codes and their Values
141
Table B-2 List of various Group Codes and their Values
142
/* Program for Integration of feature recognition and CNC code generation*/ #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<math.h> FILE *fp1,*fp2,*fp3; float cm,cn,cr,ia,fa,doc,feed,refx,refy,ad,al,ud,ul; int i=0,j,count,end,speed; char word[200],cnc[50]; int detect(int); void polyline(); void line(); void circle(); void arc(); void order(); void swap(int); void swaps(int,int); float mode(float); void feaext(); void outergrooves(); void profileturning(); void turninga();