You are on page 1of 40

15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

EXPERIMENT No 1.: CNC Turning


1.1 Objective 1.6 Observation
1.2 Apparatus Required 1.7 Results
1.3 Pre-Requisite 1.8 Pre-Requisite Question
1.4 Introduction 1.9 Post-Requisite
1.5 Procedure 1.10 Exercise

1.1 Objectives:

To illustrate the procedure to write a CNC program for turning, facing, step turning, fillet,
chamfering, canned cycle, mirroring, threading, grooving, internal turning and to produce the
components also to learn the available simulation software.

1.2 Apparatus Required:


Software Used: CADEM
SeenC-Turn

1.3 Pre-Requisite:
Basics on COMPUTER INTEGRATED MANUFACURING SUBJECT.

1.4 Introduction:
Computer Integrated Manufacturing (CIM) is the technology for integration of all the
operational and information processing functions in a manufacturing enterprise ranging from
order receipt from customers to design, process planning, material requirement planning,
manufacturing resources planning, purchasing, production planning and control, marketing
and sales etc. The integration of the total manufacturing enterprise is accomplished through
the use of computer and data communication technologies coupled with various managerial
philosophies to improve the organizational and personal efficiencies. Here we will be
focused much on different types of CNC operations.

1
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

1.5 Procedure:
1. Clearly understand the given geometry and make necessary sketches.
2. Then write the programme in the computer according to the required geometry.
3. Check for syntax errors.
4. Then specify the billet dimensions and choose the required tool
5. Complete the simulation and make sure that required geometry is obtained on the computer
screen.

1.6 Observations:
Depends on the dimensions and operations given in the geometry

1.7 Results:
The given geometry is executed in simulation software and check the dimensions are as per the
given component.

1.8 Pre – Experimentation Questions:


1. What do you mean by CIM?
2. What is Automation?
3. What is Computerization?
4. What is the difference between Automation and computerization?
5. Tell the different levels of automation in the organization.
6. What do you mean by CNC Part Programming?
7. What is turning and milling?
8. What do you mean by facing?

1.9 Pre – Experimentation Questions:


1. Tell the difference between turning and milling.
2. Give some reasons for automation in the industry.
3. What is partial automation?
4. What is difference between CIM and CAM?
5. Tell the different word addressing formats used in CNC part programming
6. What is process Automation?
7. What is System Automation?

2
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

1.10 Exercise
1. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(TURNING)

BEFORE MACHINING AFTER MACHINING

O 50
O 50
50 48

O0001
G21 G98
G28 U0 W0
M06 T0101
M03 S1200
G00 X50 Z1
G00 X50 Z0
G01 X49 Z0 F30
G01 X49 Z-50
G01 X50 Z-50
G01 X50 Z0
G01 X48 Z0
G01 X48 Z-50
G01 X50 Z-50
G01 X50 Z0
G28 U0 W0
M05
M30

3
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

2. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(FACING)

BEFORE MACHINING AFTER MACHINING

O 50

O 48
50 50

O0002
G21 G98
G28 U0 W0
M06 T0101
M03 S1200
G00 X50 Z1
G00 X50 Z0
G01 X50 Z-1 F30
G01 X0 Z-1
G01 X0 Z0
G01 X50 Z0
G01 X50 Z-2
G01 X0 Z-2
G01 X0 Z0
G01 X50 Z0
G28 U0 W0
M05
M30

4
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

3. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(STEP TURNING)
BEFORE MACHINING AFTER MACHINING

O 50

O 32
O 18
80 O 50 30 20 30

5
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

4. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(FILLET)

BEFORE MACHINING AFTER MACHINING


5
R1

O 20
O 50
80
15

CIRCULAR
INTERPOLATION
ANTICLOCKWISE

O0004 G03 X50 Z-12 R15 F30


