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.
After studying the required part geometry and features the following main
program and its sub-program are prepared.
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.
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
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
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
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