Thursday, August 2, 2018

CNC Programming Examples - Pattern Drilling

  Thanh A Tran       Thursday, August 2, 2018

Fanuc Lathe Programming Example Using G70, G71, G74 for ID Machining

Fanuc lathe programming example which uses Fanuc canned cycle
  • G71 Turning Cycle
  • G70 Finish Cycle
  • G74 Peck Drilling Cycle
This Fanuc lathe programming example illustrates who to use G71 Turning cycle, G70 Finish cycle, G74 Peck drilling cycle for ID machining (Inside machining, boring operations)
Contents
  • Fanuc Lathe Programming Example
    • Tools & Oprations

Fanuc Lathe Programming Example


Fanuc Lathe Programming Example Using G71, G70 for ID Machining
N10 G40 G00
        N20 G99
        N30 M5
        N40 M9
        N60 T0101
        N70 G50 S3500
        N80 G96 S0240 M4
        N90 G00 X102. Z0.
        N100 G01 X-2. F0.15 M7
        N110 G00 X150. Z150.
        N120 M9
        N130 T0707
        N140 G97 S0950 M3
        N150 G00 Z3.
        N160 G00 X0.
        N170 G74 R1.0
        N171 G74 X0.0 Z-59.0 Q12000 R0.0 F0.2
        N350 G00 X150. Z150.
        N360 T0505
        N370 G50 S3500
        N380 G96 S0200 M4
        N390 G00 X23. Z2.
        N400 G71 U3. R1
        N410 G71 P420 Q530 U-0.5 W0.2 F0.3
        N420 G41 G00 X72.
        N440 G01 Z-21.
        N450 G03 X66. Z-24. I-3. K0.
        N460 G01 X54.
        N470 G02 X48. Z-27. I0. K-3.
        N480 G01 Z-41.
        N490 G03 X42. Z-44. I-3. K0.
        N500 G01 X30.
        N510 G02 X24. Z-47. I0. K-3.
        N520 G01 Z-59.
        N530 G01 X23.
        N540 G40
        N550 G00 X150. Z150. F0.3
        N560 T1111
        N570 G50 S4500
        N580 G96 S0380 M4
        N590 G41 G00 X72. Z2.
        N600 G70 P420 Q530
        N610 G40
        N620 G00 X23. Z2.
        N630 G00 X200. Z150.
        N640 M5
        N650 M30

Tools & Oprations

T0101 Turning Tool – Facing Operation
T0707 Tip Drill Tool – Drilling
T0505 Boring Bar – Internal machining (ID machining)
T1111 Boring Bar – Internal finish machining

-------------

CNC Lathe Programming Exercise Fanuc G71 Turning Cycle, G74 Peck Drilling Cycle

CNC programming exercise for cnc lathe machinists who work on Fanuc cnc control (or similar cnc control).
This cnc programming exercise use
Fanuc G71 Turning Cycle
Fanuc G74 Peck Drilling Cycle
Contents
  • CNC Lathe Programming Exercise
    • Used Tools & Operations

CNC Lathe Programming Exercise