G21 G98 G00 X50 Z0
G28 U0 W0 G00 X20 Z0
M06 T0101 G03 X50 Z-15 R15 F30
M03 S1200 G00 X50 Z0
G00 X 50 Z1 G21 U0W0
G00 X50 Z0 M05
G00 X44 Z0 M30
G03 X50 Z-3 R15 F30
G00 X50 Z0
G00 X38 Z0
G03 X50 Z-6 R15 F30
G00 X50 Z0
G00 X32 Z0
G03 X50 Z-9 R15 F30
G00 X50 Z0
G00 X26 Z0

6
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

5. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(FILLET)

BEFORE MACHINING AFTER MACHINING


R 15

O 50

O 20
80
15
CIRCULAR
INTERPOLATION
CLOCKWISE
All Dimensions are in mm

O0005 G00 X26 Z0


G21 G98 G02 X50 Z-12 R15 F30
G28 U0 W0 G00 X50 Z0
M06 T0101 G00 X20 Z0
M03 S1200 G02 X50 Z-15 R15 F30
G00 X 50 Z1 G00 X50 Z0
G00 X50 Z0 G21 U0W0
G00 X44 Z0 M05
G02 X50 Z-3 R15 F30 M30
G00 X50 Z0
G00 X38 Z0
G02 X50 Z-6 R15 F30
G00 X50 Z0
G00 X32 Z0
G02 X50 Z-9 R15 F30
G00 X50 Z0

7
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

6. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(CHAMFER)

BEFORE MACHINING AFTER MACHINING

O 20
O 50
O 50
50 15
All
Dimensions are in mm

O0006
G21 G98
G28 U0 W0
M06 T0101
M03 S1200
G00 X 50 Z1
G00 X50 Z0
G00 X44 Z0
G01 X50 Z-3 R15 F30
G00 X50 Z0
G00 X38 Z0
G01 X50 Z-6 R15 F30
G00 X50 Z0
G00 X32 Z0
G01 X50 Z-9 R15 F30
G00 X50 Z0
G00 X26 Z0
G01 X50 Z-12 R15 F30
G00 X50 Z0
G00 X20 Z0
G01 X50 Z-15 R15 F30
G00 X50 Z0
G28 U0W0
M05
M30

8
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

7. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(CHAMFER)

BEFORE MACHINING AFTER MACHINING

O 20
O 50
O 50 35 15
50

O0007
G21 G98
G28 U0 W0
M06 T0101
M03 S1200
G00 X 50 Z1
G00 X50 Z0
G01 X44 Z-15 R15 F30
G00 X50 Z-15
G00 X50 Z0
G01 X38 Z-15 R15 F30
G00 X50 Z-15
G00 X50 Z0
G01 X32 Z-15 R15 F30
G00 X50 Z-15
G00 X50 Z0
G01 X26 Z-15 R15 F30
G00 X50 Z-15
G00 X50 Z0
G01 X20 Z-15 R15 F30
G00 X50 Z-15
G21 U0W0
M05
M30

9
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

8. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(CANNED CYCLE)

O0008 N06 G01 X120 Z-110


G21 G98 N07 G02 X130 Z-120 R10 F30
G28 U0 W0 N08 G01 X130 Z-150
M06 T0101 N09 G01 X160 Z-180
M03 S1200 N10 X180 Z-180
G00 X180 Z1 G28 U0W0
G00 X180 Z0 M05
G71 U0.5 R1 M30
G71 P01 Q10 U0.5 W0.5 F30
N01 G00 X90 Z0
N02 G01 X90 Z-60
N03 G03 X110 Z-70 R10 F30
N04 G01 X110 Z-90
N05 G01 X120 Z-90

10
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

9. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(CANNED CYCLE)

N07 G01 X110 Z-90


O0009
N08 G01 X120 Z-90
G21 G98
N09 G01 X120 Z-110
G28 U0W0
N10 G02 X130 Z-120 R10 F30
M06 T0101
N11 G01 X130 Z-150
M03 S1200
N12 G01 X160 Z-180
G00 X180 Z1
N13 G01 X180 Z-180
G00 X180 Z0
G00 X180 Z0
G71 U0.5 R1
G00 U0W0
G71 P01 Q13 U0.5 W0.5 F30
M05
N01 G01 X90 Z0
M30
N02 G01 X90 Z-20
N03 G01 X70 Z-40
N04 G01 X90 Z-40
N05 G01 X90 Z-60
N06 G03 X110 Z-70 R10 F30

