Search

100 ebooks for engineers

100 ebooks for engineers

We strive to bring you the most cost-effective book possible. The content of the books is edited from many reliable sources.

Book list on Kobo:



1. Go Programming Language

2. Basic Electronics

3. MongoDB

4. Electronic Transformers

5. Introducing SAP Payroll

6. LISP Programming Language

7. Introducing SAP MM

8. Introducing AWK

9. Computer programming

10. C Standard Library

11. Apex Programming

12. CNC programming

13. Electronics Resistors

14. Electronics Oscillator

15. Boolean Algebra

16. Amplifiers

17. AC Circuits

18. SAP BO Analysis Edition For OLAP

19. Body Language

20. CNC M-Code Tutorial

21. G-Code Reference

22. Euphoria Programming Language

23. Introducing RC Networks

24. F# Programming

25. Job Control Language

26. Binary Numbers

27. LOLCODE Programming Language

28. Electromagnetism

29. Anger Management

30. Introducing Boiler House

31. Counters Electronics

32. CNC Machine Tutorial

33. SAP Business Workflow

34. Attenuator

35. Spring Framework

36. Steam Engineering Principles and Heat Transfer

37. C++ Programming

38. Java 8

39. Electronics Inductors

40. Introducing Hibernate

41. C Programming Langguage

42. KDB+

43. Combinational Logic

44. Operational Amplifiers

45. SAP BW on HANA

46. Input/Output Devices

47. Introducing Arduino

48. Guide To TestNG

49. SAP Business Explorer

50. Logo programming language

51. JavaFX Tutorial

52. Introducing OBIEE

53. Diodes

54. Miscellaneous Circuits

55. Power Electronics

56. Electronic Systems

57. Introducing jMeter

58. Electronics Capacitors

59. WordPress Tutorial

60. Introducing Transistors

61. OAuth 2.0

62. Critical Thinking

63. CNC Programming Basics

64. SAP Advanced Planning and Optimization

65. Assembly Programming

66. Excel Functions & Formulas

67. Programming with MATLAB for Beginners

68. Java BeanUtils

69. G-Code and M-Code

70. Make Money Online Tutorial

71. Business Negotiation Skills

72. Introducing XPath

73. Electronics Filters

74. Introducing Neo4j

75. Waveform Generators

76. Introducing XSLT

77. Advanced Business Application Programming

78. Erlang Programming

79. Computer Fundamentals

80. C++ Programming Standard Library

81. Accounting Basics

82. Sequential Logic

83. Electronics DC Circuit

84. Business Negotiation Skills

85. Dart Programming Language

86. Programming Groovy

87. Power Supplies

88. Guide to Java Persistence API

89. COBOL Programming

90. Crystal Reports

91. Haskell Programming

92. Objective-C Programming Language

93. Node.js

94. Elixir Language

95. Inter Process Communication (IPC)

96. Introducing Clojure

97. Logic Gates

98. SAP Business Planning and Consolidation

99. MySQL

100. Parrot Programming



Good lucky!

CNC Programming Examples - Drilling

Fanuc G72.1 G72.2 Figure Copy Program Example (Bolt Hole Circle)

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

This CNC program example shows how both G72.1 and G72.2 figure copy functions can call one-another in one part program, read Programming Notes below carefully.

Programming

Fanuc G72.1 Rotational Copy

Using G72.1 Rotational Copy G-code a figure specified by a subprogram can be repeatedly produced with Rotational movement.
Read G72.1 definition with program example Fanuc G72.1 Rotational Copy (Figure Copy Function CNC Mill)

Fanuc G72.2 Linear Copy

Using G72.2 Linear Copy G-code a figure specified by a subprogram can be repeatedly produced with Linear movement.
Read G72.2 definition with program example Fanuc G72.2 Linear Copy (Figure Copy Function CNC Mill)

Fanuc G81 Drilling Cycle

G81 drilling cycle is used for simple drilling/spot drilling operations.
Read G81 drilling cycle definition with program examples Fanuc G81 Drilling Cycle

Programming Notes

Specifying two or more commands to copy a figure
  1. G72.1 cannot be specified more than once in a subprogram for making a rotational copy (If this is attempted, alarm PS0900 will occur).
  2. G72.2 cannot be specified more than once in a subprogram for making a linear copy (If this is attempted, alarm PS0901 will occur).
  3. In a subprogram that specifies rotational copy, however, linear copy can be specified. Similarly, in a subprogram that specifies linear copy, rotational copy can be specified.

