POCKETING LAB REPORT
POCKETING LAB REPORT
Experiment 05
CNC Milling
Objectives:
• To write the G & M codes for pocketing operation and perform the operations
on the CNC Milling.
• CNC Turning
• CNC milling
• CNC wirecut
• CNC router
• CNC laser cut
• CNC water jet cutting etc.
C) Machine
A) Instructions B) Controller
Component
G & M codes
Generally, G-codes create movement & M-codes turn things ON, turn things OFF.
1
Department of Mechanical Engineering, Air University A&AC Kamra
Manufacturing Processes-II Lab
Addresses
G Code Description
G00 Positioning (rapid traverse)
G01 Linear interpolation
G02 Circular interpolation clockwise
G03 Circular interpolation counterclockwise
G04 Dwell
G17 Plane XY
G18 Plane XZ
G19 Plane YZ
G20 Dimensions in inches
G21 Dimensions in mm
G28 Automatic machine reference
G40 Cancel cutter radius compensation
G41 Cutter radius compensation left
G42 Cutter radius compensation right
G80 Deselection of drilling cycles
G90 Absolute programming
G91 Incremental programming
G92 Spindle speed limit
2
Department of Mechanical Engineering, Air University A&AC Kamra
Manufacturing Processes-II Lab
M
Code Description
M00 Programmed stop
M01 Optional stop
M02 Main program end
M03 Spindle rotation clockwise
M04 Spindle rotation counterclockwise
M05 Spindle stop
M06 Tool change
M08 Coolant ON
M09 Coolant OFF
M10 Chuck open
M11 Chuck close
M19 Spindle lock
M20 Spindle unlock
M30 Main program end
Lab Task (Write a program to change the cutting tool and perform pocketing operation
on workpiece on CNC Milling machine):
G CODE:
T1 D1;
M03 S100
G95 F0.9;
G00 X0 Y0;
Z10;
3
Department of Mechanical Engineering, Air University A&AC Kamra
Manufacturing Processes-II Lab
G01 Z0;
Z-5;
Y60;
X130;
Y0;
X0;
Z10;
X15 Y15;
Z-5.5;
Y35;
X110;
Y15;
X15;
X19 Y19;
Z-5.8;
Y25;
X102;
Y19;
X19;
Y28 X20;
Z-6;
Y35;
X102;
Y28;
X28;
Z20;
4
Department of Mechanical Engineering, Air University A&AC Kamra
Manufacturing Processes-II Lab
M30;
Procedure:
Conclusion:
This CNC pocketing program guides the tool along a complex path to create a
pocket in the workpiece. It involves multiple linear movements in the X, Y, and Z
directions, controlling both the position and depth of the tool. The use of commands
such as G01 ensures precise, controlled cutting, while spindle speed and feed rate
are optimized for the material. The program finishes by retracting the tool to a safe
height, ensuring the workpiece is completed without damaging the tool or the
machine.
5
Department of Mechanical Engineering, Air University A&AC Kamra