CAMMechatronics Lab Manual
CAMMechatronics Lab Manual
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
CNC – LATHE
List of G – codes
List of M-codes
Expt. No. :
Date :
Aim: To write the manual part program for turning operation using box turning cycle of given
dimensions and execute in CNC Lathe.
Material required:
Material : Aluminum
Size : Diameter 25mm and Length 50mm
Program:
[BILLET X25 Z50;
G21 G98 G40;
G28 U0 W0;
G50 S2000;
M06 T01;
M03 S1200;
G00 X26 Z1;
G90 X24 Z-30 F45;
X23;
X22;
X21;
X20;
G00 X21 Z1;
G90 X19 Z-10 F45;
X18;
X17;
X16;
X15;
X14;
X13;
X12;
X11;
X10;
M05;
G28 U0 W0;
M30;
Result:
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
Aim: To write the manual part program for turning operation using multiple turning cycle of given
dimensions and execute in CNC Lathe.
Material required:
Material : Aluminum
Size : Diameter 25mm and Length 50mm
Program:
[BILLET X25 Z50;
G21 G98 G40;
G28 U0 W0;
G50 S2000;
M06 T01;
M03 S1200;
G00 X26 Z1;
G71 U0.5 R1;
G71 P100 Q200 U0.1 W0.1 F45;
N100 G01 X0;
Z0;
G03 X10 Z-5 R5;
G01 X10 Z-15;
G02 X20 Z-25 R10;
G01 X20 Z-30;
N200 G01 X25 Z-40;
M03 1500;
G70 P100 Q200 F25;
M05;
G28 U0 W0;
M30;
Note:
G71 U0.5 R1
Where,
U0.5 - depth of cut in mm
R1 - relief in mm
Conditions:
• In the first line number only G01 and X codes must only be written.
• Z code for the first coordinate must be written in the next line.
• G71 will not work for left downward taper.
• Between G71 cycle only G01, G02 and G03 must be written
Result:
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
Material required:
Material : Aluminum
Size : Diameter 25mm and Length 50mm
Program:
[BILLET X25 Z50;
G21 G98 G40;
G28 U0 W0;
G50 S2000;
M06 T01;
M03 S1200;
G00 X26 Z1;
G90 X24 Z-39 F45;
X23;
G00 X24 Z1;
G90 X22 Z-34 F45;
X21;
X20;
G00 X21 Z1;
G90 X19 Z-10 F45;
X18;
X17;
X16;
X15;
X14;
X13;
X12;
X11;
X10;
G00 X11 Z1;
G90 X10 Z-10 R-0.5 F40;
X10 R-1;
X10 R-1.5;
X10 R-2;
X10 R-2.5;
X10 R-3;
X10 R-3.5;
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
X10 R-4;
X10 R-4.5;
X10 R-5;
G00 X21 Z-10;
G00 X20 Z-15;
G90 X19 Z-22 R0.5 F40;
X18 R1;
X17 R1.5;
X16 R2;
X15 R2.5;
G00 X21 Z-21;
G90 X20 Z-29 R-0.5 F40;
X20 R-1;
X20 R-1.5;
X20 R-2;
X20 R-2.5;
G00 X25 Z1;
M05;
G28 U0 W0;
M30;
Result:
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
Expt. No. :
Date :
Aim: To write the manual part program for grooving using multiple grooving cycle of given
dimensions and execute in CNC Lathe.
Material required:
Material : Aluminum
Size : Diameter 40mm and Length 55mm
Program:
[BILLET X40 Z55;
G21 G98 G40;
G28 U0 W0;
G50 S2000;
M06 T01;
M03 S1200;
G00 X41 Z1;
G71 U0.5 R1;
G71 P100 Q200 U0.1 W0.1 F45;
N100 G01 X16;
Z0;
G01 X30 Z-2;
G01 X30 Z-35;
N200 G01 X40 Z-45;
G28 U0 W0;
M06 T02;
M03 S700;
G00 X31 Z-17;
G75 R1;
G75 X24 Z-30 P1000 Q1750 F10;
G01 X33;
M05;
G28 U0 W0;
M30;
Note:
G75 R1
Where,
R1 - relief in mm
G75 X24 Z-30 P1000 Q1750 F10;
Where,
X24 - minor dia. of groove
Z-30 - final point in length
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
Aim: To write the manual part program for threading using multiple threading cycle of given
dimensions and execute in CNC Lathe.
Material required:
Material : Aluminum
Size : Diameter 40mm and Length 55mm
Program:
[BILLET X40 Z55;
G21 G98 G40;
G28 U0 W0;
G50 S2000;
M06 T01;
M03 S1200;
G00 X41 Z1;
G71 U0.5 R1;
G71 P100 Q200 U0.1 W0.1 F45;
N100 G01 X16;
Z0;
G01 X30 Z-2;
G01 X30 Z-35;
N200 G01 X40 Z-45;
G28 U0 W0;
M06 T02;
M03 S700;
G00 X31 Z-17;
G75 R1;
G75 X24 Z-30 P1000 Q1750 F10;
G01 X33;
G00 Z1;
G28 U0 W0;
M06 T03;
M03 S350;
G00 X31 Z1;
G76 P031560 Q50 R0.1;
G76 X27.546 Z-16 P1227 Q60 F2;
M05;
G28 U0 W0;
M30;
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
Note:
G76 P031560 Q50 R0.1
Where, P031560 -
03 - no. of finishing passes
15 - pull out angle
60 - angle of thread
Q50 - depth of cut in microns
R0.1- finishing allowance
G76 X27.546 Z-16 P1227 Q60 F2;
Where,
X27.546 - core diameter for M30x2 fine series
Z-16 - length of thread
P1227 - depth of thread in microns
Q60 - first depth of cut
F2 - pitch of the thread
Result:
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
CNC – Milling
List of G – codes
List of M-codes
Aim: To write the manual part program using linear and circular interpolation of given dimensions
and execute in CNC Milling.
Material required:
Material : Acrylic sheet
Size : Length 100mm, Width 100mm and Thickness 5mm
Program:
[BILLET X100 Y100 Z5;
[EDGEMOVE X0 Y0;
[TOOLDEF T1 D5;
G21 G94 G40;
G91 G28 Z0;
G28 X0 Y0;
M06 T01;
M03 S1500;
G90 G00 X0 Y0 Z5;
G00 X25 Y10;
G01 Z-2 F40;
G03 X10 Y25 R15;
G01 X10 Y75;
G02 X25 Y90 R15;
G01 X75 Y90;
G03 X90 Y75 R15;
G01 X90 Y25;
G02 X75 Y10 R15;
G01 X25 Y10;
G01 Z5;
M05;
G91 G28 X0 Y0 Z0;
M30;
Result:
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
CIRCULAR POCKETTING
Expt. No. :
Date :
Aim: To write the manual part program using circular pocketing of given dimensions and execute
in CNC Milling.
Material required:
Material : Acrylic sheet
Size : Length 100mm, Width 100mm and Thickness 5mm
Program:
[BILLET X100 Y100 Z5;
[EDGEMOVE X-50 Y-50;
[TOOLDEF T1 D5;
G21 G94 G40;
G91 G28 Z0;
G28 X0 Y0;
M06 T01;
M03 S1500;
G90 G00 X0 Y0 Z5;
G01 Z0 F300;
G170 R0 P0 Q1 X0 Y0 Z-3 I0.5 J0.1 K-25;
G171 P75 S2500 R75 F250 B3500 J200;
G00 Z5;
M05;
G91 G28 X0 Y0 Z0;
M30;
Note:
G170 R0 P0 Q1 X0 Y0 Z-3 I0.5 J0.1 K-25;
Where,
R0 - reference point
P0 - roughing
P1 - finishing
Q1 - depth of each cut
X, Y - center coordinate of circle measured from datum point
Z-3 - total depth
I0.5 - finishing allowance at side
J0.5 - finishing allowance at bottom
K-25 - radius of pocket
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
Result:
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
RECTANGULAR POCKETTING
Expt. No. :
Date :
Aim: To write the manual part program using rectangular pocketing of given dimensions and
execute in CNC Milling.
Material required:
Material : Acrylic sheet
Size : Length 100mm, Width 100mm and Thickness 5mm
Program:
[BILLET X100 Y100 Z5;
[EDGEMOVE X-50 Y-50;
[TOOLDEF T1 D5;
G21 G94 G40;
G91 G28 Z0;
G28 X0 Y0;
M06 T01;
M03 S1500;
G90 G00 X0 Y0 Z5;
G01 Z0 F300;
G172 I-60 J-50 K0 P0 Q1 R0 X-30 Y-25 Z-3;
G173 I0.5 K0.1 P75 T1 S2500 R75 F250 B3000 J200 Z5;
G00 Z25;
M05;
G91 G28 X0 Y0 Z0;
M30;
Note:
G172 I-60 J-50 K0 P0 Q1 R0 X-30 Y-25 Z-3;
Where,
I - length of the rectangle in X-axis
J - width of the rectangle in Y-axis
K - corner radius
P0 - roughing
P1 - finishing
Q - depth of each cut
R - reference point
X, Y - left downward coordinate
Z - total depth of cut
G173 I0.5 K0.1 P75 T1 S2500 R75 F250 B3000 J200 Z5;
Where,
I&K - finishing allowance at side & base
P - percentage of cut
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
T - tool
S - speed
R - feed in Z-axis
F - feed in X and Y axis
B&J - finishing speed & feed
Z - safe height
Result:
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
PECK DRILLING
Expt. No. :
Date :
Aim: To write the manual part program using peck drilling of given dimensions and execute in
CNC Milling.
Material required:
Material : Acrylic sheet
Size : Length 100mm, Width 100mm and Thickness 5mm
Program:
[BILLET X100 Y100 Z5;
[EDGEMOVE X0 Y0;
[TOOLDEF T1 D5;
G21 G94 G40;
G91 G28 Z0;
G28 X0 Y0;
M06 T01;
M03 S1500;
G90 G00 X25 Y25 Z5;
G83 G99 X25 Y25 Z-3 Q1 R2 F200;
X75 Y25;
X50 Y50;
X25 Y75;
G98 X75 Y75;
G80;
G00 Z25;
M05;
G91 G28 X0 Y0 Z0;
M30;
Note:
G83 G99 X25 Y25 Z-3 Q1 R2 F200;
Where,
G83 - peck drilling cycle
G99 - return to R in canned cycle
X & Y - first drill coordinate
Z-3 - total depth of cut
Q1 - depth of each cut
R2 - starting point of drilling cycle in Z-axis
F - feed in Z-axis
G98 - return to initial point in canned cycle
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
Result:
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
MIRRORING
Expt. No. :
Date :
Aim: To write the manual part program using mirroring of given dimensions and execute in CNC
Milling.
Material required:
Material : Acrylic sheet
Size : Length 100mm, Width 100mm and Thickness 5mm
Program:
[BILLET X100 Y100 Z5;
[EDGEMOVE X-50 Y-50;
[TOOLDEF T1 D5;
G21 G94 G40;
G91 G28 Z0;
G28 X0 Y0;
G50 S3000;
M06 T1;
M03 S2000;
G01 Z0 F300;
G90 G00 X10 Y10 Z5;
M98 P0011000;
M70;
M98 P0011000;
M80;
M71;
M98 P0011000;
M70;
M98 P0011000;
M80;
M05;
G90 G28 X0 Y0 Z0;
M30;
Result:
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
STUDY ON PLC
Introduction: Programmable logic controllers are based on special purpose, computer that can be
programmed to perform functions that relays and other electro chemical devices.
Manual control:
1. Operator performs all actions to process control and automation.
2. One of the major drawbacks of this method is higher.
3. Probability of human error and consequently its effects on quality at final product.
PLC Architecture:
The PLC is basically a programmed interface between field input elements like limit
switches, sensors as transducers with push buttons and the final control elements like actuators,
solenoid valves, dampers, drives, LED’s etc.
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
This interface called a programmable logic controller consists of five major blocks namely
1. Input module
2. CPU with processor and program memory
3. Output module
4. Bus system
5. Power supply
Input Module:
The input module acts as an interface between the control input and the CPU. The
voltage/current signal generator by the sensors, transducers, and limit switches, push buttons etc
are supplied to terminal of the logic module. The input module converts to field signal into a
standard controls signal delivered by input module could be 5V/9V where field signal received by
it would be 24v DC/230 V AC.
CPU:
The working of CPU is fully controlled by the instrumental program stored in user program
memory. This program is prepared by users based on control logic.
Memory:
Memory is an essential part of any computer based on system where we have to store all
logical operations permanently/temporarily.
Output Module:
The output module acts as a link between the CPU and output devices located in the field.
The field devices could be relays characteristics, contractors, lamps, motorized potentiometers etc.
Expt. No. :
Date :
Aim: To write a ladder program logic on PLC and control lift.
Apparatus required:
1. PLC trainer set/kit
2. Lift control kit
Procedure:
1. Determine and understand the lift controller to be used.
2. Draw the timing diagram for the operation of lift.
3. Generate the logic to control the lift as per defined sequence.
4. Generate the ladder logic program based on the touch sensors.
5. Check the power connections of the PLC, part connections with the computer and other
devices needed for the experiment.
6. Load the ladder needed program to the PLC and check for any possible errors.
7. Execute and run the program on PLC and check the output.
8. Verify if the program is executed for the lift controller.
Result:
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
Expt. No. :
Date :
Aim: To write a ladder program logic on PLC and control traffic signal for a one way road.
Apparatus required:
1. PLC trainer set/kit
2. Signaling lights (led)
Procedure:
1. Determine and understand the sequence of the lights to be triggered and the number of
timers to be used.
2. Draw the timing diagram for the operation of lights.
3. Generate the ladder logic program based on the timing diagram using addresses of required
lights (red, amber and green).
4. Check the power connections of the PLC, port connections with the computer and other
devices needed for the experiment.
5. Load the ladder program to the PLC and check for any possible errors.
6. Execute and run the program on PLC and check the output.
7. Verify if the program is executed for the required sequence of lights.
Result:
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
PRAGATI ENGINEERING COLLEGE
(AUTONOMOUS)
(Approved by AICTE, Permanently Affiliated to JNTUK Kakinada & Accredited by NAAC ‘A’ Grade)
1-378, ADB Road, Surampalem – 533 437, Near Peddapuram, E.G.Dist., A.P.
Ph: (08852) – 252233, 252234, 252235 Fax: (08852) – 252232
DEPARTMENT OF MECHANICAL ENGINEERING
Apparatus required:
1. PLC trainer set/kit
2. Water level control kit
Procedure:
1. Determine and understand the water level controller to be used.
2. Draw the timing diagram for the operation of water level controller.
3. Generate the logic to control the water level controller as per defined sequence.
4. Generate the ladder logic program based on the touch sensors.
5. Check the power connections of the PLC, part connections with the computer and other
devices needed for the experiment.
6. Load the ladder needed program to the PLC and check for any possible errors.
7. Execute and run the program on PLC and check the output.
8. Verify if the program is executed for the water level controller.
Result: