## CNC Programming Reference

CNC programming reference manuals G-Code list:

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

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

# CNC G02 Circular Interpolation Clockwise CNC Program Tutorial

CNC milling programming tutorial for cnc programmers/cnc machinists to understand the usage of G-code G02 circular interpolation milling programming.
CNC milling sample program is easy to understand for even beginner level cnc programmers and cnc machinists, no doubt this is a cnc milling programming for dummies tutorial.

## CNC Milling Sample Program

CNC G02 Circular Interpolation Clockwise CNC Milling Sample Program
```G90 G00 X-2.0 Y-1.0
G01 X0 Y0 F8.0           ; point A
Y4.0                     ; point B
G02 X2.0 Y6.0 R2.0       ; point C
G01 X8.0                 ; point D
G02 X9.0 Y2.268 R2.0     ; point E
G01 X0 Y0                ; point A
G00 X-2.0 Y-1.0```

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

# CNC Mill Programming Circular Interpolation Example

CNC milling circular interpolation program example to illustrate the use of G02 G03 Circular Interpolation G-Codes.
Easy to understand cnc mill coding tutorial from novice to mid-level cnc programmers and cnc machinists.
Related Circular Interpolation cnc programs
CNC Mill CNC G02 Circular Interpolation Clockwise CNC Milling Sample Program
CNC Lathe G02 G03 G Code Circular Interpolation Example Program and CNC Programming Example G Code G02 Circular Interpolation Clockwise

CNC Milling Circular Interpolation G02 G03 G-Code Program Example
```G90
G00 X-1.0 Y-1.0                     ; point S
G01 X0 Y0 F7.5                      ; point A
Y2.134                              ; point B
G03 X0.5 Y3.0 I-0.5 J0.866          ; point C
X0. Y3.866 I-1. J0                  ; point D
G01 Y5.5                            ; point E
G02 X0.5 Y6.0 I0.5 J0               ; point F
G01 X4.5                            ; point G
G02 X6.0 Y4.5 I0 J-1.5              ; point H
G01 Y0                              ; point I
X0                                  ; point A
G00 X-1.0 Y-1.0                     ; point S```

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

# CNC Mill Program Example

A very simple cnc milling machine programming tutorial for beginner level cnc machinists.
An easy to understand cnc mill programming code. This is a cnc g code example without the use of any cnc canned cycle.

CNC Milling Machine Programming Example for Beginners
```N05 G0 G90 X40 Y48 Z2 S500 M3
N10 G1 Z-12 F100
N15 X20 Y18 Z-10
N20 G0 Z100
N25 X-20 Y80
N30 M2```
N05 The tool traverses in rapid traverse on P1, three axes concurrently, spindle speed = 500 rpm, clockwise
N10 Infeed on Z-12, feed 100 mm/min
N15 Tool travels on a straight line in space on P2
N20 Retraction in rapid traverse
N30 End of program

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

## Drilling CNC Program

Guide to Drilling CNC Programming by Examples

* Contents

Fanuc G72.1 G72.2 Figure Copy Program Example (Bolt Hole Circle)
Fanuc G81 Drilling Cycle
G82 Drilling Canned Cycle with Dwell CNC Milling Example Program
G81 Drilling Cycle G84 Tapping Cycle CNC Program Example
Fanuc G82 Drilling Cycle
Fanuc Subprogram Example
Fanuc G68 Coordinate Rotation Program Example
CNC Lathe Programming Exercise Fanuc G71 Turning Cycle, G74 Peck Drilling Cycle
Drilling a Two Step Block with G81 Drilling Cycle
Fanuc G83 Peck Drilling Cycle
Peck Drilling-Mill CNC Program Examples
Pattern Drilling CNC Program Examples
Peck Drilling Lathe CNC Program Examples

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

# CNC Mill Example Program G01 G02 G03 G90 G91

* Best ebooks for CNC programming:

A cnc mill program for cnc machinists programmers, who have started to learning basic cnc programming techniques.

CNC Mill Example Program

### CNC Programming

```        N40 G90 G00 X0 Y0
N50 G01 X-10 Y-20 R8         (P1)
N60 G01 X-50 R10             (P2)
N70 Y10                      (P3)
N80 X-19.97 Y25.01           (P4)
N90 G03 X7.97 Y38.99 R18     (P5)
N100 G01 X30 Y50             (P6)
N110 G91 X10.1 Y-10.1        (P7)
N120 G90 G02 X59.9 Y20.1 R14 (P8)
N130 G01 X70 Y10             (P9)
N140 Y-20 R10                (P10)
N150 X50                     (P11)
N160 G03 X30 R10             (P12)
N170 G01 X10 R8              (P13)
N180 X0 Y0```

### G M S T Codes Explanation

Code Description
G00 Rapid traverse
G01 Linear interpolation
G02 Circular interpolation CW
G03 Circular interpolation CCW
G90 Absolute command
G91 Increment command

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

# 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.

## CNC Mill Subprogram Example

cnc programming

### 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 Turning Center Programming Example

Easy to understand CNC turning center/cnc lathe programming example for cnc machinists who work on cnc turning centers/cnc lathe machines.
This cnc programming example can be used as a cnc learning programming exercise for beginners level cnc programmers/machinists.

