CNC Turning Examples
CNC Turning Examples
(FANUC SYSTEM)
INTRODUCTION
FUNDAMENTAL PRINCIPLES
INSTRUCTION
1. INTRODUCTION
Ways of Turning
Parts of CNC Machine
Working Methods of CNC
Ways of Turning
Conventional or Traditional
Numerical Control (NC)
Computer Numerical Control (CNC)
Difficulties with Conventional System
Complex shapes are difficult to machine
Depends on the human skill
Frequent & repeated measurements are required
Difficult to achieve consistency in product quality
High Changeover Time
Less productive hours
More scrap is generated
Current Market Demand
High quality products
at Lowest cost
in Minimum time
with wide range of variety
Programming Unit
Programmer
Computer system
User Interface device
Data Storage and Transfer facility
Machine Control Unit
Tape Reader
Data Buffer
Signal Output Channels to Machine Tool
Feedback channels from the Machine Tool
Machine Tool
Structure
Extra Rigid
Easy chip disposal System, eg: Use of Slant Bed
Thermal Resistant
Drives
AC Induction motors
DC motors
Machine Tool
Actuation System
Stepper motor/servomotor
Ball Screw & nut with support bearing
Linear Bearing
Dimensioning System
Absolute
Incremental
Mixed
Reference System
Machine Reference
Work Reference
Instruction or program
Introduction
N 10 G 00 X 50.0 Z 25.0 ; Block
G 00 Data
Address
Layout of a CNC Program
[BILLET X 25.0 Z 60.0; [Size of raw Material
G99 G21 S500 M13; [ Setting Cutting Condition
G28 U0 W0; [ Ref. Point Return Header
M06 T0101; [ Tool Call
G00 X 25.0 Z 2.0; [Positioning
…… [ Path Definition
…… or Cycle Utility Body
or Subroutine Utility
G28 U 0 W0; [ Return to Ref. Point
End
M30; [ End of Program
Linear Path Function
G00 Rapid Linear Movement
G01 Linear Movement with
Programmed Feed Rate
Writing Format
G00 X 50.0 Z2.0;
G01 X 50.0 Z2.0 F0.1;
Example Program
[BILLET X55.0 Z40.0;
G99 G21 G40;
S1000 M13;
M06 T0101;
G00 X55.0 Z2.0;
G01 X55.0 Z0.0 F0.2;
G01 X -1.0 Z0.0 F0.1;
G00 X 55.0 Z2.0; 0,0
G00 X20.0;
G01 X20.0 Z-10.0 F0.1;
G01 X40.0 Z-10.0;
G01 X40.0 Z-25.0;
G01 X50.0 Z-25.0;
G01 X50.0 Z-35.0;
G01 X55.0 Z-35.0;
G00 X55.0 Z2.0;
G28 U0 W0;
M30;
Circular Path Function
G02 Circular Movement Clockwise (CW)
G03 Circular Movement Counter Clock
Wise (CCW)
Writing Format
G02 X 25.0 Z-10.0 R5.0 F0.1; G03 X 25.0 Z-10.0 R5.0 F0.1;
Example Program
[BILLET X55.0 Z40.0;
G99 G21 G40 S1000 M13;
M06 T0101;
G00 X38.0 Z2.0;
G01 X38.0 Z0.0 F0.2;
G01 X -1.0 Z0.0 F0.1;
G00 X 38.0 Z2.0;
G00 X10.0;
G01 X10.0 Z-10.0 F0.1;
G02 X18.0 Z-14.0 R4.0;
G01 X18.0 Z-19.0;
G03 X24.0 Z-22.0 R3.0;
G01 X24.0 Z-30.0;
G01 X38.0 Z-30.0;
G00 X38.0 Z2.0;
G28 U0 W0;
M30;
Example Program
Incremental Jog
1. mm/minute
2. mm/revolution
While programming on CNC Machine the feed methods can be
selected by:
1. mm/minute : G98
2. mm/revolution : G99
Step Boring Cycle (G90)
[BILLET X28.0 Z40.0;
G99 G21 G40 S1000 M13;
G28 U0 W0;
M06 T0404;
G00 X12.0 Z2.0;
G90 X14.0 Z-30.0 F0.1;
X16.0;
X18.0;
X19.0;
X21.0 Z-20;
X23;
X24.0;
G28 U0 W0;
M30;
Grooving Cycle (G81)
[BILLET X28.0 Z40.0;
G99 G21 G40 S1000 M13;
G28 U0 W0;
M06 T0505;
G00 X52.0 Z2.0;
G01 Z-15.0 F0.3;
G81 X30.0 F0.02;
G01 Z-30.0;
G81 X20.0;
G28 U0 W0;
M30;
Profile Boring Cycle (G71)
[BILLET X40.0 Z40.0;
G99 G21 G40 S1000 M13;
G28 U0 W0;
M06 T0404;
G00 X15.0 Z2.0;
G71 U0.5 R0.5;
G71 P25 Q45 U-0.5 W0.1 F0.2
N25 G01 X35.0;
G01 X35.0 Z-10.0;
G01 X30.0 Z-10.0;
G02 X18.0 Z-16.0 R6.0;
G01 Z-30.0;
N45 G01 X15.0;
G28 U0 W0;
M30;
Pattern Repeating Cycle (G73)
[BILLET X55.0 Z50.0;
G99 G21 G40 S1000 M13;
G28 U0 W0;
M06 T0101;
G00 X56.0 Z4.0;
G73 U4 W3 R10;
G73 P10 Q20 U0.5 W0.5 F0.1
N10 G00 X15.0;
G01 X15.0 Z0.0;
G01 X15.0 Z-20.0;
G01 X25.0 Z-20.0;
G73 1ST Line:
G03 X35.0 Z-25.0 R5;
U : Specifies Roughing Material on X-Axis (in Radius)
G01 X40.0 Z-25.0; W: Specifies Roughing Material in Z-Axis
G01 X40.0 Z-40.0; R: Number of Passes.
N20 X50.0 Z-40.0; G73 2nd Line:
G70 P10 Q20; U : Specifies Finishing Allowance on X-Axis
W: Specifies Finishing Allowance on Z-Axis
G28 U0 W0; P & Q: Start & End Block Number Respectively
M30;
Use of G96, G97 & G50
While Programming for CNC Turning
(Fanuc)
Meaning of G96, G97 & G50
Significance
Writing Format
When to use
Meaning
G96: Specifies constant cutting speed (m/min)
Grooving
Parting
G97
Threading
Drilling
Facing Cycle (G94)
[BILLET X40.0 Z15.0;
G99 G21 G40;
G28 U0 W0;
G50 S2500;
G96 S200 M03;
M06 T0101;
G00 X41.0 Z1.0;
G94 X-1.0 Z0.0 F0.1;
X15.0 Z-1.0;
Z-2.0;
Z-3.0;
X25.0 Z-4.0;
Z-5.0;
Z-6;
G28 U0 W0;
G97;
M30;
Grooving Cycle (G75)
[BILLET X25.0 Z60.0;
G99 G21 G40 S500 M13;
G28 U0 W0;
G50 S2500;
M06 T0505;
G00 X27.0 Z1.0;
G01 Z-10.0 F0.2;
G75 R1.0;
G75 X20.0 Z-40.0 P2000 Q15000 F0.02;
G28 U0 W0;
M30;
P: Depth of Cut in X-Axis
Q: Distance Between two consecutive groove in Z-axis
R: Retraction after each depth of cut
Z: Total distance in Z-axis for grooving
Threading
Crest
Root
Threading
G41/G42/G40
Importance
G42 (RIGHT)
G41 (LEFT)
Amount of TNRC
Radius of Tool Nose
Imaginary Tool Nose Position
2 6 1
7
5
3 8 4
Tool Types based on Imaginary TNR Position
Tool Types based on Imaginary TNR Position
How to specify in a program
WITHOUT TNRC WITH TNRC
[BILLET X38.0 Z40.0; [BILLET X38.0 Z40.0;
G99 G21 G40 S1000 M13; G99 G21 G40 S1000 M13;
G00 X 38.0 Z2.0; G00 X 38.0 Z2.0;
G71 U1.0 R0.5; G71 U1.0 R0.5;
G71 P10 Q20 U0.5 W0.1 F0.35; G71 P10 Q20 U0.5 W0.1 F0.35;
N10 G00 X10.0; N10 G00 G42 X10.0;
G01 X10.0 Z-10.0 F0.1; G01 X10.0 Z-10.0 F0.1;
G02 X18.0 Z-14.0 R4.0; G02 X18.0 Z-14.0 R4.0;
G01 X18.0 Z-19.0; G01 X18.0 Z-19.0;
G03 X24.0 Z-22.0 R3.0; G03 X24.0 Z-22.0 R3.0;
G01 X24.0 Z-30.0; G01 X24.0 Z-30.0;
N20 G01 X39.0 Z-30.0; N20 G01 G40 X39.0 Z-30.0;
G70 P10 Q20; G70 P10 Q20;
G00 X39.0 Z2.0; G00 X39.0 Z2.0;
G28 U0 W0; G28 U0 W0;
M30; M30;
How to specify in machine
Go to Tool Offset Page
Choose the Offset Number for the given tool
Sl X-offset Z-offset R T
1 ……….. ……….. 0.8 3