11
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

10. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE
GIVEN (USE OF SUB PROGRAM IN TURNING-MIRRORING)

O 20
O 50

O 40
10 10 10 10 10 10 10 10 10 10 10 10

All Dimensions are in mm

O0010 G00 X40 W-20


G21 G98 G90 X35 W-10 R2.5 F30
G28 U0 W0 X30 R5
M06 T0101 X25 R7.5
M06 S1200 X20 R10
G00 X50 Z1 G00 X40 W-10
G00 X50 Z0 G90 X35 W-10 F30
G90 X45 Z-120 F30 X30
X40 X25
M98 P0003 0011 X20
G28 U0 W0 G00 X40 W-10
M05 M99
M30
O0011
G00 X40 W0
G90 X40 W-10 R-2.5 F30
R-5
R-7.5
R-10

12
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

11. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE
GIVEN
O 50 (USE OF SUB PROGRAM IN TURNING-MIRRORING)

O 30
20 10 10 10 10 10 10

All Dimensions are in mm

O0011
G21 G98 G00 X50 W-10
G28 U0 W0 G90 X45 W-10 R2.5 F30
M06 T0101 X40 R5
M03 S1200 X35 R7.5
G00 X50 Z1 X30 R10
G00 X50 Z0 G00 X50 W-10
M98 P0003 0013 M99
G00 X50 Z-60
G90 X45 Z-80
X40
X35
X30
G28 U0 W0
M05
M30
O0013
G00 X50 W0
G90 X50 W-10 R-2.5 F30
R-5
R-7
R-10

13
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

12. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE
GIVEN (THREADING)

O0012
G21 G98
G28 U0 W0 G76 P044560 Q500 R0.5
M06 T0101 G76 X36.85 Z-40 P1575 Q500 F2.5
M03 S1200 G28 U0 W0
G00 X80 Z1 M05
G00 X80 Z0 M30
G71 U0.5 R1
G71 P1 Q5 U0.5 W0.5 F30
N01 G01 X40 Z0
N02 G01 X40 Z-60
N03 G03 X60 Z-80 R20 F30
N04 G01 X60 Z-120
N05 G01 X80 Z-140
G28 U0 W0
M06 T0202
M03 S800
G00 X40 Z0

14
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

13. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE
GIVEN (GROOVING)

O0013
G21 G98
G28 U0 W0
M06 T0101
M03 S1200
G00 X80 Z1
G00 X80 Z0
G71 U0.5 R1
G71 P1 Q03 U0.5 W0.5 F30
N01 G01 X60 Z0
N02 G01 X60 Z-60
N03 G01 X80 Z-80
G28 U0W0
M06 T0202
M03 S1000
G00 X60 Z-35
G75 R1
G75 X40 Z-23 P500 Q500 F30
G28 U0 W0
M05
M30

15
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

14. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE
GIVEN (THREADING & GROOVING)

O0014
G21 G98
G28 U0 W0
M06 T0101
M03 S1200
G00 X40 Z1
G00 X40 Z0
G71 U0.5 R1
G71 P1 Q03 U0.5 W0.5 F30
N01 G01 X20 Z0
N02 G01 X20 Z-51
N03 G01 X40 Z-61
G28 U0 W0
M06 T0202
M03 S1000
G00 X20 Z-31
G75 R1
G75 X8 Z-28 P500 Q500 F30
G28 U0W0
M06 T0303
M03 S1000
G00 X20 Z0
G76 P044560 Q500 R0.5
G76 X18.11 Z-20 P945 Q500 F1.5
G28 U0W0
M05
M30

16
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

15. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE
GIVEN (INTERNAL TURNING USING CANNED CYCLE)
O 100

O 20

O 60
20 20 40
All Dimensions are in mm

