Thursday, August 2, 2018

CNC Programming Examples - Grooving

  Thanh A Tran       Thursday, August 2, 2018

G02 G03 Programming Example

CNC program example to show how two combined arc can be programmed with G02 G03 for a cnc lathe.
First arc is programmed using G02 R, but the second arc is programmed using G03 I K

G02 G03 Programming Example

G02 G03 Programming Example

N50 G00 X20 Z85
        N60 G96 S200
        N70 G01 Z80
        N80 G02 X50 Z65 R15
        N90 G03 X50 Z35 I-10 K-15
        N100 G00 X80
        N110 G97 S900 M05
        N120 M30
------------

Quincunx a CNC Plasma Cutting Controller Program Example

CNC program example to cut Quincunx on a CNC Plasma Cutting Controller.
This program example is programmed in G91 Incremental programming.
Contents
  • What is a CNC Plasma Cutting Machine
    • Plasma Cutting
    • CNC Plasma Cutter
  • Plasma Cutting Controller Program Example

What is a CNC Plasma Cutting Machine

Plasma Cutting

Plasma cutting is a process that is used to cut steel and other metals of different thicknesses (or sometimes other materials) using a plasma torch. In this process, an inert gas (in some units, compressed air) is blown at high speed out of a nozzle; at the same time an electrical arc is formed through that gas from the nozzle to the surface being cut, turning some of that gas to plasma. The plasma is sufficiently hot to melt the metal being cut and moves sufficiently fast to blow molten metal away from the cut.

CNC Plasma Cutting Machine

CNC Plasma Cutter

A “CNC plasma” system is a machine that carries a plasma torch, and can move that torch in a path directed by CNC (Computer Numerical Control), which means that a computer is used to direct the machines motion based on numerical codes in a program.

Plasma Cutting Controller Program Example


Quincunx a CNC Plasma Cutting Controller Program Example
Relative coordinate programming
G92 X0 Y0            (P1)
            G00 X75 Y75          (P2)  
            G02 Y100 I0 J50      (P3)
            G02 X100 I50 J0      (P4)
            G02 Y-100 I0 J-50    (P5)
            G02 X-100 I-50 J0    (P6)
            G00 X-75 Y-75        (P7)
            M02
-----------------

Fanuc G83 Peck Drilling Cycle

G83 peck drilling cycle perform the drilling operation in multiple pecks, this technique makes deep-hole drilling easy and economical.
Cutting feed is performed intermittently to the bottom of the hole while chips are discharged.
As the drilling is performed to the bottom of the hole with feed in multiple small steps, every time a specified depth is made and then drill retracts, then drill makes the next peck, this operation is repeated again and again until the drill depth is reached.
Contents
  • Syntax
  • Usage
  • Working
  • G98 G99 Modes
    • Example
  • Repeat Drilling
  • Working Example

Syntax

G83 X... Y... Z... R... Q... F... K...
Parameter Description
X Hole position in x-axis.
Y Hole position in y-axis.
Z Depth, tool will travel with feed to Z-depth starting from R plane.
R Position of the R plane.
Q Depth of cut for each cutting feed (Peck).
K Number of cycle repetitions (if required) .
F Feedrate.
Once given in program G83 peck drilling cycle is repeated at every axis movement until G80 is given in program to end peck drilling cycle.

Usage

N150 M06 T02
                N160 G90 G00 X60 Y28 Z12 S750 M03
                N170 G99 G83 X60 Y28 Z-17 Q6 R2 F60
                N180 G98 Y12
                N190 G91 G80 G28 X0 Y0 Z0 M05
                N200 M30
In the above example code first drill is done at X60 Y28 and second at Y12 and then peck drilling is cycle is ended with G80.
6mm pecks are taken to complete total drilling depth of 17mm.

Working

Here is briefly described how G83 peck drilling cycle works,
1- Rapid traverse to X, Y drilling position.
2- Rapid traverse to R-plane.
3- Drilling with feed Q deep.
4- Retraction with Rapid traverse to R-plane.
5- Rapid traverse to Q-d deep (d value is specified in parameters).
6- Drilling with feed Q+d deep.
7- Retraction with Rapid traverse to R-plane
– this whole procedure is repeated until drill reaches Z-depth position,
– then drill is retracted to R-plane or Initial-level depends on G99 or G98 which one is given in program.

G83 peck drilling cycle working

G98 G99 Modes

After completing drilling depth the return is made with Rapid feed, the return height can be controlled through using G98 or G99.
G98 Drill will return to the Initial level
G99 Drill will return to R-plane.
G98, G99 can be used multiple times during G83 peck drilling cycle.

Example

N30 G83 X10 Y30 Z-17 Q5 R2 F75
                N40 Y10
                N50 G98 X30
                N60 G99 Y30
                N70 X90
                N80 Y10
                N90 G80

Repeat Drilling

