Your Federal Quarterly Tax Payments are due April 15th Get Help Now >>

AN EXAMPLE OF NC PROGRAM FOR PARTS EXECUTION ON by vyr27475

VIEWS: 21 PAGES: 6

									                       “CONSTANTIN BRÂNCUSI” UNIVERSITY – ENGINEERING FACULTY

                                    UNIVERSITY’S DAY
                                               8   th
                                                        INTERNATIONAL CONFERENCE
                                                          Târgu Jiu, May 24-26, 2002

                  Târgu Jiu, Geneva Street, nr.3, 1400, Gorj, România,Tel.+4053215848, Fax+4053214462, www.utgjiu.ro



     NUMERICAL CONTROL PARTS PROGRAM FOR HAAS SL 20
              LATHE USING MATHEMATICA 4.0

                Al. STANIMIR Senior Lecturer University of Craiova
                 M. CALBUREANU Lecturer University of Craiova
                     G. BENGA Lecturer University of Craiova

Abstract
        The paper presents the structure of the part program with its modules and an application for the
execution for one part on HAAS SL 20 LATHE. This part is used for the positioning systems of robots driven by
computer for surgery. The NC program for execution is presented widely.

The structure of the specific tool program
       For every part there are special NC programs very different between them. Still, for
programming with Mathematica 4.0 it was chosen a common general structure for all the
programs, so that all contain the next sections: Settings, Subroutines and Program (Figure 1).
       The biggest diversity is represented by section Subroutines that must contain pieces of
program typical for the necessary processing.
       By change, the other two sections use each of them only one pattern for every
program.




                                                        Figure 1

       The section Settings contains mere modules with different functions. The first modul
contains information about work phases that are programmed. Such an example is as follows:
        cut={
                 {1,"1. Flat Face","0010","0011","0012"},
                       {1,"2. Center Drill","0020"},
                       {1,"3. Drill","0030"},
                       {1,"4. OD","0040","0041","0042"},
                        {1,"5. OD Thread","0050"}
                       };
         The figure 1 on the first position on each line shows that in a NC program it will be
found the sequences for processing written in those lines. In this case, the order in execution
is: frontal turning, center drilling, turning and threading of the external surfaces.
         When in the part processing it is wished the removing of one or more processing, it is
enough to change the figure 1 by the figure 0 in the line corresponding to the respective
processing.
         For a modul such as follows:
          cut={
                       {1,"1. Flat Face","0010","0011","0012"},
                       {0,"2. Center Drill","0020"},
                       {0,"3. Drill","0030"},
                       {1,"4. OD","0040","0041","0042"},
                       {1,"5. OD Thread","0050"}
                       };

the NC program will contain only the external surfaces processing.
        This facility may be used to the program’s testing piece by piece, computing in the
beginning a program only for frontal turning, then the program only the center drilling and so
goes on.
        These programs are obtained by ruling the specific program to the part writing the
figure 1 only in the line of wished processing.
        The lines for the above example contain the name of processing on the second position
and on the following position the number of NC program block in which this sequence
begins.
If during of processing it is used subprograms or it must be marked the position of blocks to
each the P and Q call addresses, these are written by number such as: 0011, 0012, 0041, 0042.
        The second modul contains information about tools table and in the turret, the
processing material, and certain adjustments. A modul like this is as follows:

          TL=Table[0,{Dimensions[lTools][[1]]}];
          TL[[1]]=1;
          TL[[2]]=2;
          TL[[24]]=4;
          TL[[15]]=3;
          Print["TL=",TL];
          mat=materials[[2]];
          Print["mat=",mat];
          TS={0};
          CP=350;
          Print["TS=",TS];

          TL= {1,2,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,4}
          mat= {AL-7075,0.017,500.,0.016,580.,0.026,615.,0,5.,0.008,165.}
          TS= {0}

CL: Clearance
sCL: Small Clearance

          CL=1;
          sCL=0.05;

