Numerical Control-Computer Numeric Control Lab Manual
Numerical Control-Computer Numeric Control Lab Manual
Aim: Introduction to NC/CNC Part Programming using CAM Software, Simulation, and Dry Run
Execution.
Learning Objectives:
1. Understand the fundamentals of NC/CNC programming and its significance in modern
manufacturing.
2. Familiarize students with G-code and M-code standards used across industries.
3. Learn the process of writing, simulating, and verifying CNC programs for machining
operations.
4. Explore advanced features like pocketing, drilling cycles, and tool path optimization.
Relevant Theories and Background: NC/CNC Programming:
Numerical Control (NC) is a method of controlling the movements of the machine components by
directly inserting coded instructions into the system. The system then automatically interprets these
data and converts them to output signals that, in turn, control various machine components for
example turning spindle ON/OFF, changing tools, moving the tools or workpiece along specific
paths etc.
Historical Background
• 1940s-1950s: Originated as a response to the demand for precise and automated
manufacturing during World War II.
• Early Machines: Operated using punched tape systems for feeding instructions to the
machine.
• 1952: Development of the first NC milling machine at MIT, funded by the U.S. Air Force.
Transition to CNC (1960s-Present):
• Introduction of computers to replace punch tapes.
• Enabled real-time editing and optimization of machining programs.
• Advanced integration with CAD/CAM software.
1. Absolute Programming
• Concept: All coordinates are referenced from a fixed origin point (typically the part zero
or machine zero).
• G-code Command: G90 (Absolute positioning mode).
• Example:
If the current position is (4, 5) & the origin is at the bottom-left corner of the part and the
tool is instructed to move to coordinates (6, 8), the tool moves directly to that absolute
position.
2. Incremental Programming
• Concept: All coordinates are referenced relative to the current position of the tool.
• G-code Command: G91 (Incremental positioning mode).
• Example:
Starting from the current position (4, 5), a command to move to (6, 8) means moving 2
units in the X direction and 3 units in the Y direction from the current position.
3. Mixed Programming
• Concept: Combines absolute and incremental programming within the same program to
leverage the advantages of both methods.
• Usage:
o Absolute mode is used for critical reference points.
o Incremental mode is used for repetitive or relative movements, such as cutting a
series of holes or slots.
• Example:
o Set the origin using G90.
o Switch to G91 for a series of incremental movements.
o Return to G90 for the next absolute positioning operation.
Exercise Questions:
1)
2)
3)
4)
5)
D C B
G
E
F
I
H