O0015
G21 G98
G28 U0W0
M06 T0101
M03 S1200
G00 X0 Z1
G00 X0 Z0
G74 R1
G74 X0 Z-80 Q500 F30
G28 U0 W0
M06 T0202
M03 S1200
G00 X60 Z0
G71 U0.5 R1
G71 P01 Q05 U0.5 W0.5 F30
N01 G01 X60 Z0
N02 G01 X60 Z-40
N03 G01 X20 Z-40
N04 G01 X20 Z-60
N05 G01 X20 Z1
G28 U0 W0
M05
M30

17
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

16. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE
GIVEN (INTERNAL TURNING USING CANNED CYCLE)

R1 R1
0 0
O 100

O 20

O 80
O 60
O 40

20 20 30

All Dimensions are in mm

O0016
G21 G98
G28 U0W0
M06 T0101
M03 S1200
G00 X0 Z1
G00 X0 Z0
G74 R1
G74 X0 Z-80 Q500 F30
G28 U0W0
M06 T0202
M03 S1200
G00 X60 Z0
G71 U0.5 R1
G71 P01 Q07 U0.5 W0.5 F30
N01 G01 X80 Z0
N02 G02 X60 Z-10 R10 F30
N03 G01 X60 Z-30
N04 G03 X40 Z-40 R10 F30
N05 G01 X20 Z-40
N06 G01 X20 Z-60
N07 G01 X20 Z1
G28 U0 W0
M05
M30

18
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

Canned cycles
A canned cycle simplifies a program by using a few blocks containing G-codes functions to
specify the machining operations usually specified in several blocks.
Turning Cycle - G71 Axial Drilling Cycle - G74 Grooving Cycle - G75
Format Format Format
G71 U _ R _ G74R _ G75R _
G71 P _ Q_ U_W_ F_ G74X _ Z _P_Q _R_F_ G75X _ Z _ P_ Q _ R_ F_
U = Depth of cut R= Retract amount R= Retract amount
R= Retract amount X = Diameter X = Diameter
P = Number of the first block Z = Drill Length Z = Length of groove
of the shape P = Movement amount in X P= Movement amount in X
Q = Number of the last last direction direction
block of the shape Q = Depth of cut in Z direction Q = Depth of cut in Z
U= Finishing allowance in X R= Relief Amount of the tool direction
W =Finishing allowance in Z at the cutting bottom R = Relief Amount of the tool
F= Feed rate F= Feed rate at the cutting bottom
F = Feed rate
Threading Cycle - G76
Format
G76 P 12 34 56 Q_ R_
G76 X_ Z_ P_ Q_ R_ F_
P= Threading nomenclature
12 = Number of finishing
passes
34 = Chamfer or pull out
angle
56 = Tool Angle
R= Finishing Allowance
X = Core Diameter
Z = Thread Length
P= Thread Height
Q = Depth of cut in Z
direction in microns
F = Pitch

19
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

CODES USED IN CNC TURNING:


G-code Function

G00 Positioning rapid traverse

G01 Linear interpolation (feed)

G02 Circular interpolation CW

G03 Circular interpolation CCW

G04 Dwell

G20 Inch unit

G21 Metric unit

G28 Automatic zero return

G30 2nd reference point return

G32 / G33 Thread cutting (single motion)

G40 Tool nose radius compensation cancel

G41 Tool nose radius compensation left

G42 Tool nose radius compensation right

G50 / G92 Local co-ordinate system setting, max. spindle speed setting

G70 Finishing cycle

G71 Stock removal in turning

G72 Stock removal in facing

G73 Pattern repeating

G74 Peck drilling on Z axis / Face grooving

G75 Peck drilling on X axis / Int-Ext grooving

G76 Multiple threading cycle

G94 / G98 Feed per minute

G95 / G99 Feed per revolution

G96 Constant surface speed control

G97 Constant surface speed control cancel

M-codes Function

M00 Optional program stop automatic

M01 Optional program stop request

M02 Program end

M03 Spindle ON clock wise (CW)

M04 Spindle ON counter clock wise (CCW)

20
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

M05 Spindle stop

M06 Tool change

M07 Mist coolant ON (coolant 1 ON)

M08 Flood coolant ON (coolant 2 ON)

M09 Coolant OFF