Fanuc G71.2 G72.2 Program Example


Main program
O4000 ;
        N10 G90 G00 G17 X240. Y230. Z100. ; (P0)
        N20 G72.1 P4100 X120. Y120. L8 R45. ;
        N30 G80 G00 X240. Y230. ; (P0)
        N40 M30 ;
Sub program Rotation copy (G72.1)
O4100 N100 G72.2 P4200 I0 J20. L3 ;
        N200 M99 ;
Sub program Linear copy (G72.2 )
O4200 N110 G90 G81 X120. Y180. R60. Z10. F200. ; (P1)
        N210 M99 ;

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

Fanuc G81 Drilling Cycle

G81 drilling cycle is used for simple drilling/spot drilling operations.

Syntax

G81 X... Y... Z... R... K... F...
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.
K Number of cycle repetitions (if required) .
F Feedrate.
Once G81 drilling cycle is defined, the canned cycle is repeated at every X-Y position in sequential blocks. So G81 drilling cycle must be cancelled with G80.

Usage

            N30 G81 X10 Y30 Z-17 R2 F75
            N40 Y10
            N50 X30
            N60 Y30
            N70 X90
            N80 Y10
            N90 G80


In the above example drilling will start with G81 drilling cycle at X10 Y30, so first drill will be at X10 Y30, then second at Y10, third at X30, fourth at Y30, fifth at X90 and the last one at Y10, because next block have G80 code, so drilling cycle will no more be repeated.

Working

Here is briefly described how G81 drilling cycle operates,
1- Rapid traverse to the specified x,y axis position (drilling position).
2- Rapid traverse to the R plane position.
3- Drilling with specified Feed from R-plane position to Z-depth position.
4- Rapid traverse to Initial level or R-plane depends on G98, G99 modes.

G81 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 G81 drilling cycle.

Example

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

Repeat Drilling

With G81 drilling cycle drilling operation can be repeated multiple times. The drilling is repeated K times when that parameter is given with G81 drilling cycle.
Repeat drilling is normally used with G91 Incremental mode, and a good example of repeated drilling is Grid-plate drilling. the example for repeat drilling  is given below.

Working Examples


G81 Drilling Cycle Example
            N10 T1 M06
            N20 G90 G54 G00 X30 Y25
            N30 S1200 M03
            N40 G43 H01 Z5 M08
            N50 G81 Z-10 R2 F75
            N60 X80 Y50
            N70 G80 G00 Z100 M09
            N80 M30

G98 G99 Example


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

Repeat Drilling Example


Repeat drilling with G81 Drilling Cycle
            T1 M6
            G00 G90 G40 G21 G17 G94
            G54 X0 Y0 S1000 M03
            G43 H1 Z100
            Z3
            G81 G99 G91 X20 Y20 R3 Z-20 K3 F100 M08
            G80
            G00 G90 Z100
            M30
OR
            T1 M6
            G00 G90 G40 G21 G17 G94
            G54 X20 Y20 S1000 M03
            G43 H1 Z100
            Z3
            G81 G99 R3 Z-20 F100 M08
            G91 X20 Y20 K2
            G80
            G00 G90 Z100
            M30
-------------------------------------------------

Fanuc G82 Drilling Cycle

G82 drilling cycle is also called G82 counter boring cycle.
G82 is a normal drilling cycle the only difference is that it dwell for specified time at the bottom of the hole, normally used for accurate depth drilling.

Syntax

G82 X... Y... Z... R... P... 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.
P Dwell at the bottom of hole.
K Number of cycle repetitions (if required) .
F Feedrate.

Usage

                N30 G82 X10 Y30 Z-17 R2 P1000 F75
                N40 Y10
                N50 X30
                N60 Y30
                N70 G80


Once G82 drilling cycle is specified with it’s parameters in a program block, this will keep drilling at every axis movement, until cycle is ended with G80

Working

How G82 drilling cycle works
1- Rapid traverse to x, y position
2- Rapid traverse to R-plane position
3- Drilling with feed from R-plane to Z-depth position.
4- Dwell for specified time at hole bottom.
5- Rapid traverse to R-plane or Initial-level depends on G99, G98 mode.

