Thursday, August 2, 2018

CNC Programming Examples - Ramping Milling

  Thanh A Tran       Thursday, August 2, 2018

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

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

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

Slot Milling a Sample CNC Program Example

A very simple cnc milling program example which shows how a simple slot can be machined.
Another such program example which mills a pocket the same way but in a taper is here CNC Milling Machine Programming Example for Beginners.

Slot Milling Program Example


Slot Milling Sample CNC Program
N10 G00 G90 X70 Y25 Z1 S800 M3
            N20 Z-5
            N30 G01 X20 F150
            N40 G00 Z100
            N50 X-25 Y50
            N60 M30
N10 Spindle on clockwise rotation at 800 rev/min, tool rapid traverse to P01.
N20 Infeed in Z.
N30 Tool traverse P01 to P02, feedrate 150 mm/min.
N40/N50 Rapid traverse retraction.
N60 End of program.

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

CNC Milling Machine Programming Example for Beginners

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.
Related cnc mill program examples
  • CNC G02 Circular Interpolation Clockwise CNC Milling Sample Program
  • CNC Milling Circular Interpolation G02 G03 G-Code Program Example
Beginner level cnc program examples for CNC Lathe
  • Fanuc CNC Program Example
  • CNC Programming for Beginners a Simple CNC Programming Example
  • CNC Programming for Beginners a CNC Programming Example

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

logoblog

Thanks for reading CNC Programming Examples - Ramping Milling

Previous
« Prev Post

No comments:

Post a Comment