M30 End of program, Reset to start

M70 X axis Mirror ON

M71 Y axis Mirror ON

M80 X axis Mirror OFF

M81 Y axis Mirror OFF

M98 Sub program call

M99 Sub program end

21
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

EXPERIMENT No 2.: CNC Milling


2.1 Objective 2.6 Results
2.2 Apparatus Required 2.7 Discussions
2.3 Pre-Requisite 2.8 Pre-Requisite Question
2.4 Introduction 2.9 Post-Requisite
2.5 Procedure 2.10 Exercise

2.1 Objectives:

To illustrate the procedure to write a CNC program for square slotting, counter slotting, slab
milling, circular slotting, circular pocketing, rectangular pocketing to produce the
components also to learn the available simulation software.

2.2 Apparatus Required:


Software Used: CADEM
SeenC-Mill

2.3 Pre-Requisite:
Basics on COMPUTER INTEGRATED MANUFACURING SUBJECT.

2.4 Introduction:
Computer Integrated Manufacturing (CIM) is the technology for integration of all the
operational and information processing functions in a manufacturing enterprise ranging from
order receipt from customers to design, process planning, material requirement planning,
manufacturing resources planning, purchasing, production planning and control, marketing
and sales etc. The integration of the total manufacturing enterprise is accomplished through
the use of computer and data communication technologies coupled with various managerial
philosophies to improve the organizational and personal efficiencies. Here we will be
focused much on different types of CNC milling operations.

22
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

2.5 Procedure:
1. Clearly understand the given geometry and make necessary sketches.
2. Then write the programme in the computer according to the required geometry.
3. Check for syntax errors.
4. Then specify the billet dimensions and choose the required tool
5. Complete the simulation and make sure that required geometry is obtained on the
computer screen.
2.6 Observations:
Whether Given geometry is converted to the required dimensions or not.

2.7 Results:
The given geometry is executed in simulation software and check the dimensions are
as per the given component.

2.8 Post – Experimentation Questions:


1. What do you mean by CIM?
2. What is Automation?
3. What is Computerization?
4. What is the difference between Automation and computerization?
5. Tell the different levels of automation in the organization.
6. What do you mean by CNC Part Programming?
7. What is turning and milling?
8. What do you mean by facing?

2.9 Post – Experimentation Questions:


1. Tell the difference between turning and milling.
2. Give some reasons for automation in the industry.
3. What is partial automation?
4. What is difference between CIM and CAM?
5. Tell the different word addressing formats used in CNC part programming
6. What is process Automation?
7. What is System Automation?

23
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

2.10 Exercise

1. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(SQUARE SLOTTING)-Without Sub Programing
10

5
q 100

10

10

All Dimensions are in mm


O0017
G17 G21 G94
G91 G28 X0 Y0 Z0
G90 G00 X0 Y0 Z0
M06 T0101
M03 S1200
G00 X10 Y10 Z0
G01 Z-1 F30
G01 X10 Y90
G01 X90 Y90
G01 X90 Y10
G01 X10 Y10
G01 Z-2 F30
G01 X10 Y90
G01 X90 Y90
G01 X90 Y10

24
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

G01 X10 Y10


G01 Z-3 F30
G01 X10 Y90
G01 X90 Y90
G01 X90 Y10
G01 X10 Y10
G01 Z-4 F30
G01 X10 Y90
G01 X90 Y90
G01 X90 Y10
G01 X10 Y10
G01 Z-5 F30
G01 X10 Y90
G01 X90 Y90
G01 X90 Y10
G01 X10 Y10
G00 Z2
G91 G28 X0 Y0 Z0
M05
M30

25
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

2. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(SQUARE SLOTTING)

10

5
q 100

10
10

All Dimensions are in mm

O0018 G91 G01 Z-1


G17 G21 G94 G90 X10 Y90
G90 G00 X0 Y0 Z0 G01 X90 Y90
M06 T0101 G01 X90 Y10
M03 S1200 G01 X10 Y10
G00 Z0 M99
M98 P0005 0118
G01 Z0
G91 G28 X0 Y0 Z0
M05
M30
O0118
G90 G01 X10 Y10 F30