Geometry Definitions: Seedwg and notes
LL=Table[0,{4}];
LL[[1]]={"","L1","L2","L3","L4","L5","L6","L7","L8","L9"};
LL[[2]]={"Desired",20.,115.,102.,17.,12.,17.56,19.,50.,1.};
LL[[3]]={"Tool Offset",0.,0.,0.,0.,0.,0.,0.,0.,0.};
LL[[4]]=pr3[LL[[2]]+LL[[3]]];LL[[4,1]]="Actual";
Print[MatrixForm[LL]];
L=Take[LL[[4]],-(Length[LL[[4]]]-1)];Clear[LL];

        In that example the TL matrix is used for indicating the tools which will be used in
processing. So, with TL[[15]]=3 it is specified that the tool being on the position 15 in the tools
table for lathe will be assembled in the tooling station number 3 of the turret. All the tools
used in every part processing are presented in the following form:

                           TL= {1,2,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,4}

        It showed that in Excel table there are 24 tools among it is going to be used only the
tools 1, 2, 15, 24 and these will be installed in the turret in the corresponding to the tooling
station numbered 1, 2, 3, 4.
        In the same manner there are used the following instructions for indicating the
processed material.
       mat=materials[[2]];
       Print["mat=",mat];
       mat= {AL-7075,0.017,500.,0.016,580.,0.026,615.,0,5.,0.008,165.}

         This case is about the material being in an Excel table and its name and characteristics
are listed on the program ruling.
         The TS and CP parameters refer to tailstock and jaw, respectively. They are used for
the cutting depth at roughing and finishing.
         The third modul contains the parameters for geometrical definition.
         The last modul for Setting section allows the introduction of some information about
blank and some processing of rough material.
         The Program sequences has a lot of modules. The first one opens CNC file and write
in this program information connected with the name of those programs, the machine tool to
which the program is addressed, the program edition and the time of execution.

An example of program for parts execution on HAAS SL 20 LATHE

        The following presented program was used for processing of some parts for
positioning systems of robots driven by computer, used in surgery (figure 2).
        The rough material is a bar of AL 7075 and diameter equal with 50.8 mm.
        The origin of the coordinates system is positioned first at 122 mm in the frontal
surface of the clamping dies and then it moved with 1 mm in the negative sense of Z-axis.
        For the indicating the movements and linear dimensions it is used the metric system of
measure units.
        The rough material fastening is made in the concentric jaw; it is not used the tailstock
spindle during the processing.
        In the process it can’t be increased the speed over 3000 rpm.
        In the part execution there are used the following processing: frontal turning, center
drilling, deep hole drilling, external rough turning, external finishing turning and threading.
        In this example it was used the radius correction.
        The tools were installed in the machine tools turret in the tools location numbered 1, 2,
3, and 4 as follows:
        - tool 1 - straight turning tool Kennametal DNMG432;
       -   tool 2 - center drilling tool 4x10 MSC 00658997;
       -   tool 3 - external threading tool Kennametal NTP3R;
       -   tool 4 - deep hole drilling tool MSC 12.




                                            Figure 2

        The processing is finished without cutting to length of the part, the piece of fastening
in the turn jaw will be used for the fastening the part in the revolving table during the milling
operation.

