0% found this document useful (0 votes)
416 views29 pages

Cam Lab Manual

The document provides information on profile milling, including: 1) A drawing of a component to be milled with dimensions. 2) G-code for setting up absolute mode and tooling to mill the profile. 3) The profile is to be milled using linear and circular interpolation motions.

Uploaded by

Balaji Manian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
416 views29 pages

Cam Lab Manual

The document provides information on profile milling, including: 1) A drawing of a component to be milled with dimensions. 2) G-code for setting up absolute mode and tooling to mill the profile. 3) The profile is to be milled using linear and circular interpolation motions.

Uploaded by

Balaji Manian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 29

PROFILE MILLING:-

To prepare a CNC part program to mill the component as per the


drawing

Assume thickness = 20mm

50 40

50
5
0

80
120
40
2
0

100 40
20

SIMULATION MODEL:-
ABSOLUTE MODE(G90)
G90 G00 G54 G17 G21 G95

T01 M06

G43 Z50 M08

S1000 M03

G90 G00 X20 Y20

G01 Z-20 F100

G90 G01 X120 Y20

G90 G01 X160 Y60

G90 G01 X160 Y140

G90 G01 X120 Y190

G90 G01 X70 Y190

G90 G01 X20 Y140

G90 G01 X20 Y20

G01 Z50

G90 G00 X250 Y250

G90 M09

G90 M05

G90 M30
PART PROGRAM FOR CIRCULAR INTERPOLATION AND SIMULATE

G02/03 Circular interpolation

Format

N__ G02/03 X__ Y__Z__ I__ J__K__ F__ using the arc center
OR
N__ G02/03 X__ Y__Z__ R__ F__ using the arc radius

G02 moves along a CW arc


G03 moves along a CCW arc

Arc center

The arc center is specified by addresses I, J and K. I, J and K are the X, Y and Z co-ordinates
of the arc center with reference to the arc start point.

Arc
start
Y
Arc end
-I
-J
Arc center

X
I = X coord. of center - X coord. of start point
J = Y coord. of center - Y coord. of start point
K = Z coord. of center - Z coord. of start point
I, J and K must be written with their signs.
RADIUS METHOD

To prepare a CNC part program to mill the component as per the


drawing
Assume thickness = 20 mm

60
R
R20
20

20
60
20
10
30 20 20

SIMULATION MODEL:-
ABSOLUTE MODE (G90)

N1 G17 G21 G54 G95


N2 T01 M06 G43 M08
N3 S1000 M03 Z50
N4 G90 G00 X30 Y10
N5 G90 Z-22 F50
N6 G01 X50 Y10
N7 G01 X50 Y30
N8 G01 X70 Y30
N9 G01 X70 Y10
N10 G01 X90 Y10
N11 G03 X110 Y30 R20 F10
N12 G01 X110 Y90
N13 G03 X90 Y110 R20 F10
N14 G01 X30 Y110
N15 G03 X10 Y90 R20 F10
N16 G01 X10 Y30
N17 G03 X30 Y10 R20 F10
N18 G90 G00 Z50
N19 G90 G00 X110 Y110 F50
N20 M05
N21 M09
N22 M30
RADIUS METHOD
To prepare a CNC part program to mill the component as per the
drawing
20
40
40
40
20

20

20 40 40 40 20

SIMULATION MODEL:-
ABSOLUTE MODE (G90)

N1 G17 G21 G54 G95


N2 T01 M06 G43 M08
N3 S1000 M03 Z50
N4 G90 G00 X40 Y20
N5 G90 Z-22 F50
N6 G01 X80 Y20
N7 G02 X120 Y20 R20 F10
N8 G01 X160 Y20
N9 G03 X180 Y40 R20 F10
N10 G01 X180 Y80
N11 G02 X180 Y120 R20 F10
N12 G01 X180 Y160
N13 G03 X160 Y180 R20 F10
N14 G01 X120 Y180
N15 G02 X80 Y180 R20 F10
N16 G01 X40 Y180
N17 G03 X20 Y160 R20 F10
N18 G01 X20 Y120
N19 G02 X20 Y80 R20 F10
N20 G01 X20 Y40
N21 G03 X40 Y20 R20
N22 G90 G01 Z50
N23 G90 G00 X250 Y250
N24 M09
N25 M05
N26 M30
7. Write a milling program for a given sketch using G-code and M-codes.

60
O

60
90
60
15 15
60 90 60

All dimensions are in mm

SIMULATION MODEL:-
ABSOLUTE MODE (G90)