26
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

3. WRITE THE CNC PART PROGRAM FOR THE FOLLOWING PROFILE GIVEN
(CONTOUR SLOTTING)

O0019
G17 G21 G94
G91 G28 X0 Y0 Z0
M06 T0101
M03 S1200
G90 G00 X0 Y0 Z0
M98 P0003 0119
G01 Z0
G91 G28 X0 Y0 Z0
M05
M30
O0119
G90 G01 X10 Y30 F30
G91 G01 Z-1
G90 G01 X10 Y70 F30
G01 X30 Y90
G01 X70 Y90
G02 X90 Y70 R20 F30
G01 X90 Y10
G01 X30 Y10
G03 X10 Y30 R20 F30
M99

27
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

4. Write the CNC Milling Part Program for the following Profiles Given
(CONTOUR SLOTTING 2)

O0020
G17 G21 G94
G91 G28 X0 Y0 Z0
M06 T0101
M03 S1200
G90 G00 X0 Y0 Z0
M98 P0003 0120
G01 Z0
G91 G28 X0 Y0 Z0
M05
M30
O0120
G90 G01 X24 Y35 F30
G91 G01 Z-1
G90 G01 X24 Y35 F30
G01 X50 Y20
G01 X76 Y35
G01 X76 Y65
G01 X50 Y80
G01 X24 Y65
G01 X24 Y35
M99

28
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

5. Write the CNC Milling Part Program for the following Profiles Given
(SLAB MILLING)

O0021 G01 X90 Y90


G17 G21 G94 G01 X90 Y10
M06 T0101 G01 X10 Y10
M03 S1200 G01 X12 Y12
G90 G00 X0 Y0 Z0 G01 X12 Y88
G00 Z2 G01 X88 Y88
G01 X0 Y0 Z0 F30 G01 X88 Y12
M98 P005 0121 G01 X12 Y12
G01 Z5 G01 X13 Y13
G28 X0 Y0 Z0 G01 X13 Y87
M05 G01 X87 Y87
M30 G01 X87 Y13
O0121 G01 X13 Y13
G91 G01 Z-1 F30 M99
G90 G01 X0 Y100
G01 X100 Y100
G01 X100 Y0
G01 X0 Y0
G01 X5 Y5
G01 X5 Y95
G01 X95 Y95
G01 X95 Y5
G01 X5 Y5
G01 X10 Y10
G01 X10 Y90

29
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

6. Write the CNC Milling Part Program for the following Profiles Given
(CIRCULAR SLOTTING)

O0022
G17 G21 G94
G91 G28 X0 Y0 Z0
M06 T0101
M03 S1200
G90 G00 X0 Y0 Z0
M98 P0005 0122
G01 Z0
G91 G28 X0 Y0 Z0
M05
M30
O0122
G90 G01 X-40 Y0 F30
G91 G01 Z-1
G90 G02 X40 Y0 R40
F30
G02 X-40 Y0 R40 F30
M99

30
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

7. Write the CNC Milling Part Program for the following Profiles Given
(CIRCULAR POCKETING)

O0023
G17 G21 G94
G91 G28 X0 Y0 Z0
M06 T0101
M03 S1200
G90 G00 X0 Y0 Z0
G00 Z2
G01 X0 Y0 Z0 F30
M98 P0005 0123
G01 Z1
G91 G28 X0 Y0 Z0
M05
M30
O0123
G90 G01 X-32 Y0 F30
G91 G01 Z-1
G90 G02 X32 Y0 R32 F30
G02 X-32 Y0 R32 F30
G90 G01 X-23 Y0 F30
G02 X23 Y0 R23 F30
G02 X-23 Y0 R23 F30
G90 G01 X-14 Y0 R14 F30
G02 X14 Y0 R14 F30
G02 X-14 Y0 R14 F30
G90 G01 X-5 Y0 R5 F30
G02 X5 Y0 R5 F30
G02 X-5 Y0 R5 F30
M99

31
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

