Thursday, August 2, 2018

CNC Programming Examples - G02 G03 R

  Thanh A Tran       Thursday, August 2, 2018

CNC Mill Example Program G01 G02 G03 G90 G91

A cnc mill program for cnc machinists programmers, who have started to learning basic cnc programming techniques.
Contents
  • CNC Mill Example Program
    • CNC Program
    • G M S T Codes Explanation

CNC Mill Example Program


CNC Program

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.
Contents
  • CNC Mill Subprogram Example
    • CNC Part Program
    • Subprogram
    • G M S T Codes Explanation

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

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)
                                N008 X40 Z5(Return to starting point)
                                N009 M30;                (End of program)






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

logoblog

Thanks for reading CNC Programming Examples - G02 G03 R

Previous
« Prev Post

No comments:

Post a Comment