Vous êtes sur la page 1sur 13

National Institute of Technology, Karnataka, Surathkal

COMPUTER AIDED ENGINEERING


Assignment on CNC Programming

Submitted by:-
Shaswata Bose
17ME167

Date of Submission: 29th January 2019

Submitted to:
Dr Navin Karanth P
Dept. of Mechanical Engineering, NITK, Surathkal
Q1 For the component shown in figure below is machined from a billet of size 100x100x10 mm.
Write part program for machining on a CNC machining center equipped with the FANUC controller.
The depth of cut for each pass is 1 mm and spindle speed while machining is 1200 rpm. Use the
concept of sub program and canned cycles. Clearly indicate the process plan, tools used, floating point
zero on the drawing of the part.

Ans:

Code for the given component:

G91 G28 Z0
G28 X0 Y0
G90 G17 G94
G21
M06 T1
M03 S1200 F50
G170 X0 Y0 P0 Q1 Z-7 K17.5 (Circular pocketing of dia. 35)
M98 P002000
G00 Z2

M70 M71
M98 P002000 (Function call for semicircular pockets)
G00 Z2

M80 M81
G90
M98 P003000 (Function call for rectangular pockets)
G00 Z2
M70
M98 P003000
G00 Z2
M71
M98 P003000
G00 Z2
M80
M98 P003000
G00 Z2
M81

G00 Z2

M98 P005000 (Function call for the holes at the vertices of the
billet)
G91 G28 Z0
G28 X0 Y0
M05
M30

O2000
M98 P004000 (Function call for semicircular pocket)
G91 G28 Z0
G28 X0 Y0
G90
M05
M06 T02
M03 S1200 F50
G98 G83 X28.5 Y0. Z-20. R2. F125. Q1 (Canned cycle for the drilled
holes)
X0. Y28.5
G80
M99

O3000
G90
G91 G28 Z0
G28 X0 Y0
G90
G91 G28 Z0
G28 X0 Y0
G90
M05
M06 T01
M03 S1200 F50
G172 I30 J30 K1 R0 P0 Q1 X0 Y0 Z-4
G173 I0 K0 P50 T01 S1200 R40 F50
M99

O4000
G90
G91 G28 Z0
G28 X0 Y0
G90
M05
M06 T1
M03 S1200 F50
G170 R0 P0 Q1 X28.5 Y0 Z-4 I0 J0 K15
G171 P50 S1200 R50 F50
G170 R0 P0 Q1 X0 Y28.5 Z-4 I0 J0 K15
G171 P50 S1200 R50 F50
M99

O5000
G90
G91 G28 Z0
G28 X0 Y0
G90
M05
M06 T4
M03 S1200 F50
G98 G83 X42 Y42 Z-20 R2 Q1 F125
X-42 Y42
X-42 Y-42
X42 Y-42
G80
G91 G28 Z0
G28 X0 Y0
G90
M05
M06 T3
M03 S10
G98 G84 X42 Y42 R2 Z-20 F1.25
X-42 Y42
X-42 Y-42
X42 Y-42
G80
M99

Process Plan for the given operation:

Tools used during the operation:


1) Endmill of diameter 15mm for 4 circular and 1 square pockets.
2) Standard drill of diameter 6mm for 4 through holes in the pocket.
3) Standard drill of diameter 8 for 4 through holes at the corners.

Screenshot of the component as simulated in CNC Train software equipped with a FANUC
Controller:
The floating point zero is defined by the blue '+' symbol in first figure.

Process Plan:
Process: Milling.
Operation: Pocketing, Drilling.
Machine Specifications: Depth of cut per pass is 1mm.
Spindle speed is 1200rpm.
Feed rate: At the discretion of the operator.
Tools used:
1) EndMill of 15mm diameter.
2) Standard Drill of 6mm and 8mm diameter.

Q2 Write the CNC part program for the profile shown in the figure. Slot drill of diameter 5 mm is
used for slotting and pocket operations. The depth for all operations is 5 mm.The depth of cut for each
pass is 1mm. Cutting velocity for slotting operation is 78 mm/min and that for profile milling is 120
mm/min and feed rate is 20 mm/rev and 35 mm/rev. Draw the sketch of the profile and indicate
program zero. The program must include mirroring, sub programs for depth of cut, and canned cycles
and also indicate sequence of operations.

Ans:

Code for the given component:

G90 G17 G94 G21


M06 T5 M03 S1200 F80

G00 X5 Y5 Z5
G01 X5 Y5 Z0
M98 P042000 (Calling the function to mill the profile)

M70 (Activating x mirror to perform milling in second quadrant)


G00 Z5
G01 X5 Y5 Z0
M98 P042000
G00 Z5

M71 (Activating y mirror to perform milling in third quadrant)


G00 Z5
G01 X5 Y5 Z0
M98 P042000
G00 Z5

M80 (Deactivating x mirror to perform milling in fourth quadrant)


G00 Z5
G01 X5 Y5 Z0
M98 P042000
G00 Z5

M81

M98 P003000 (Function call for milling the circle and rectangle)
M70 M71 (Activating both x and y mirrors)
M98 P003000 (Function call for milling the circle and rectangle)
M80 M81

M98 P004000

G91 G28 Z0
G28 X0 Y0
M05
M30

O2000
G90
G91 G01 Z-1
G90
G01 X5 Y20
G01 X10 Y20
G03 X20 Y30 R10 F30 S1200
G01 X20 Y45
G01 X35 Y45
G01 X45 Y30
G01 X45 Y18
G03 X27 Y5 R18 F30 S1200
G01 X5 Y5

M99