8. Write the CNC Milling Part Program for the following Profiles Given
(SQUARE POCKETING)

5
10

q 100
q 57

All dimensions are in mm

32
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

9. Write the CNC Milling Part Program for the following Profiles Given
(SQUARE POCKETING G41)

5
10

q 100
q 57

All dimensions are in mm

33
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

10. Write the CNC Milling Part Program for the following Profiles Given
(SQUARE POCKETING G42)

5
10

q 100
q 57

All dimensions are in mm

34
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

11. Write the CNC Milling Part Program for the following Profiles Given
(RECTANGULAR POCKETING)

5
q 100
61

73

All dimensions are in mm

O0027 G01 X-5 Y4.1781 G01 X20 Y16.7123 G01 X31.5 Y0


G17 G94 G21 G01 X-5 Y-4.1781 G01 X-20 Y16.7123 G01 X31.5 Y26.3214
M06 T0101 G01 X5 Y-4.1781 G01 X-20 Y-16.7123 G01 X-31.5 Y26.3214
M03 S1200 G01 X5 Y0 G01 X20 Y-16.7123 G01 X-31.5 Y-26.3214
G90 G00 X0 Y0 Z0 G01 X10 Y0 G01 X20 Y0 G01 X31.5 Y-26.3214
G00 Z2 G01 X10 Y8.3561 G01 X25 Y0 G01 X31.5 Y0
G01 X0 Y0 Z0 F30 G01 X-10 Y8.3561 G01 X25 Y20.8904 M99
M98 P0005 0127 G01 X-10 Y-8.3561 G01 X-25 Y20.8904
G01 Z1 G01 X10 Y-8.3561 G01 X-25 Y-20.8904
G91 G28 X0 Y0 Z0 G01 X10 Y0 G01 X25 Y-20.8904
M05 G01 X15 Y0 G01 X25 Y0
M30 G01 X15 Y12.5342 G01 X30 Y0
O0127 G01 X-15 Y12.5342 G01 X30 Y25.0685
G91 G01 Z-1 F30 G01 X-15 Y-12.5342 G01 X-30 Y25.0685
G90 G01 X5 Y0 G01 X15 Y-12.5342 G01 X-30 Y-25.0685
G01 X5 Y4.1781 G01 X15 Y0 G01 X30 Y-25.0685
G01 X20 Y0 G01 X30 Y0

35
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

12. Write the CNC Milling Part Program for the following Profiles Given
(RECTANGULAR POCKETING G41)

5
q 100
61

73

All dimensions are in mm

G01 X25 Y0
O0028 G01 X5 Y0 G01 X25 Y20.8904
G17 G94 G21 G01 X10 Y0 G01 X-25 Y20.8904
M06 T0101 G01 X10 Y8.3561 G01 X-25 Y-20.8904
M03 S1200 G01 X-10 Y8.3561 G01 X25 Y-20.8904
G90 G00 X0 Y0 Z0 G01 X-10 Y-8.3561 G01 X25 Y0
G00 Z2 G01 X10 Y-8.3561 G01 X30 Y0
G01 X0 Y0 Z0 F30 G01 X10 Y0 G01 X30 Y25.0685
M98 P0005 0128 G01 X15 Y0 G01 X-30 Y25.0685
G01 Z1 G01 X15 Y12.5342 G01 X-30 Y-25.0685
G91 G28 X0 Y0 Z0 G01 X-15 Y12.5342 G01 X30 Y-25.0685
M05M30 G01 X-15 Y-12.5342 G01 X30 Y0
O0128 G01 X15 Y-12.5342 G41
G91 G01 Z-1 F30 G01 X15 Y0 G01 X36.5 Y0
G90 G01 X5 Y0 G01 X20 Y0 G01 X36.5 Y30.5
G01 X5 Y4.1781 G01 X20 Y16.7123 G01 X-36.5 Y30.5
G01 X-5 Y4.1781 G01 X-20 Y16.7123 G01 X-36.5 Y-30.5
G01 X-5 Y-4.1781 G01 X-20 Y-16.7123 G01 X36.5 Y-30.5
G01 X5 Y-4.1781 G01 X20 Y-16.7123 G01 X36.5 Y10
G01 X20 Y0 G01 X0 Y0
G40
M99