G17 G21 G54 G95


T01 M06
G43 M08 Z50
S1000 M03
G90 G00 X45 Y60
M98 P10055
G90 G00 X135 Y60
M98 P10055
G90 G00 X45 Y150
M98 P10055
G90 G00 X135 Y150
M98 P10055
G90 G00 Z50
G90 G00 X250 Y250
M09
M05
M30
O55
G01 Z-10 F50
G91 G03 X30 Y0 R15
G91 G03 X-30 Y00 R15
G91 G00 Z50
M99
12. Write a milling program for a given sketch using G-code and M-codes. (F0URTH
QUADRANT OPERATION)

Assume thickness = 20 mm

R20

20
60
20
20 60 20

All the dimensions are in mm

SIMULATION MODEL: -
ABSOLUTE MODE: -

G54 G17 G21 G94


T01 M06
G43 M08 Z50
S1000 M03
G90 G00 X50 Y00
G90 G01 Z-20 F100
G01 X50 Y30
G03 X30 Y50 I-20 J0
G01 X-30 Y50
G02 X-50 Y30 I-20 J0
G01 X-50 Y-30
G02 X-30 Y-50 I0 J-20
G01 X30 Y-50
G02 X50 Y-30 I20 J0
G01 X50 Y30
G90 G01 Z50
G90 G00 X-20 Y00
G01 Z-20
G02 X20 Y00 R20
G02 X-20 Y00 R20
G90 G01 Z50
G90 G00 X200 Y200
M09
M05
M30

SIMPLE TURING OPERATION USING G01 BILLET SIZE ø25.4 L=70


AIM

To write the part programming and simulation them to the given lathe job.

TOOLS AND EQUIPMENTS

1. CNC simulation software FANUC

2. CNC trainer software

3. Software Pentium IV

PROCEDURE

1. To write the program for given job.

2. To type G and M CODES.

3. To give the tool size and stock dimensions.

4. Finally to run the machine to the operation.

PROGRAM
G21 G98
G28 U0 W0
M06 T0101
M03 S1500 M-CODES
G00 X26 Z1 M06 – Tool Change
G01 X25 F50 M03 – Spindle Forward Clockwise
G01 Z-30 F50 M05 – Spindle Stop
G01 X26 F50 M30 – Program End
G01 Z1 F50
G01 X24 F50
G01 Z-30 F50
G01 X26 F50
G01 Z1 F50
G01 X23 F50
G01 Z-30 F50 G-CODES
G01 X26 F50 G21 – Metric
G01 Z1 F50 G98 – Feed/Min
G01 X22 F50 G28 U0 W0 – Reference Point Return
G01 Z-30 F50 G00 X Y – Positioning (Rapid Traverse)
G01 X26 F50 G01 X Y F – Linear Interpolation (Feed)
G01 Z1 F50 G03 – Circular Interpolation (CCW)
G01 X18 Z0 F50 G90 – Cutting Cycle Turning
G03 X22 Z-2 R2 F40
G28 U0 W0
M05
M30

RESULT

Thus the part program was written and simulated for given job.
STEP TURNING USING CYCLE G90 BILLET SIZE ø25.4 L=70

AIM

To write the part programming and simulation them to the given lathe job.

TOOLS AND EQUIPMENTS

1. CNC simulation software FANUC

2. CNC trainer software

3. Software Pentium IV

PROCEDURE

1. To write the program for given job.

2. To type G and M CODES.

3. To give the tool size and stock dimensions.

4. Finally to run the machine to the operation.

PROGRAM
G21 G98
G28 U0 W0
M06 T0101
M03 S1500
G00 X26 Z1
G90 X25 Z-40 F50
X24
X23
X22
G90 X21 Z-28 F50
X20
X19
X18
X17
X16
G90 X15 Z-10 F50
X14
X13
X12
G28 U0 W0
M05
M30
RESULT

Thus the part program was written and simulated for given job.
PROFILE TURNING USING
MULTIPLE TURNING CYCLE (G71)
BILLET SIZE ø25.4 L=70
AIM

To write the part programming and simulation them to the given lathe job.

TOOLS AND EQUIPMENTS

1. CNC simulation software FANUC

2. CNC trainer software

3. Software Pentium IV
PROCEDURE

1. To write the program for given job.

2. To type G and M CODES.

3. To give the tool size and stock dimensions.

4. Finally to run the machine to the operation.

