[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