G83 peck drilling cycle, drilling operation can be repeated multiple times. The drilling is repeated K times if K value is given with G83.
Repeat drilling is normally used with G91 Incremental mode, and a good example of repeated drilling is Grid-plate drilling. For working example see G81 drilling cycle.

Working Example


G83 Peck drilling cycle Example
N10 M06 T1
                N20 G90 G00 X12.5 Y10 Z12 S1000 M03
                N30 G99 G83 X12.5 Y10 Z-17 R2 Q4 F75
                N40 Y30
                N50 G98 X57.5
                N60 G99 Y10
                N70 G91 G80 G28 X0 Y0 Z0 M05
                N80 M30
----------------

Fanuc G71 G72 G70 Canned Cycle CNC Lathe Internal Machining Example (Boring & Facing )

Fanuc programming example which shows the use of multiple fanuc canned cycle in cnc programming, Following canned cycle are used in this cnc lathe programming example
  • G71 Rough Turning Cycle
  • G72 Facing Cycle
  • G70 Finish Cycle
Contents
  • Fanuc G71 for Boring Opertaion
  • Fanuc Programming Example

Fanuc G71 for Boring Opertaion

This programming example also illustrate how G71 turning cycle can be used for internal machining (boring operation). So if you want to remove extra stock from inside of a component, you can use Fanuc G71 turning cycle for internal stock removal as well.

Fanuc Programming Example


Fanuc Canned Cycle Example
G28 U0 W0
                    G50 S1500
                    N1 T0101 M8 (OD FACING)
                    G96 S180 M3
                    G0 X255.0 Z5.0
                    G72 W2.0 R0.5
                    G72 P100 Q200 F0.25
                    N100 G0 Z0 G41
                    G1 X-2.0 F0.18
                    N200 G0 Z5.0
                    G40
                    X255.0
                    G28 U0 W0
                    N2 T0404 M8 (ID ROUGH)
                    G96 S180 M3
                    G0 X50.0 Z5.0
                    G71 U2.0 R0.5
                    G71 P500 Q600 U-0.5 W0.1 F0.25
                    N500 G0 X202.0 G41
                    G1 Z0 F0.12
                    X200.0
                    Z-10.0
                    X100.0
                    Z-30.0
                    X60.0
                    Z-45.0
                    N600 X50.0
                    G40
                    G0 Z5.0
                    G28 U0 W0
                    N3 T0505 M8 (ID FINISH)
                    G96 S220 M3
                    G0 X50.0 Z5.0
                    G70 P500 Q600
                    G0 X50.0 Z5.0
                    G28 U0 W0
                    M5 M9
                    M30
-----------------

Internal Threading on Fanuc 21i 18i 16i with G76 Threading Cycle

CNC program for the internal threading with G76 threading cycle on fanuc controls 21i/18i/16i.
For an example of external threading with G76 threading cycle read External Thread Cutting with G76 Threading Cycle on Fanuc 21i 18i 16i CNC
Fanuc 21i/18i/16i use two block format of G76 threading cycle.
Related: G76 Threading Cycle One Line Format for Fanuc 10/11/15T
Fanuc G76 threading cycle has multiple parameters making it difficult to remember, but at the same time those multiple parameters of G76 thread cycle give the cnc programmer/cnc machinist multiple options to control thread cutting, some are listed below.
G76 thread cutting cycle allow cnc machinist to control number of idle cuts, thread run-out, infeed angle.

CNC Program of Internal Threading with G76 Threading Cycle

Internal Threading on Fanuc 21i 18i 16i with G76 Threading Cycle
Internal Threading on Fanuc 21i 18i 16i with G76 Threading Cycle
N17 T101
                        N18 G54
                        N19 G97 S800 M3
                        N20 G0 X25 Z6 M8
                        N21 G76 P010060 Q100 R0.02
                        N22 G76 X30 Z-40 P919 Q250 F1.5
                        N23 G0 X150 Z100
You might like other cnc threading options on cnc machines with fanuc control

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

G75 Canned Cycle Grooving CNC Programming Example

G75 is the grooving cycle in x-axis.
For a full description of G75 canned cycle grooving read this G75 Grooving Cycle.
For one-line format (one-block format) of Fanuc G75 read Fanuc G75 Grooving Cycle One-Line Format.
You might find another G75 grooving cycle cnc programming example here Fanuc G75 Grooving Cycle CNC Program Example.
Contents
  • Explanation of Parameters of Fanuc G75 Grooving Cycle
  • G75 Canned Cycle Grooving CNC Programming Example

Explanation of Parameters of Fanuc G75 Grooving Cycle

N10 G75 R
                            N20 G75 X Z P Q R
G75 First CNC Programming Block
R = Return amount
G75 Second CNC Programming Block
X = Groove Depth.
Z = Last groove position in z-axis.
P = Peck increment in x-axis
Q = Stepping in z-axis.
R = Relief amount at end of the cut.