PROGRAM
G21 G98
G28 U0 W0
M06 T0101
M03 S1200
G00 X26 Z1
G71 U0.5 R1.0
G71 P01 Q02 U0.2 W0.2 F50
N01 G01 X8
G01 Z0
G01 X10 Z-2
G01 X10 Z-12
G02 X15 Z-14.5 R2.5
G01 X15 Z-24.5
G03 X20 Z-27 R2.5
G01 X20 Z-32
N02 G01 X25.4 Z-32
G70 P01 Q02 F40
G28 U0 W0
M05
M30
G71 – Multiple Turing cycle (stock remover)
G 70 – Finishing cycle

G71 U R
G71 P Q U W F
G70 P Q

G71 – Multiple Turning Cycle


U – Depth of Cut
R – Retract Allowance

G71 – Multiple Turing Cycle


P – Starting Block (N01)
Q – Ending Block (N02)
U – Finishing Allowance in X-Axis
W – Finishing Allowance in Z-
Axis F – Feed Rate

G70 – Finishing Cycle


P – Starting Block
Q – Ending Block

RESULT

Thus the part program was written and simulated for given job.
TAPER TURNING (R- & R+) USING BOX TURNING CYCLE (G90) BILLET SIZE ø25.4 L=70

AIM
To write the part programming and simulation them to the given lathe job
TOOLS AND EQUIPMENTS

1. CNC simulation software FANUC

2. CNC trainer software

3. Software Pentium IV

PROCEDURE

1. To write the program for given job.

2. To type G and M CODES.

3. To give the tool size and stock dimensions.

4. Finally to run the machine to the operation.

PROGRAM
G21 G98
G28 U0 W0
M06 T0101
M03 S1500
G00 X26 Z1
G90 X25 Z-35 F50
G90 X24 Z-5 F50
X23
X22
X21 R+
X20
G00 X26 Z-5
G90 X25 Z-15 R0 F50
X25 Z-15 R-0.5 F50
X25 Z-15 R-1.0 F50
X25 Z-15 R-1.5 F50
X25 Z-15 R-2.0 F50
X25 Z-15 R-2.5 F50
G00 X26 Z-20
G90 X25 Z-30 R0 F50
X24 Z-30 R0.5 F50
REVERSE TAPER R+ = (25 – 20)/2 = +2.5
X23 Z-30 R1.0 F50 FORWARD TAPER R- = (20 – 25)/2 = -2.5
X22 Z-30 R1.5 F50
X21 Z-30 R2.0 F50
Taper Turning
X20 Z-30 R2.5 F50 G90 X Z R F
G00 X26 Z-30 R – Taper Value
G90 X24 Z-35 F50 F – Feed Rate
X23
X22
X21
X20
G28 U0 W0
M05
M30

RESULT

Thus the part program was written and simulated for given job.
THREAD CUTTING USING BOX CYCLE (G92) BILLET SIZE ø25.4 L=70

AIM
To write the part programming and simulation them to the given lathe job.

TOOLS AND EQUIPMENTS


1. CNC simulation software FANUC

2. CNC trainer software

3. Software Pentium IV

PROCEDURE
1. To write the program for given job.
2. To type G and M CODES.

3. To give the tool size and stock dimensions.

4. Finally to run the machine to the operation.


PROGRAM
G21 G98
G28 U0 W0
M06 T0101
M03 S1500
G00 X26 Z1
G90 X25 Z-40 F50
X24
X23
X22
G28 U0 W0
M06 T0202
M03 S300
G00 X26 Z1
G92 X22 Z-20 F2
X21.95
X21.90
X21.85
X21.80
X21.75
X21.70
X21.65
X21.60
X21.55 G92 Thread Cutting Cycle
X21.50 Syntax G92 X_ Z_ F_
X21.45
X21.40 Feed = Pitch = 2 mm
X21.35 Calculation of Mirror Diameter (d)
X21.30 d=D-2h
=D - 2 X (0.615 X P)
=22 – 2 X (0.615 X 2)
X21.25
X21.20
X21.15
X21.10
X21.05
X21
X20.95
X20.90
X20.85
X20.80
X20.75
X20.70
X20.65
X20.60
X20.55
X20.50
X20.45
X20.40
X20.35
X20.30
X20.25
X20.20
X20.15
X20.10
X20.05
X20
X19.95
X19.90
X19.85
X19.80
X19.75
X19.70
X19.65
X19.60
X19.54
G28 U0 W0
M05
M30

RESULT

Thus the part program was written and simulated for given job.
STEP TURNING
N1

