CNC Tut
CNC Tut
G15,G16
1
• When using Polar Coordinates, the angle is expressed in degrees counter-clockwise from the X
axis as shown in the diagram.
2
Applications of G 15/16 in Real-World Scenarios
The G15 code is widely used in industries that rely on precision machining.
Some examples are:
• Manufacturing for Aerospace: Here, G15 allows accurate milling of intricate
shapes needed for turbine blades or airframe structures which have very tight
tolerances.
• Automotive industry: In the automotive sector where they make parts with
complex profiles such as camshafts and crankshafts so as to achieve balance
in engine assemblies.
• Production of Medical Devices: For medical implants and devices which often
require tight tolerances along with complicated geometrical features; G15
helps to meet these requirements faster.
• Tool & Die Making: Progressive dies and molds used in this industry must
have precise curves and contours which are necessary for high-quality
stamped components production. 3
CNC program for hexagonal milling
4
• Try Yourself
5
Cutter Radius Compensation
• Cutter radius compensation is a feature in CNC programming that accounts for the radius of the
cutting tool when machining contours or profiles.
• This ensures the tool moves to the correct position relative to the programmed path, allowing for
precise cutting.
• With cutter radius compensation, the programmer can use the coordinates of the work surface,
not the tool’s centerline path, so eliminating the need for many calculations.
6
• When a tool is used repeatedly, it gradually wears down. This means its actual cutting
radius becomes smaller than its original size. If we don’t adjust for this, the machined part
may become slightly larger or inaccurate.
• How CRC helps: Instead of changing the entire CNC program, the operator can just update
the tool offset value in the CNC machine.
• Imagine you are using a tool with a 10 mm diameter, but it gets damaged. You replace it
with another tool, but the new one has a 9.8 mm diameter due to manufacturing
tolerances. If you don’t adjust for this difference, the final part may be slightly different
from what you need.
• How CRC helps: Instead of rewriting the CNC program to account for the new tool size, the
operator just updates the tool offset value in the CNC machine. This automatically shifts
the toolpath so the part is still machined correctly.
7
N10 G21
N20 G90
N30 T1 M06
N40 G00 X-15 Y-15
N50 G41 G01 X0 Y0 F100 S1000 M03 D10
N60 G01 Y40
N70 G01 X30 Y80
N80 G01 X60
N90 G02 X100 Y40 R40
N100 G01 Y30
N110 G03 X70 Y0 R30
N120 G01 X0
N130 G00 X-15 Y-15
N140 M30
8
Try Yourself !
9
Solution
N010 G21 G40 G98 (Finishing cycle)
N020 G28 U0 W0 N190 G70 P90 Q180
N030 M06 T0404 N200 G28 U0 W0
N040 M03 S1200 N210 M05
N050 G00 X31 Z5 N220 M30
N060 G01 Z0