G75 Canned Cycle Grooving CNC Programming Example

G75 Canned Cycle Grooving CNC Programming Example
G75 Canned Cycle Grooving CNC Programming Example
N10 G50 S500 T0100
                            N20 G97 S400 M03
                            N30 G00 X90.0 Z1.0 T0101
                            N40 X82.0 Z-60.0
                            N50 G75 R1.0
                            N60 G75 X60.0 Z-20.0 P3000 Q20000 F0.1
                            N70 G00 X90.0
                            N80 X200.0 Z200.0 T0100
                            N90 M30
------------

Multi Start Threads with Fanuc G76 Threading Cycle

Fanuc cnc controls has no direct threading cycle for cutting multi start threads on cnc. But you can cut multi start threads on a cnc with fanuc control by using Fanuc G76 Threading Cycle.
Related: Fanuc G76 Thread Cycle for Dummies
Multi Start Threads with Fanuc G76 Threading Cycle
Multi Start Threads with Fanuc G76 Threading Cycle
There are multiple techniques for cutting multi-start threads on cnc with Fanuc G76 threading cycle. Here is one of them.
This cnc programming example uses cnc subprogram call to cut multi-start threads on Fanuc cnc.
Contents
  • CNC Main program
  • CNC Sub Program

CNC Main program

N50 G00 X48 Z5
                                N60 M98 P0034713

CNC Sub Program

N10 G76 P020000 Q100 R0.05
                                N20 G76 X42 Z-15 P974 Q200 F4.5
                                N30 G00 W1.5
                                N40 M99
The above cnc main program calls the 4713 sub-program three times.

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

Fanuc G76 Thread Cycle for Dummies

Fanuc G76 Thread Cycle for Dummies
Fanuc G76 Thread Cycle for Dummies
Fanuc G76 Thread Cycle for Dummies explains Fanuc G76 threading cycle briefly. Fanuc G76 gives cnc machinist full control over thread turning.
Fanuc G76 threading cycle has multiple parameters but the same way Fanuc G76 gives full flexibility in thread cutting.
This article is actually to help cnc machinists to easily navigate through multiple articles explaining Fanuc G76 threading cycle.
Below are quick links,
  • Fanuc G76 Threading Cycle
  • G76 Threading Cycle One Line Format for Fanuc 10/11/15T
  • Tapered Threading with Fanuc G76 threading cycle
  • Multi-Start Threading with Fanuc G76 threading cycle
  • Controlling Thread Infeed with Fanuc G76 threading cycle
  • How to Fully Control G76 Threading Cycle Number of Pass and Depth of Cut
For explanation of all the variations of Fanuc G76 see below
Contents
  • CNC Fanuc G76 Threading Cycle
  • One Line Format for Fanuc 10/11/15T
  • Tapered Threading
  • Multi Start Threads
  • Controlling Threading Infeed Angle
  • Controlling Number of Pass and Depth of Cut

CNC Fanuc G76 Threading Cycle

CNC Fanuc G76 Threading Cycle this article briefly explains all the parameters of Fanuc G76 threading cycle, like the following cnc programming code for fanuc g76 threading cycle
N5 G76 P010060 Q100 R0.05
                                    N6 G76 X30 Z-20 P1024 Q200 F2

One Line Format for Fanuc 10/11/15T

G76 Threading Cycle One Line Format for Fanuc 10/11/15T, Fanuc control models 10/11/15 use a single-block format for G76 threading cycle.
G76 X.. Z.. I.. K.. D.. A.. F.. P..

Tapered Threading

Tapered Threading with Fanuc G76 Threading Cycle this post explained how a cnc machinist can cut Tapered Threadswith Fanuc G76 threading cycle.

Tapered Threading with Fanuc G76 Threading Cycle
The following cnc programming code is explained in the above post.
N5 G00 X50 Z5
                                    N6 G76 P010060 Q100 R0.05
                                    N7 G76 X43 Z-45 P1024 Q200 R-14.5 F2

Multi Start Threads

Multi Start Threads with Fanuc G76 Threading Cycle this article fully describes how to cut Multi-Start threads on cnc machine with Fanuc G76 threading cycle.

Controlling Threading Infeed Angle

Controlling Threading Infeed Angle with Fanuc G76 Threading Cycle this article explains how a cnc machinist can control Thread Infeed Angle with Fanuc G76 threading cycle.

Controlling Number of Pass and Depth of Cut

How to Fully Control G76 Threading Cycle Number of Pass and Depth of Cut Explained this articles tells how a cnc machinist can control
  • Depth of cut for First pass
  • Depth of cut for normal passes
  • Depth of cut for Last pass
  • Control number of Spring passes

logoblog

Thanks for reading CNC Programming Examples - Grooving

Previous
« Prev Post

No comments:

Post a Comment