[CNC Programming Example] CNC Lathe Programming Example

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 tool and the second one is a grooving tool.

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

***********************************
www.appaha.mobi

[CNC Programming Example] Fanuc CNC Program Example

Fanuc CNC Program Example

Here is a cnc program example for Fanuc cnc control. This is a very simple and easy cnc program example also shows
  • Use of G02 Arc/Radius in Fanuc cnc program
  • Use of Chamfer in Fanuc cnc program
  • Use of G42/G40 Tool Nose Compensation
  • Use of G92 Maximum Spindle Speed
  • Use of G96 Constant Cutting Speed

Fanuc CNC Program Example

Fanuc CNC Program Code

N10 T2
N20 G92 S1200 M42
N30 G96 S150 M04
N40 G00 X-1 Z5 M08
N50 G01 Z0 G42 F0.2
N60 G01 X24 C2
N70 G01 Z-28
N80 G01 X32 Z-50
N90 G01 Z-56
N100 G02 X40 Z-60 R4
N110 G01 Z-75
N120 G01 X60 G40
N130 G00 X150 Z100
N140 M30

***********************************
www.appaha.mobi

[CNC Programming Example] CNC Programming for Beginners a CNC Programming Example

CNC Programming for Beginners a CNC Programming Example

Here is a cnc programming example for beginners, this cnc programming example is a starting step for cnc learning or CNC Programming for Beginners . Here you will find plenty of free cnc programming examples with component drawings. This cnc programming example explains the cnc boring with cnc boring bar tool.


CNC Programming for Beginners a CNC Programming Example

CNC Program Example

N1 T01 G20
N2 G00 X3.5 Z0.5
N3 G01 G96 S120 Z0 F.5
N4 G02 X2 Z-.75 R0.75 F0.15
N5 G01 Z-5 F0.2
N6 G01 X1.85
N7 G00 Z20
N8 M30

***********************************
www.appaha.mobi

[CNC Programming Example] Lathe CNC Programming Example

Lathe CNC Programming Example

This is a very simple lathe cnc programming example. This lathe cnc programming example is for beginners level cnc programmers or for novice cnc programmers. Just simple cnc contour programming. The G code which are used in this programming example are from Fanuc cnc control.
Lathe CNC Programming Example

CNC Program in Fanuc G Code

N10 G90 S500 M03
N20 G00 X25 Z5
N30 G01 G95 Z0 F1
N40 G01 Z-7.5 F0.2
N50 G01 X60 Z-35
N60 G01 Z-50
N70 G00 X62
N80 G00 X80 Z20
N90 M30

***********************************
www.appaha.mobi

[CNC Programming Example] CNC Programming for Beginners a Simple CNC Programming Example

CNC Programming for Beginners a Simple CNC Programming Example

CNC programming is not a difficult task as many think, For beginners it will be useful if they divide the drawing in some smaller parts and start programming them. Actually CNC programming take some time to master, but in short it is just a path for our tool to machine. Here is another simple CNC Lathe program.

CNC Lathe Program Example with Code


Simple CNC Programming Example

N1 T0101              ; Tool no 1 with offset no 1 FANUC Control
N2 G97 S500 M03       ; Spindle rotation clockwise with 500 RPM
N3 G42 G00 X0 Z0      ; P0 tool nose radius compensation active
N4 G01 X25 G95 F0.3   ;
N5 G01 Z-7.5          ; P1
N6 G01 X40 Z-15       ; P2
N7 G01 Z-25           ; P3
N8 G01 X60 Z-35       ; P4
N9 G40 G00 X200 Z100  ; Tool nose radius compensation cancel

***********************************
www.appaha.mobi

[CNC Programming Example] CNC Arc Programming Exercise

CNC Arc Programming Exercise

CNC arc programming exercise, shows how to cnc program an arc with I and K. CNC G-code G03 is used to program this arc.

CNC Arc Programming Exercise

N10 GOO X0 Z0
N20 G01 X12 F0.3
N30 G01 X40 Z-25
N40 G03 X70 Z-75 I-3.335 K-29.25
N50 G01 Z-95
N60 G00 X200 Z200

***********************************
www.appaha.mobi

[CNC Programming Example] Fanuc G20 Measuring in Inches with CNC Program Example

Fanuc G20 Measuring in Inches with CNC Program Example

Fanuc G20 Measuring in Inches or Programming in inches. As cnc machines gives us ease to program and machine any type of component.
The same way the cnc machine controls also give us the utmost flexibility that we can program not only in metric system but also in inches system.
On Fanuc cnc control G20 and G21 are used to change between the  inches and metric system.
This cnc programming example demonstrate the usage of Fanuc G20 G code.

Fanuc G20 Program Example

Fanuc G20 CNC Program Example

