Anda di halaman 1dari 9

Programming

In this lecture we will learn to write part program for contouring operations being
carried out on a CNC milling machine. Let us take an exercise:

Figure 7.3.1 shows the final profile required to be finish-contoured and the holes
to be drilled by using a CNC Vertical Machining Center. Write an EFFICIENT CNC
part program for the same. Assume the finishing allowance of about 2 mm.

Figure 7.3.1 A component to machined on a vertical machining center


(VMC)

After studying the required part geometry and features the following main
program and its sub-program are prepared.

Table 7.3.1 Process plan


MAIN PROGRAM:
SUB-PROGRAM:

CNC G Codes
CNC G Code in a broader way are instructions to the cnc machine tools.
CNC G-code are instructions to cnc machine tools like
which way to go whether
to travel in a straight line (G01)
or in a curve (G02, G03)
or in taper (G01)
and with what feed (G94, G95).
Whether to travel at full feed (G00)
or with a controlled feed (G94, G95).
and if there is a stay how long will the stay be a cnc programmer calls this
stay Dwell Time. (G04)
The G codes also provide some very crucial data at program start and at run time
like
Tool-Offsetting data (G10)
and CNC Workpiece-Zero-Point or CNC Workshift Setting, (G10, G54, G55)
as without this data running a cnc machine is just a dream.
So after reading the above paragraph you might have understood the power of
the G codes. They provide crucial and sensitive data at run time and instruct the
cnc machine tools to run on the given path with a controlled feed but keeping that
crucial data in mind all the time.
If I fully translate the above paragraph in cnc G code then I will say that the cnc
machine will read machine zero offset with G54 and Tool-Offset with G10 and
run on a path which is carved with G00 G01 G02 G03 and run with a control feed
the feed is controlled with G94 G95 G96.
Important G Codes
G00

The G00 G code of cnc machine tell the cnc machine to bring the tool to a given
point given with G00 at the full feed, the feed of the G00 is given in the cnc
machine parameters and normally never changed, but can be changed if really
needed.
G01

The G01 G-code of cnc machine tell the cnc machine to bring the tool with a
controlled feed, unlike G00 whose feed is buried in cnc machine parameters the
feed of the G01 code is given in the same program block or in the prior blocks.
To control the feed another G code is used which is G95.

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

CNC Machining Center Programming Example


This is a CNC machining center programming example or Vertical machining centers (VMCs)
programming exercise. Basic and easy to understand for beginners level cnc machinists / cnc
programmers. Also illustrates

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

Fanuc Lathe Programming Example Using G70, G71, G74 for ID Machining
Fanuc lathe programming example which uses Fanuc canned cycle G71 Turning Cycle G70 Finish Cycle
G74 Peck Drilling Cycle This Fanuc lathe programming example illustrates who to use G71 Turning

CNC Center Drill Holder To Center Drill in Close Space CNC Lathe
Here is the introduction of a center drill holder. I added this post to CNC Accessories. You might read
about other cnc accessories like CNC Machine Jaws. There are multiple center

CNC Lathe Component Machining with G73 G76 Cycles


To determine U= (Max. Dia of wp- min dia of profile)/2 = (35-25)/2 = 5 N0 G90 F0.2 S1200 T0101 M04
N10 G00 X38 Z2 N30 G73 U5 R10 N40

CNC Mill Programming Exercise using G90 Absolute Programming G91


Incremental Programming
A very basic cnc mill programming exercise for cnc machinists. This cnc example code shows the use of
G90 Absolute Programming G91 Incremental Programming ContentsCNC Mill Programming
ExerciseG90 Absolute ProgrammingG91
CNC Lathe Programming Exercise Fanuc G71 Turning Cycle, G74 Peck
Drilling Cycle
CNC programming exercise for cnc lathe machinists who work on Fanuc cnc control (or similar cnc
control). This cnc programming exercise use Fanuc G71 Turning Cycle Fanuc G74 Peck Drilling
Selca G20 Circle of known center and radius
Selca G20 Circle of known center and radius ContentsProgrammingParameters Programming G20 [X
Y] [I] [K] Parameters Parameter Description X,Y Circle center coordinates. May be omitted if
coinciding with the center

Circular Interpolation Concepts & Programming Part 6 (Uses & Exercises)


6th part of Circular Interpolation Concepts & Programming series, this article explains the uses of
Circular Interpolation, at end two exercises are given for cnc machinists to program ,apply &

Fanuc 31i G Codes Machining Center Fanuc 30i 31i 32i


Fanuc 31i G codes list for cnc machinists programmers who work on cnc machining centers with
Fanuc 30i 31i 32i cnc controls. ContentsFanuc CNC ControlsFanuc 31i G Codes Fanuc CNC Controls

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

Circular Interpolation Concepts & Programming Part 4 (Unknown R)


The 4th part of Circular Interpolation Concepts & Programming series explains how cnc program for an
arc can be made if arc Radius (R) is not directly given. Read Other Parts

NCT Programming Drilling in a Circle with G81 Drilling Cycle G16 Polar
Coordinate
NCT program example to show how G81 drilling cycle can be used to drill in a circle using G15 G16
Polar Coordinate Commands and G81 Drilling Cycle. ContentsG CodesNCT Programming
Selca G797 Circumference pattern machining repeat
Selca G797 Circumference pattern machining repeat ContentsProgrammingParameters Programming
G797 X Y D1= D2= [D3=] [D4=] [D5=] Parameters Parameter Description X,Y
circumference center coordinates. D1= number of figures. D2= circumference radius
NCT Programming Drilling Circle Part with G81 G16
NCT program example to show how to drill a part of a circle with G81 drilling cycle and G15 G16 Polar
Coordinate Commands. ContentsG CodesNCT Program Example G Codes G

CNC Mill Programming Exercise using G91 Incremental Programming


This CNC mill programming exercise will give you more idea to understand drawing and how to find
exact coordinate of each drawing point. Completely based on G91 Incremental Dimensioning System,

Fanuc G71 G72 G70 Canned Cycle CNC Lathe Internal Machining Example
(Boring & Facing )
Fanuc programming example which shows the use of multiple fanuc canned cycle in cnc programming,
Following canned cycle are used in this cnc lathe programming example G71 Rough Turning Cycle

Wire EDM Programming Example


Complete cnc programming example for machinists who work on a Wire EDM machine (Electrical
Discharge Machining) ContentsCNC Wire Cut IntroductionWire EDM Programming Example CNC
Wire Cut Introduction Wire EDM cutting,

CNC Programming Example G Code G02 Circular Interpolation Clockwise


Here is another cnc programming example, this time I am programming for an arc with I K values. The
cnc G code G02 Circular Interpolation Clockwise is used in this programming

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

Anda mungkin juga menyukai