You are on page 1of 146

BANNARI AMMAN INSTITUTE OF TECHNOLOGY

SATHYAMANGALAM 638 401


DEPARTMENT OF MECHANICAL ENGINEERING
LAB MANUAL

COMPUTER AIDED MANUFACTURING LABORATORY


Year of Release: 2014

Prepared by
E Prakash
Lab In-charge

Approved by
Dr K Sivakumar
HOD/Mech. Engg.

List of Exercises
Exercises on CNC Lathe
1.

Exercise on Full Facing Cycle

2.

Exercise on Step Facing Cycle

3.

Exercise on Taper Facing Cycle

4.

Exercise on Plain Turning Cycle

5.

Exercise on Step Turning Cycle

6.

Exercise on Box Threading Cycle

7.

Exercise on Multiple Threading Cycle Part I

8.

Exercise on Multiple Threading Cycle Part II

9.

Exercise on Stock Removal Facing Cycle Using G72

10.
11.
12.
13.
14.
15.
16.

Exercise
Exercise
Exercise
Exercise
Exercise
Exercise
Exercise

on
on
on
on
on
on
on

Stock Removal Turning Cycle Using G71


Pattern Repeating Cycle
Peck Drilling Part - I
Peck Drilling Part - II
Internal Threading
Peck Drilling Part - III
Multiple Boring Cycle

Exercises on CNC Milling Machine


1.

Exercise using Linear Interpolation

2.

Exercise using Linear and Circular Interpolation

3.
4.

Exercise using Linear Circular Interpolation With Circular,


Rectangular Pocketing
Exercise on Arc Explanation Part I

5.

Exercise on Arc Explanation Part II

6.

Exercise using Mirror Imaging

7.

Exercise on Milling the Flag

8.

Exercise on Profile Milling

List of Exercises
Exercises on Robot
1.

Exercise on Pick and Place

2.

Exercise on Load and Unload into CNC Milling

Additional Exercises
1.

Exercises on Turning a part using grooving

2.

Exercises on both side turning a part using grooving

3.

Exercises on Profile Milling

4.
5.
6.

Exercises on combination of Rectangular and circular pocket


milling
Exercises on combined milling of Profile, Rectangular and
circular pocket
Exercise on Engraving The Letters of BIT

CNC LATHE

PREPARATORY FUNCTION (G FUNCTION)

G codes are instructions describing machine tool movement


G00

Rapid Traverse

G01

Linear Interpolation (cutting feed)

G02

Circular Interpolation (clockwise)

G03

Circular Interpolation (counter clockwise)

G04

Dwell

G20

Imperial (input in inches)

G21

Metric (input in metric)

G28

Goto Reference

G40

Cutter Compensation Cancel

G41

Cutter Compensation Right

G42

Cutter Compensation Left

G50

Clamp Spindle

G50

Coordinate Setting

G70

Finishing Cycle

G71

Stock Removal in Turning

G72

Multiple Facing

G73

Pattern Repeating

G74

Peck Drilling Cycle

G76

Multiple Thread

G81

Drilling Cycle

G90

Turning Cycle

G94

Facing Cycle

G96

Constant. Surface

G97

Var. Surface

G98

Feed Per Minute

G99

Feed Per Rev.

G00 Fast Traverse


A G00 causes linear motion to the given position at the maximum feedrate from the current
position that is predefined in the option file.
Examples: G00 X0.0 Z0.0
G01 Linear
A G01 causes linear motion t the position at the last specified feedrate form the current position.
The feed rate for the linear motion should be mentioned in the part program .
Examples: G01 X30.0 Z-1.0 F100.0
G01 X0.0
G02 Clockwise Arc
A G02 causes a clockwise arc to the specified position.
Example: G01 X20.0 Z-10.0 F120.0
G03 X30.0 Z-15.0R5.0
G02 X40.0 Z-20.0 I5.0
G03 Counter Clockwise Arc
A G03 causes a counter clockwise arc to the specified position.
Example: G01

X20.0 Z-10.0 F120.0


G03 X30.0 Z-15.0 R5.0
G03 X40.0 Z-20.0 K-5.0

G04 Dwell
AG04 causes the program to wait for a specified amount of time.
This can be used for drilling cycles. Because the drilling cycle requires time delay to finish the
already drilled hole. The time can be specified in seconds with the "X" or "U" prefixes or in
milliseconds with the "P" prefix.
Examples:

G04
G04
G04

X1.5
U1.5
P1500

G20 Imperial
A G20 causes position to be interpreted as being in imperial units. All the input values are inches.
This can only be set at the start of the main program.
G21 Metric
A G21 causes positions to be interpreted as being in metric units (MM).
This can only be at the start of the main program. By default Metric Units will be taken for
programming.
G28 Goto Reference Point
A G28 causes a fast traverse to the specified position and then to the machine datum.
Examples : G28 X34.0 Z5.0
G28 U0.0 W0.0
G40 Cancel Compensation
A G40 cancels tools nose radius compensation.
G41 Compensate Right
A G41 enables tool nose radius compensation to the right of the programmed path.
G42 Compensate Left
A G42 enables tool nose radius compensation to the left of the programmed path.
G50 Co-ordinate Setting
G50 enables tool nose radius compensation tot he left of the programmed path.
G50 has 2 users.
A coordinate setting block has ab "X", "Z", "U" or "W" upon it.
A maximum spindle speed block does not.

G50 Clamp Spindle


G50 sets the maximum spindle speed for constant surface speed control.
An "X", "Z", "U" or "W" prefix must not be on the block or it will be interpreted as a coordinate
setting block.
Example : G50 S2000
G50 creates a new coordinate system in which the tools current position is set to the specified
coordinates.
The new coordinates can be in absolute or incremental form.
Example:
G50
X0 Z0
and
G50
U-40
G70 Finishing Cycle
AG70 causes a range of blocks to be executed, then control passes to the block after the G70.
This will be used after the completion of the Roughing Cycle.
The "P" and "Q" values specify the "N" block numbers at the start and end of the profile.
Example :
G70 P10 020
P - First Block of cycle
Q - Last Block of cycle
G71 Multiple Turning
A G71 causes the profile to be roughed out by turning. Control passes on to after the last block of
the profile.
Two G71 blocks are needed to specify all the values.
Example : (i) G72
U2.0 R1.5
(ii) G71 P.0 Q20 U0.1 W0 F45
specifies a depth of cut (radius) of 2 and an escape of 1.5.
(i)
U0.5 R1
U Depth of cut in mm
R Retraction (or) Retardation amount in mm
(ii) G71 P Q U W F
P Starting block number (i.e) first block of the cycle
Q End of the Programme
U Finishing allowance along X axis in mm
W Finishing allowance along Z axis in mm
F Feed rate

G71 P10 Q20 U1.0 W1.0 F45


The "P" and "Q" values specify the "N" block numbers at the start and end of the profile.
The "U" and "W" specify the distance and direction of the finishing allowance on the X and Z
axis.
G72 Multiple Facing
A G72 causes the profile to be roughed out by facing. Control passes on to after the last block of
the profile.
Two G72 blocks are needed to specify all the values.
W - Depth of cut in each pass in Z axis
R - Retraction (or) Retardation amount in mm.
Example:
G72 W2.0
R1.5
Specifies a depth of cut of 2 and an escape of 1.5.
G72 P10 Q20 U1.0 W1.0
The "P" AND "Q" values specify the "N" block numbers at the start and end of the profile.
P - First Block of cycle
Q - Last Block of cycle
The "U" and "W" specify the distance and direction of the finishing allowance on the "X" and
"Z" axis.
U - Finishing allowance in X axis
W - Finishing allowances in Z axis
G73 Pattern Repeating'
A G73 causes the profile to be roughed out by displacing the profile. Control passes on to after
the last block of the profile. Normally this cycle can be applied for casting blocks.
Two G73 blocks are needed to specify all the values.
Examples:
G73 U3.0 W4.0 R5
Specifies an X axis relief of 3.0 (radius) a Z axis relief of 4 and 5 cycles.
G73 P1 Q2 U3.0 W4.0
The "P and "Q" values specify the "N" block numbers at the start and end of the profile.
U - Distance and direction of Relief amount in the X axis radius designation
W - Distance and direction of relief amount in the Z axis radius designation
The "U" and "W" specify the distance of the finishing allowance on the X and Z axis .
R - No. of panes
P - First Block of cycle
Q - Last Block of cycle
U - Finishing allowance in X axis
W - Finishing allowance in Z
F- Feed rate axis

G74 End Face Peck Drilling


G74 is a Z axis pecking cycle.
Two blocks are required
G74

R1.0

G74