%
(L_ARM_01)
(LATHE: HAAS SL-20)
(08.06 .00)
(Run Time: 20 min)
(************* STOCK ************)
(Stock Phi 50.8 AL-7075)
(Out of chuck ~122.)
(Set part Z zero under face -1.)
(*********** SETTINGS **********)     M08
(Chuck pressure: 350 PSI)
(22:0.2 Can cycle delta Z)            G72 P0011 Q0012 D0.2 U0.1 W0.05
(28:ON    Can cycle act w/o x/y)
(52:2.0 G83 retract above R)          N0011
(73:0.5 G71/72 Can cyc retract)       G01 Z0
(86:0     G76 Thread Fin Allowance)   G01 X-1.7
(99:.025 G76 Thread Minimum Cut)      N0012
(95:1     G76 Thr Chamf Size [rot])
(96:45    G76 Thread Chamfer Angle)   G70 P0011 Q0012
(********* SETUP CALLS **********)
G21 M10 (Metric)                      G00 U100.
G18 G54 M05                           M09
G99 (Feed in mm/rev)                  M99
G50 S3000 (Max spindle speed)         N0020 (2. Center Drill)
G97 (Const surface speed cancel)      (--------------------------------)
M09 G28                               G80 M09 (Tool:2)
(************* lTools ************)   G53 G00 X0
(Tool:1/L#1 - OD-RH Rough/Fin)        G53 G00 Z0
(      Kennametal DNMG432)            T2 G54
G10 L10 P1 Q3
G10 L10 P1 R0.8                       S2814 F0.122 M03
(Tool:2/L#2 - CDrill & CSink 4x10)    G00 Z1.
(      MSC 00658997)                  G00 X0
(      Dia=4.)                        M08
G10 L10 P2 Q0
G10 L10 P2 X-381.68                   G83 I3. J0.5 K1. P1. R1. Z-5.08
G10 L10 P2 R0                         G00 U100.
(Tool:3/L#15 - OD Thread)             M09
(      Kennametal NTP3R)              M99
(      Zero Center: -2.49)
G10 L10 P3 Q8                         N0030 (3. Drill)
G10 L10 P3 R0.13                      (--------------------------------)
(Tool:4/L#24 - Drill - Coolant)       G80 M09 (Tool:4)
(      MSC #?)                        G53 G00 X0
(      Dia=12.)                       G53 G00 Z0
G10 L10 P4 Q0                         T4 G54
G10 L10 P4 X-381.68
G10 L10 P4 R0                         S586 F0.102 M03
(*********** TAILSTOCK **********)    G00 Z1.
(***** PROGRAM - SUB CALLS ******)    G00 X0
M97 P0010 (1. Flat Face)              M08
M97 P0020 (2. Center Drill)
M97 P0030 (3. Drill)                  G83 I3. J0.5 K1. R2. Z-107.605
M97 P0040 (4. OD)                     G00 U100.
M97 P0050 (5. ODf)                    M09
M97 P0060 (6. OD Thread)              M99
(************* END **************)
M09 G28                               N0040 (4. OD)
M05                                   (--------------------------------)
M30                                   G80 M09 (Tool:1)
(********* SUBROUTINES **********)    G53 G00 X0
N0010 (1. Flat Face)                  G53 G00 Z0
(--------------------------------)    T1 G54
G80 M09 (Tool:1)
G53 G00 X0                            S970 F0.432 M03
G53 G00 Z0                            G00 Z1.
T1 G54                                G00 X52.8
S955 F0.432 M03                       M08
G00 Z2.
G00 X52.8                             G01 X51.8 Z1.
G71 P0041 Q0022 D0.5 I0.2 K0.1 U0.1   G01 X19. Z-0.72
W0.05                                             G01   Z-20.
N0041                                             G01   X50. Z-115.
G42                                               G01   X52.8
G01 X17.56 Z1.                                    G40
G01 Z0                                            G00   U100.
G01 X19. Z-0.72                                   M09
G01 Z-20.                                         M99
G01 X50. Z-115.
G01 X52.8                                         N0060 (6. OD Thread)
G40                                               (--------------------------------)
N0022                                             G80 M09 (Tool:3)
                                                  G53 G00 X0
G00 U100.                                         G53 G00 Z0
M09                                               T3 G54
M99
                                                  S955 F0.108 M03
N0050 (5. ODf)                                    G00 Z2.
(--------------------------------)                G00 X51.8
G80 M09 (Tool:1)                                  M08
G53 G00 X0
G53 G00 Z0                                        G00 X20.
T1 G54                                            G00 Z1.

S970 F0.086 M03                                   M23
G00 Z1.                                           G99 S26 F1.
G00 X52.8                                         G76 A60 D0.25 K0.72 X17.56 Z-17.
M08                                               M24

G01 X51.8 Z1.                                     G00 U100.
G42                                               M09
G01 X17.56 Z1.                                    M99
G01 Z0                                            %


Conclusions

        This work presents a NC program for execution on HAAS SL 20 lathe of one part
used for robots in surgery. For this , were presented the position of the coordinates system,
and the NC program. There were explained the structure of the specific part programs with
their section. The principal advantages of this way of processing are:technological elasticity,
the reducing of the operation time, the safety in functioning and the automatization of the
process.

Bibliography

1. Alexandru Stanimir - Tehnologii de prelucrare pe strunguri cu comanda numerica –
   operare si programare – Editura Universitaria , Craiova, 2002.
2. **************** - Operator’s manual – HAAS SL Series.
3. **************** - Mathematica 4.0 – Ghid de utilizare

								
To top