CNC Programming Examples - G91 Incremental Programming

Face Grooving with G74 Peck Drilling Cycle CNC Programming Tutorial

* Best ebooks for CNC programming: 
CNC Programming Basics 
G-Code and M-Code 
CNC programming 
G-Code Reference 
CNC Machine Tutorial 

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

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.
  • 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
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 T0

Fanuc G75 Grooving Cycle CNC Program Example

I have posted about Fanuc G75 Grooving Cycle. The Fanuc G75 grooving cycle has multiple parameters, which can be set according to your needs. In this post here is a cnc program example for the G75 Fanuc grooving cycle. Although it is a simple cnc program example for grooving, but this cnc program can be easily altered to your needs.

The fanuc G75 grooving cycle is briefly described in this article Fanuc G75 Grooving Cycle, so here is the cnc program example and some explanation of the cnc program.

CNC Programming Example of Fanuc G75 Grooving Cycle

Fanuc G75 Grooving Cycle CNC Program Example
N10 T0202
                N20 G92 S500 M42
                N30 G97 S400 M03
                N40 G00 X110 Z0 M08
                N50 G01 Z-22 F0.5
                N60 G75 R1
                N70 G75 X90 Z-60 P2000 Q3000 R0 F0.1
                N80 G00 X120 Z100
                N90 M30
Note: The grooving tool is 4mm wide, so I started from z-22.
Every time the grooving tool will take 2mm (P2000) cut in x-axis, and it will retract 1mm (Pecking, First R1)
After a groove in x-axis is complete it will start the next groove by moving the grooving tool by 3mm (Q3000) in z-axis, and it will repeat it.


CNC Lathe Programming Example

A simple cnc lathe programming example. This cnc programming example will show how to program contours like chamfer taper grooves and arc.
This cnc program will use two tools for machining. The first tool used in this cnc programming example is a turning tooland the second one is a grooving tool.
  • CNC Machining
  • CNC Program

CNC Machining

The turning tool will first face the component then it will make a chamfer, after that there is straight turning and then there is arc machining the arc may be machined with R (Radius of arc) or arc can be machined with I and K values of the arc, at the top of arc there is a chamfer, then again straight turning, now there comes the groove but we can’t make grooves with turning tools because of their shape so we will machine the groove with our next tool which is solely made for grooving operations, but at the time we are machining with turning tool so we will just skip this groove and will just machine in straight line, after that there is a taper and again a straight line to be machined.
Now with our grooving tool the groove machining task is just easy.
if the grooving insert is of the same size as the dimension of the groove then grooving is even more easy, we will make the groove in one go, but if the grooving insert is of smaller width than we have to take depth more than one time.

CNC Program

cnc lathe program example
N1 T01 D01 M491
                    N2 G00 X0 Z1
                    N3 G01 G96 G41 Z0 F2 S140
                    N4 G01 X2 CHF=0.125 F0.2
                    N5 G01 Z-1.125
                    N6 G02 X3.5 Z-1.875 CR=0.75
                    N7 G01 X3.75 CHF=0.125
                    N8 G01 Z-3.575
                    N9 G01 X5 Z-3.875
                    N10 G01 Z-4.6
                    N11 G00 X20 Z20 G40
                    N12 T02 D02 M491
                    N13 G00 G97 S500 X4 Z-2.825
                    N14 G01 X3.85 F1
                    N15 G01 X3.35 F0.15
                    N16 G01 X3.85 F0.5
                    N17 G00 X4
                    N18 G00 X20 Z20
                    N19 M30