1. 1
CNC (Milling Machine Project)
Student Name: Zana Haydar & Muhammad jawhar
Class: Fourth Stage (A)
Course Title: CNC
Department: Mechanical & Mechatronics Enginnering
College of Engineering
Salahaddin University-Erbil
Academic Year 2021-2022
2. 2
CNC Milling Machine
Computer numerical control (CNC) is programmed code that
represents instructions for precise movements to be carried out by
machines. Indirectly, this code defines how to automatically
create, produce, or transform a virtual object into a real one.
Based on this definition, a CNC machine must interact with a
computer equipped with software that transforms numerical code
into Cartesian coordinates. This allows the machine to work with
a high degree of precision, just like a robot.
A CNC machine transforms raw material into a finished model
through different methods, either by adding (additive)
or removing (subtractive) material. The available techniques
depend on the type of machine. A 3D printer or CNC milling
machine are fine examples of additive and subtractive CNC
machines, respectively.
3. 3
How do CNC Milling Machines work?
A CNC Milling Machine uses a rotating cylindrical cutter to move along
multiple axes, and create slots, holes and details in material to turn it into a
vehicle or mechanical part. Most machines operate on three to five axes,
creating much more precision and detail. Modern CNC milling machines
are assembled as both horizontal and vertical machining centers.
Components can be made with materials such as plastics, ceramics, and
composite materials, in addition to metals. Technical features include
automatic tool changers, tool carousels & magazines, coolant systems, and
enclosures to keep machines running smoothly on their own without
manual interference.
Types of Milling Cutters Used in Machining Process
Roughing end mill
Slab mill
End mill cutter
Hollow mill
Ball mill cutter
Involute gear cutter
Face mill cutter
Wood ruff cutter
Thread mill cutter
Fly cutter
Slide and face cutter
Hobbing cutter
4. 4
G-code & M-code
CNC (computer numerical control) is automated control of
machining tools using a computer. Yet, that doesn’t just
happen; it requires the right coded
programmed instruction.
So, what is G-code? What is M-code? And how do G-
code and M-code programming actually work? This
article explains each one, but first let’s touch on what
programming actually is.
A program is a sequence of codes and data that tells the
CNC machine what to do. The programmed codes, along
with the right tooling in a CNC machine center, allow
for correct and repeatable part manufacturing.
Simply put, G-code is a software programming language
used to control a CNC machine. And, even with complex
CNC machining, G-code is written in a
straightforward, logical way.
A “G” is followed by a number, which is a command to
change geometry. For instance, “G00” is a command for
rapid movement. It moves the tool to part geometry at the
maximum rate and is generally used to move the tool and
part from near to far or vice versa.
Here are some examples of G-code:
G00: Rapid move to specific coordinate position
G01: Linear feed move
G02/G03: Clockwise/counterclockwise feed move
5. 5
M-code controls miscellaneous functions, and
typically these can be thought of as non-geometry
machine functions. Examples include spindle
rotation start and stop, coolant on and off, pallet
change, etc. Some of these functions may vary by
the specific machine.
Here are some examples of M-code:
M00: Stop whatever function the program is
currently doing
M03: Rotate spindle clockwise
M08/M09: Flood coolant on/off