CNC Lab Manual
CNC Lab Manual
FOUNDATION
COURSE: _________________________________________________
SEMESTER: ________
Approved by:
1
LIST OF EXPERIMENTS:
LIST OF G-CODES 3
LIST OF M-CODES 4
2
LIST OF G-CODES
G04 Dwell
3
LIST OF M-CODES
4
Experiment No: 1 Step Turning-1
Aim: To Write a CNC program for turning the raw material to a Step Turning profile
Apparatus Required:
1. CNC Simulator-CNC Turn
2. Personal Computer
Procedure:
1. Interpretation of given drawing.
2. Start-Personal Computer.
3. Start- All Program-CNC TURN.
4. Enter the program for the desired profile.
5. Check for error.
6. Select the stock size as per the desired profile.
7. Choose the desired tool for turning profile from the tool drop box.
8. Again check the errors for the written program and the selected stock size and the
tool.
9. Thus simulate the program and check whether the desired
profile is obtained.
Diagram:
5
Program:
O0123;
G21;
G28U0.0W0.0;
TO1O1;
G50 S796;
G96 S250 M03;
G0 X102.0 Z20.0 M07;
G71 U2.0 R1.0;
G71 P50 Q60 U0.0 W0.0 F0.2;
N50 G0 X0.0;
G01 Z0.0;
X50.0;
Z-50.0;
X100.0;
Z-100.0;
N60 G0 X102.0;
G01 Z10.0;
G97 S100 M09;
M05;
G28 U0.0 W0.0;
M30;
Result:
Thus the CNC program for turning the raw material to a step turning profile has been
Simulated and observed the tool movement.
6
Experiment No: 2 Step Turning-2
Aim: To Write a CNC program for turning the raw material to a step turning profile.
Apparatus Required:
1. CNC Simulator-CNC Turn
2. Personal Computer
Procedure:
1. Interpretation of given drawing.
2. Start-Personal Computer.
3. Start- All Program-CNC TURN.
4. Enter the program for the desired profile.
5. Check for error.
6. Select the stock size as per the desired profile.
7. Choose the desired tool for turning profile from the tool drop box.
8. Again check the errors for the written program and the selected stock size and
the tool.
9. Thus simulate the program and check whether the desired profile is obtained.
Diagram:
7
Program:
O2356;
G21;
G28 U0.0 W0.0;
T0101;
G50 S1400;
G96 S250 M03;
G0 X62.0 Z2.0 M07;
G71 U2.0 R1.0;
G71 P50 Q60 U0.0 W0.0 F0.2;
N50 G0 X0.0
G01 Z0.0;
X20.0
Z-30.0;
X40.0;
Z-60.0;
X60;
Z-90.0;
N60 G0 X62.0;
G01 Z10.0;
G97 S100 M09;
M05;
G28 U0.0 W0.0;
M30;
Result:
Thus the CNC program for turning the raw material to a step turning profile has been
Simulated and observed the tool movement.
8
Experiment No: 3 Angular, Radius and Chamfer Profile
Aim: To Write a CNC program for turning the raw material to a desired profile forming
angular, radius and chamfer.
Apparatus Required:
1. CNC Simulator-CNC Turn
2. Personal Computer
Procedure:
1. Interpretation of given drawing.
2. Start-Personal Computer.
3. Start- All Program-CNC TURN.
4. Enter the program for the desired profile.
5. Check for error.
6. Select the stock size as per the desired profile.
7. Choose the desired tool for turning profile from the tool drop box.
8. Again check the errors for the written program and the selected stock size and
the tool.
9. Thus simulate the program and check whether the desired profile is obtained.
Diagram:
9
Program:
O0478
G21;
G28 U0.0 W0.0;
G50 S700;
G96 S250 M03;
T0101;
G0 X125.0 Z2.0 M07;
G71 U2.0 R1.0;
G71 P100 Q200 U0.0 W0.0 F0.2;
N100 G0 X0.0;
G00 X0.0;
G01 Z0.0;
X18.0;
X20.0 Z-1.0;
Z-30.0;
X48.0 A130.0
Z-70.0;
X55.0;
G03 X65.0 Z-75.0 R5.0;
G01 Z-125.0;
G02 X85.0 Z-135.0 R10.0;
G01 X116.0;
G01 X120.0 Z-137.0;
N200 G0 X125.0;
G01 Z10.0;
G97 S100 M09;
M05;
G28 U0.0 W0.0;
M30;
Result:
Thus the CNC program for turning the raw material to a desired profile forming angular,
radius and chamfer has been simulated and observed the tool movement.
10
Experiment No: 4 Angular Radius
Aim: To Write a CNC program for turning the raw material to a desired profile forming
radius.
Apparatus Required:
1. CNC Simulator-CNC Turn
2. Personal Computer
Procedure:
1. Interpretation of given drawing.
2. Start-Personal Computer.
3. Start- All Program-CNC TURN.
4. Enter the program for the desired profile.
5. Check for error.
6. Select the stock size as per the desired profile.
7. Choose the desired tool for turning profile from the tool drop box.
8. Again check the errors for the written program and the selected stock size and
the tool.
9. Thus simulate the program and check whether the desired profile is obtained.
Diagram:
11
Program:
O0788;
G21;
G28 U0.0 W0.0;
T0101;
G50 S1980;
G96 S250 M03;
G0 X82.0 Z2.0 M07;
G71 U2.0 R1.0;
G71 P50 Q60 U0.0 W0.0 F0.2;
N50 G0 X0.0;
G01 Z0.0;
G03 X50.0Z-25.0 R25.0;
G01 Z-50.0;
X80.0 Z-75.0;
N60 X82.0;
G0 Z10.0;
G97 S100 M09
M05;
G28 U0.0 W0.0
M30;
Result:
Thus the CNC program for turning the raw material to a desired profile forming
radius has been simulated and observed the tool movement.
12
Experiment No: 5 Radius And Chamfer
Aim: To Write a CNC program for turning the raw material to a desired profile forming
radius and chamfer.
Apparatus Required:
1. CNC Simulator-CNC Turn
2. Personal Computer
Procedure:
1. Interpretation of given drawing.
2. Start-Personal Computer.
3. Start- All Program-CNC TURN.
4. Enter the program for the desired profile.
5. Check for error.
6. Select the stock size as per the desired profile.
7. Choose the desired tool for turning profile from the tool drop box.
8. Again check the errors for the written program and the selected stock size and
the tool.
9. Thus simulate the program and check whether the desired profile is obtained
Diagram:
13
Program:
O7896;
G21;
G28 U0.0 W0.0;
T0101;
G50 S1400;
G96 S250 M03;
G0 X82.0 Z2.0 M07;
G71 U2.0 R1.0;
G71 P50 Q60 U0.0 W0.0 F0.2;
N50 G0 X0.0;
G01 Z0.0;
X18.0;
Z-1.0;
X20.0;
Z-30.0;
G01 X24.0;
G03 X40.0 Z-38.0 R8.0;
G01 Z-50.0;
G02 X60.0 Z-60.0 R5.0;
G01 X76.0;
Z-64.0;
Z-90.0;
N60 G0 X82.0;
G01 Z10.0;
G97 S100 M09;
M05;
G28 U0.0 W0.0;
M30;
Result:
Thus the CNC program for turning the raw material to a desired profile forming radius and
chamfer has been simulated and observed the tool movement.
14
Experiment No: 6 Radius and Angular Profile
Aim: To Write a CNC program for turning the raw material to a desired profile
forming Radius and angular profile.
Apparatus Required:
1. CNC Simulator-CNC Turn
2. Personal Computer
Procedure:
1. Interpretation of given drawing.
2. Start-Personal Computer.
3. Start- All Program-CNC TURN.
4. Enter the program for the desired profile.
5. Check for error.
6. Select the stock size as per the desired profile.
7. Choose the desired tool for turning profile from the tool drop box.
8. Again check the errors for the written program and the selected stock size and
the tool.
9. Thus simulate the program and check whether the desired profile is obtained.
Diagram:
15
Program:
O0789;
G21;
T0;
G28 U0.0 W0.0;
G92 S1400;
G96 S250 M03;
T0101;
G0 X62.0 Z2.0 M07;
G71 U2.0 R1.0;
G71 P100 Q200 U0.0 W0.0 F0.2;
N100 G0 X0.0;
G01 Z0.0;
X10.0 Z-10.0;
G03 X20.0 Z-15.0 R5.0;
G01 X20.0 Z-35.0;
G01 X40.0 Z-45.0;
Z-65.0;
G02 X60.0 Z-75.0 R10.0;
G01 Z-95.0;
N200 GO X62.0;
G01 Z10.0;
G97 S100 M09;
T0 M05;
G28 U0.0 W0.0;
M30;
Result:
Thus the CNC program for turning the raw material to a desired profile forming radius and
angular profile has been simulated and observed the tool movement.
16
Experiment No: 7 CNC MILLING EXERCISE NO 1
Aim: To Write a CNC program for milling the raw material to a desired profile
as given in the diagram.
Apparatus Required:
1. CNC Simulator- MasterCam
2. Personal Computer
Procedure:
1. Interpretation of given drawing.
2. Start-Personal Computer.
3. Start- All Program- MasterCAM.
4. Enter the program for the desired profile.
5. Check for error.
6. Select the stock size as per the desired profile.
7. Choose the desired tool for milling profile from the tool drop box.
8. Again check the errors for the written program and the selected stock size and
the tool.
9. Thus simulate the program and check whether the desired profile is obtained.
Diagram:
17
Program:
INCRIMENTAL SYSTEM
ABSOLUTE SYSTEM WITH CRC USING Φ10 ENDMILL
USING Φ10 ENDMILL
O0005;
O0001;
G90 G00 G55 X0 Y-20 S1000 M03;
G90 G00 G55 X0 Y-20 S1000 M03; MO6 T01;
M06 T01; G43 Z0 H1 M08;
G43 Z0 H1 M08; M98 P100 L10;
M98 P100 L10; G40 G90;
G90 G00 Z100; G00 Z100;
G91 G28 X0 Y0 Z0; G91 G28 X0 Y0 Z0;
M30; M30;
SUB PROGRAM SUB PROGRAM
O100; O100;
G91; G91;
G01 Z-2 F100; G01 Z-2 F100;
G01 X0 Y20; G01 G42 X0 Y25 D1;
G01 X50 Y0; G01 X45 Y0;
G01 X0 Y90; G01 X0 Y80;
G01 X-100 Y0; G01 X-90 Y0;
G01 X0 Y-90; G01 X0 Y-80;
G01 X50 Y0; G01 X55 Y0;
G00 X0 Y-20; G40 G00 X-10 Y-25;
M99; M99;
Result:
Thus, the CNC program for milling the raw material to a desired profile has been simulated and
observed the tool movement.
18
Experiment No: 8 CNC MILLING EXERCISE NO 2
Aim: To Write a CNC program for milling the raw material to a desired profile
as given in the diagram.
Apparatus Required:
1. CNC Simulator- MasterCam
2. Personal Computer
Procedure:
1. Interpretation of given drawing.
2. Start-Personal Computer.
3. Start- All Program- MasterCAM.
4. Enter the program for the desired profile.
5. Check for error.
6. Select the stock size as per the desired profile.
7. Choose the desired tool for milling profile from the tool drop box.
8. Again check the errors for the written program and the selected stock size and
the tool.
9. Thus simulate the program and check whether the desired profile is obtained.
Diagram:
19
Program:
ABSOLUTE SYSTEM INCRIMENTAL SYSTEM
CUTTER = ENGRAVING
O0003; O0004;
G90 G00 G55 X-10 Y0 S1000 M03; G90 G00 G55 X-10 Y0 S1000 M03;
M30; M30;
Result:
Thus, the CNC program for milling the raw material to a desired profile has been simulated and
observed the tool movement.
20
Experiment No: 9 CNC MILLING EXERCISE NO 3
Aim: To Write a CNC program for milling the raw material to a desired profile
as given in the diagram.
Apparatus Required:
1. CNC Simulator- MasterCam
2. Personal Computer
Procedure:
1. Interpretation of given drawing.
2. Start-Personal Computer.
3. Start- All Program- MasterCAM.
4. Enter the program for the desired profile.
5. Check for error.
6. Select the stock size as per the desired profile.
7. Choose the desired tool for milling profile from the tool drop box.
8. Again check the errors for the written program and the selected stock size and
the tool.
9. Thus simulate the program and check whether the desired profile is obtained.
Diagram:
21
Program:
O0005; O0007;
G90 G00 G55 X120 Y0 S1000 M03; G90 G00 G55 X100 Y-10 S1000 M03;
M30; M30;
G91 G28 X0 Y0 Z0
M30
22
INCREMENTAL CO-ORDINATE SYSTEM
FROM DATUM C
O0008;
M06 T01;
G01 X0 Y100;
G01 X0 Y-100;
M30;
Result:
Thus, the CNC program for milling the raw material to a desired profile has been simulated and
observed the tool movement.
23
Experiment No: 10 CNC MILLING EXERCISE NO 4
Aim: To Write a CNC program for milling the raw material to a desired profile
as given in the diagram.
Apparatus Required:
1. CNC Simulator- MasterCam
2. Personal Computer
Procedure:
1. Interpretation of given drawing.
2. Start-Personal Computer.
3. Start- All Program- MasterCAM.
4. Enter the program for the desired profile.
5. Check for error.
6. Select the stock size as per the desired profile.
7. Choose the desired tool for milling profile from the tool drop box.
8. Again check the errors for the written program and the selected stock size and
the tool.
9. Thus simulate the program and check whether the desired profile is obtained.
Diagram:
24
Program:
DEEP HOLE DRILLING
SPOTTING
O0020;
O0015;
G90 G00 G55X-30 Y-40 S1000 M03;
G90 G00 G55X-30 Y-40 S1000 M03;
M06 T02;
M06 T01;
G43 Z50 H1 M08;
G43 Z50 H1 M08;
G98 G83 Z-20 R2 Q2 F40;
G98 G81 Z-5 R2 F40;
X-30 Y30;
X-30 Y30;
X40 Y30;
X40 Y30;
X40 Y-40;
X40 Y-40;
G80 G00 Z100;
G80 G00 Z100;
G91 G28 X0 Y0 Z0;
G91 G28 X0 Y0 Z0;
M30;
M30;
Result:
Thus, the CNC program for milling the raw material to a desired profile has been simulated and
observed the tool movement.
25