36
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

13. Write the CNC Milling Part Program for the following Profiles Given
(RECTANGULAR POCKETING G42)

5
q 100
61

73

All dimensions are in mm


O0029 G01 X10 Y0 G01 X25 Y20.8904
G17 G94 G21 G01 X10 Y8.3561 G01 X-25 Y20.8904
M06 T0101 G01 X-10 Y8.3561 G01 X-25 Y-20.8904
M03 S1200 G01 X-10 Y-8.3561 G01 X25 Y-20.8904
G90 G00 X0 Y0 Z0 G01 X10 Y-8.3561 G01 X25 Y0
G00 Z2 G01 X10 Y0 G01 X30 Y0
G01 X0 Y0 Z0 F30 G01 X15 Y0 G01 X30 Y25.0685
M98 P0005 0129 G01 X15 Y12.5342 G01 X-30 Y25.0685
G01 Z1 G01 X-15 Y12.5342 G01 X-30 Y-25.0685
G91 G28 X0 Y0 Z0 G01 X-15 Y-12.5342 G01 X30 Y-25.0685
M05 G01 X15 Y-12.5342 G01 X30 Y0
M30 G01 X15 Y0 G42
O0129 G01 X20 Y0 G01 X26.5 Y0
G91 G01 Z-1 F30 G01 X20 Y16.7123 G01 X26.5 Y22.14
G90 G01 X5 Y0 G01 X-20 Y16.7123 G01 X-26.5 Y22.14
G01 X5 Y4.1781 G01 X-20 Y-16.7123 G01 X-26.5 Y-22.14
G01 X-5 Y4.1781 G01 X20 Y-16.7123 G01 X26.5 Y-22.14
G01 X-5 Y-4.1781 G01 X20 Y0 G01 X26.5 Y10
G01 X5 Y-4.1781 G01 X25 Y0 G01 X0 Y0
G01 X5 Y0 G40
M99

37
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

CODES USED IN CNC MILLING:

G-code Function
G00 Positioning rapid traverse
G01 Linear interpolation (feed)
G02 Circular interpolation CW
G03 Circular interpolation CCW
G04 Dwell
G20 Inch unit
G21 Metric unit
G28 Automatic zero return
G30 2nd reference point return
G40 Tool nose radius compensation cancel
G41 Tool nose radius compensation left
G42 Tool nose radius compensation right
G43 Tool length compensation
G52 Local co-ordinate system
G54 Work co-ordinate system 1 selection
G55 Work co-ordinate system 2 selection
G56 Work co-ordinate system 3 selection
G57 Work co-ordinate system 4 selection
G58 Work co-ordinate system 5 selection
G59 Work co-ordinate system 6 selection
G74 Left hand tapping cycle
G76 Fine boring cycle
G80 Canned cycle cancel
G81 Drilling cycle
G82 Drilling cycle with dwell
G83 Peck drilling cycle / deep drill
G84 Tapping cycle

38
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

G85 Boring / Reaming cycle


G86 Boring cycle
G87 Back boring cycle
G90 Absolute command
G91 Incremental command
G94 Feed per minute
G95 Feed per revolution
G98 Return to initial point in canned cycle
G99 Return to R point in canned cycle

M-codes Function
M00 Optional program stop automatic
M01 Optional program stop request
M02 Program end
M03 Spindle ON clock wise (CW)
M04 Spindle ON counter clock wise (CCW)
M05 Spindle stop
M06 Tool change
M07 Mist coolant ON (coolant 1 ON)
M08 Flood coolant ON (coolant 2 ON)
M09 Coolant OFF
M19 Spindle orientation
M30 End of program, Reset to start
M98 Sub program call
M99 Sub program end

39
Department of Mechanical Engineering, SCEM, Mangaluru.
15MEL77: COMPTER INTEGRATED MANUFACTURING LABORATORY

40
Department of Mechanical Engineering, SCEM, Mangaluru.

You might also like