1722 Fyp-Iii
1722 Fyp-Iii
1722 Fyp-Iii
MACHINE
Group Members
HADI ZAMAN 170582
MU UZAIR HUSSAIN 170603
MAHNOOR AMJAD 170627
BE MECHATRONICS (2017-2021)
Project Supervisor
ENGR. ZAHID HUSSAIN
Assistant Professor
Co supervisor
ENGR. SHABKHEZ SARWAR
Lecturer
ENGINEERING
3-AXIS CNC MARBLE CUTTING AND CARVING
MACHINE
Submitted by:
Project Supervisor
Chair Department
We are firstly grateful to Allah and then would like to appreciate the personal without
which this could not be possible. We thank our supervisor Engr. Zahid Hussain for his
immeasurable support and encouragement regarding this research and project. His ad-
vice and assistance were crucial for this project. We sincerely thank you for your time
and dedication.
Our appreciation for the staff of Mechatronics department, Air university and our fel-
low students, who have helped us in many ways and for making our educational road
pleasant and memorable.
We acknowledge our gratitude to our Parents and family members for the love, sacri-
fice, support and courage they put in order for this project to work. They have been the
back bone for what we are today and no words can describe their devotion, hope and
faith in achieving our goals. We would like to thank any person who has contributed to
this project hidden or in open. Their remarks and reviews were crucial for our success
in this project.
iii
Abstract
The project is about “3-Axis CNC Marble Cutting and Carving Machine”, it offers the
ability to cut and carve complex shapes using raw marble hence adds value in marble
products. Marble structures are a part of Pakistan’s culture. Almost every house, has
marble work done in it. But we are limited to certain simple designs and skilled crafts-
men take much longer time and effort to make such designs. CNC machines are more
useful and accurate hence can favor local marble industries to grow economically by
adding value to raw marble through carving and cutting, by speeding up their produc-
tion with high quality and good designed marble. This project will help in designing and
fabrication of marble products in lesser time, it will easily produce different patterns and
shapes which would take a normal person several hours or may be days. Machine has
simple CNC Router Design, having bed size 2x2 ft, it operates on stepper motors and
based on Mach 3 controller. The CAD and CAM software used for G-code preparation
are open source software.
iv
Table of Contents
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii
Abstract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv
Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
Nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Chapter 1: Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Computer Numerical Control (CNC) . . . . . . . . . . . . . . . . . . . 1
1.1.1 Types of CNC machines: . . . . . . . . . . . . . . . . . . . . . 1
1.1.2 Classification of CNC machines: . . . . . . . . . . . . . . . . . 2
1.1.3 Applications of CNC machines: . . . . . . . . . . . . . . . . . 2
1.1.4 Advantages of CNC machine: . . . . . . . . . . . . . . . . . . 2
1.1.5 Disadvantages of CNC machines: . . . . . . . . . . . . . . . . 3
1.2 Problem Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.5 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.5.1 Limitations: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.6 Cost Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.7 Timeline: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.8 Organization of Report . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 2: Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1 Literature Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
v
2.2 Methodology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3 CNC ROUTER for Marble cutting and Carving . . . . . . . . . . . . . 13
2.4 CNC Router Operation Flow . . . . . . . . . . . . . . . . . . . . . . . 13
2.5 CNC Router Block Diagram . . . . . . . . . . . . . . . . . . . . . . . 14
2.6 CAD Software: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.7 CAM software: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.8 Programming Language: . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.8.1 G code: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.8.2 M code: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.9 Motion Controller Card . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.10 Components Description . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.10.1 Stepper Motor: . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.10.2 Water pump: . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.10.3 Bed: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.10.4 Ball screw rods: . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.10.5 Linear Rails: . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.10.6 Spindle: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.10.7 Emergency Stop: . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.10.8 Auto Calibration Sensor: . . . . . . . . . . . . . . . . . . . . . 21
2.10.9 Tools and Tool Holders: . . . . . . . . . . . . . . . . . . . . . 22
2.10.10 Cutting Tools: . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.11 Product Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.12 ISO Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.13 Engineering Design Calculations . . . . . . . . . . . . . . . . . . . . . 25
2.13.1 Calculating Lead screw forces: . . . . . . . . . . . . . . . . . 25
2.13.2 Calculating force due to acceleration: . . . . . . . . . . . . . . 25
2.13.3 Calculating force due to friction: . . . . . . . . . . . . . . . . 26
2.13.4 Calculating external forces: . . . . . . . . . . . . . . . . . . . 26
vi
2.13.5 Total Lead screw force: . . . . . . . . . . . . . . . . . . . . . 26
2.13.6 Calculating Lead screw inertia: . . . . . . . . . . . . . . . . . 26
2.13.7 Calculating friction torque : . . . . . . . . . . . . . . . . . . . 27
2.13.8 Calculating acceleration torque: . . . . . . . . . . . . . . . . . 27
2.13.9 Calculating load inertia: . . . . . . . . . . . . . . . . . . . . 28
2.13.10 Motor Torque: . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.13.11 Calculating cutting speed: . . . . . . . . . . . . . . . . . . . . 28
2.13.12 Calculating spindle speed: . . . . . . . . . . . . . . . . . . . . 29
2.13.13 Calculating feed rate: . . . . . . . . . . . . . . . . . . . . . . 29
2.13.14 Calculating drive motor torque: . . . . . . . . . . . . . . . . . 29
vii
3.4.1 Introduction: . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3.4.2 Motion Profile: . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3.5 Simulink Modeling: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3.5.1 Simulation results: . . . . . . . . . . . . . . . . . . . . . . . . 45
3.6 Control and Calibration . . . . . . . . . . . . . . . . . . . . . . . . . . 47
3.7 Microstep driver DM542: . . . . . . . . . . . . . . . . . . . . . . . . . 48
3.8 Limit switch: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
3.9 MACH3 Controller: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.9.1 Features of MACH3 controller: . . . . . . . . . . . . . . . . . 49
3.9.2 MACH3 Software: . . . . . . . . . . . . . . . . . . . . . . . . 50
3.10 Calibration Method: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
3.10.1 STEP 1: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
3.10.2 STEP 2: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
3.10.3 STEP 3: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
3.10.4 STEP 4: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
3.10.5 STEP 5: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
3.10.6 STEP 6: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
3.10.7 STEP 7: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
3.10.8 STEP 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
3.10.9 STEP 9: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
3.10.10 Determining steps per unit length: . . . . . . . . . . . . . . . . 56
viii
4.6 Linear rails . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
4.7 X axis of CNC Router . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
4.8 Y axis of CNC Router . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
4.9 Z axis and Spindle of CNC Router . . . . . . . . . . . . . . . . . . . . 61
4.10 Control Panel of CNC Router . . . . . . . . . . . . . . . . . . . . . . . 61
4.11 Mechanical Setup of CNC Router . . . . . . . . . . . . . . . . . . . . 62
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
ix
List of Figures
x
Figure 3.14 Initial CAD model of CNC machine . . . . . . . . . . . . . . . 37
Figure 3.15 Final CAD model of CNC machine . . . . . . . . . . . . . . . . 37
Figure 3.16 Stress Analysis using solidworks . . . . . . . . . . . . . . . . . 38
Figure 3.17 Strain Analysis using solidworks . . . . . . . . . . . . . . . . . 38
Figure 3.18 Strain Analysis using solidworks . . . . . . . . . . . . . . . . . 39
Figure 3.19 Graph showing bell curve form for velocity, acceleration, and
jerk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Figure 3.20 Stepper Motor simulink model . . . . . . . . . . . . . . . . . . 44
Figure 3.21 Graph showing angular position in full rotation . . . . . . . . . 45
Figure 3.22 Graph showing stepper linear motion - 5s- 20cm - 4000steps . . 46
Figure 3.23 Control Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Figure 3.24 Pin configuration Of DM542 . . . . . . . . . . . . . . . . . . . 48
Figure 3.25 Limit switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Figure 3.26 MACH 3 controller . . . . . . . . . . . . . . . . . . . . . . . . 49
Figure 3.27 MACH3 software interface . . . . . . . . . . . . . . . . . . . . 50
Figure 4.1 Bed of CNC Router . . . . . . . . . . . . . . . . . . . . . . . . 57
Figure 4.2 Base and water tub of CNC Router . . . . . . . . . . . . . . . . 57
Figure 4.3 Drainage system of CNC Router . . . . . . . . . . . . . . . . . 58
Figure 4.4 Stepper Motor used in CNC Router . . . . . . . . . . . . . . . . 58
Figure 4.5 Ball bearings used in CNC Router . . . . . . . . . . . . . . . . 59
Figure 4.6 Linear rails used in CNC Router . . . . . . . . . . . . . . . . . 59
Figure 4.7 X-axis of CNC Router with actuator . . . . . . . . . . . . . . . 60
Figure 4.8 Y-axis of CNC Router with actuator . . . . . . . . . . . . . . . 60
Figure 4.9 Z-axis and spindle of CNC Router . . . . . . . . . . . . . . . . 61
Figure 4.10 Control panel of CNC Router . . . . . . . . . . . . . . . . . . . 62
Figure 4.11 Testing of CNC Router . . . . . . . . . . . . . . . . . . . . . . 62
Figure 5.1 Initial design (Left) and Finalized design (Right) of CNC Router 63
Figure 5.2 1st testing on wood workpiece . . . . . . . . . . . . . . . . . . 63
xi
Figure 5.3 2nd testing on marble workpiece . . . . . . . . . . . . . . . . . 64
Figure 5.4 Final testing on marble workpiece . . . . . . . . . . . . . . . . 64
Figure 5.5 Measurements taken from different tests . . . . . . . . . . . . . 65
xii
List of Tables
xiii
Nomenclature
AC → Alternating Current
CAD → Computer Aided Drawing
CAM → Computer Aided Manufacturing
CNC → Computer Numerical Control
DC → Direct Current
HMI → Human Machine Interface
IC → Integrated Circuit
kW → kilo Watt
NC → Numeric Control
RPM → Revolution Per Minute
xiv
Chapter 1
Introduction
Numeric Control (NC) refer to the automated control of a machine using symbolic
and sequential codes that have characters and numerals. In the late 1940s, John Par-
sons of Parsons Corporation in Traverse City, Michigan, developed a system to control
machining equipment by feeding it punched cards with holes corresponding to coordi-
nates. The word CNC came into existence when microprocessors and microcomputers
replaced integrated circuit IC based controls used for NC machines. [1]
A CNC machine is motorized numerical control system that has specified computer
for the control to do basic and advanced NC functions, according to input instructions.
Instructions are delivered to CNC machine in the form of sequential program such as
G-code and M-code. The program can be written by a person or can be generated using
graphical computer-aided design (CAD) software.
Modern CNC machines have mechanical parts highly automated. The part’s mechani-
cal dimensions are defined using CAD software and then translated into manufacturing
directives by computer-aided manufacturing (CAM) software such as MACH3. The re-
sulting directives are then transformed into the commands necessary for the production
of specific component and then are passed to the CNC machine.
• CNC Lathe
• CNC Plasma Cutter
• CNC Water Jet Cutter
• CNC Electric Discharge Machining (EDM)
• CNC Multi- spindle Machining
• CNC LASER Engraver
CNC machines are utilized in many Metal removal industries such as automotive indus-
tries, aerospace industries and in making adornments. There are several industries that
require thin metal plates such as steel plates, for finished results. Metal fabrication tasks
such as drilling of holes, plasma cutting and welding have been made easier with CNC
machines. CNC machines are utilized to make barrels, ammunition clips, pins, trig-
gers, and several components of the weapons. CNC machines can likewise be applied
in wood working industry, lettering and engraving frameworks, electrical industry, the
pharmaceutical industry, food and drink industry, and marble industry.
2
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
3
Introduction
Pakistan is the 6th largest extractor of marble and granite in the world but contribution
of Pakistan in international stone industry is only 0.06 percent. Modern processing tech-
niques can add value to the raw marble but due to lack of financing activities processors
have not been able to do so for this purpose modern affordable automated machines
are very necessary for the betterment of Pakistan’s marble industry. For this purpose,
our aim is to design and fabricate an affordable CNC machine for marble cutting and
carving that work efficiently and have higher production rate in lesser time.
1.3 Motivation
The motivation behind doing this project was to modernize processing techniques used
in Pakistan’s marble industry. As Pakistan is a hub of marble and granite but unfortu-
nately we are unable to produce quality products therefore, to add value in our products
and make Pakistan’s industry progressive we opted this project.
1.4 Objectives
1.5 Scope
• Design and fabrication of a 3-axis CNC router for marble cutting and carving, having
bed size 2ft x 2ft.
• Operates upon stepper motors to control the X Y gantry and the spindle, hence can
work in x, y and z axis.
4
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
• Water as a coolant is used for lubrication of the workpiece and reduces build up heat
and dust in the cutting and carving of marble. • Mach 3 software is used as a motion
controller.
The CAD/CAM software used for G-code preparation is an open source software.
• Cut and carve shapes on raw marble efficiently.
1.5.1 Limitations:
• Router’s spindle can not automatically change tools, it can be done manually.
• Router has to be restart manually if stopped during working.
5
Introduction
The component which are required for the project and their Price is given in the table
below. With the total cost of the project.to be around 170,000 RS. The price can vary
from one buyer to another.
6
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
1.7 Timeline:
In order to complete the project, it is important to devise a time plan. The time is divided
into to proportions. Each task requires certain amount of time for its completion.
7
Chapter 2
Description
CNC routers are commonly mounted on a fixed table with a bigger workspace, high-
lighting a shaft that moves along axis– X, Y, and Z. CNC Routers are intended to work
at high speeds , utilizing rotational speed as driving force in making cuts. Routers nor-
mally have three axis, there are varieties with 4-6 axis that are perfect for progressively
complex tasks. The force behind any Routers is its CAD/CAM programming. The CAD
programming permits the client to make a plan they need the router to cut. When this
plan has been made, the CAM programming changes over the structure into a code that
the router can comprehend. The PC at that point makes an interpretation of this code
into signals that control the development of the router’s drive framework. The drive
framework contains the shaft, which is the part that holds the genuine router bits. The
shaft turns these bits 8,000 to 50,000 times each moment so as to cut the material. [2]
3-axis CNC routers cut along three axis simultaneously; the x-axis, the y-axis, and the
z-axis. Cutting along the x-axis moves the router bit from front to back, cutting along
the y-axis moves it from left to right, and cutting over the z-axis moves it in depth. These
machines are utilized fundamentally for cutting level, 2-dimensional parts. [3]
In 2010, Venkata Krishna pabolu et al. published a research paper on the de-
sign and implementation for industrial application of low-cost, three-dimensional
computerized numerical control system (CNC). [4] In this paper prototyping an Em-
bedded CNC machine was created. This microcontroller-based CNC machine has the
primary function of cutting the metal in the required shape. This article focuses on
contact between a PC and a numerical control unit. The aim of designing a computer-
controlled cutting machine stemmed from the increasing demand for flexibility and cut-
ting in terms of edge quality. The system has an 8 bit microcontroller based embedded
system to achieve cost effectiveness and also maintains the precision and reliability re-
quired for complex shapes. The core of the system, along with the embedded system,
is a cleverly built mechanical device that results in precision. The system uses C as the
user interface programming language and .NET platform.
9
Description
a length of 50 mm, to be built on a 1 mm deep wood. Using 3 mm drill bit vbit600 with
a spindle speed of 12000 rpm and 98.5 percent accuracy output. [5]
The engraving system was tested on a 20 mm thick wood, using 600 drill bit 3 mm vbit,
12000 rpm spindle speed and 7 mm engraving depth. Picture design using Vetric Aspire
8.5 software, examples of design using engraving pattern combined with writing.
The speed test was performed to determine the effect of angle on velocity in the shape
of material. The input for this test was a 10 cm long line pattern that will be formed to
resemble some 2D shape. With 1mm engraving depth on wood using 3mm endmill drill
bit.
The CNC router was successfully designed using ATmega328p and IC4988 microcon-
trollers together with 3 Nema 17 stepper motors, 20x20 cm cross-sectional area and
500-Watt Spindle Air Cooled drill type. The CNC machine can be used to carve, en-
grave and label on wood to shape 2D or 3D objects with 98.5 percent carving accuracy
and 100 percent depth accuracy. [5]
1. CNC Machine Router 3-Axis machining parameters for engraving granite and
marble stones are: 30 (m / min) cutting speed, 12000 (rpm) spindle rotation, and
2000 (mm / min) feed rate. Analysis of the factors affecting the surface roughness
of the first marble gravure is the speed / rate of the intake, the depth of the intake
means the higher value, the higher surface roughness of marble.
2. The 3-axis CNC system for making aluminum molds uses various supporting
softwares, before being executed by MACH3,namely CorelDraw, Aspire Vectric.
Mach3 is an Art Fenerty device found in 2001, and developed by ArtSoft. This
program works while running a 3-axis CNC router system to execute all driver
commands. The Mach-3 program can order this, namely stepper motor (axis mo-
tion) movement in the form of G / M code, spindle rotation and speed, limit trans-
fer settings, relay settings, and emergency stop settings. These commands form
the basis for programming a 3-axis CNC router, making Mach3 software the main
programming software for 3-axis CNC router machines. [6]
10
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
In 2015, Bhargav Prajwal Pathri published a book “Study analysis of various mar-
ble cutters used in stone and marble Industry of Rajasthan” [7] in which he con-
cluded that:
Stone cutting with diamond segmented saw blades is a process of machining that rep-
resents a significant cost item for processing marbles and other natural stones. The
performance parameters, characteristics of the saws are affected by a range of factors
that are mechanical and physical properties of stone material, petrography properties
of stone materials, applied technological parameters, properties of machines, properties
of tool and machining methods. However, the main factors that require consideration
when predicting sawing rates are the diamond saw types, saw operating parameters, and
the sawn rock properties. For this reason , it is important to know the composition of
the tool bits used to cut the stones for this FESEM (Field Emission Scanning Electron
Microscope), EDS (Energy Dispersive Spectroscopy) and XRD (X-Ray Diffractometer)
analysis for specimens of tool segments (matrix and diamond) collected from various
stone industries by industrial survey in and around Rajasthan to determine the optimum
sawing conditions. The results showed that the material percentages in bits are used
to cut low hard marble stones (Fe-41 percent, Co-7 percent, Si-6.82 percent, Ni-13.82
percent, C-7 percent) and to cut hard marble stones (Fe-3.19 percent, Co-33.05 percent,
Si-7.35 percent, Ni-0.03 percent, C-6.71 percent) and hard marble stones.
11
Description
2.2 Methodology
First, study of previous work (literature review) on CNC marble cutting routers has been
done. After that initial modeling of a CAD design using Solidworks has been done,
which helped a lot in making a stable and compact design of CNC router. The next step
was Engineering design calculations, after that final modeling of CAD design had done.
Then, implementation on hardware was executed, which begun from X,Y Gantry and
initial testing was done on wood as workpiece.Then limit switches was applied for the
control of router.Finally Firmware was installed which is an open source firmware and
the software for G-code preparation was also installed for final testing on marble.
12
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
13
Description
14
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
G code Description
G0 Rapid positioning
G1 Linear interpolation
G2/G3 Clockwise/ Counterclockwise helical interpolation
G4 Dwell/ makes the machine stop
G12/13 Circular Clockwise/ Counterclockwise pocket
G20/G21 Inch/Millimeter unit
15
Description
Example code:
G90 Absolute positioning
G20 Selecting millimeters as dimension unit.
G0 X0 Y0 Z0 It will rapidly move the tool to (0,0,0) coordinates)
G1 X60 F100 Moves to (60,0,0) with federate of 100mm/mint
G1 Z-3 F50 Tool moves 3 units down in z axis at a speed 50mm/mint
These codes are manually written and saved in a file as note or document and then
through USB are fed to the CNC machine programing unit, which then executes the
code.
2.8.2 M code:
M code or milling code are commands for the cutting tool which through commands
make the spindle start/stop, cut in clockwise or counter-clockwise direction.
Some M-codes are:
M code Description
M2 Ends the program
M3/M4 Starts spindle c/ccW
M5 Stops the spindle
M6 Tool change
M7 Turns the coolant ON
M47 Repeats the code from first line.
16
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
17
Description
Bipolar stepper motor is used for the axis movement.Stepper motor is used in this project
due to its lower cost and great efficiency, rather than using servo motor which is of high
cost and has a accuracy slightly greater then stepper motor.By using stepper motor’s
poles we can achieve that accuracy almost upto 95%.
A water pump is used to provide water to cutte, which is an essential coolant for marble
cutting as it carries away the residue and provides ease for the cutter to perform its task
by reducing build up heat due to great friction. Water also helps to add finish to marble
cuts.
18
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
2.10.3 Bed:
Bed size includes the working area or work piece area and the outer layer on which the
work piece is resting on. The actual work area of machine (bed) is 2x2 ft.
Ball bearing roads contain small little balls in the sliding sockets. As rolling surface
faces less friction as compared to sliding surface. So ball bearings are used in the CNC
router. Ball bearing rods are attached to the stepper motors that leads all the movement
in our x y and z axis.
19
Description
Instead of using linear rods, linear rails are preferable as they can hold more load as
compared to rods. Rods also bend much when load is applied and are not ideal for the
CNC machines. Rails provide a smooth flow, large load capacity and a stable platform.
2.10.6 Spindle:
A spindle contains a motor attached in side which can vary from 1.5kW to as much
power as required.Router’s spindle is the main part as it holds the cutting tools and it
provides angular velocity and torque which then is derived to cut the marble.
20
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
Emergency stop button is an important safety measure for every machine that has a
moving part in it. A CNC operates at high voltage as well as high speed. In order to
stop the machine in any hazard stop button is easy to reach. When the button is pressed
the machine’s rotating part immediately stops.
To calibrate the position of the tool we can either do it manually every time or place a
sensor to make the machine completely autonomous. We used a sensor which guides
the machine about its X, Y, and Z coordinates. The head of the spindle collides with the
sensor indicating the coordinates in the plane.
21
Description
In CNC different tools are used for different operation because one tool is not enough to
perform all the task therefore, in order to have a solid grip on the cutting tool different
types of tool holders are available, that holds the tools firmly and not allow any move-
ment.
HSK Tool Holder:
HSK tool holder is a German product. It is known for its unique feature. One side of the
holder is fixed while the other is tightened. It provides an excellent grip and precisely
firm position, which is necessary. As a small run out can ruin our workpiece and even
can break the tool.
In order to get our required shape or design on the marble we use different tools as one
tool cannot fulfill all requirements therefore tools for milling, drilling and facing pur-
poses are different. And they also differ for different materials due to their toughness.
For marble cutting, most of the tools used are made up of diamond, graphite or stone .
22
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
23
Description
Machine Size 3 x 3 ft
Working Area 2 x 2 ft
Material Hard steel & Aluminium
Height 1.7 ft
Degrees of freedom 3 ( x, y, z axis)
Spindle Power 1.5 KW
Weight 85 kg
Axis Drives Stepper 3A, Step angle =1.8 deg
Controller MACH 3
Power Requirements 220V AC, Single Phase
Operations Cut & Carve Marble
24
2.13 Engineering Design Calculations
Calculations for Lead Screw
26
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
27
Description
28
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
29
Chapter 3
Modeling and Simulations
3.1 CAD MODELING:
CAD (Computer Aided Design) Model is basically a software based design that helps
with mechanical design and precision drawing. We used to represent the models as they
will behave in real life. When we pre-designed models the design and manufacturing
becomes simple, which not only facilitates the production of the product but also gives
it a wide range of enhancements. If we have the exact framework that we need for the
project then we push onto the implementation of the hardware. Below are the CAD
MODEL parts made for thCNC Router in SOLIDWORKS:
3.1.1 Base:
The base of the CNC is of 3x3 ft. Rods at the center of the base are designed to support
the work area, designed along with a tub to collect and drain water.
3.1.2 Bed:
The bed or the working area of router is 2x2 ft. which will support marble pieces for
carving. The bed has fringes which will hold the marble pieces with grippers to prevent
vibration and damage.
The structure of the rail is shown below. The height and width of rail is 6cm each. The
length of rail in X axis is 96.6 cm. The holes on top are done through hole wizzard
which are at 5cm apart from each other. For Y axis the length of the rail is:
31
Modeling and Simulations
Using the rail structure dimension a bracket is designed that will slide on the rail. It also
be supports Y and Z frames. The bracket is 8 cm wide and has height of 6 cm. Its total
length is 15 cm.
The Y axis bracket is same as X bracket. Its width is larger in size only. Its width is
15cm and dimension along the top are 15x15 cm.
32
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
The rods are attached to support the load on X gantry and provide steady movement.
The rods are 3 ft long with diameter of 2.5 cm.
The rolling pads are of 5.5 cm high and 6 cm wide having inner radius of 2.5 cm with 5
cm length. The thread inside is of 2.5 mm. They provide less friction due to movement
of little balls packets.
33
Modeling and Simulations
The Base of CNC is supported by 4 legs on which the ball bearing rods are attached. Its
total height is 25.4 cm and its with is 16.6 cm and is extruded upto 5 cm. Rods are held
at 15.2 cm apart.
34
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
The X movement plate is the main moving plate. It is 110.6 cm wide. It has a circle in
the center of radii 40 cm which is for the X axis stepper motor. The sides are 4cm wide
and attached with linear rails.
The Y support if 1.5 ft in length. It is to support the rail on Y-axis and the Y-axis ball
bearing rod have diameter of 3 cm. The width of the support is 15 cm so it is of the same
length as of X movement plate. The sketch is extruded to 4cm.
35
Modeling and Simulations
Z-axis gantry contains ball bearing Rods of 3 cm dia. The height of the rods and the
holding plate is 1.3 ft long and 19 cm wide. The same rolling pads used in X gantry are
attached to it.
3.1.12 Spindle:
This is the representation of the spindle. The spindle size is kept ideal in CAD model.
The spindle has outer diameter 7 cm and inner of 5 cm. Designed to support a heavy
KW motor as required for marble cutting. The length of motor attached to spindle in 8
cm.
36
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
37
Modeling and Simulations
38
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
3.4.1 Introduction:
A hybrid stepper motor works by having two sets of windings (let’s call them A and B)
magnetizing sets of teeth that are either fully aligned, half-aligned, or unaligned with the
teeth of the permanent magnet in the center. The windings are powered one at a time
in sequence to achieve a step (e.g. A in one direction, B in the same direction, A in the
opposite direction, B in the opposite direction). [9]
This is handled using a stepper motor driver that receives a pulse input, and deter-
mines what alignment of the magnets is necessary at a given step to move to the next one.
Therefore, we only need to determine how many pulses are needed at a given time; i.e.,
we need to determine the pulse frequency required for it to move on a stable path. By
our initial calculations of safety bounds, we have determined that a maximum rotational
speed of 400 rpm is adequate for our purposes. Keeping within this limit, we determined
a formula based on modelling DC motors for stable functionality, and finding the steps
required to achieve the (near-)equivalent rotation in stepper motors.
39
Modeling and Simulations
DC motor control requires control over the position, the velocity, the acceleration, and
the jerk of the motion. To do this we use a polynomial equation where we can specify
two end values for each (i.e., an initial and a final value). We use a seventh order
polynomial to achieve this; the solution for a seventh order polynomial requires us to
specify 8 values, or two for each.
The graph that we derive using these polynomial equations is known as a motion profile,
which helps us find the magnitudes of the coefficients at any moment in time, which is
useful while determining the viability of the motion of the motor. Any irregularities,
errors, or potentially unwanted spikes can be corrected due to the information provided
by these plots.
A MATLAB function takes these values as an input, and solves the polynomial for the
coefficients that fulfil those conditions.
40
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
After this function is complete and the coefficients have been computed, they are
used to calculate the motion profile of the motor’s current motion, modeling for the pre-
viously mentioned variables. These can be converted, for a simple case with no damping
or friction, to linear motion along an axis by simple multiplication of the angular position
with the screw pitch. This can be done in the opposite direction as well; by determining
the linear motion’s parameters and dividing it by the pitch, we can find the relation to
the angular motion of the motor, which is what has been done.
41
Modeling and Simulations
Figure 3.19: Graph showing bell curve form for velocity, acceleration, and jerk
42
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
Using this data in Simulink is tricky, since inputs cannot be updated during runtime
without special tools. To get around this we can pause the simulation at the required
timestep, update the value, and continue. An array containing compatible time periods
and amplitudes for the pulse generator block is created using the following code:
We used a MATLAB stepper motor setup to determine the variables (such as cur-
rent, voltage, angular velocity, torque, etc) within limit.
43
Modeling and Simulations
We implemented the stepper motor on the SIMULINK. As we are using same motors
NEMA 23 therefore all the motors will have same response.So we designed the simulink
of a single stepper motor. We have cheched the Current, velocity, torque and angular
speed of the motor using our initial conditions to run it on the model and to see its
output. The Simulink model is shown below. In which we have connected a motor
driver, stepper motor and have connected the outputs to a scope.
44
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
We started by setting the stepping speed to 40 steps per second, and ran the simulation
for a sample time of 0.25 seconds. This test was to determine the functionality of the
stepper motor model.
Over a period of 0.25 seconds, there occured 40 steps/s*0.25 seconds = 10 steps. The
angles move through ten new stages from 0 to 9, as described by the number of plateaus,
including a step that isn’t visible at the top right that pushes the y-graph up to step 9.
The maximum value is 1.8deg / 360 (deg/rot) * 9 = 0.045 rot.
45
Modeling and Simulations
After that initial experiment, we used the scope to study the behaviour of the stepper
motor in response to our input steps.
For our final test we simulated a full length motion of 20 cm over 5 seconds, for which
we required (20cm / (360 deg / 1.8 deg/step) ) = 4000 steps, or 800 steps per second.
The results are given in graph below.
Figure 3.22: Graph showing stepper linear motion - 5s- 20cm - 4000steps
46
3.6 Control and Calibration
The CNC controller is the brain of CNC machine as it completes link between HMI
panel and mechanical structure of CNC machine. Controller’s primary task is to take
input from HMI panel and interpret the input into mechanical motion.There are several
components that make the control system includes:
1.Controller
2.Motor drivers
3.Power supply unit
4.Limit Switches
48
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
49
Modeling and Simulations
CAM software used is Mach3 software to control the CNC operation.MACH3 software
runs on a PC and turns into a powerful Machine controller to replace control unit.
It generates G-code file to run the CNC machine.
It controls the inputs and outputs of the motors, limit switches and emergency stops.
It is basic simple software to program the CNC machine and is user friendly.
50
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
3.10.1 STEP 1:
3.10.2 STEP 2:
3.10.3 STEP 3:
Select Port setup and axis Selection. Select the port 1 and set the speed and click on
apply.
51
Modeling and Simulations
3.10.4 STEP 4:
3.10.5 STEP 5:
52
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
3.10.6 STEP 6:
3.10.7 STEP 7:
53
Modeling and Simulations
3.10.8 STEP 8
Click on System hotkey and select the keys with which you want to move the motor
manually.
3.10.9 STEP 9:
Now we can calibrate the CNC by two methods, First is manually. MAnualy move the
CNC X axis motor to a certain position. Move 1 mm through the mech3 software. Now
54
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
measure the distance moved by the motor. If it is less or great then change value steps
pr in motor tuning till the distance traveled by the motor and being moved through the
system become precise.
55
Modeling and Simulations
The second method to calibrate the axis is calculating the steps per unit length. By using
the formula.
Enter these calculated values and the motor will cover as required scale for move-
ment.
56
Chapter 4
Experimental Setup
Based on the above described 3D design and calculations 3 axis CNC router for
marble cutting and carving has been fabricated with defined specifications.
58
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
59
Experimental Setup
60
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
61
Experimental Setup
62
Chapter 5
Results and Discussion
5.1 Results:
Finalizing all the mechanical parameters of CNC Router on software, physical design
was implemented according to the CAD design, which later on was furbished for further
improvements.
Applying ball screws on linear rails increased the movement speed of all 3-axis. X and
Y axis accuracy movement is increase upto 98% and Z axis accuracy is improved upto
96%.
Figure 5.1: Initial design (Left) and Finalized design (Right) of CNC Router
The first testing of CNC Router was carried out on a wood workpiece to observe the
results, as wood is easy and safe to cut and carve in first trail. The G-code took a total
of 47 minutes to execute the design of 10x10 cm.
Router was run on marble without using water as coolant to check the results that
whether marble piece can be carved smoothly or not or how much amount of water
would be required. Without water, the marble work piece started breaking into small
bits and resulted in a rough finishing of design as shown below.
For cnc to operate on marble it axis movements speed has to be decrease because due
to the hard surface of marble. Applying water on marble reduces heat due to friction
and also carries away the residue of marble. Water also adds smoothness to design with
smooth finishing of work piece.
64
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
For the accuracy of router, a series of test were conducted to check the error in move-
ment of all 3-axis for marble cutting and carving. Listed below are the result of tests
conducted to check the accuracy of CNC Router movement compared with measure-
ments of Vernier caliper.
Results show that the maximum displacement error along x-axis is 0.75mm, Y axis
is 0.81 mm and along Z axis is 0.7mm.
65
Results and Discussion
5.2 Discussion:
During the construction of the CNC we faced a lot of challenges. Firstly, the compo-
nents were not easily available due to global pandemic, and which caused a great delay
in project timeline.
The second issue we came across was getting the right size of material cut for the Router
according the CAD model designed. As many labors in Pakistan did n’t have much
knowledge CNC Routers specially for marble cutting an carving therefore we somehow
managed to change some dimensions of our CAD Model to overcome this problem.
Thirdly, during the wiring of the motors we came to know that the driver TB6600 we
were using, supplied less power to the stepper motors therefore we changed it with Mi-
crostep DM542 to supply maximum power to the actuators.
Fourthly, for the spindle of the router we faced major problem.As our objective was
to make an affordable router but the spindles available for marble cutting and carving
at international market was very expensive, nearly of Rs 70,000 therefore we preferred
to use DC motor of 28V as a good alternative.
After the fabrication of all 3-axis and spindle we changed open base of the router
into a water collecting tub.Water being used as a coolant is very dangerous for the CNC
therefore for the proper safety a water tub is added on the base of router for collection
of used water, with a drainage hole to drain all water safely.
Another issue we faced during the application of water pump for water supply. 1st
pump we applied got damaged because of high current as our machine works on 3A
current but pump we are using is small for less water wastage therefore, it got damaged.
To overcome this problem we attached water pump with an external source.
Lastly, as mentioned earlier due to COVID-19 sensors for auto-calibration were not
available so to automate the tool positioning of the router we have defined the offsets in
Mach3 software.
66
Chapter 6
Conclusion and Recommendations
6.1 Conclusion
The compilation and study of our body of research and the fabrication of the CNC ma-
chine was accomplished over a period of 15 months. During that time, we researched
things such as marble industries, actuator modeling, and CNC design, and engaged in
mathematical and simulated modeling of the prototype, after which it was manufactured
within safety factors and tested for performance. The prototype was made using easy-
to-replace materials and methods, to allow easy repairs and modifications.
References
[1] Information about CNC routers available at https://www.slideshare.net/
[4] Low cost 3-axis CNC routwr using 8 bit microcontroller based embedded system
using c-language:
https://www.researchgate.net/publication/50194247_Design_and_
Implementation_of_a_Three_Dimensional_CNC_Machine
[5] CNC router for small scale industry using ATMEGA328P AND NEMA 17 stepper
motor for wood carving and engraving:
https://www.ripublication.com/ijaer17/ijaerv12n17_34.pdf
[6] Enriching creative engineering products as high quality and competitive with marble
and stone materials analysis:
http://www.ijirae.com/volumes/Vol6/iss01/04.JAAE10088.pdf
[7] Study analysis of various marble cutters used in stone and marble industry:
https://www.researchgate.net/publication/321236872_Influence_of_
the_physico-mechanical_and_mineral_properties_of_various_marble_
on_diamond_tool_wear
68
3-AXIS CNC MARBLE CUTTING AND CARVING MACHINE
Appendix
69