G28 U0 W0
M01
G97 S1500 M4
M06 T0101
G0 G40 X26.0 Z10.0
Z2.0
G71 U1.0 R0.3
G71 P10 Q20 U0.0 W0.0 R0.3 F0.15
N10 G01 X10.0
Z0.0
X12.0 Z-2.0
Z-20
X16.0
Z-35.0
X20.0
Z-45.0
X24.0
N20 G01 X26.0
M09
G00 G40 Z10.0
G28 U0 W0;
M05
M30
TAPER TURNING
PROGRAM

N1
G28 U0 W0
M01
M06 T0101
G97 S1800 M04
G00 X26.0 Z10.0
Z2.0 M08
G71 U1.0 R0.3
G71 P12 Q13 U0.0 W0.0 R0.3 F0.15
N12 G01 X0.0
Z0.0
G01 X15.0 Z-8.0
Z-18.0
X20.0 Z-30.0
Z-36.0
X24.0
Z-42.0
N13 G01 X26.0
M09
G00 G40 Z10.0
G28 U0 W0
M05
M30
******************
CIRCULR INTERPOLATION 1

PROGRAM
N1
G28 U0 W0
M01
M06 T0101
G97 S1800 M04
G00 G40 X26.0 Z10.0
Z2.0 M07
G71 U1.0 R0.3
G71 P20 Q30 U0 W0 R0.3 F0.15
N20 G01 X0.0
Z0.0
G03 X16.0 Z-8.0 R8.0
G01 X16.0 Z-18.0
G02 X20.0 Z-20.0 R2.0
G01 Z-28.0
G01 X24.0 Z-33.0
G01 Z-39.0
N30 G01 X26.0
M09
G00 G40 Z10.0
G28 U0 W0
M05
M30

CIRCULAR INTERPOLATION 2
PROGRAM
N1

G28 U0 W0
M01
M06 T0101
G97 S1800 M04
G00 G40 X26.0 Z10.0
Z2.0 M07
G71 U1.0 R0.3
G71 P20 Q30 U0 W0 R0.3 F0.15
N20 G01 X0.0
Z0.0
G03 X12.0 Z-6.0 R6.0
G02 X18.0 Z-9.0 R3.0
G01 Z-19.0
G02 X22.0 Z-21.0 R2.0
G01 Z-29.0
N30 G01 X26.0
M09
G00 G40 Z10.0
G28 U0 W0
M05
M30

THREADING
T0101 -(ROUGH TURNING TOOL)
T0202 -(GROOVING TOOL ASSUME CUTTER WIDTH 2 MM)
T0303-(External thread tool)
*****

N1
G28 U0 W0;

T0101;
G97 S1800 M04;
G00 G40 X26.0 Z10.0;
Z2.0 M08;
G71 U.5 R0.5;
G71 P10 Q12 U0 W0 F0.15 ;
N10 G01 X10.0
G01 Z0.0;
G01 X14.0 Z-2.0;
G01 Z-35.0;
G01 X20.0 Z-40.0;
G01 X22.0
G01 Z-45.0;
N12 G01 X26.0
M09;
M00;
G01 G40 Z10.0;
G28 U0 W0;
M01;
N2;
T0202;
G97 S800 M04;
G00 G40 X17.0 Z10.0;
Z-32.0;
G75 R0.3;
G75 X8.0 Z-35.0 P200 Q1500 F0.8;
G00 Z10.0 M09;
G28 U0 W0;
M00;
N3;
T0303;
G00 X15.0 Z12.0
G97 S500 M04;
G76 P031560 Q75 R0.05;
G76 X11.56 Z-30.0 P1220 Q100 F2.0;
G00 Z10.0 M09;
G28 U0 W0;
M05;
M30

DRILLING & BORING


T0404;(IDRILL OF RADIUS 7.5)
T0505;(BORING BAR)

PROGRAM

O0011;
N1;
G28 U0 W0;
M06 T0404;
M03 S400;
G00 X0.0 Z2.0;
G74 R3.0;
G74 X0.0 Z-33.0 Q5000 R0 F0.1;
G28 U0 W0;
N2;
M06 T0505;
G00 X15.0 Z1.0;
G71 U0.5 R0.1;
G71 P20 Q25 U0 W0 F0.1;
N20 G00 X33.0;
G01 Z0.0;
G01 X23.0 Z-5.0;
G01 X23.0 Z-11.0;
N25 G01 X15.0 Z-23.0;
G28 U0 W0;
M05;
M30;

You might also like