G82 drilling cycle working

G98 G99 Modes

How G82 drilling cycle behaves upon G98 or G99 mode,
G98 Drill will return to the Initial level
G99 Drill will return to R-plane.
For a working example see G81 drilling cycle.

Example

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

Repeat Drilling

If K parameter value is given with G82 drilling cycle, then drilling will repeat the number of times given with K. An effective use of repeat drilling is while drilling multiple same distance holes, this way G82 cycle is used in G91 incremental mode. See G81 drilling cycle for repeat drilling example.

Working Example


G82 drilling cycle example
                N10 T1 M06
                N20 G90 G54 G00 X30 Y25
                N30 S1200 M03
                N40 G43 H01 Z5 M08
                N50 G82 Z-10 R2 P1000 F75
                N60 X80 Y50
                N70 G80 G00 Z100 M09
                N80 M30

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

[CNC Programming Examples] U W CNC Lathe CNC Program Examples

U W CNC Lathe CNC Program Examples

Fanuc G71 Turning Cycle

G71 turning cycle is used for rough-material removal from a cnc lathe component. G71 turning cycle makes large diameter cutting easy. Cutting can be done in simple straight line or a complex contour can also be machined very easily.
Through G71 turning cycle parameters cnc machinists can control
  • Depth of cut.
  • Retract height.
  • Finishing allowance in x-axis and z-axis.
  • Cycle cutting-feed, spindle speed.

Programming

G71 U... R...
G71 P... Q... U... W... F... S...

Parameters

First block
Parameter Description
U Depth of cut.
R Retract height.
Second block
Parameter Description
P Contour start block number.
Q Contour end block number.
U Finishing allowance in x-axis.
W Finishing allowance in z-axis.
F Feedrate during G71 cycle.
S Spindle speed during G71 cycle.

G71 Turning Cycle Overview

  • G71 turning cycle cuts the whole contour repeatedly which is given in P Q blocks.
  • Depth of every cut can be controlled by first-block U value.
  • Second-block U W are the finishing allowances which can be given if you want to make a finish cut with G70 finishing cycle.
  • F is cutting feed and S is spindle speed (given in second-block) which are used during G71 turning cycle.
Note – The F and S given inside P Q block will not be used during G71 turning cycle, they are used with G70 finishing cycle if later called.

G71 Turning Cycle Working

N60 G71 U10 R10 
N70 G71 P80 Q90 U3 W0 F0.25
N80 G00 X60
N90 G01 Z-75
When G71 turning cycle is run the whole operation will be done in following sequence,
First-cut
1 – Tool will move in x-axis U (depth of cut) deep with programmed feed from starting-point.
2 – Tool will travel with feed in z-axis (destination point in z-axis is given in P Q blocks )
3 – Tool rapidly retracts R amount in both x-axis and z-axis (at 45 degrees).
4 – Tool rapidly travel in z-axis to start-point
Later-cuts
5 – Tool rapidly moves to last cut depth.
6 – Tool moves with feed in x-axis U deep (first-block U depth of cut).
7 – Tool with feed moves in z-axis (destination point given in P Q blocks).
8 – Tool rapidly retracts in x-axis and z-axis R amount (45 degrees).
9 – Tool rapidly moves to start-point only in z-axis.
This whole sequence of operation keep on going, until the destination point in x-axis is met.
If finishing allowance is given tool will not make the exact diameter and length given in P Q blocks but will leave that much allowance, This finishing allowance can be later machined by calling G70 finishing cycle.


Fanuc G71 Turning Cycle

Fanuc G71 Example

Here is a cnc part-program which shows how G71 turning cycle can be used, this is the program for the drawing given above
N50 G00 X106 Z5 M3 S800
N60 G71 U10 R10 
N70 G71 P80 Q90 U3 W0 F0.25
N80 G00 X60
N90 G01 Z-75
In this program G71 turning cycle will keep repeating the contour given inside P Q blocks shown below
N80 G00 X60
N90 G01 Z-75
These two cnc program blocks tell us that we want to remove material till X60 deep and in Z-75 in length.
The depth of cut is given in first-block U10 retract amount is also given R10.
Finishing allowance in x-axis is U3 but there is no finishing allowance given in z-axis W0.

G70 Finishing Cycle