N1 T0101
N2 G97 S800 M03
N3 G96 S150 G20
N4 G00 X0 Z1
N5 G01 Z0 G95 F0.3
N6 G01 X2 R0.25
N7 G01 Z-1
N8 G02 X5 Z-2.5 I1.5 K0
N9 G01 X6
N10 G00 X10 Z10
N11 M30

 


***********************************
www.appaha.mobi

[CNC Programming Example] Fanuc G21 Measuring in Millimeter with CNC Lathe Programming Example

Fanuc G21 Measuring in Millimeter with CNC Lathe Programming Example


Fanuc G21 Measuring in Millimeter or Programming in Millimeter. CNC gives us the flexibility to program in metric system or in inches system.
Fanuc G21 G-code changes cnc to metric system.
So here is another cnc programming example, for beginner level cnc programmers. This cnc programming example uses Fanuc G21 G-code.


Fanuc G21 Programming Example
N1 T0505
N2 G92 S1500 M03
N3 G21 G96 S150
N4 G00 X0 Z5
N5 G42 G01 Z0 G95 F0.3
N6 G01 X23.293
N7 G01 X40 Z-30
N8 G01 X58.146 Z-42
N9 G01 X70
N10 G40 G00 X100 Z100 G97 S500

***********************************
www.appaha.mobi

[CNC Programming Example] CNC Program Example G03 Circular Interpolation

CNC Program Example G03 Circular Interpolation


Now a day CAD and CAM software make our lives just easier and easier, you just not have to calculate a single point in drawing, every thing is just ready. But it is a good practice to know actually how the calculations are being done, if not all but some which are necessary for a CNC programmer.

CNC Program Example G03 Circular Interpolation

CNC Program Example G03 Circular Interpolation
The calculation of G02 G03 circular interpolation values is a good technique to learn. This CNC program tells not all but a little of course enough for the beginner CNC programmer and CNC students.

CNC Program With G03 Circular Interpolation



CNC Program Example G03 Circular Interpolation
N1 G00 X0 Z0
N2 G01 X11
N3 G01 Z-15
N4 G03 X11 Z-27 I-8 K-6

Description

The I and K for the G03.

I Calculation for G03 Circular Interpolation

I is the distance from the arc start point to arc center point in x-axis. This value is not given in diameter but as a radius value, so
  • Find the start diameter it is 11
  • Now make it radius value by dividing it by 2 such as 11 / 2 = 5.5
  • This is a easy example in way that the arc center point distance from the workpiece center point is given other wise we have to calculate it.
  • So now just add 2.5 in 5.5 earlier calculated 2.5 + 5.5 = 8
  • This is the value of I 8 this is the distance from the arc start point to the ace center point.

K Calculation for G03 Circular Interpolation

K is the distance from the arc start point to arc center point in z-axis.
  • In this example it is just easy as you just have to subtract 21 from 15 such as 21 – 15 = 6.
  • So the value from the arc start point to the arc center point in z-axis is 6

***********************************
www.appaha.mobi

Top 10 CNC Books on Apple Books [New Update]

 Best CNC Books on Apple Books 
[New Update]

Best CNC Books on Apple Books   [New Update]

2560x1690bb  
Peter Smid
Overview
During the past decade, Peter Smid wrote dozens of column for Shop Talkmagazine that addressed the full gamut of CNC topics, such as tapping and threading and knurling; program length and memory needs; G-codes, M-functions,...
Get it on apple books lrg bf5f9d50280b619e97802c50e5decfd1f0a34f663892459ecccf7fc5270a2405
400x400bb
AXYZ International
Everything you need to know about AXYZ International and their extensive range of CNC router and knife systems, all in a handy interactive format.

Find out how machines can be tailored to meet your unique needs and how they can help to...
Get it on apple books lrg bf5f9d50280b619e97802c50e5decfd1f0a34f663892459ecccf7fc5270a2405
3616x2564bb
Alan Overby
A Practical Guide to CNC Machining

