Professional Documents
Culture Documents
CAM Lab
(version dated.23.03.2017)
(1) manually or
(2) obtained with the help of a CAM software (NX/ MasterCAM etc)
1. One should learn the syntax/ format of the various G-codes and the input parameters
to be given along with the code. Without knowing the format and arguments/
parameters, one cannot use the codes.
Format
G94 X_ Z_ F_
G90 X_ Z_ R_ F_
G71 U_ R_
G71 P_ Q_ U_ W_;
G170 R_ P_ Q_ X_ Y_ Z_ I_ J_ K_
G171 P_ S_ R_ F_ B_ J_
2. After studying the required part geometry and features, one can write the program.
TOOL PATH is the main thing to be kept in mind while writing a part program. One
should mark the points P1, P2, P3, where the cutter is to move to achieve the given
profile and then use relevant G codes for interpolation and cutting cycles.
3. A CNC Mill Program is defined as a set of instructions given to the machine control to
move the positioning of the machine spindle, changes to the spindle RPM, and changes
to the machines other features (Tool Changes, Coolant System, Chip Control, etc).
Tool movements consist of rapid positioning commands, straight line movement of the
tool at a controlled speed, and movement along an arc.
Question
Write the CNC Part Program to turn the component on CNC Turning Machine
(XLTURN) and write the process sheet for the same. The drawing of the finished
component is provided.
TAPER TURNING
Answer:
Taper Turning
NOTE:
This cycle does a single facing cut (perpendicular to the part axis).
Format
G94 X_ Z_ F_
F = Feed rate
Format of G90
G90 X_ Z_ R_ F_
F = Feed rate
Turning
PROCESS SHEET
[Q2]
Question
Write the CNC Part Program to turn the component on CNC Turning Machine
(XLTURN) and write the process sheet for the same. The drawing of the finished
component is provided.
STEP TURNING
Answer:
Step Turning
[BILLET X 25 Z 70 ;
G21 G98 ;
G28 U0 W0 ;
M06 T03 ;
S1000 M03 ;
G00 X25 Z1 ;
G94 X0 Z-0.5 F50 ;
G90 X24.5 Z-45 ;
X24 ;
X23.5 ;
X23 ;
X22.5 ;
X22 ;
X21.5 ;
X21 ;
X20.5 Z-30;
X20 ;
X19.5 ;
X19 ;
X18.5 ;
X18;
X17.5 Z-15;
X17 ;
X16.5 ;
X16 ;
X15.5 ;
X15 ;
M05 ;
G28 U0 W0 ;
M30 ;
Turning
PROCESS SHEET
Note:
Question
Write the CNC Part Program to turn the component on CNC Turning Machine
(XLTURN) and write the process sheet for the same. The drawing of the finished
component is provided.
MULTIPLE TURNING
Answer:
Multiple Turning
G21 G98;
G28 U0 W0;
M06 T03;
M03 S1000;
N1 G01 X0;
G01 Z0;
G01 Z-15;
G01 Z-40;
G70 P1 Q2 S1500;
M05;
G28 U0 W0;
M30;
Turning
PROCESS SHEET
Billet Size Material Program No. Metric/ Imperial
25 x 75 mm Aluminium 01 Metric
Note:
Format
G71 U(d)_ R_
Ns _ _ _ _ _ _
_____
_______
Ne_ _ _ _
W = Finishing allowance in Z
F = Feed rate
The blocks after the second G71 block define the part contour A to B. Parameter P has
the number of the first block Ns and Q has the last block Ne
Example
N1 G01 X0;
G01 Z0;
G01 Z-15;
G01 Z-40;
The 1 and 2 used in P1 Q2 here correspond to N1 and N2.The code between the lines
N1 and N2 is the tool path which G71 will perform
[Q4]
Question
Write the CNC Part Program to mill the component on CNC Milling Machine (XL
Mill) and write the process sheet for the same. The drawing of the finished
component is provided.
CIRCULAR POCKET
Answer:
Circular Pocketing
G21 G94
G91 G28 Z0
G28 X0 Y0
M06 T01
S1000 M03
G90 G00 X0 Y0 Z5
G01 Z0
G00 Z10
G91 G28 Z0
G28 X0 Y0
M05
M30
Milling
PROCESS SHEET
NOTE:
P Roughing cycle
Q Peck Improvement
X X axis
Y Y axis
Z Depth of Cut
K Radius of circle
J Finishing Feed
[Q5]
Question
Write the CNC Part Program to mill the component on CNC Milling Machine (XL
Mill) and write the process sheet for the same. The drawing of the component is
provided showing the required tool path of the cutter.
CONTOUR MILLING
Answer:
Contour (Milling)
CNC Part Program
G21 G94
G91 G28 Z0
G28 X0 Y0
M06 T1
S1000 M03
G01 Y80
G01 X50
G01 Y20
G01 X30
G00 Z20
M05
G21 G28 Z0
G28 X0 Y0
M05
M30
Milling
PROCESS SHEET
Question
Write the CNC Part Program to mill the component on CNC Milling Machine (XL
Mill) and write the process sheet for the same. The drawing of the finished
component is provided.
RECTANGULAR POCKET
Answer:
Rectangular Pocket
G21 G94
G91 G28 Z0
G28 X0 Y0
M06 T01
M03 S1500
G90
G00 X0 Y0 Z5
G00 Z10
G91 G28 Z0
G28 X0 Y0
MK05
M30
Note
J = Pocket Y length
P = roughing cycle
R = absolute Z R point
X = Pocket corner X
Y = Pocket corner Y
PROCESS SHEET