CNC Lathe Programming Exercise Fanuc G71, G74 Cycles
N10 G40 G00
            N20 G99
            N60 T0101
            N70 G50 S3500
            N80 G96 S0240 M4
            N90 G00 X72. Z0.1
            N100 G01 X-1.6 F0.12 M7
            N110 G00 X150. Z150.
            N120 M5
            N130 M9
            N140 T0303
            N150 G97 S2500 M3
            N160 G00 X0. Z3.
            N170 G01 Z-6. F0.1 M7
            N180 G00 Z2.
            N190 G00 X150. Z150.
            N210 T0707 M7
            N220 G97 S0884 M3
            N230 G00 Z3.
            N240 G00 X0.
            N250 G74 R1.0
            N260 G74 X0.0 Z-68.326 Q18000 F0.22
            N380 G00 X200.
            N400 G00 Z100.
            N500 T0404 M7
            N510 G50 S3500
            N520 G96 S0240 M4
            N530 G00 Z1.
            N540 G00 X70.
            N550 G71 U4. R1
            N560 G71 P570 Q650 U0.6 W0.2 F0.35
            N570 G42 G00 X24.
            N580 G01 Z0.
            N590 G01 X28. Z-2.
            N600 G01 Z-72.
            N610 G02 X32. Z-74. I2. K0.
            N620 G01 X62.
            N630 G01 X68. Z-77.
            N640 G01 Z-90.
            N650 G40
            N660 G00 X150.
            N680 G00 Z70.
            N690 T0202 M7
            N700 G50 S4500
            N710 G96 S0380 M4
            N720 G00 X16. Z3.
            N730 G42 G01 Z0. F0.1
            N740 G01 X24.
            N750 G01 X28. Z-2.
            N760 G01 Z-72.
            N770 G02 X32. Z-74. I2. K0.
            N780 G01 X62.
            N790 G01 X68. Z-77.
            N800 G01 Z-90.
            N810 G40
            N820 G00 X150. Z150.
            N830 M5
            N840 M9
            N850 M30

Used Tools & Operations

  • T0101 Turning Tool – Rough Facing
  • T0303 Center Drill – Center Drilling
  • T0707 Twist Drill – Drilling
  • T0404 Turning Tool – Rough Turning
  • T0202 Turning Tool – Finish Contour Cutting

---------------

Face Grooving with G74 Peck Drilling Cycle CNC Programming Tutorial

Contents
  • G74 Peck Drilling Cycle
  • Face Grooving with G74 Peck Drilling Cycle

G74 Peck Drilling Cycle

G74 peck drilling cycle be used in variety of ways, from peck drilling to face grooving.
The G74 Peck drilling in already discussed here Simple CNC Lathe Drilling with Fanuc G74 Peck Drilling Cycle.
The cnc programming example below shows how face grooving can be machined with the help of G74 peck drilling canned cycle.
With face grooving operations the tool is fed axially rather than radially toward the end surface of the workpiece.

Face Grooving with G74 Peck Drilling Cycle


Face Grooving with G74 G Code a CNC Programming Tutorial
N10 G50 S2000 T0100
                N20 G96 S80 M03
                N30 G00 X50.0 Z1.0 T0101
                N40 G74 R1.0
                N50 G74 X10.0 Z-10.0 P10000 Q3000 F0.1
                N60 G00 X200.0 Z200.0 T0100
                N70 M30
-------------

Simple CNC Lathe Drilling with Fanuc G74 Peck Drilling Cycle

Here is a cnc programming example for simple drilling on a cnc lathe machine. CNC Fanuc control has a very powerful and versatile peck drilling cycle (Fanuc G74) which relieves us from many unwanted chores. Although Fanuc G74 peck drilling cycle for fanuc cnc control can be used in variety of ways but this cnc programming example is just doing a simple peck drilling. One thing for newbies in cnc field is that we can simply drill a component by just giving a feed with G01.
N10 G00 X0 Z10
                    N20 G01 Z-30 F0.2
                    N30 G01 Z10 F1
If we can drill with the above method them why use a peck drilling cycle. Actually peck drilling (Fanuc G74) gives us some hidden benefits like
  • Longer drill life
  • Proper chip breaking
  • Proper chip removal
  • Prevents component from heating
  • Smooth drilling
  • Easy to program
So here is the simple cnc program example which shows simple cnc peck drilling (Fanuc G74) on a cnc lathe machine

Simple CNC Lathe Drilling with Fanuc G74 Peck Drilling Cycle
N10 T5
                    N20 G97 S500 M03
                    N30 G00 X0 Z2
                    N40 G74 R1
                    N50 G74 Z-60 Q30000 F0.1
                    N60 G00 X100 Z100
                    N70 M30
The above cnc program code shows that the tool no.5 which is a drill, will drill the component with the peck drilling cycle G74.
The R in first block shows the amount ( 1mm) the drill will get back after it drills 30 mm every time.


----------------

logoblog

Thanks for reading CNC Programming Examples - Pattern Drilling

Previous
« Prev Post

No comments:

Post a Comment