Slotting Operation
Slotting Operation
Experiment 04
CNC Milling
Objectives:
• To write the G & M codes for slotting operations and perform the operations on
the CNC Milling.
• CNC Turning
• CNC milling
• CNC wire-cut
• 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 CNC Slotting Program for
Precise Linear Interpolation and Axis Positioning operation on workpiece on CNC
Milling machine):
G code:
T1 D1;
M03 S100
G95 F0.9;
G00 X0 Y0;
3
Department of Mechanical Engineering, Air University A&AC Kamra
Manufacturing Processes-II Lab
Z0;
Z0.5;
Y70;
X140;
Y0;
X0;
Z0;
Z0.5;
G01 Y50
X100;
Y15;
X15;
Z10;
M30;
Procedure:
• Prepare the Workpiece: Secure the workpiece on the CNC machine using
clamps or a vice to ensure it remains stable during the slotting operation.
• Tool Selection Choose the appropriate cutting tool (such as an end mill) based
on the slot's width, depth, and material of the workpiece.
• Set the Machine Parameters: Input the required parameters into the CNC
machine, such as spindle speed, feed rate, and depth of cut, according to the
material and tool specifications.
• Program the Slotting Path: Create a CNC program using G-codes, typically
involving linear movements (e.g., `G01`) to guide the tool along the desired
path.
• The program will include axis movements in X, Y, and Z to define the slot
dimensions.
• Run the Program: Execute the CNC program to move the cutting tool along the
defined slotting path.
4
Department of Mechanical Engineering, Air University A&AC Kamra
Manufacturing Processes-II Lab
• The tool will cut along the X or Y axis while maintaining the required depth (Z-
axis).
• Monitor the Operation: Observe the slotting process to ensure there are no
issues like tool wear, vibration, or improper cutting.
• Finish and Clean the Slot: Once the slot is completed, inspect the workpiece
for accuracy.
• Clean up any burrs or rough edges using appropriate tools.
• Final Inspection: Measure the slot to confirm it meets the required dimensions
and tolerances.
Conclusion:
This CNC program instructs the machine to make a series of linear movements
using the G01 command. The tool moves in a precise path along the X, Y, and Z
axes as part of a slotting operation. The simplicity of the program suggests that it is
likely intended for a basic operation, such as creating a slot or contour in a
workpiece, with defined start and stop points along each axis.
5
Department of Mechanical Engineering, Air University A&AC Kamra