O3000
G172 I15 J10 X25 Y25 Q1 R0 P0 Z-5
G173 I0 K0 P25 T05
G00 Z5
G170 I0 J0 K7.5 X-32 Y31 Q1 Z-5 R0 P0
G171 P50 S3000 R100 F100
M99

O4000
M05
G91 G28 Z0
G28 X0 Y0
G90
M06 T6
M03 S1200
G98 G83 X45 Y0 Q1 R2 Z-5 F20
X-45 Y0
G80

M99
Screenshot of the component as simulated in CNC Train equipped with FANUC Controller :
Program zero is indicated by the blue '+' symbol in the first figure.

Tools used are:


1) Slot Drill of 5mm diameter.
2) Standard Drill of 6mm diameter.

Process Plan:
Process: Milling
Operation: Slotting, Drilling, Pocketing.
Machine Specifications: The depth for all operations is 5 mm.
The depth of cut for each pass is 1mm.
Cutting velocity for slotting operation is 78 mm/min and profile milling is 120 mm/min.
Feed rate is 20 mm/rev and 35 mm/rev.

Sequence of Operations:
1) Profile milling the shape in each quadrant by mirroring
2) Profile milling the circle and rectangle in the first half of the billet
3) Activating mirror and milling the rectangle and circle in the second half of the billet
4) Drilling the two 6mm holes

Q3 Design your own name plate in a billet size of 200x200x10 mm to engrave your initials and roll
no. The initials and roll no must be enclosed in a design which can be machined by profile milling.
The name plate must have tapped holes at four corners. Develop the part program for machining on a
CNC machining center equipped with the FANUC controller. The depth of cut for each pass is 1 mm
and spindle speed while machining is 1200 rpm. Use the concept of mirror, sub program and canned
cycles. Clearly indicate the process plan, tools used, floating point zero on the drawing of the part.

Ans :

Code for the given task:

G90 G17 G94 G21


M06 T8 M03 S1200 F80.

G00 Z70.
X100. Y100.

G00 X-25. Y10.


M98 P001000

G00 X5. Y10.


M98 P002000

G00 X-85. Y-50.


M98 P003000

G00 X-60. Y-50.


M98 P004000

G00 X-35. Y-50.


M98 P005000

G00 X-10. Y-50.


M98 P006000

G00 X15. Y-50.


M98 P003000

G00 X40. Y-50.


M98 P007000

G00 X65. Y-50.


M98 P004000

M98 P009000
M70
M98 P009000
M71
M98 P009000
M80
M98 P009000

G91 G28 Z0.


G28 X0. Y0.
M05
M06 T6
M03S2000
G90
G98 G83 X80. Y80. Q1 R2. Z-10. F100.
X-80. Y-80.
X-80. Y80.
X80. Y-80.
G80

G95
G91 G28 Z0.
G28 X0. Y0.
G90
M05
M06 T7
M03 S10
G98 G84 X80. Y80. R2. Z-10. F1.25
X-80. Y-80.
X-80. Y80.
X80. Y-80.
G80
G94
G91 G28 Z0.
G28 X0. Y0.
M05 M30

O1000 "S" "ALL FUNCTIONS ARE iNCREMENTAL REQUIRES BOTTOM LEFT


POSITION SPEC BEFORE CALLING"
G91
G00 Y10.
G90
G01 Z-1.
G91
G03 X20. Y0. R10.
G01 X-20. Y20.
G02 X20. Y0. R10.
G90 G00 Z10.
G00 X0. Y0.
M99

O2000 "B"
G90
G01 Z-1.
G91
G01 Y40.
G01 X15.
G01 X5. Y-5.
G01 Y-10.
G01 X-5. Y-5.
G01 X-15.
G00 Z1.
G00 X15.
G01 Z-1.
G01 X5. Y-5.
G01 Y-10.
G01 X-5. Y-5.
G01 X-15.
G90 G00 Z10.
M99

O3000 "1"
G90
G01 Z-1.
G91
G01 X20.
G90
G00 Z1.
G91
G00 X-20. Y30.
G90
G01 Z-1.
G91
G01 X10. Y10.
G01 Y-40.
G90 G00 Z10.
M99

O4000 "7"
G90
G01 Z-1.
G91
G01 X20. Y40.
G01 X-20.
G90 G00 Z10.
M99

O5000 "M"
G90
G01 Z-1.
G91
G01 Y40.
G01 X10. Y-20.
G01 X10. Y20.
G01 Y-40.
G90 G00 Z10.
M99

O6000 "E"
G90
G01 Z1.
G91
G00 X20.
G90
G01 Z-1.
G91
G01 X-20.
G01 Y20.
G01 X10.
G01 X-10.
G01 Y20.
G01 X20.
G90 G00 Z10.
M99

O7000 "6"
G90
G01 Z1.
G91
G00 Y20.
G90
G01 Z-1.
G91
G01 X20.
G01 Y-20.
G01 X-20.
G01 Y40.
G01 X20.
G01 Y-10.
G90 G00 Z10.
M99

O9000 "Pattern"
G90
G00 Z10.
X0. Y0.
G01 Z-1.
X92.5 Y0.
Y70.
X80. Y85.
X0.
G00 Z10.
M99
Screenshots of the component as simulated by CNC Train equipped with FANUC Controller :

Program zero is indicated by the blue '+' symbol in the first figure.

Tools used are:


1) Slot Drill of 4mm diameter.
2) Standard Drill of 5mm diameter.
3) Tap of diameter 6mm diameter.

Process Plan:
Process: Milling.
Operation: Slotting, Drilling, and Tapping.
Machine Specifications: Depth of cut per pass is 1mm.
Spindle Speed: 1200 rpm.
Feed rate: At the discretion of the operator.

Vous aimerez peut-être aussi