If you programmed G71 turning cycle with finishing allowances then that finish allowances can be removed with G70 finishing cycle.
G70 finishing cycle repeats the whole contour the G71 way, but in just one-cut removing the finishing allowances.

Why Use G70 Finishing Cycle

As material can be removed with G71 turning cycle, but if you want a different cutting-feed and spindle speed for the last cut, then it is recommended that you use G70 finishing cycle.
G70 finishing cycle use F and S values which are given inside P Q programmed blocks. (G71 use F S values which are given inside G71 second block.)

Fanuc G70 Example

N50 G00 X106 Z5 M3 S800
N60 G71 U10 R10 
N70 G71 P80 Q90 U3 W0 F0.25
N80 G00 X60
N90 G01 Z-75 F0.15
N100 G00 X200 Z100
N110 G92 S1200
N120 T3 G96 S150 M03
N130 G00 X106 Z5
N140 G70 P80 Q90
N150 G00 X200 Z100
N160 M30

G70 G71 Example


G71 Rough Turning Cycle Example

O0004
G00 X200 Z10 M3 S800
G71 U2 R1 F200
G71 P80 Q120 U0.5 W0.2
N80 G00 X40 S1200
G01 Z-30 F100
X60 W-30
W-20
N120 X100 W-10
G70 P80 Q120
M30


***********************************

[CNC Programming Examples] 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

***********************************

[CNC Programming Examples] Tapered Threading with Fanuc G76 Threading Cycle

Tapered Threading with Fanuc G76 Threading Cycle


Taper threading is not a usual practice in cnc machine workshops, but sometimes customer want a component with taper threading, So here is the solution. Taper threading on a cnc lathe machine with Fanuc control is just easy with Fanuc G76 threading cycle. Fanuc CNC control threading cycle G76 gives us lot of flexibility. CNC Programming tapered threading with Fanuc threading cycle G76 is not that difficult, just one parameter have to add.

Normal Threading with Fanuc G76 Threading Cycle CNC Program

N5 G76 P010060 Q100 R0.05
N6 G76 X30 Z-20 P1024 Q200 F2
One G76 parameter which have to be added for tapered threading is R in G76 second block.

Tapered Threading with Fanuc G76 Threading Cycle CNC Program


Tapered Threading with Fanuc G76 Threading Cycle
N5 G00 X50 Z5
N6 G76 P010060 Q100 R0.05
N7 G76 X43 Z-45 P1024 Q200 R-14.5 F2
Other parameter of Fanuc threading cycle G76 are explained here.
The R parameter in second block of G76 is the tapered value. Note that R is given as Radius value.

How to calculate R parameter for Tapered Threading on Fanuc with G76 Threading Cycle.

R = (Start Diameter – End Diameter) / 2

***********************************

[CNC Programming Examples] 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 usesFanuc 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

***********************************

[CNC Programming Examples] 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 systembut 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

***********************************

[CNC Programming Examples] 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

***********************************

[CNC Programming Examples] 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

***********************************

[CNC Programming Examples] 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 learningor 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

***********************************

[CNC Programming Examples] 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

***********************************

[CNC Programming Examples] G-Code G95 Feed Per Revolution

G-Code G95 Feed Per Revolution

Feed Per Revolution (G95)


G95 Feed Per Revolution
G95 (Feed Per Revolution) is a modal G-code that instructs the control to interpret feed commands as mm per revolution (mm/rev) or inches per revolution of the spindle.
G01 F0.02
the above cnc program code would cause the axis to advance 0.02mm for every revolution of the spindle.
When G95 is active the feed values will be programmed as follows: F0.05, F0.15, F0.3, F0.5 and so forth.
N11 ……
N12 G95 ; Program with G95 (F= mm/rev.)
N13 G1 Z-20 F0.2
N14 ……

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

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
 

Feed Per Revolution (G95)

G95 Feed Per Revolution
G95 (Feed Per Revolution) is a modal G-code that instructs the control to interpret feed commands as mm per revolution (mm/rev) or inches per revolution of the spindle.
G01 F0.02
the above cnc program code would cause the axis to advance 0.02mm for every revolution of the spindle.
When G95 is active the feed values will be programmed as follows: F0.05, F0.15, F0.3, F0.5 and so forth.
N11 ……
N12 G95 ; Program with G95 (F= mm/rev.)
N13 G1 Z-20 F0.2
N14 ……

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

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
 



***********************************