## CNC Turning Center Programming Example

```                N10 T03 D03 M06
N20 G97 S900 M04
N30 G00 G42 X40 Z5
N40 G92 S3500
N50 G96 S250
N60 G01 X60 Z-5 F0.1
N70 Z-15
N80 X56 Z-20
N90 G02 X70 Z-30 R10
N100 G01 X80 Z-40
N110 X100
N120 Z-80
N130 X106
N140 G03 X116 Z-85 R5
N150 G01 X120
N160 G00 X150 Z100 G40 G97 S900 M05
N170 M30
***********
```

```
>>> [CNC PROGRAMMING] CNC CODE PROGRAM EXAMPLES: LEARN CNC PROGRAMMING BY EXAMPLES

***********

```

# 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
-------------------------------------------------
```

# CNC Lathe Basic Programming Example ID/OD Turning/Boring Operations (No Canned Cycle Used)

A full CNC programming example with ID/OD (Turning/Boring operations) for cnc machinists who work on a cnc lathe machine. A must to learn/practice for those who are learning cnc programming.
The added benefit of this programming example is that no cnc lathe canned cycle is used in this programming example.

## CNC Lathe Basic Programming Example (Turning Boring Operations)

CNC Lathe Example Turning Boring
```                        O0000
N10 (ø30 DRILL)
G50 T0200
G97 S250 M03
G00 X0 Z5.0 T0202 M08
G01 Z-5.0 F0.07
W1.0
Z-40.0 F0.25
G00 Z5.0
Z-39.0
G01 Z-60.0
G00 Z10.0
X200.0 Z200.0 T0200
M01
N20 (Outside diameter stock removal)
G50 S1500 T0100
G96 S180 M03
G00 X94.0 Z5.0 T0101 M08
G01 Z-14.8 F0.27
G00 U2.0 Z0.5
G01 X28.0 F0.23
G00 X87.0 W1.0
G01 Z-14.8 F0.27
G00 U2.0 Z1.0
X80.5
G01 Z-14.1
G02 X81.9 Z-14.8 R0.7
G00 X100.5 W1.0
G01 Z-29.8
G00 U2.0 Z-1.0
G01 X60.5 F0.23
G00 X82.0 W1.0
Z-2.4
G01 X60.5
X72.9
G03 X80.5 Z-6.2 R3.8
G00 U2.0 Z5.0
X200.0 Z200.0 T0100
M01
N30 (Inside diameter stock removal)
G50 S1500 T0400
G96 S180 M03
G00 X34.5 Z3.0 T0404 M08
G01 Z-41.8 F0.27
G00 U-0.5 Z1.0
X39.5
G01 Z-15.0
X34.5 Z-24.3
G00 Z10.0
X200.0 Z200.0 T0400
M01
N40 (Out diameter finishing)
G50 S1800 T0500
G96 S200 M03
G00 X63.0 Z5.0 T0505 M08
Z0
G01 X38.0 F0.2
G00 X60.0 Z3.0
G42 Z1.0
G01 Z-2.5 F0.2
X74.0
G03 X80.0 Z-5.5 R3.0
G01 Z-13.5
G02 X83.0 Z-15.0 R1.5
G01 X100.0
Z-30.0
X102.0
G40 G00 U2.0 W1.0
G00 Z10.0
X200.0 Z200.0 T0500
M01
N50 (Inside diameter finishing)
G50 S1800 T0600
G96 S200 M03
G00 X40.0 Z5.0 T0606 M08
G41 Z1.0
G01 Z-15.0 F0.2
X35.0 Z-24.33
Z-42.0
X29.0
G40 G00 Z10.0
X200.0 Z200.0 T0600 M09
M30

----------------------------------------------```

```
```
Vertical Machining Center Programming Example CNC

Vertical machining centers are a vital part of a cnc machine workshop, So here is a Vertical machining center programming example for cnc machinists who have just started learning cnc programming.

## Vertical Machining Center Programming Example

Vertical Machining Center Programming Example
```                            N10 T1
N20 S1000 M3
N30 G00 G40 G90 G17 X-30 Y60
N40 G43 Z50 H1
N50 Z-5
N60 G01 G41 X10 Y60 D1 F200
N70 Y80
N80 G02 X20 Y90 R10
N90 G01 X50
N100 X90 Y50
N110 Y20
N120 G02 X80 Y10 R10
N130 G01 X50
N140 X10 Y50
N150 Y65
N160 G40 X-30 Y60
N170 G00 Z200 M02

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

```

# CNC Arc Programming G02 G03 Example

CNC arc programming example this cnc program shows how two arcs G03 G02 can be joint together.

## CNC Arc Programming G02 G03 Example

CNC Arc Programming G02 G03 Example

```                                O0001
N001 G0 X40 Z5；          （Rapid position）
N002 M03 S200；           （Start spindle）
N003 G01 X0 Z0 F900；     (Approach workpiece)
N005 G03 U24 W-24 R15；   （Cut R15 arc）
N006 G02 X26 Z-31 R5；    （Cut R5 arc）
N007 G01 Z-40；           (Cutф26)
N009 M30；                （End of program）

--------------------***--------------------

Reference books

--------------------***--------------------

--------------------***--------------------

```