`Z-40.0 Q5000 R0.5 F100

Z - depth of the hole


Q- depth of cut in Z direction (without sign) depth of cut should be in microns
R- F - feed rate
The "R" in the first block is the return amount
G76 Threading Cycle
G76 is a multiple pass threading cycle.
Two blocks are required.
G76 P031560 Q150 R0.5
G76 X17.96 Z-50 P1020 Q250 F1.5
The "P" value is:- 03 = NO OF FINISHING PASSES
15 = PULL OUT ANGLE
60 = ANGLE OF THREAD
The "Q" is the minimum cutting depth times 1000, in this case 0.15mm.
The "R" is the finishing allowance, here its 0.15mm
The 2nd Block is identified by specifying a coordinate.
G76 X 17.96 Z-50 R0.0 P1020 Q250 F1.5
The "X" is the core diameter value of thread and "Z" are the end of the thread. The "R" must be
0.
The "p" is the height of the thread times 1000, here its 1.02mm
The "Q" is the depth of the first cut times 1000, in this case 0.25mm
The "F" is the thread's LEAD, NOT the feedrate, here it is 1.5mm

O/DIA
1.6
1.8
2.0
2.2
2.5
3.0
3.5
4.0
4.5
5.0
6.0
7.0
8.0
10.0
12.0
14.0
16.0
18.0
20.0
22.0
24.0
27.0
30.0
33.0
36.0
39.0
42.0
45.0
48.0
52.0

CORE
1.1706
1.3706
1.5092
1.6480
1.9480
2.3866
2.7638
3.1412
3.5798
4.0184
4.7732
5.7732
6.4664
8.1596
9.8530
11.5462
13.5462
14.9328
16.9328
18.9328
20.3194
23.3194
25.7060
28.7060
31.0924
34.0924
36.4790
39.4790
41.8646
45.8646

PITCH
0.35
0.35
0.40
0.45
0.45
0.50
0.60
0.70
0.75
0.80
1.00
1.00
1.25
1.25
1.75
2.00
2.00
2.50
2.50
2.50
3.00
3.00
3.50
3.50
4.00
4.00
4.50
4.50
5.00
5.00

DEPTH
0.2147
0.2147
0.2454
0.2760
0.2760
0.3067
0.3681
0.4294
0.4501
0.4908
0.6134
0.6134
0.7468
0.9202
1.0735
1.2269
1.2269
1.5336
1.5336
1.5336
1.8403
1.8403
2.1470
2.1470
2.4538
2.4538
2.7605
2.7605
3.0672
3.0672

TAP/G DRILL
1.25
1.45
1.60
1.75
2.05
2.50
2.90
3.30
3.80
4.20
5.00
6.00
6.80
8.50
10.20
12.00
14.00
15.50
17.50
19.50
21.00
24.00
26.50
29.50
32.00
35.00
37.50
40.50
43.00
47.00

G81 Drilling Cycle


A G81 is a drilling cycle.
An explicit specified G81 will

linear to new position

Fast traverse to start position.


A modally specified G81 differs in that it will first travel linear traverse to the given depth, after
machining it will retract to the initial position to rapid traverse.
If only an X axis value is entered then grooving will be performed.
If only a Z axis value is entered then drilling will be performed.
Examples:

G 81

U-4.0
U-8.0

and

G 81

Z-2.0
Z-4.0

G90 Turning Cycle


AG90 is the diameter cutting cycle.
It is the equivalent of

Rapid to X position.
Feed to Z position
Feed to start X position
Rapid to start Z position

If an "R" value is specified tapering will be performed. The initial rapid move will be to the X
position plus the "R" value (Radio)
Examples
And

U-4.0
U-8.0
G81 Z - 2.0
G81 Z 4.0

G92 Threading Cycle


G92 performs one threading pass.
The position specified is that of the end of the thread.
The "F" value specifies the pitch, NOT the feed.
Example : G92 U-0.25 W-20 .F1.5
G94 Facing Cycle
A G94 is an end face cutting cycle.
It is the equivalent of

Rapid to Z position

Feed to X position

Feed to start Z position

Rapid to start X positioning.


If an "R" value is specified tapering will be performed. The initial rapid move will be to the Z
position plus "R" value.
Example: G 94 U - 4.0W-2.0 R-8.0 F140.0
W-3.0
W-4.8

G96 Constant Surface Speed


G96 Enables Constant Surface Speed.
Example: G96 S100
Sets the surface speed to 100 meters a minute.

G97 Normal Spindle

G97 Cancels Constant Surface Speed.


The spindle speed will not change until the next "S" value is reached.
Example : G97
G98 Feed per minute
G98 sets the feed per minute mode. This is the default.
Example G98.
G99 Feed Per Revolution
G99 sets the feed per revolution modes.

MISCELLANEOUS FUNCTIONS (M CODES)


M Codes are instructions describing miscellaneous functions like calling the tool, spindle
rotation, coolant on etc.,

M00
M01
M02
M03
M04
M05
M06
M08
M09
M10
M11
M62
M63
M64
M65
M66
M67
M76
M77
M98
M99

Program Stop
Optional Stop
Program End
Spindle Forward
Spindle Reverse
Spindle Stop
Automatic Tool change
Coolant On
Coolant Off
Vice / Chuck Open
Vice / Chuck Close
Output 1 on
Out put 2 on
Out put 1 off
Output 2 off
Wait Input 1 On
Wait Input 2 On
Wait Input 1 Off
Wait Input 2 Off
Sub program Call
Subprogram End

MISCELLANEOUS FUNCTIONS (M CODES)


M00 Program Stop
Cycle operation is stopped after a block containing M00 is executed.
Example: M00
M01 Optional Stop
Cycle operation is stopped after a block containing M01 is executed. This code is only effective
when the optional stop switch on the machine control panel has been pressed.
Example : M01
M02 Program End
Stops the spindle. Turns the coolant off. Terminates the CNC program.
Example: M02
M03 Spindle Forward
Starts the spindle spinning forward at the last specified spindle rate.
Example:
And

M03 S1200
M03

M04 Spindle Reserve


Starts the spindle spinning forward at the last specified spindle rate.
Example :
And

M04 S1200
M04

M05 Stop Spindle


Stops the spindle without changing the spindle speed.
Example: M05

M06 Tool change


The "T" prefix causes a tool change, it need not be paired with an M06".
The left most digit of the "T" ignoring zeros, selects the new tool. For safe practice tool changing
operation should be done only in the home position or safe position.
Example: M06

T0200

and

T20

and
all select tool 2.

T2

M08 Coolant On
M08 turns the coolant on.
M09 Coolant Off
M09 turns the coolant off
M10 Chuck Open
M10 opens the chuck.
M11 Chuck Close
M11 close the chuck
M13 Spindle Forward, Coolant On
Sets spindle rotation forward and coolant on.
Example: M13 S1000
M14 Spindle Reverse, Coolant On
Sets spindle rotation reverse and coolant on.
Example: M14 S1000
M25 Quill Extend
Extends the quill (tail stock).

M26Quill Retract
Retracts the quill (tail stock)
M30 Program End & Rewind
Stops the spindle. Turns the coolant off. Terminates and resets the CNC program. This command
is used at the end of program to stop the program and to bring the cursor to first line of program
to repeat the program once again.
M38 Door Open
Opens the door, waiting until the door is open.
M39 Door Close
Closes the door, waiting until the door is closed.
M62 Set Output 1 on
Sets auxiliary output 1 on.
Example: M62
M63 Set Output 2 on
Sets auxiliary output 2 on.
Example : M63
M64 Set Output 1 off
Sets auxiliary output 1 off.
Example: M64
M65 Set Output 2 off
Sets auxiliary output 2 off
Example: M65

M66 Wait for input 1 on


Waits until auxiliary input 1 is on
Examples: M66
M67 Wait for Input 2 on
Waits until auxiliary input 2 on.
Example: M67
M76 Wait for Input 1 off
Waits until auxiliary 1 is off
Example: M76
M77 Wait for Input 2 off
Waits until auxiliary input 2 is off.
Example: M77
M98 Subprogram Call
M98 causes another program to be executed.
The "P" value specifies the program number and the number of times to execute it.
The rightmost 4 digits are the program number.
The digits to the left are the number of repetitions.
There can be up to 999 repetitions, if the value is omitted it is called once.
Example: M98 P12 and M98 P10012 both execute CNC program 12 once.
M99 Subprogram Exit
Returns control to the program that called the current program.
If a " P" value is specified then execution begins form the block with the same "N" number,
otherwise it is form the block after the subprogram call.

If an M99 is specified in the main program then the execution is from the start of the program.
This is called looping (or) nesting of two programs.
Example: M99
Returns to the block following the call.
M99 P10
Returns to the block with "N" value 10.

EX NO:1

3 MM PARTING

1X5MM FACING

PROCESS PLANNING
Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

Material: Aluminum
Date:

s.no

Operation

Machine
Tool

Cutting
tool

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

Facing

CNC
lathe

PDJNL
2020K
09 R0.8

05

1200

35

0.5

remarks

EX NO:1
DATE:

FULL FACING CYCLE

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGRM:
N010 G21 G40 G98
N020 G28 U0 W0
N025 M06 T05
N040 M03 S1200
N050 G00 X21 Z2

/ /* End face turning cycle *//

N060 G94 X0 Z-1 F60


N070 Z-2
N080 Z-3
N090 Z-4
N100 Z-5
N110 G28 U0 W0
N120 M05
N130 M30

PRE REQUISITE QUESTIONS:


1. What do you mean by turning?

2. Why step turning is needed?

3. What is the difference between step turning and plain turning?

4. How step turning is done in conventional lathe?

5. Define CNC programming.

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

What is use of G21?


What is mean by G28 U0 W0?
What is the use of G40?
What is the purpose of G98?
What is mean by M30?
EX NO:2

PROCESS PLANNING
Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

Material: Aluminum
Date:

s.no

Operation

Machine
Tool

Cutting
tool

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

Facing

CNC
lathe

PDJNL
2020K
09 R0.8

05

1200

35

0.5

remarks

EX NO:2
DATE:

STEP FACING CYCLE

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGRM:
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T05
N040 M03 S1200
N050 G00 X21 Z2

// * End facing cycle G94 * //

N060 G94 X10 Z-1 F60


N070 Z-2
N080 Z-3
N090 Z-4
N100 Z-5
N110 G28 U0 W0
N120 M05
N130 M30

NOTE: After the last pass of grooving the tool should be retracted to a maximum level in X axis
then the retraction can be done for Z axis.

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

What is use of N block number?


What is mean by G code?
What is use of step facing cycle?
Which code used for spindle off?
What is mean by G05?

EX NO:3

PROCESS PLANNING
Process planning
Billet size :25*70
Program no: 1234

Material: Aluminum
Date:

Department : Mechanical / CAM Lab

s.no

Operation

Machine
Tool

Cutting
tool

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

TAPER
Facing

CNC
lathe

PDJNL
2020K
09 R0.8

05

1200

35

0.5

EX NO:3
DATE:

TAPER FACING

AIM:
To write the manual part program and process plan for the given component.

remarks

NC PART PROGRM:
[BILLET X20 Z70
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T05
N040 M03 S1200
N050 G00 X21 Z2

// * End facing cycle G94 * //

N060 G94 X10 Z-1 F60


N070 Z-2
N080 Z-3
N090 Z-4
N100 Z-5
N120 Z-6
N130 Z-7
N140 Z-8
N150 Z-9
N160 Z-10
N170 G00 X20 Z-10
N180 G94 X20 Z-10 R-15 F60
N190 X20
N200 X19
N210 X18
N220 X17
N230 X16
N240 X15
N250 X14
N260 X13
N270 X12
N280 X11
N290 X10

//* End facing cycle G94 * //

N300 G28 U0 W0
N310 M05
N320 M30

Prerequisite Question:
1. What do you mean by Turning?

2. What is taper Turning?

3. Where taper facing is used?

4. What are the advantages of taper facing over step facing?

5. What are the tools used for taper Turning?

RESULT:

Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

What is mean by T01?


What is use of G94?
What is mean by billet size?
What is M03?
What is M06?

EX NO:4

PROCESS PLANNING
Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

Material: Aluminum
Date:

s.no

Operation

Machine
Tool

Cutting
tool

Tool
Number

Plain
turning

CNC
lathe

PDJNL
01
2020K11
R0.4

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

1200

60

0.5

remarks

EX NO:4
DATE:

PLAIN TURNING CYCLE

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGRM:
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T01
N040 M03 S1200
N050 G00 X21 Z2

//* Box turning cycle * //

N060 G90 X20 Z-30 F60


N070 X19
N080 X18
N090 X17
N100 X16
N110 X15
N120 X14
N130 X13
N140 X12
N150 X11
N160 X10
N170 G28 U0 W0
N180 M05
N190 M30
NOTE: In turning cycle the feed rate can be varied for each steps depends upon the finishing

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

What is use of N block number?


What is mean by G code?
What is use of turning ?
Which code used for spindle off?
What is mean by feed?

EX NO:5

PROCESS PLANNING

Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

s.no

Operation

Machine
Tool

Step turning CNC


lathe

Cutting
tool

Material: Aluminum
Date:

Tool
Number

PDJNL
01
2020K11
R0.4

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

1200

35

0.5

remarks

EX NO:5
DATE:

STEP TURNING CYCLE

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGRM:
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T01
N040 M03 S1200
N050 G00 X21 Z2
N060 G90 X20 Z-10 F60
N070 X19
N080 X18
N090 X17
N100 X16
N110 X15
N120 X14
N130 X13
N140 X12
N150 X11
N160 X10
N170 G00 X21 Z-10
N180 G90 X20 Z-20
N190 X19
N200 X18
N210 X17
N220 X16
N230 X14
N240 G28 U0 W0
N250 M05
N260 M30

//* Box turning cycle *//

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1. What is mean by Home position?
2. What is mean by step?
3. What is the use of G90?
4. What is mean by M30?
5. What is command used for chuck close?

EX NO:6

PROCESS PLANNING
Process planning

Material: Aluminum

Billet size :25*70


Program no: 1234
Department : Mechanical / CAM Lab

Date:

s.no

Operation

Machine
Tool

Cutting
tool

taper
turning

CNC
lathe

PDJNL
01
2020K11
R0.4

EX NO:6
DATE:

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

1200

60

0.5

TAPER TURNING R-

remarks

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGR
BILLET X20 Z50
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T01
N040 M03 S1200
N050 G00 X21 Z2

//* Box turning cycle *//

G90 X20 Z-40 R0 F60

R = (Minor dia) / 2

N070 X20 R-0.5

= (17 - 20) /2

N080 X20 R-1

= -3/2 = - 1.5

N090 X20 R-1.5


N100 G28 U0 W0
N110 M05
N120 M30

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

What are the difference between G01 and C00?


Mention the major components of the CNC machine?
What is the expansion of FANUC?
What is mean by major dia?
What is mean by R?

EX NO:7

PROCESS PLANNING
Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

Material: Aluminum
Date:

s.no

Operation

Machine
Tool

Cutting
tool

Tool
Number

Turning
cycle

CNC
lathe

Grooving
cycle

CNC
lathe

Threading
cycle

CNC
lathe

PDJNL
01
2020K11
R0.4
0.75
03
X0.75,
0.078W,
0.32Depth
LH
Thread
07
0.75
x0.75,
60Deg.,
Depth
0.0885,
LH

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

1200

50

0.5

800

70

0.5

500

0.3

remarks

EX NO:7
DATE:

BOX THREADING CYCLE

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGR
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T01
N040 M03 S1200
N050 G00 X21 Z2
N060 G71 U0.3 R1
N070 G71 P80 Q150 U0.1 W0.1 F50

//* Multiple turning cycle *//

N080 G01 X10


N090 Z0
N100 G01 X12 Z-1
N110 G01 Z-25
N120 G01 X15
N130 G01 Z-40
N140 G01 X19
N150 G01 Z -50
N160 G70 P90 Q150 F70
N170 G28 U0 W0
N180 M06 T03

//* Grooving cycle *//

N190 M03 S800


N200 G00 X14 Z-18
N210 G75 R1
N220 G75 X10 Z-20 P500 Q500 F10
N230 G28 U0 W0
N240 M06 T0606

//*Threading cycle*//
Threading calculation

N250 M03 S500

Core = Nominal -height of thread

N260 G00 X14 Z4

Cd = D - 2h

N270 G92 X12 Z-15 F2

Calculation for height of thread

N280 X11.9

h = 0.61343 x pitch

N290 X11.8

h = 0.61343 x 2

N300 X11.7

Core calculation

N310 X11.6

cd = D - 2h

N320 X11.5

cd = 12 - 2 )1.22686)

N330 X11.4

cd = 9.54628mm

N340 X11.3
N360 X11.1
N370 X11
N380 X10.9
N390 X10.8
N400 X10.7
N410 X10.6
N420 X10.5
N430 X10.4
N440 X10.3
N450 X10.2
N460 X10.1
N470 X10
N480 X9.9
N490 X9.8
N510 X9.6
N520 X9.5
N530 X9.47
N540 G28 U0 W0
N550 M05
N560 M30

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

What are the uses of G codes?


Write syntax for G75.
Can G90 be used for facing?
Name the command used for door open.
What is the use of G75?

EX NO:8

M12*2P

PROCESS PLANNING
Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

Material: Aluminum
Date:

s.no

Operation

Machine
Tool

Cutting
tool

Turning
cycle

CNC
lathe

Grooving
cycle

CNC
lathe

Threading
cycle

CNC
lathe

PDJNL
01
2020K11
R0.4
0.75
03
X0.75,
0.078W,
0.32Depth
LH
Thread
07
0.75
x0.75,
60Deg.,
Depth
0.0885,
LH

EX NO:8

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

1200

50

0.5

800

70

0.5

500

0.3

remarks

DATE:

MULTIPLE THREADING CYCLE I

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGR
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T01

//* Calling turning tool *//

N040 M03 S1200


N050 G00 X22 Z1
N060 G71 U0.5 R1

//* Multiple turning cycle *//

N070 G71 P80 Q130 U0.1 W0.1 f60


N080 G01 X10
N090 Z0
N100 G01 X12 Z-1
N110 G01 Z-30
N120 G01 x20
N130 G01 Z-40
N140 G70 P80 Q130 f50

//* Finishing cycle *//

N150 G28 U0 W0
N160 M06 T03

//* Calling 3mm grooving tool *//

N170 M03 S800


N180 G00 X13 Z-23
N190 G75 R1
N200 G75 X8 Z-25 P500 Q500 F50
N210 G28 U0 W0
N220 M06 T07
N230 M03 S500
N240 G00 X14 Z4
N250 G76 P031560 Q100 R0.15
N260 G76 X9.54 Z-21 P1226 Q125 F2

//* Calling threading tool *//

N270 G28 U0 W0
N280 M05
N290 M30

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

Write the applications of G codes


Mention few important G codes
What are the use of M codes?
Write about some important M codes?
What is the use of multiple turning cycle?

EX NO:9

1*45

M.12*1.5

PROCESS PLANNING
Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

Material: Aluminum
Date:

s.no

Operation

Machine
Tool

Cutting
tool

Tool
Number

Turning
cycle

CNC
lathe

Grooving
cycle

CNC
lathe

Threading
cycle

CNC
lathe

PDJNL
01
2020K11
R0.4
0.75
03
X0.75,
0.078W,
0.32Depth
LH
Thread
07
0.75
x0.75,
60Deg.,
Depth
0.0885,
LH

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

1200

50

0.5

800

70

0.5

500

0.3

remarks

EX NO:9
DATE:

MULTIPLE THREADING CYCLE II

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGR
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T01
N040 M03 S1200
N050 G00 X30 Z1
N060 G71 U0.5 R1
N070 G71 P80 Q150 U0.1 W0.1 f60
N080 G01 X11
N090 Z0
N100 G01 X12 Z-1
N110 G01 Z-34
N120 G01 X16
N130 G01 X24 Z-40
N140 G01 W-10
N150 G01 X30
N160 G70 P80 Q150 f50
N170 G28 U0 W0
N180 M06 T03
N190 M03 S800
N200 G00 X13 Z-33
N210 G75 R1
N220 G75 X8 Z-35 P500 Q500 F50
N230 G28 U0 W0
N240 M06 T07
N250 M03 S500
N260 G00 X17 Z4
N270 G76 P031560 Q100 R0.15
N280 G76 X10.54 Z-31 P0919 Q125 F1.5
N290 G28 U0 W0
N300 M05
N310 M30

//* Calling turning tool *//

//* Multiple turning cycle *//

//* Finishing cycle *//


//* Calling 3mm grooving tool *//

//* Calling threading tool *//

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

What is the difference between G01 and G00?


When do we use G00?
Write syntax for G75.
Write syntax for G70
What is meant by tool offset?

EX NO:10

PROCESS PLANNING
Process planning
Billet size :25*70

Material: Aluminum
Date:

Program no: 1234


Department : Mechanical / CAM Lab

s.no

Operation

Machine
Tool

Cutting
tool

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

Stock
removal
facing cycle

CNC
lathe

PDJNL
2020K
09 R0.8

05

1200

30

0.5

EX NO:10
DATE:

STOCK REMOVAL FACING CYCLE

AIM:
To write the manual part program and process plan for the given component.

remarks

NC PART PROGR
[BILLET X25 Z50
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T05
N040 M03 S1200
N050 G00 X31 Z5
N060 G01 Z0
N070 G72 U0.5 R1

//* Multiple facing cycle *//

N080 G72 P90 Q180 U0.2 W0.2 F30


N090 G01 Z-22.5 F40
N100 X30
N110 X26
N120 Z-17.5
N130 X20 Z-15
N140 Z-10
N150 G02 X10 Z-5 R5 F40
N160 G01 Z-2.5 F50
N170 X5 Z0
N180 Z0
N190 G70 P90 Q180

//* Finishing cycle *//

N200 G28 U0 W0
N210 M05
N220 M30

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
Write syntax for G72.
2.
What is different between G02 and G03?
3.
What is the code for multiple cycles?
4.
How to cut the thread in CNC lathe?
5.
How to change the tool in CNC program

EX NO:11

PROCESS PLANNING

Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

Material: Aluminum
Date:

s.no

Operation

Machine
Tool

Cutting
tool

Stock
removal
turning
cycle

CNC
lathe

PDJNL
05
2020K11
R0.4

EX NO:11
DATE:

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

1200

30

0.5

STOCK REMOVAL TURNING

remarks

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGR
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T05
N040 M03 S1200
N050 G00 X30 Z5
N060 G00 Z1
N070 G71 U0.5 R1
N080 G71 P90 Q150 U0.1 W0.1
N090 G01 X0
N100 Z0
N110 G03 X10 Z-5 R5
N120 G01 Z-15
N130 X20 Z-25
N140 G01 Z-35
N150 G02 X30 Z-40 R5
N160 G70 P90 Q150
N170 G28 U0 W0
N180 M05
N190 M30

RESULT:

//* Finishing cycle *//

Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

What is use of G21?


What is use of G98?
Is G00 a model code?
How the subprogram is named?
Why fixed/canned cycles are preferred?

EX NO:12

PROCESS PLANNING

Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

Material: Aluminum
Date:

s.no

Operation

Machine
Tool

Cutting
tool

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

Pattern
Repeating
Cycle

CNC
lathe

PDJNL
2020K

05

1200

30

0.5

remarks

EX NO:12
DATE:

PATTERN REPEATING CYCLE

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGRAM
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T05

//* Right hand turning tool *//

N040 G50 S2500


N050 S1200 M03
N060 G00 X30 Z1
N070 G71 U0.5 R1
N080 G71 P090 Q140 U0.5 W0.25 F50
N090 G01 X8
N100 G01 Z0
N110 Z-10
N120 X24 W-20
N130 G02 X30 W-20 R30
N140 G01 W-10
N150 G70 P090 Q140
N160 G28 U0 W0
N170 G00 X30 Z1 M08
N180 G73 U.75 W0 R4
N190 G73 P200 Q250 U0.15 W0.15 F50
N200 G01 X6
N210 Z0
N220 Z-10
N230 G01 X22 W-20
N240 G02 X28 W-20 R30
N250 G01 W-10

//* Finishing cycle *//

N260 G70 P200 Q250 F50

//* Finishing cycle *//

N270 G28 U0 W0
N280 M05
N290 M30

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software.

VIVA QUESTIONS:
1.
2.
3.
4.
5.

How to change the tool speed in CNC lathe?


What is the difference between absolute and incremental system?
What are the axes to be considered while writing program for CNC lathe?
What is the file extension of CNC program?
What are the codes for coolants on or off?

EX NO:13

PROCESS PLANNING

Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

s.no

Operation

Machine
Tool

Center drill

6mm drill

12mm drill

CNC
lathe
CNC
lathe
CNC
lathe

Cutting
tool

Material: Aluminum
Date:

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

02

1500

30

0.5

6.00mm, 04
Dia.,
12.00mm, 08
Dia.,

1500

30

0.5

1500

30

0.5

--

remarks

EX NO:13
DATE:

PECK DRILLING CYCLE I

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGR
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T02

//* Center drill *//

N050 M03 S1500


N060 G00 X0 Z3
N070 G74 R1
N080 G74 X0 Z-5 Q500 F30
N085 G28 U0 W0
N090 M06 T04

//* 6mm drill *//

N100 M03 S1500


N110 G00 X0 Z3
N120 G74 R1
N130 G74 X0 Z-20 Q500 F30
N140 G28 U0 W0
N150 M06 T08
N160 M03 S1000
N170 G00 X0 Z3
N180 G74 R1
N190 G74 X0 Z-20 Q500 F30
N200 G28 U0 W0
N210 M05
N220 M30

//* 12mm drill *//

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1. Write the syntax for G74.
2. Calculate core diameter for M18x1.5 thread.
3. Write syntax for G75 cycle.
4. What is different drillings?
5. What is the use of G74cycle?

EX NO:14

PROCESS PLANNING

Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

s.no

Operation

Machine
Tool

Center drill

6mm drill

12mm drill

10mm
boring bar

CNC
lathe
CNC
lathe
CNC
lathe
CNC
lathe

Cutting
tool

Material: Aluminum
Date:

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

02

1500

30

0.5

6.00mm,
04
Dia.,
12.00mm, 08
Dia.,
S10K
03
SDUCL07
R0.2

1500

30

0.5

1500

30

0.5

1500

30

0.5

remarks

EX NO:14
DATE:

PECK DRILLING CYCLE II

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGR
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T02

//* Center drill *//

N050 M03 S1200


N060 G00 X0 Z3
N070 G74 R1
N080 G74 X0 Z-5 Q500 F30
N085 G28 U0 W0
N090 M06 T04

//* 6mm drill3 *//

N100 M03 S1200


N110 G00 X0 Z3
N120 G74 R1
N130 G74 X0 Z-20 Q500 F30
N140 G28 U0 W0
N150 M06 T08

//* 12mm drill *//

N160 M03 S1200


N170 G00 X0 Z3
N180 G74 R1
N190 G74 X0 Z-20 Q500 F30
N200 G28 U0 W0
N210 M06 T03
N220 M03 S1200
N230 G00 X12 Z2
N240 G90 X13 Z-20
N250 X14

//* 10mm boring bar *//

N260 X15
N270 X16 Z-10
N280 X17
N290 X18
N300 X19
N310 X20
N320 G28 U0 W0
N330 M05
N340 M30

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

What is code for spindle stop?


What is code for door close?
What is the code for chuck open?
What is code for door open?
What is use of boring cycle?

EX NO:15

PROCESS PLANNING

Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

Material: Aluminum
Date:

s.no

Operation

Machine
Tool

Cutting
tool

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

6mm drill

1500

30

0.5

12mm drill

08

1500

30

0.5

10mm
boring bar

03

1500

30

0.5

Internal
threading

CNC
lathe

6.00mm,
Dia.,
12.00mm,
Dia.,
S10K
SDUCL07
R0.2
Thread Dia
16.0,55
Deg.,Depth
2.0, LH

04

CNC
lathe
CNC
lathe
CNC
lathe

07

1500

30

0.5

remarks

EX NO:15
DATE:

INTERNAL THREADING

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGR
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T04

//* 6mm drill *//

N040 M03 S1500


N050 G00 X0 Z3
N060 G74 R1
N070 G74 X0 Z-20 Q500 F30
N080 G28 U0 W0
N090 M06 T08

//* 12mm drill *//

N100 M03 S1000


N110 G00 X0 Z3
N120 G74 R1
N130 G74 X0 Z-20 Q500 F30
N140 G28 U0 W0
N150 M06 T03
N160 M03 S1200
N170 G00 X12 Z2
N180 G90 X13 Z-18 F50
N190 X14
N200 X15
N210 X16
N220 X17
N230 X18
N240 X19
N250 X20 Z-13

//* 10mm boring bar *//

N260 X21.58
N270 G28 U0 W0
N280 M06 T07

//* Internal threading tool *//

N290 M03 S500


N300 G00 X18 Z3
N310 G76 P031560 Q100 R0.1
N320 G76 X24 Z-10 P1226 Q125 F2
N330 G28 U0 W0
N340 M05
N350 M30

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

Write the syntax for G76.


Calculate thread height for M18x1.5
Why threading is done at slow speed?
What is the use of M06?
When the uses of

N block numbers?

EX NO:16

PROCESS PLANNING

Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

Material: Aluminum
Date:

s.no

Operation

Machine
Tool

Cutting
tool

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

Center drill

1200

30

0.5

6mm drill

04

1200

30

0.5

12mm drill

08

1200

30

0.5

10mm
boring bar

1.00mm,
Dia.,
6.00mm,
Dia.,
12.00mm,
Dia.,
S10K
SDUCL07
R0.2

02

CNC
lathe
CNC
lathe
CNC
lathe
CNC
lathe

03

1200

30

0.5

EX NO:16
DATE:

PECK DRILLING CYCLE III

remarks

AIM:
To write the manual part program and process plan for the given component.
NC PART PROGR
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T02

//* Center drill *//

N050 M03 S1200


N060 G00 X0 Z3
N070 G74 R1
N080 G74 X0 Z-5 Q500 F30
N090 M06 T04

//* 6mm drill *//

N100 M03 S1200


N110 G00 X0 Z3
N120 G74 R1
N130 G74 X0 Z-20 Q500 F30
N140 G28 U0 W0
N150 N030 M06 T08

//*12mm drill *//

N160 M03 S1200


N170 G00 X0 Z3
N180 G74 R1
N190 G74 X0 Z-20 Q500 F30
N200 G28 U0 W0
N210 M06 T03
N220 M03 S1200
N230 G00 X12 Z2
N240 G71 U0.5 R1
N250 G71 P260 Q290 U0.2 W0.2 F50
N260 G01 X24
N270 G01 Z0
N280 G01 X12 Z-13

//* 10mm boring bar *//

N290 G01 X11


N300 G70 P260 Q290 F50
N310 G28 U0 W0
N320 M05
N330 M30

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software

VIVA QUESTIONS:
1.
2.
3.
4.
5.

What are the difference between drilling and peck drilling?


Mention the major components of the CNC machine?
What is the expansion of FANUC?
What are the important lathe operations?
What are the important of drilling operation?

EX NO:17

PROCESS PLANNING

Process planning
Billet size :25*70
Program no: 1234
Department : Mechanical / CAM Lab

Material: Aluminum
Date:

s.no

Operation

Machine
Tool

Cutting
tool

Tool
Number

Spindle
speed
(rpm)

Feed
Rate
(mm/min)

Depth
of cut
(mm)

Center drill

02

1200

30

0.5

6mm drill

30

0.5

12mm drill

1200

30

0.5

10mm
boring bar

6.00mm
04
Dia.,
12.00mm, 08
Dia.,
S10K
03
SDUCL07
R0.2

1200

CNC
lathe
CNC
lathe
CNC
lathe
CNC
lathe

1200

30

0.5

remarks

EX NO:17
DATE:
MULTIPLE BORING
N010 G21 G40 G98
N020 G28 U0 W0
N030 M06 T02

//* Center drill *//

N050 M03 S1200


N060 G00 X0 Z3
N070 G74 R1
N080 G74 X0 Z-5 Q500 F30
N085 G28 U0 W0
N090 M06 T04

//* 6mm drill *//

N100 M03 S1200


N110 G00 X0 Z3
N120 G74 R1
N130 G74 X0 Z-20 Q500 F30
N140 G28 U0 W0
N150 N030 M06 T08

//* 12mm drill *//

N160 M03 S1200


N170 G00 X0 Z3
N180 G74 R1
N190 G74 X0 Z-20 Q500 F30
N200 G28 U0 W0
N210 M06 T03
N220 M03 S1200
N230 G00 X12 Z2
N240 G71 U0.5 R1
N250 G71 P260 Q320 U0.2 W0.2 F50
N260 G01 X24

//* 10mm boring bar *//

N270 G01 Z0
N280 G01 Z-9.5
N290 G03 X19 Z-12.5 R2.5
N300 G01 W-3
N310 G01 X15 W-3
N320 G01 X12
N330 G70 P260 Q320 F30
N340 G28 U0 W0
N350 M05
N360 M30

RESULT:
Thus the Manual Part Program and progress plan were written for given component and
tool path simulation was verified by using the CNCTrain software.

VIVA QUESTIONS:
1.
2.
3.
4.
5.

Explain about G codes?


Mention few important G codes?
What is the use of M codes?
Write about some important M codes?
What is the use of multiple boring cycle?

CNC MILLING

DESCRIPTION FOR M CODES


M00 Program Stop
M00 waits for EOB to be pressed.
M02 End of Program
M02 halt program execution
The spindle is turned off and the tool moves to the most positive position on the Z axis
M03 Start Spindle
An M03 instruction starts forward spindle motion. It requires a speed within the range 100 to
3000 RPM
Example : M03 S2200
The spindle should be switched on before any movement below the component surface.
M04 Reverse Spindle
An M04 instruction starts reverse spindle motion, it requires a speed within the range 100 to
3000 rpm.
Example : M04 S2200
The spindle should be switched on before any movement below the component surface.
M05 Stop Spindle
An M05 instruction stops spindle rotation.
It is good programming practice to issue an M05 before a tool change, and at the end of a
program, However this will be done automatically should you omit this instruction

M06 Change Tool


The M06 instruction causes the Fanuc to change to a different tool. The tool changing operation
should be done in the home position only.
Example: M06 T1
You can get tool length and diameter at the start of the program using the TOOLDEF directive.
Only for the simulation practice.
M08 Coolant On
M08 turns the coolant on.
M09 Coolant Off
M09 turns the coolant off.
M10/11 Work Clamp Open/Close
M10 opens the work clamp
M11 closes the work clamp.
M13 Coolant Spindle Fwd
M13 turns the coolant on and starts forward spindle motion.
Example : M13 S1000
M14 Coolant Spindle Rev
M13 turns the coolant on and starts reverse spindle motion.
Example: M14 S1000
M19 Orientate Spindle
M19 orientates the spindle

M20 /21 ATC Arm In / Out


M20 moves the ATC arm in.
M21 moves the ATC arm out.

M22 / 23 ATC Arm Down / Up


M22 moves the ATC arm down.
M23 moves the ATC arm up.
M24/25 ATC Arm Clamping
M24 activates the ATC drawbar. [Tool release]
M25 releases the ATC drawbar. [Tool pick up]
M27 Reset Carousel
M27 can be used in the control panel.
The current carousel position is treated as position one.
Example : At the time of tool changing operation the screen will display the current station
number which is engaged for particular operation.
M32/33 Turret Indexing
M32 Clockwise rotation of turret
M33 Counter clockwise rotation of the turret
M38/39 Door Open /Close
M38 opens the door
M39 closes the door
Input/ Output Commands for FMS
M62/65 Auxiliary output 1/2 on
M62 Sets Auxiliary output 1 on
M65 Sets Auxiliary output 2 on
M64/63 Auxiliary output 1/2 off
M64 Sets Auxiliary output 1 off
M63 Sets Auxiliary output 2 off

COMMANDS DESCRIPTION
These commands are available in the machine side
The Robot inputs can be switched on by sending the output signal from machine side to
Robot side as a input signal.
M76//67 Waiting for Auxiliary input 1/2 on
M76 waiting for Auxiliary input 1 on
M67 waiting for Auxiliary input 2 on
NOTE: M76/67/66/77
These M Codes are available in the machine side. The machine side inputs can be switched on by
transferring the output signal from Robot side to machine aide as a input signal.
The machine inputs can be switched on by transferring the high signal which comes from the
Robot side. The machine inputs can be switched off by transferring the low signal which comes
from the Robot side .
M70 X Mirror On
M70 sets X axis mirroring about the current X axis position.
M71 Y Mirror On
M71 sets Y axis mirroring about the current Y axis position.
M76/77 Wait for Auxiliary 1/2 on
M76 waits for auxiliary input 1 t become off
M77 waits for auxiliary input 2 to become off.
M80 X Mirror Off
M80 disables X axis mirroring
M81 Y Mirror Off
M81 disables Y axis mirroring

M98 Subprogram Call


M98 causes another program to be executed. The "P" value specifies the program number and
the number of times to execute it.
The right most 4 digits are the program number.
The digits to the left are the number of repetitions.
There can be up to 999 repetitions, if the value is omitted it is called once.
Examples: M98 P12
and M98 P10012
both execute CNC program 12 once.
M99 Subprogram Exit
Returns control to the program that called the current program.
If a "P" value is specified then execution begins form the block with the same "N" number,
otherwise it is form the block after the subprogram call.
If an M99 is specified in the main program then the execution is form the start of the program.
This is called looping (or) nesting of one or more programs
Example: M99
Returns to the block following the call.
M99 P10
Returns to the block with "N" value 10.

DESCRIPTION OF G CODES
G00 Rapid Traverse or fast Traverse
AG00 causes the tool to move to the specified position at the maximum speed.
Example: G00 X20 Y30 Z1
Here the tool is moved to X 20mm, Y 30mm, and Z 1mm.
G01 Linear Interpolation or Slow Traverse
AG01 causes linear motion to the given position.
Example : G01 X20 Y30 Z -1 F180
Here the tool is moved to X 20 mm, Y 30mm, and Z - 1mm at a feed rate of 180 mm per minute.
G02 Clockwise Circular Interpolation
Arcs can be specified by either radius or by centre.
If a positive radius is specified then the shorter arc is cut. If it is negative then the longer arc is
cut.
Example: G02 X30 Y20 R15 F80
In this example the tool is moved to X30mm and Y 20mm. The arc has a radius of 15mm.
"I" and "J" specify the arc start. If the value is 0 then it need not be specified.
Example: G02 X30 Y20 I15 J0 F80
G03 Counter - Clockwise Circular Interpolation
G03 causes counter - clockwise circular motion.
Arcs can be specified by either radius or arc centre. If a positive radius is specified then the
shorter arc is cut. If it is negative then the longer arc is cut.
Example: G03 X30 Y20 R15 F80
In this example the tool is moved to X 30 mm and Y 20mm. The arc has a radius of 15mm
"I" and "J" specify the arc centre relative to the arc start. If the value is 0 then it need not be
specified.
Example: G03 X30 Y20 I15 J0 F80

G04 Dwell
A Dwell of up to 500 seconds can be programmed.
Example: G04 X10
This causes a delay in machining of 10 seconds. This can be used for drilling cycles.
G20 Imperial Units
All future instruction parameters will be taken as imperial values. That is, they will specify
inches.
G21 Metric Units
All future instruction parameters will be taken as metric values. That is, they will specify
millimeters. By default metric units will be taken for part programming.
G28 Goto Reference Point
A G28 causes a fast traverse to the specified position and then to the machine datum.
Example: G28 X84.0 Y80.0 Z5.0
G40 Cancel Tool Radius Compensation
G40 switches off any tool radius compensation activated by a G41 or G42.
G41 Left Hand Radius Compensation
G41 causes future movement to take place to the left of the programmed path.
The offset used is equal to the radius of the current tool.
G42 Right Hand Radius Compensation
G42 causes future movement to take place to the right of the programmed path
The offset used is equal to the radius of the current tool.
G73 Past Peck Drilling Cycle
Example: G73 X1.0 Y1.0 Z-5.0 Q0.3 R1.0 K1 P500 F30
"X" and "Y" are the next position to drill at.
"Z" is the base of the hole

"Q" is the cut in value


"R" is the R point level
"K" is the number of repetitions it defaults to 1
"p" Dwelling time
"F" Feed rate
G74 Counter Tapping Cycle
Example: G74 X1.0 Y1.0 Z-6.0 R1.0 P750 F30
"X" and "Y" are the next position to drill at
"Z" is the base of the hole
"R" is the R point level
"P" is 1000 times the delay in seconds
"K" is the number of repetitions it defaults to 1.
"F" Feed rate

G84 Tapping Cycle


Example : G84 X1.0 Y1.0 Z-6.0 R1.0 P750 K1 F30
"X" and "Y" are the next position to drill at.
"Z" is the base of the hole
"R" is the R point level
"P" is 1000 times the delay in seconds
"K" is the number of repetitions it defaults to 1.
"F" Feed rate
G85 Boring Cycle
Example: G85 X1.0 Y1.0 Z-6.0 K1 F30
"X" and "Y" are the next position to drill at
"Z" is the base of the hole
"K" is the number of repetitions it defaults to 1.
"F" Feed rate

G86 Boring Cycle


Example: G86 X1.0 Y1.0 Z-6.0 K1 F30
"X" and "Y" are the next position to drill at
"Z" is the base of the hole
"K" is the number of repetitions it defaults to 1.
"F" Feed rate
G87 Back Boring Cycle
Example: G87 X1.0 Y1.0 Z-6.0 P300 Q0.7 K1 F30
"X" and "Y" are the next position to drill at.
"P" is 1000 times the delay in seconds
"Q" is the shift value
"R" is the number of repetitions it defaults to 1
"F" Feed rate
G89 Boring Cycle
Example: G89 X1.0 Y1.0 Z-6.0 P1000 K1 F30
"X" and "Y" are the next position to drill at.
"Z" is the base of the hole
"P" is 1000 times the delay in seconds
"K" is the number of repetitions it defaults to 1.
"F" Feed rate
G90 Absolute Movement
All future movement will be absolute until over - ridden by a G91 instruction. This is the default
setting.
Example: G90
G01 X30 Y0
The position becomes X30 Y0

G91 Incremental Movement


All future movement will be incremental until over - ridden by a G90 instruction.
Example: G90
G01 X15
G91
G01 X2
The position become X17
G92 Set Datum
G92 sets the datum relative to the current position.
Example: G00 X30.0 Y40.0
G92 X0.0 Y0.0
Makes the position that was X30 Y40 become X0 Y0
G94 Per Minute Feed
The "F" value specifies the feed rate in millimeters, or inches, per minute.
G95 Per Revolution Feed
The "F" value is the ratio of feed rate to spindle speed. The feed rate is changed whenever the
spindle changes.
Example: G95 S1200
G01 X10.0 P0.3
This sets the feed rate to 360, (1200*0.3)
G98 Initial Level Return
G98 sets the initial level return mode for drilling cycles.
G99 R Point Return
G99 sets the R point return mode for drilling cycles.

PROGRAM No.02
LINEAR INTERPOLATION
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S1200
N60 G90 G00 X-40 Y-40
N070 Z5
N080 G01 Z-1 F50
N090 Y40
N100 X40
N110 Y-40
N120 X-40
N130 X40 Y40
N140 G00 Z5
N150 G00 X-40 Y40
N160 G01 Z-1 F50
N170 X40 Y-40
N180 G00 Z5
N190 M05
N200 G91 G28 Z0
N210 G28 X0 Y0
N220 M30
VIVA QUESTIONS:
1.
2.
3.
4.

What is the difference between G00 and G01codes?


How to make Rectangular box ?
What is the code for multiple cycle?
How to select cutter?

PROGRAM No.02
LINEAR WITH CIRCULAR INTERPOLATION
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S1200
N060 G90 G00 X-22.5 Y-37.5
N070 G00 Z5
N080 G01 Z-1 F50
N090 G03 X-37.5 Y-22.5 R15
N100 G01 Y22.5
N110 G03 X-22.5 Y37.5 R15
N120 G01 X22.5
N130 G02 X37.5 Y22.5 R15
N140 G01 Y-22.5
N150 G03 X22.5 Y-37.5 R15
N160 G01 X-22.5
N170 G00 Z5
N180 G00 X-15 Y0
N190 G01 Z-1 F50
N200 G03 X15 Y0 R15
N210 G03 X-15 Y0 R15
N220 G00 Z5
N230 M05
N240 G91 G28 Z0
N250 G28 X0 Y0
N260 M30
VIVA QUESTIONS:
1.
2.
3.
4.
5.

How to change the tool speed in CNC milling?


What is the difference between absolute and incremental system?
What are the axes to be considered while writing program for CNC milling?
What is the file extension of CNC program?
What are the codes for coolants on or off?

(PROGRAM No.03)
LINEAR CIRCULAR INTERPOLATION WITH CIRCULAR, RECTANGULAR POCKETING)
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N035 M06 T2
N040 M03 S1200
N050 G90 G00 X-30 Y-30
N060 G00 Z5
N070 G01 Z-1 F50
N080 Y-10
N090 G02 X-30 Y10 R10
N100 G01 Y30
N110 X-10
N120 G02 X10 Y30 R10
N130 G01 X30
N140 Y10
N150 G02 X30 Y-10 R10
N160 G01 Y-30
N170 X10
N180 G02 X-10 Y-30 R10
N190 G01 X-30
N200 G00 Z5
N210 G170 P0 Q1 R0.5 X-10 Y10 Z-2 I0 J0 K10
N220 G171 P50 S2000 R40 F60 B2500 J100
N230 G170 P0 Q1 R0.5 X10 Y-10 Z-2 I0 J0 K10
N240 G171 P75 S2000 R50 F70 B2500 J50
N250 G172 I16 J16 K0 P0 Q1 R0 X7 Y7 Z-2
N260 G173 I0 K0 P75 T1 S2000 R50 F80 B2500 J80 Z5
N270 G172 I16 J16 K0 P0 Q1 R0 X-23 Y-23 Z-2
N280 G173 I0 K0 P75 T1 S2000 R40 F60 B2500 J80 Z5

N290 G00 Z5
N300 M05
N310 G91 G28 Z0
N320 G28 X0 Y0
N230 M30

VIVA QUESTIONS:
1.
2.
3.
4.

What is the g code for circular pocketing?


How to change the depth of cut in milling operation?
What is the use of mirroring?
What are the functional keys uses in Fanuc programming?

5. What is use of dry run option?

PROGRAM No.04
ARC EXPLANATION
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S2500
N060 G90 G00 X10 Y10
N070 G00 Z5
N080 G01 Z-1.2 F50
N090 G02 X10 Y70 R100
N100 G02 X70 Y70 R100
N110 G02 X70 Y10 R100
N120 G03 X10 Y70 R30
N130 G03 X70 Y70 R30
N140 G03 X70 Y10 R30
N150 G03 X10 Y10 R30
N160 G00 Z5
N170 M05
N180 G91 G28 Z0
N190 G28 X0 Y0
N200 M30

VIVA QUESTIONS:
1. What is mean by G02?
2. What is the difference between absolute and incremental system?
3. What are the axes to be considered while writing program for CNC Milling?
4. What is the code for multiple cycles?
5. What is mean by G91?

PROGRAM No.05
ARC EXPLANATION
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S1800
N060 G90 G00 X-35 Y-36.5
N070 Z5
N080 G01 Z-1 F50
N090 Y-31.5
N100 G02 X-2.5 Y25.04 R65
N110 G02 X35 Y3.39 R25
N120 G01 Y-11.25
N130 G02 X10 Y-36.25 R25
N140 G01 X-35 Y-36.25
N150 G00 Z5
N160 M05
N170 G91 G28 Z0
N180 G28 X0 Y0
N190 M30
VIVA QUESTIONS:
1. What are the important milling operations?
2. What is different between Turning and Milling?
3. What is the use of M codes?
4. Write about some important M codes?
5. What is the use of M codes?

PROGRAM No.06
MIRROR IMAGING
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S1800
N060 G90 G00 X0 Y0
N070 G00 Z5
N080 M98 P0010008
N090 M70
N100 M98 P0010008
N110 M80
N120 M70
N130 M71
N140 M98 P0010008
N150 M80
N160 M81
N170 M71
N180 M98 P0010008
N190 M81
N200 G00 Z5
N210 M05
N220 G91 G28 Z0
N230 G28 X0 Y0
N240 M30

INCREMENTAL METHOD
(SUBPROGRAM FOR EX 6
O0008
N010 G90 G00 X10 Y10
N020 G01 Z-.5 F50
N030 X40
N040 X10 Y40
N050 Y10
N060 G00 Z6
N070 G00 X0 Y0
N080 M99

VIVA QUESTIONS:
1. What is mean by M05?
2. What is mean by R?
3. What is the use of G98?
4. What is mean by M30?
5. Mention few important G codes?

PROGRAM No.07
MILLING THE FLAG
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T01
N050 M03 S2000
N060 G90 G00 X-30 Y-45 Z5
N070 G01 Z-1.2 F50
N080 G02 X-45 Y-30 R15
N090 G01 Y30
N100 G02 X-30 Y45 R15
N110 G01 X30
N120 G02 X45 Y30 R15
N130 G01 Y-30
N140 G02 X30 Y-45 R15
N150 G01 X-30
N160 G00 Z5
N170 G00 X0 Y-45
N180 G01 Z-1.2 F50
N190 G03 X-45 Y0 R60
N200 G03 X0 Y45 R60
N210 G03 X45 Y0 R60
N215 G03 X0 Y-45 R60
N218 G00 Z5
N220 G170 R0 P0 Q1 X0 Y10 Z-2.2 I0 J0 K10
N230 G171 P75 S2000 R50 F70 B2500 J50
N240 G172 I20 J20 K0 P0 Q1 R0 X-10 Y-10 Z-2.2
N250 G173 I0 K0 P75 S1200 T1 S1800 R50 F60 B2500 J50 Z5
N250 G00 Z5
N260 G00 X0 Y0

N270 M98 P1000


N280 M70
N290 M98 P1000
N300 M80
N310 M70
N320 M71
N330 M98 P1000
N340 M80
N350 M81
N360 M71
N370 M98 P1000
N380 G00 Z5
N390 G83 G99 X32 Y32 Z-2.2 Q1 R1 F40 K1
N400 X-32 Y32
N410 Y-32
N420 X32
N430 G80
N440 G00 Z5
N450 G00 X0 Y0
N460 G81 G99 X-20 Y0 Z-2.2 R1 F50
N470 G82 G99 X20 Y0 Z-2.2 R2 F50 P1000 Q1 K1
N480 G00 Z5
N490 G80
N500 M05
N510 G91 G28 Z0
N520 G28 X0 Y0
N530 M30

SUBPROGRAM FOR EX 7
O1000
N010 G90 G00 X25 Y35
N020 G01 Z-1.2 F50
N030 X35
N040 Y25
N050 X25 Y35
N060 G00 Z5
N070 X0 Y0
N080 M99

VIVA QUESTIONS:
1. What is meant by cutter compensation?
2. What is use of G98?
3. Milling machine used to make Gear yes or no?
4. How the subprogram is named?
5. Why fixed/canned cycles are preferred?

PROGRAM No.08
PROFILE MILLING
N010 G21 G94
N020 G91 G28 Z0
N030 G28 X0 Y0
N040 M06 T2
N050 M03 S2000
N060 G90 G00 X5 Y42 Z5
N070 G01 Z-1 F50
N080 G03 X4 1 Y27 R43
N090 X64 Y31 R29
N100 G01 X62 Y35
N110 G03 X80 Y49 R32
N120 X93 Y56 R36
N130 G02 X76 Y76 R26
N140 X67 Y62 R30
N150 X59 Y70 R6
N160 G01 X41 Y76
N170 X35 Y69
N180 G03 X5 Y56 R43
N190 G02 X5 Y42 R8
N200 G01 Z5
N210 G00 X17 Y56
N220 G01 Z-1
N230 G01 Z5
N240 G91 G28 Z0
N250 G28 X0 Y0
N260 M05
N270 M30

VIVA QUESTIONS:
1. What is mean by profile?
2. Which mean by M05?
3. Write syntax for G90.
4. Is it possible to do circular cutting with G90?
5. What is meant by tool offset?

ROBOT

ROBOT COMMANDS
JOINT
To teach current position as a joint co-ordinate
PTP
To teach current position as a point
START SPLINE
Initial point to define a spline
END SPLINE
End point of a spline
HOME ALL
All six axes rested at home position
ROBOT GRIPPER
GRIPPER OPEN
To open pneumatic gripper
GRIPPER CLOSE
To close pneumatic gripper
ARITHMETIC OPERATORS
=, +, -, *, / are used in program for loop/ repetitive operation.
FLOW CONTROL
JUMP
To bypass the program control to the desired line
LABEL
To name a program (or) a line

WAIT
To provide idle (or) waiting time in terms of milliseconds.
SPEED
To set the operating speed of elements in mm/sec
CONTROL OPERTORS
1. Commands - =, < and > used in program for loop/ repetitive operation
2. To check the decision criteria which is specified in program
PORT
To name of port in control in switch on/ off
OUT PUT
PRINT
To print the program using printers
REMARK
To program of adding work in remark
PORTMASK- 0
Switch off port- To stop receiving massage via port
PORTMASK-1
Switch on port- To start receiving massage via port

RUNNING A ROBOT PROGRAM

AUTO
To run the whole program continuously without any in eruptions
SINGLE SETP
To execute the program step (or) line by line
SELECTION
To execute the sleeted line
INDIVIDUAL AXIS HOME
To set the individual axis to the home position
CIRCLE- MID
To teach current position as midpoint of circular motion
CIRCEL- END
To teach current position as end point of circle motion
JOINT CONTROL
All individual joints J1, J2, J3, J4, J5 and J6 can be controlled manually by clicking joint
control in positive and negative directions.

EX NO: 1

Pick and place operation

Pick and Place Operation


LET S = 0
LABEL BIT
GRIPPER OPEN
SPEED 45
/* Speed 45 mm/sec*/
JOINT A1 -245.65 A2 -90.00 A3 90.00 A4 0.00 A5 90.00 A6 0.03 /*Joint coordinate position*/
JOINT A1 -245.65 A2 -76.53 A3 84.95 A4 0.00 A5 1.44 A6 0.03
JOINT A1 -245.65 A2 -63.89 A3 87.81 A4 0.00 A5 -20.07 A6 0.03
JOINT A1 -245.65 A2 -52.02 A3 92.40 A4 0.00 A5 -40.25 A6 0.03
WAIT 2000
/* Idle time 2 Sec*/
GRIPPER CLOSE
JOINT A1 -245.65 A2 -61.59 A3 95.17 A4 0.00 A5 -40.25 A6 0.04
JOINT A1 -245.65 A2 -70.24 A3 92.52 A4 0.00 A5 -21.96 A6 0.04
JOINT A1 -245.65 A2 -90.09 A3 96.60 A4 0.00 A5 -1.77 A6 0.04
JOINT A1 -65.20 A2 -90.03 A3 89.86 A4 0.00 A5 -1.77 A6 0.04
JOINT A1 -60.84 A2 -73.40 A3 73.23 A4 0.00 A5 -8.43 A6 0.04
JOINT A1 -60.23 A2 -55.82 A3 57.06 A4 0.00 A5 -19.56 A6 0.04
JOINT A1 -60.12 A2 -53.17 A3 54.41 A4 0.00 A5 -9.30 A6 0.04
WAIT 2000
GRIPPER OPEN
JOINT A1 -60.12 A2 -86.70 A3 87.94 A4 0.00 A5 -10.54 A6 0.04
JOINT A1 -60.12 A2 -90.00 A3 90.00 A4 0.00 A5 90.00 A6 0.03
ADD S = S + 1
/ * Arithmetic operations*/
IF S < 5 JUMP BIT
/* Conditional operator*/
HOME ALL

EX NO: 2

Load and unload into CNC Milling

Load and unload into CNC Milling


LET S = 0
LABEL BIT
IF_PORT 1 JUMP LOAD
IF_PORT 2 JUMP UNLOAD
JUMP MTAB
LABEL LOAD
PORTMASK 1
PORTMASK 1
SPEED 45
/* Speed 45 mm/sec*/
GRIPPER OPEN
JOINT A1 24.63 A2 -76.91 A3 91.94 A4 0.00 A5 -22.09 A6 0.03 /*Joint coordinate position*/
JOINT A1 24.63 A2 -51.07 A3 85.34 A4 -0.00 A5 -38.35 A6 0.02
JOINT A1 24.63 A2 -48.74 A3 83.00 A4 0.00 A5 -38.15 A6 0.01
GRIPPER CLOSE
WAIT 2000
/* Idle time 2 Sec*/
JOINT A1 24.63 A2 -49.71 A3 83.97 A4 0.00 A5 -41.15 A6 0.01
JOINT A1 24.63 A2 -76.91 A3 91.94 A4 0.00 A5 -22.09 A6 0.03
JOINT A1 -61.61 A2 -74.37 A3 78.09 A4 0.00 A5 -10.10 A6 0.03
JOINT A1 -61.61 A2 -55.00 A3 54.90 A4 0.00 A5 -17.55 A6 -0.16
JOINT A1 -61.61 A2 -54.09 A3 53.99 A4 0.00 A5 -5.76 A6 -0.15
GRIPPER OPEN
WAIT 2000
/* Idle time 2 Sec*/
JOINT A1 -61.61 A2 -77.91 A3 77.81 A4 0.00 A5 -2.77 A6 -0.23
JOINT A1 -61.61 A2 -89.94 A3 90.30 A4 0.00 A5 90.21 A6 -0.17
PORTMASK 0
PORTMASK 0
PORTMASK 0
JOINT A1 25.33 A2 -89.94 A3 90.30 A4 0.00 A5 90.21 A6 -0.17
JUMP MTAB
LABEL UNLOAD
PORTMASK 1
PORTMASK 1
SPEED 45
/* Speed 45 mm/sec*/
GRIPPER OPEN
JOINT A1 -61.68 A2 -89.94 A3 90.30 A4 0.00 A5 90.21 A6 0.00
JOINT A1 -61.68 A2 -77.91 A3 77.81 A4 0.00 A5 -2.77 A6 0.00
JOINT A1 -61.68 A2 -53.37 A3 53.27 A4 0.00 A5 -5.09 A6 -0.10
GRIPPER CLOSE
WAIT 200
/* Idle time 2 Sec*/
JOINT A1 -61.78 A2 -55.15 A3 55.05 A4 0.00 A5 -16.20 A6 -0.10
JOINT A1 -61.78 A2 -74.37 A3 78.09 A4 0.00 A5 -10.10 A6 0.00
JOINT A1 25.00 A2 -76.91 A3 91.94 A4 0.00 A5 -22.09 A6 0.00
JOINT A1 25.00 A2 -50.07 A3 84.34 A4 0.00 A5 -38.57 A6 0.01
JOINT A1 25.00 A2 -49.14 A3 83.41 A4 0.00 A5 -35.52 A6 -0.03

GRIPPER OPEN
WAIT 2000
/* Idle time 2 Sec*/
JOINT A1 25.00 A2 -58.44 A3 82.96 A4 0.00 A5 -16.25 A6 0.08 /*Joint coordinate position*/
PORTMASK 0
PORTMASK 0
PORTMASK 0
JOINT A1 25.00 A2 -87.28 A3 91.32 A4 0.00 A5 88.65 A6 0.00

CNC TURNING ADDITIONAL EXERCISE

TURNING OF THE COMPONENT


NC PART PROGRAM
G21 G40 G98
G28 U0 W0
M06 T0101
M03 S1200
G00 X55 Z2
G71 U0.5 R1
G71 P1 Q8 U0.1 PW0.1 F50
N1 G00 X0 Z2
G01 X0 Z0
X30 Z-15
Z -40
X40
Z-55
X50
N8 Z-70
G70 P1 Q8
G28 U0 W0
M06 T0202
G00 X32 Z-18
G01 X20
G00 X28
Z-21
G01 X20
GOO X28
G00 X43 Z-45
G01 X30
G00 X45
Z-48
G01 X30
G00 X43
G28 U0 W0
M06 T0308
G00 X30 Z-15
G03 X27 Z-18 R3 F50
G00 X55 Z2
M05
M30

TURNING OF THE COMPONENT


NC PART PROGRAM
G21 G40 G98
G28 U0 W0
M06 T0101
M03 S1200
G71 U0.5 R1
G71 P1 Q6 U.1 W.1 F50
N1 GOO X0 Z2
G01 X0 Z0
X25 Z-10
Z-30
X32
N6 Z-36
G28 U0 W0
M06 T0202
G00 X28 Z-15
G01 X20
G00 X28
Z-18
G01 X20
G00 X28
G28 U0 W0
M06 T0303
G71 U.5 R1
G71 P11 Q14 U.1 W.1 F50
N11 G00 X35 Z-65
G01 X0 Z-65
X25 Z-55
N14 Z-36
G70 P11 Q14
G28 U0 W0
M06 T0404
GOO X28 Z-45
G01 X20
G00 X28
Z-48
G01 X20
X28
G28 U0 W0
M05
M30

CNC MILLING ADDITIONAL EXERCISE

MILLING OF THE COMPONENT


NC PART PROGRAM
G28 G40 G94
G21 X0 Y0 Z0
M06 T0101
M03 S1000 F30
G00 X12 Y12 Z2
G01 Z-2
X12 Y57
G01 X87
G01 X87 Y12
G01 X12
Z2
G00 X8 Y8
G01 X8 Y8 Z-2
G00 Z2
Y62
G01 Y62 Z-2
G00 Z2
X92
G01 X92 Z-2
G00 Z2
X92 Y8
G01 X92 Y8 Z-2
G00 Z2
X0 Y0
G00 X30 Y22.5
G01 Z-2
X45
G03 X55 R5
G01 X70 Y22.5
Y30
G03 Y40 R5
G01 Y47.5
X55
G03 X45 R5
G01 X30 Y47.5
Y40
G03 Y30 R5
G01 X30 Y22.5
Z2
G28 X0 Y0 Z0
M05
M30

MILLING OF THE COMPONENT

NC PART PROGRAM
G21 G40 G94
G28 X0 Y0 Z0
M06 T0101
M03 S1200
G00 X20 Y10 F20
G172 I60 J50 P0 Q1 R0 X20 Y10 Z-2
G173 I0 K0 P75 T1 S1200 R50 F25 B1500 J75 Z5
G00 X50 Y35
G170 R0 P1 Q1 X50 Y35 Z-3 I0 J0 K20
G171 P75 S1200 R75 F25 B1500 J100
G00 X40 Y25 Z5
G83 X40 Y25 Z-5 Q1 F30
Z5
X60 Y25 Z-5
Z5
X60 Y45 Z-5
Z5
X40 Y45 Z-5
Z5
G28 X0 Y0 Z0
M05
M30

MILLING OF THE COMPONENT


NC PART PROGRAM
G21 G40 G94
G28 X0 Y0 Z0
M06 T0101
M03 S1200
G00 X15 Y5 Z2
G01 Z-2 F50
G02 X15 Y65 R60
G03 X85 R120
G02 X85 Y5 R60
G03 X15 Y5 R120
G01 Z5
G00 X30 Y35 Z2
G01 Z-2
G02 X50 Y55 R20
X70 Y35 R20
X50 Y15 R20
X30 Y35 R20
G01 Z2
G00 X40 Y45 Z2
G01 Z-2
G03 X60 Y45 R20
X60 Y25 R20
X40 Y25 R20
X40 Y45 R20
G01 Z5
G00 X50 Y35 Z2
G01 Z-6
Z6
G28 X0 Y0 Z0
M05
M30

ENGRAVING THE LETTERS OF BIT


NC PART PROGRAM
G40 G94 G20
G28 X0 Y0 Z0
M06 T0101
M03 S1200
G00 X15 Y15 Z2
G01 X15 Y15 Z-2 F20
Y55
G02 X15 Y35 R10
X15 Y15 R10
G00 Z2
G00 X35 Y15 Z2
G01 Z-2
X50
G00 Z2
X42.5
G01 X42.5 Y15 Z-2
Y55
G00 Z2
X35 Y55
G01 X35 Y55 Z-2
X50
G00 Z2
X60 Y55
G01 Z-2
X75
Z2
G00 X67.5 Z-2
G01 X67.5 Y15
Z5
G28 X0 Y0 Z0
M05
M30

You might also like