Get a thorough explanation of the entire CNC process from start to finish, including the various machines and their uses and the necessary software and tools. CNC Machining Handbook describes the steps...
Get it on apple books lrg bf5f9d50280b619e97802c50e5decfd1f0a34f663892459ecccf7fc5270a2405
3700x2450bb
CNC LATHE G-code & M-code Illustrative Handbook
P. Talverdi
This handbook is a practical source to help the reader understand the G-codes and M-codes in CNC lathe programming. It covers CNC lathe programming codes for everyday use by related industrial users such as managers, supervisors,...
Get it on apple books lrg bf5f9d50280b619e97802c50e5decfd1f0a34f663892459ecccf7fc5270a2405
3650x2820bb
Melvin Wolgamott
My simple eBook contains clear cut Step by step instructions to help you achieve exciting results. Critical information on how to get your CNC router up and running quickly. Instantly giving you dependable repeatable results. Uncover the...
Get it on apple books lrg bf5f9d50280b619e97802c50e5decfd1f0a34f663892459ecccf7fc5270a2405
1600x1200bb
James Floyd Kelly & Patrick Hood-Daniel
The interest in hobbyist-level computer numerical controlled (CNC) machines is real and growing. This book presents all the information needed for hobbyists who want to fabricate wood and metal parts of their own design using modern CNC...
Get it on apple books lrg bf5f9d50280b619e97802c50e5decfd1f0a34f663892459ecccf7fc5270a2405
5120x3200bb
Thanh Tran
CNC Programming Tutorials
Examples G & M Codes
***
Guide to CNC Programming by G code & M code Examples
TABLE OF CONTENTS Beginner Level examples Bolt Hole Circle examples Boring CNC Lathe examples Chamfer Radius examples CNC...
Get it on apple books lrg bf5f9d50280b619e97802c50e5decfd1f0a34f663892459ecccf7fc5270a2405
 4422x3260bb  
James Harvey
Overview

CNC Trade Secrets is from the author of the bestselling and universally praisedMachine Shop Trade SecretsThis new manual does for CNC machining what the first book did for conventional machining.

With this guide to...
Get it on apple books lrg bf5f9d50280b619e97802c50e5decfd1f0a34f663892459ecccf7fc5270a2405
 3644x2144bb
S.K. Sinha
Master CNC macro programming

CNC Programming Using Fanuc Custom Macro B shows you how to implement powerful, advanced CNC macro programming techniques that result in unparalleled accuracy, flexible automation, and enhanced productivity.... 
Get it on apple books lrg bf5f9d50280b619e97802c50e5decfd1f0a34f663892459ecccf7fc5270a2405
 5120x3200bb
Thanh X.Tran
Guide to CNC Lathe Machine
***
CNC Lathe Machine Programming Examples


1. What is a CNC Lathe Machine?
2. CNC Lathe Main Parts
3. CNC Programming Software
4. Examples: Sinumerik 810 Programming Example CNC Mill
5. Examples: CNC...
Get it on apple books lrg bf5f9d50280b619e97802c50e5decfd1f0a34f663892459ecccf7fc5270a2405

***********************************
www.appaha.mobi

CNC Programming Examples - G40 G41 G42

CNC Mill Subprogram Example Joining Multiple Arcs G02 G03 G41


CNC milling program to describe how two or more radii can be joint together in a cnc mill program.


* Best ebooks for CNC programming:

+ CNC Programming Basics 
+ G-Code and M-Code 
+ CNC programming 
+ G-Code Reference
+ CNC Machine Tutorial 
+ CNC M-Code Tutoria

CNC Mill Subprogram Example

CNC Part Program

N10 T1 H1 M6 G43 M3
        N20 F150 S250
        N30 G0 X-21 Y50 Z0.5
        N40 G0 Z0
        N50 M98 P040050
        N60 G49
        N70 G0 Z50
        N80 M30

Subprogram

O0050
        N10 F160 S400
        N20 G0 Z-2.5 G91
        N30 G1 G90 X5 Y50 G41      (P1)
        N40 G2 X22 Y85.23 I45 J0   (P2)
        N50 G3 X78 Y85.23 R45      (P3)
        N60 G2 X78 Y14.77 R45      (P4) 
        N70 G3 X22 Y14.77 R45      (P5)
        N80 G2 X5 Y50 R45          (P1)
        N90 G0 G40 X-21
        N100 M99

G M S T Codes Explanation

Code Description
G00 Rapid traverse
G01 Linear interpolation
G02 Circular interpolation CW
G03 Circular interpolation CCW
G40 Cutter compensation cancel
G41 Tool nose radius compensation left
G43 Tool length compensation + direction
G49 Tool length compensation cancel
G90 Absolute command
G91 Increment command
M03 Spindle start forward CW
M06 Tool change
M30 End of program (Reset)
M98 Subprogram call
M99 End of subprogram
T Tool
S Speed
F Feed

CNC Mill Program G91 G41 G43

CNC milling program examples shows the use of G91 G41 G43 G-codes.
Contents

CNC Mill Program G91 G41 G43


CNC Part Program

N05 G54
            N10 M6 T1 G43 H1 M3
            N15 S500 F120
            N20 G0 X-22 Y-22
            N25 Z-3
            N30 G1 X3 Y6 G41 H2   (P1)
            N35 G91 X0 Y24        (P2)
            N40 X12 Y9            (P3)
            N45 X36               (P4)
            N50 Y-24              (P5)
            N55 X-21              (P6) 
            N60 G90 X3 Y6         (P1)
            N65 G0 X-21 G40

