Development of Canned Cycle For CNC Milling Machine: Abstract
Development of Canned Cycle For CNC Milling Machine: Abstract
Development of Canned Cycle For CNC Milling Machine: Abstract
ISSN 2091-2730
Abstract— Despite the tremendous development in CNC programming facilities, linear and circular cuts parallel to the coordinate
planes continue to be the standard motions of modern CNC machines. However, the increasing industrial demand for parts with
intricate shapes cannot be satisfied with only these standard motions. The proportion of parts which are not covered by the standard
CNC motions is certainly growing, due to the increasing industrial demand for intricate shapes. So for that we have decided to develop
a new CANNED cycle with the help of MACRO (parametric) programming on Hypo cycloid, combined EP-hypo cycloid curve and
last for Bezier surface also. we found that this canned cycle would be useful for different application such as cycloidal speed reducer,
lobe pump rotor and surface milling without requiring external arrangement like CAD modeling, CNC interpolator etc.
Keywords— CANNED cycle, MACRO (parametric) programming, Hypo cycloid, EP-hypo cycloid, Bezier surface, cycloidal speed
reducer, lobe pump rotor.
1. INTRODUCTION
In product development, stages such as conceptual design, prototype making, CAD model construction, tooling design, etc. are
involved. Either forward engineering or reverse engineering can be employed. In general, in forward engineering, a 3D solid model of
a product is first designed in a CAD platform and CAD information is obtained. Then corresponding tool-path information is
generated and the product is produced using an appropriate manufacturing process, such as CNC machining. However, in reverse
engineering, geometrical information is needed to be obtained from a physical shape directly and this information is converted into a
computable format for other downstream processes. In most cases, a digitizing device is used to get the data and the output data is
usually a set of scattered points (called a point cloud). Due to the characteristics of the digitizing device, the point cloud can be
divided into two main types—a regular point cloud and an irregular point cloud. In the former, intervals between adjacent digitizing
points are identical while they are not in the latter. No matter which type of point cloud is obtained, surface fitting techniques are
usually applied and a surface model is constructed. Based on the surface model, CAM tool-path information is generated accordingly.
This procedure is termed as an indirect machining process and the technologies for fitting surfaces onto a point cloud are essential.
However, surface fitting process is usually time-consuming. The tool-path information can be achieved directly from the point cloud.
But, this two technique (forward & reverse) required making much external arrangement and so more money and time. Why we are
not going to use available internal facility? It means in CNC machine there is a facility of programming the tool path according to the
required shape of job and for that we can use combination of linear, circular and curvature tool path. [1]
The raw data could, in a simple case, consist of coordinate for points which should be connected with straight lines or second degree
curves fulfilling certain conditions of smoothness. Regardless of complexity, however, the translation should result in data for the
complete path in the form of piecewise representation of mathematical curves. The curve data obtained from the translator is to be
converted into small unit steps along the fixed axes. This process is also known as interpolation. [2]
2. TOOLS TO BE USED
Since the advent of the computer, the demand for complex shapes has been met by constantly upgrading the shape generating
capabilities of CNC systems and by developing sophisticated CAD/CAM processors, capable of reducing complex geometries to long
series of linear cuts. Thus, if a particular shape cannot be programmed directly with the standard CNC motions, it is first linearized
with the help of a CAD/CAM system, which then encodes the result automatically into an executable NC program.[3]
The development and incorporation of tool path generators into CNC systems, based on efficient and accurate curve tracing methods,
capable to satisfy the increasing industrial demand for machining complex shape parts is an important goal in the field of computer-
aided manufacturing. Another frequent demand is met in the field of surface machining. A lot of sculptured surfaces as are the cases of
molds, stamping dies, forging tools, rolling shapes, etc., are defined as revolved surfaces with free-form profiles. Despite the
particularity in the definition and the design of these surfaces the available CAM systems deal with them as with free-form surfaces.
That is, a sequence of straight lines is used to approximate the part surface and voluminous data describing them must be sent to the
CNC machine. [4]
For boundaries formed at the intersection of higher degree or free-form surfaces, an accurate solution of the boundary machining
problem has hitherto been considered to be beyond the power of traditional curve tracing methods Although related topics as are
general surface intersection methods, problems raised on surface/ surface intersection and boundary representation methods have
been extensively addressed by several authors. [5]
71 www.ijergs.org
International Journal of Engineering Research and General Science Volume 2, Issue 4, June-July, 2014
ISSN 2091-2730
Parametric programming, mathematical calculations with do-loop subroutines, macro-capabilities and sophisticated canned cycles are
among the strengths of the last CNC generation lessening the user‘s dependence on CAD/CAM. Despite this tremendous development
in programming facilities, however, basic motions in a three axis CNC machine continue to be executed only by 2D or three-
dimensional (3D) linear and 2D circular interpolators. Other types of motions implemented by approximating the desired path with
straight-line segments are accompanied with the drawbacks of acceleration–deceleration cycles on the machine and consequently
machining inaccuracies are raised with the machining time increasing substantially.
4. SELECTION OF CURVE
For instance trochoidal milling strategies efficient for industrial applications. A trochoidal tool path is defined as the combination of a
uniform circular motion with a uniform linear motion. As a result, trajectory radius is continuous, which creates favorable milling
conditions in terms of tool loads and kinematics. Furthermore, full-immersion milling configurations are avoided. Nevertheless, tool
path length is much higher compared to standard tool paths such as zigzag because large portions are outside the material. Tool path
interpolation has also a major influence on the process implementation. Thus, trochoidal tool paths are well adapted to complex
milling cases, such as hard material roughing.[7] Based on geometric design of cycloidal speed reducer [8] and lobe pump rotor found
that hypotrochodal curve is useful for the same.
Fig 4.1.1: Epi-trochoid curve Representation Fig 4.1.2: Epi-trochoid curve generation
𝑅+𝑟
Y=r sinϴ + r sinϴ - h sin 𝜽 (4.1.2)
𝑟
73 www.ijergs.org
International Journal of Engineering Research and General Science Volume 2, Issue 4, June-July, 2014
ISSN 2091-2730
A curve traced by a point P fixed to a circle with radius r rolling along the inside of a larger, stationary circle with radius R at a
constant rate without slipping, where the point P is at distance h from the center C of the interior circle. The name hypotrochoid comes
from the Greek word hypo, which means under, and the Latin word trochus, which means hoop.
Fig 4.2.1: Hypo-trochoid curve Representation Fig 4.2.2: Hypo-trochoid curve generation
𝑅−𝑟
Y=r sinϴ - r sinϴ - h sin 𝑟
𝜽 (4.2.2)
Fig 4.3.1: Epi-trochoid curve Representation Fig 4.3.2: Epi-trochoid curve generation
74 www.ijergs.org
International Journal of Engineering Research and General Science Volume 2, Issue 4, June-July, 2014
ISSN 2091-2730
Macro–Program:
N10 G54 G90 M05
N12 G28 X0 Y0 Z0
N14 M06 T1
N16 G01 Z0 F(FEED)
N18 G41 D1
N20 #501=1
N22 #501=1
N23 #11=0
N25 #1=-1.5
N25 #2=1
N26 #21=(FIX CIRCLE DIAMETER)
N27 #22=(ROLLING CIRCLE DIAMETER)
N28 #24=(ARM LENGTH)
N29 #25=0
N29 #28=6
N30 S (SPINDAL SPEED) M03
N32 #27=#21/#22
N34 #23=#21+#22
N36 #26=#23/#22
N40 #1=#1+1
N42 #31=#26*#1
N44 #10=COS[#31]
N46 #3=#10*#24
N48 #13=COS[#1]
N50 #4=#13*#23
N52 #14=SIN[#1]
N54 #5=#14*#23
N56 #9=SIN[#31]
75 www.ijergs.org
International Journal of Engineering Research and General Science Volume 2, Issue 4, June-July, 2014
ISSN 2091-2730
N58 #6=#9*#24
N60 IF [#501 LT 0] GOTO68
N62 #7=[#4-#3]
N64 #8=[#5-#6]
N66 IF [#501 GT 0] GOTO72
N68 #7=[#4+#3]
N70 #8=[#5-#6]
N72 G01 X#7 Y#8 Z#25 F150
N74 IF [#501 LT 0] GOTO78
N76 IF [#1 LT [360/#27]*#2] GOTO34
N77 IF [#1 GT 360] GOTO100
N78 #501=-1
N80 #23=#21-#22
N82 IF [#502 LT 0] GOTO88
N84 #502=-1
N86 #2=#2+1
N88 IF [#1 LT [360/#27]*#2] GOTO36
N89 #501=1
N90 #502=1
N92 #2=#2+1
N96 IF [#1 GT 360] GOTO100
N98 IF [#1 LE [360/#27]*#2] GOTO34
N100
N101 #27=#21/#22
N102 #501=1
N104 #502=1
N106 #2=1
N108 #1=-1.5
N110 #11=#11+1
N111 #25=#25-0.5
N112 IF [#11 LT #28] GOTO34
N114 G01 Z5 F150
N116 G01 X0 Y0
N118 M30
5.1: Four Teeth lobe pump rotor Tool-Path Fig 5.2: Four Teeth lobe pump rotor
76 www.ijergs.org
International Journal of Engineering Research and General Science Volume 2, Issue 4, June-July, 2014
ISSN 2091-2730
Fig 5.3: Four Teeth lobe pump rotor Tool –Path Fig 5.4: Four Teeth lobe pump rotor
Unassigned G code can be adopted to specify tool paths and associated federate functions. A block citing the preparatory function G
contains one or more words that communicate information on the geometry and traversal rate of a curve. Many of the identifiers have
established meanings within ‗conventional‘ G code part programs e.g., angular dimensions about the coordinate axes for A, B, C;
spindle speed for S; tool selection for T; federate for F; and secondary dimensions parallel to the coordinate axes for U, V, W.G blocks
be modal—i.e., they specify values that will remain in effect until superseded by words of the same type in subsequent G blocks [9]
6. CONCLUSIONS
In the present work, a CANNED Cycle FOR lobe pump rotor has been developed with the parametric programming technique using
Macro Programming. A tool path generation program has also been developed and Simulated in CIMCO Edit v7.0 simulation
software. Developed canned cycle is useful to produce any number of teeth of lobe pump rotor with input of some key parameter of
the curve.
To make n teeth of lobe pump rotor take compression ratio (R/r)=2n
Selection of radii is depends upon the size of rotor
Selection of step value decides the smoothness and accuracy of the curve.
Developed CANNED Cycle can be called with G65 at any stage of part programming with input of some key parameter like radii R
and r, speed, feed etc
7. APPENDIX
Derivation of Epi-trochoid parametric equation:
As the point C in Fig 4.1.1 travels through an angle ϴ, than its x-coordinate is defined as
x= (Rcosϴ -rcosϴ) and y-coordinate is defined as
y= (Rsinϴ - rsinϴ).
The radius of the circle created by the center point is (R-r). As the small circle goes in a circular path from 0 to 2π, it travels in a
counter-clockwise path around the inside of the large circle. However, the point P on the small circle rotates in a clockwise path
around the center point C.
As the center rotates through an angle ϴ, the point P rotates through an angle 𝜙 in the opposite direction. The point P travels in a
circular path about the center of the small circle and therefore has the parametric equations of a circle.
However, since ϕ goes clockwise,
x= h COSϕ and
y=-h SINϕ.
Since the inner circle rolls along the inside of the stationary circle without slipping, the arc length rϕ must be equal to the arc length
Rϴ.
rϕ=Rϴ
ϕ=Rϴ/r
However, since the point P rotates about the circle traced by the center of the small circle, which has radius (R-r), ϕ is equal to (R-r) ×
ϴ /r. Therefore, the equations for a hypotrochoid are
𝑅+𝑟
X=r cosϴ + r cosϴ - h cos 𝑟 𝜽
𝑅+𝑟
Y=r sinϴ + r sinϴ - h sin 𝜽
𝑟
77 www.ijergs.org
International Journal of Engineering Research and General Science Volume 2, Issue 4, June-July, 2014
ISSN 2091-2730
78 www.ijergs.org
International Journal of Engineering Research and General Science Volume 2, Issue 4, June-July, 2014
ISSN 2091-2730
REFERENCES
1.Biplab kanti haldar: ―CNC Tool Path Generation For Free Form Surface Machining‖, Thesis submitted in Faculty of
Engineering and Technology, Jadavpur University-2010.
2. PER E. DANIELSSON, MEMBER: ―Incremental Curve Generation‖, IEEE TRANSACTIONS ON COMPUTERS, VOL.
C-19, NO. 9, SEPTEMBER 1970
3. Sotiris L. Omirou.,: ―Space curve interpolation for CNC machines‖, Journal of Materials Processing Technology 141 (2003)
343–350© 2003 Elsevier.
4. Sotiris L. Omirou, Antigoni K. Barouni: ―Integration of new programming capabilities into a CNC milling system‖ Robotics
and Computer-Integrated Manufacturing 21 (2005) 518–527, ©2004 Elsevier.
5. Sotiris L. Omirou: ‖A CNC interpolation algorithm for boundary machining‖ Robotics and Computer-Integrated
Manufacturing 20 (2004) 255–264, © 2003 Elsevier.
6. Sotiris L. Omirou, Andreas C. Nearchou: ―An epitrochoidal pocket—A new canned cycle for CNC milling machines‖,
Robotics and Computer-Integrated Manufacturing 25 (2009) 73–80 © 2007 Elsevier.
7. Matthieu Rauch , EmmanuelDuc , Jean-YvesHascoet: ―Improving trochoidal tool paths generation and implementation using
Process constraints modeling‖ International Journal of Machine Tools & Manufacture 49 (2009) 375–383 © 2009 Elsevier.
8. Yii-Wen Hwang, Chiu-Fan Hsieh: ―Geometry Design and Analysis for Trochoidal type Speed Reducers: with conjugate
envelopes‖, No. 05-CSME-59, B.LC. Accession 2911,2006
9. Rida T. Farouki, Jairam Manjunathaiah, Guo-Feng Yuan: ―G codes for the specification of Pythagorean-hodograph tool
paths and associated feedrate functions on open-architecture CNC machines‖, International Journal of Machine Tools &
Manufacture 39 (1999) 123–142, 1998 Elsevier.
10. S.C. Park, B.K. Choi: ―Uncut free pocketing tool-paths generation using pair-wise offset algorithm‖, Computer-Aided Design
33 (2001) 739-746, © 2000 Elsevier.
11. Sotiris L. Omirou: ―A locus tracing algorithm for cutter offsetting in CNC machining‖, Robotics and Computer-Integrated
Manufacturing 20 (2004) 49–55 , ©2003 Elsevier.
Yuwen Sun, Yang Zhao, Yurong Bao, Dongming Guo: ―A novel adaptive-federate interpolation method for NURBS tool path with
drive constraints‖, International Journal of Machine Tools & Manufacture 77(2014)74–81, © 2014 Elsevier
79 www.ijergs.org