G M S T Codes Explanation

Code Description
G00 Rapid traverse
G01 Linear interpolation
G40 Cutter compensation cancel
G41 Tool nose radius compensation left
G43 Tool length compensation + direction
G54 Workpiece coordinate system 1 selection
G90 Absolute command
G91 Incremental command
M06 Tool change
T Tool
S Speed
F Feed

G41 G40 Cutter Radius Compensation Example CNC Mill Program

Cutter Radius Compensation Example program shows how G41, G40 can be used in a cnc mill program.
Cutter Compensation code used in this program are,
  • G41 Cutter Radius Compensation Left
  • G40 Cutter Radius Compensation Cancel

Cutter Radius Compensation Example


G41 G40 Cutter Radius Compensation Example
N5 G00 G54 G64 G90 G17 X20 Y-20 Z50
                N10 S450 M03 F250 D01 (12.5 MM DIA)
                N15 C0
                N20 Z5
                N25 G01 Z0
                N30 Z-5
                N35 G41 X0 Y0
                N40 X-48
                N45 X-68 Y72
                N50 X-28
                N55 Y44
                N60 X12 Y32
                N65 X0 Y0
                N70 G40 X20 Y-20
                N75 G00 Z50
                N80 Y100
                N85 M30
Finished Part
After machining process completion, component will look like

Cutter Radius Compensation Example Finished Part
Explanation of CNC G-Code
G00 : Rapid traverse.
G54 : Zero Offset no. 1.
G64 : Continuous-path mode.
G90 : Absolute dimensioning system.
G17 : X-Y plan selection.
G41 : Cutter radius compensation activation (left hand side movement)
G40 : Cutter radius compensation de-active
S : Spindle speed
F : Axis motion feed
M : Cutter rotation (3=clockwise, 4=anti-clockwise)
D : Tool offset no

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

Siemens Sinumerik Milling Programming Example

A very simple cnc milling program example which will show cnc machinists the use of Siemens Sinumerik milling programming concepts.
This program is written for 4-axis cnc mill, where C is used for rotary table.
But a simple cnc mill can also run this program just remove program block N15
Contents
  • Sinumerik Milling Program
    • Finished Part
    • Explanation of G-Code

Sinumerik Milling Program


Sinumerik Mill Programming Example
N5 G00 G54 G64 G90 G17 X-20 Y-20 Z50
                    N10 S450 M03 F250 D01 (12.5 MM DIA)
                    N15 C0
                    N20 Z5
                    N25 G01 Z0
                    N30 Z-5
                    N35 G42 X0 Y0
                    N40 X30
                    N45 Y30
                    N50 X0
                    N55 Y0
                    N60 G40 X-20 Y-20
                    N65 G00 Z50
                    N70 Y100
                    N75 M30

Finished Part

After the machining is complete, this finished part will look like this


Finished Part

Explanation of G-Code

G00 – Rapid traverse.
G54 – Zero Offset no 1.
G64 – Continuous-path mode.
G90 – Absolute dimensioning system.
G17 – X-Y plan selection.
G42 – Cutter radius compensation activation
G40 – Cutter radius compensation cancel
M03 – Cutter rotation clockwise
S – Spindle speed
F – Axis motion feed
D – Tool no

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

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

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

Fanuc G73 Pattern Repeating Cycle CNC Program Example Code

CNC programming example for Fanuc G73 pattern repeating cycle.
Fanuc G73 Pattern Repeating Cycle has already been described here
CNC Fanuc G73 Pattern Repeating Cycle
You might like other Fanuc G73 pattern repeating cycle examples
CNC Fanuc G73 Pattern Repeating Cycle CNC Program Example
Fanuc G73 Pattern Repeating Canned Cycle Basic CNC Sample Program


Fanuc G73 Pattern Repeating Cycle Programming Example

This cnc program example also shows how cnc machinists can use ‘W’ instead of ‘Z’ for z-axis movements.
Fanuc G73 Pattern Repeating Cycle Program Example
N010 G00 X260.0 Z80.0
                            N011 G00 X220.0 Z40.0
                            N012 G73 U14.0 W14.0 R3
                            N013 G73 P014 Q020 U4.0 W2.0 F0.3 S0180
                            N014 G00 G42 X80.0 Z2.0
                            N015 G01 W-20.0 F0.15 S0600
                            N016 X120.0 W-10.0
                            N017 W-20.0 S0400
                            N018 G02 X160.0 W-20.0 R20.0
                            N019 G01 X180.0 W-10.0 S0280
                            N020 G40
                            N021 G70 P014 Q020
                            N022 G00 X260.0 Z80.0
                            N023 M30

--------------------***--------------------
Reference books
--------------------***--------------------
--------------------***--------------------