CIM Lecture Notes Week-3
CIM Lecture Notes Week-3
EL
PT
N
Prof. Janakarajan Ramkumar
Professor
Department of Mechanical & Design Program
IIT Kanpur, India.
• Understand the various requirements for the information that is
generated during the geometric modelling stage.
EL
• Study various types of geometric models possible and their
applications
PT
• Develop various methodologies used for geometric construction
such as sweep, surface models, solid models, etc.
2
• The computer compatible mathematical description of the geometry of
the object is called as geometric modeling.
EL
• The CAD software allows the mathematical description of the object to be
displayed as the image on the monitor of the computer.
PT
• A geometric model contains description of the modelled object’s shape.
Since geometric shapes are described by surfaces, curves are used to
construct them.
N
• Computer geometric modelling uses curves to control the object’s surfaces
as they are easy to manipulate.
3
EL
PT
N
EL
1) Creation of basic geometric objects: In the first step the designer
creates basic geometric elements by using commands like points, lines, and
circles.
PT
2) Transformations of the elements: In the second step the designer uses
commands like achieve scaling, rotation and other related transformations
of the geometric elements.
N
3) Creation of the geometric model: During the final step the designer uses
various commands to that cause integration of the objects or elements of
the geometric model to form the desired shape.
5
EL
PT
N
https://in.pinterest.com/pin/753860425103945294/?lp=true
6
N
PT
EL
7
N
PT
EL
8
1. Design analysis:
EL
• Evaluation of mass and inertia properties.
PT
• Interference checking in assemblies.
9
2. Drafting
EL
• Automatic hidden line and surface removal.
PT
• Automatic production of shaded images.
• Automatic dimensioning.
N
• Automatic creation of exploded views for technical illustrations.
10
3. Manufacturing
EL
• Parts classification.
• Process planning.
PT
• Numerical control data generation and verification.
N
• Robot program generation.
11
4. Production Engineering
Bill of materials.
EL
Material requirement.
PT
Manufacturing resource requirement.
Scheduling.
N
5. Inspection and Quality Control:
Program generation for inspection machines.
12
❖ Two-dimensional
EL
❖ Three-dimensional
PT
The three principal classifications can be
13
EL
PT
N
EL
generation (perspective
and orthographic)
Cross-sectioning
Elimination of hidden
PT
Manually guided
Manually guided
Manually guided
May be possible
Possible, even
automated cross-
hatching is possible
Possible
N
details
Analysis functions Difficult or Difficult or Possible
(Geometric calculations) impossible impossible
15
1. Point definitions
EL
2. Line definitions
3. Circle definitions
4. Arc definitions PT
N
16
1. Point Definitions
EL
PT
N
EL
PT
N
EL
PT
N
EL
PT
N
EL
4 0 10 0 6
5 0 0 15 11
9
6 10 0 15 4
7 10 10 15 4 3
PT
8 0 10 15 10
1 3
Edge number Start point End point
1 1 2 1 2
2 2 3
2
3 3 4
N
4 4 1
5 5 6
6 6 7
7 7 8
8 8 5
9 1 5
10 1 6
11 1 7
12 1 8
21
❖Planar surface
EL
❖Curved surface
PT
• Single curved surface: It is a simple curved surface.
22
EL
PT
N
https://www.pinterest.co.uk/pin/465207836504089607/
23
❖ Types of surfaces used in Geometric Modelling
EL
PT
N
EL
PT
N
EL
PT
N
EL
• In implicit form, the curve is represented as
f (x, y, z) = 0
g (x, y, z) = 0
• PT
In parametric form, the curve is represented as
X = x(u)
N
Y = y(u)
Z = z(u)
27
Major curves:
Line
EL
Circle
Ellipse
Parabola
Hyperbola
Bezier
PT
N
B-splines
NURBS
28
Major curves:
EL
PT
N
29
• Y=mX+b
EL
•
PT
The parametric form for the line can be given as
N
X = ax u + bx for 0 u 1
Y = ay u + b y
Z = az u + b z
30
• (x-h)2 + (y-k)2 = r2
EL
•
PT
The parametric form of a circle is given by
X = r cos
N
Y = r sin
Where 0 2
r is the radius of the circle.
31
The parametric form of an ellipse whose centre lies at the origin of the
co-ordinate system is given by
EL
x = a cos
y = b sin
PT
N
32
• Implicit form
y2 = 4ax
EL
•
X = a u2
PT
One of the parametric form is given by
N
y=2au
Where 0 ≤ u ≤ ∞
Since parabola is not a closed curve like an ellipse, the value of u needs to be
limited for display purpose.
33
• The implicit form of a hyperbola is given by
x2 y2
EL
2
− 2 =1
a b
• One of the parametric forms of a hyperbola is given by
PT
x = a cosh
y = b sinh
N
34
• A Bezier curve is a mathematically defined curve used in two-
dimensional graphic applications.
• The curve is defined by points: the initial position and the terminating
position (which are called "anchors") and middle points (which are
EL
called "handles or control points").
• The shape of a Bezier curve can be altered by moving the control points.
PT
N
https://en.wikipedia.org/wiki/File:B%C3%A9zier_3_big.gif
35
Bezier curves and the Associated Control Polygon
EL
PT
N
EL
PT
N
EL
polynomial representing the curve increases.
PT
through any number of control points with the degree of the polynomial
selected by the designer.
N
38
Non-uniform rational basis spline (NURBS) is a mathematical model
commonly used in computer graphics for generating and representing
curves and surfaces.
EL
It offers great flexibility and precision for handling both analytic
(surfaces defined by common mathematical formulae)
PT
and modeled shapes.
39
Evaluation of NURBS is reasonably fast and numerically stable.
EL
PT
N
40
EL
❖The three-dimensional geometric construction methods which extend
from the 2D that is normally used are:
• Linear extrusion
• translational sweepPT
N
• Rotational sweep etc.
41
Geometric Construction Methods
❖ Extrusion
EL
PT
N
EL
PT
❖ Sweep two cross sections along a guide curve
N
EL
PT
N
EL
PT
N
45
Geometric Construction Methods
EL
PT
N
EL
PT
N
EL
surface or object by using Boolean operators to combine simpler
objects.
• potentially generating visually complex objects by combining a few
primitive ones.
PT
N
https://en.wikipedia.org/wiki/Constructive_solid_geometry
Rao, CAD/CAM Principles and Applications, 2010, TMH
Geometric Constraints
EL
PT
N
EL
PT
N
EL
PT
N
EL
PT
N
Geometric Modelling
Function of Geometric Modelling
EL
Comparison of different modelling methods
Free form curves
PT
Geometric Construction Methods
Geometric Constraints
N
53
References
EL
2. Zeid, I., 1991. CAD/CAM theory and practice. McGraw-Hill Higher
Education.
PT
N
54
N
PT
EL
55
N
PT
EL
Computer Numerical Control
EL
PT
N
Prof. Janakarajan Ramkumar
Professor
Department of Mechanical & Design Program
IIT Kanpur, India.
Objective
EL
• Computer Numerical Control(CNC)
PT
• Difference between NC & CNC
EL
• It is the automation of machine tools that are operated by precisely
programmed commands encoded on a storage medium, as opposed
to controlled manually.
PT
• Most NC today is computer numerical control (CNC), in which
computers play an integral part of the control.
N
History of CNC
EL
• 1952:Prototype NC machine demonstrated (punched tape input).
PT
• 1980:CNC machines (computer used to link directly to controller).
N
• 1990:DNC: external computer “drip feeds” control programmer to machine
tool controller.
Basic Components of an NC System
1. Program of instructions
– Called a part program in machining
EL
2. Machine control unit
– Controls the process
– PT
3. Processing equipment
Performs the process
N
Part program
• Controls the movement of the machine tool and on/off control of auxiliary
EL
functions such as spindle rotation and coolant.
•
PT
The program input device is the means for part program to be entered into
the CNC control.
N
• Three commonly used program input devices are punch tape reader, magnetic
tape reader, and computer via RS-232-C communication.
Part program
EL
– Binary
– Decimal
– BCD
PT
• Part Program Input
– Paper tape (now obsolete)
N
– Manual Data Input (MDI)
– Direct Numerical Control (DNC)
Machine Control Unit
The machine control unit (MCU) is the heart of a NC and CNC system. It is used to
perform the following functions:
EL
• To read the coded instructions.
• To decode the coded instructions.
• To implement interpolations (linear, circular, and helical) to generate axis
motion commands.
PT
• To feed the axis motion commands to the amplifier circuits for driving the
axis mechanisms.
N
• To receive the feedback signals of position and speed for each drive axis.
• To implement auxiliary control functions such as coolant or spindle on/off
and tool change.
Principle of operation of a
NC machine tool
EL
PT
N
Elements of NC tool operation
EL
PT
N
Configuration of NC machine
EL
PT
N
Configuration of a typical NC machine: (a) the machine control unit, (b) hand
wheel dial, and (c) closed-loop control.
Chang, 2003. Product Manufacturing and Cost Estimating using CAD/CAE. Elsevier Inc.
Control of axis motion in a
NC machine tool
EL
PT
N
Elements CNC tool operation
EL
PT
N
http://www.helmancnc.com/cnc-lathe-main-parts/
Principle of operation of a
CNC machine tool
EL
PT
N
Control of axis motion in a
CNC machine tool
EL
PT
N
N
PT
EL
Why NC?
EL
• For jobs requiring very high accuracy and repeatability.
PT
• For jobs requiring many set-ups and/or the setups very expensive.
• The parts that are subjected to frequent design changes and consequently
N
require more expensive manufacturing methods.
• Inspection time is reduced, since all the parts in a batch would be identical
provided proper care is taken about the tool compensations and
Advantages of NC
EL
• Inspection requirements are reduced
• More complex part geometries are possible
•
•
PT
Engineering changes are easier to make
Simpler fixtures
N
• Shorter lead times
• Reduce parts inventory and less floor space
• Operator skill-level requirements are reduced
Other Applications of NC
EL
• Component placement machines in electronics assembly
PT
• Wood routers and granite cutters
EL
• Higher maintenance effort
– CNC machines are more technologically sophisticated
• Part programming issues
PT
– Need for skilled programmers
– Time investment for each new part
N
– Repeat orders are easy because part program is already available
Common NC Machining Operations
a) Turning
EL
b) drilling
c) milling
d) grinding
PT
N
Turning
NC vs CNC
EL
PT
N
CNC Machine working
EL
PT
N
https://giphy.com/gifs/duet-cZWZQQynj7sNq
Input, process, output
EL
PT
N
Other operations in CNC
EL
CNC Plasma Cutter
PT CNC Engraving
N
EL
Fixed cycles and programming subroutines
• Adaptive control
• Interpolation
•
PT
Positioning features for setup – to help operator align work part on
machine tool table
• Acceleration and deceleration computations
N
• Communications interface
• Diagnostics
Automatic Functions in Tool
spindle
EL
• Controlling the spindle speed
• Positioning the tool tip at desired locations and guiding it along desired
PT
paths by automatic control of the motion of slides
N
• Controlling the rate of movement of the tool tip (i.e. feed rate)
EL
PT
N
NC Coordinate Systems
EL
PT
N
(a) For flat and block-like parts and (b) for rotational parts
Designating the Axes
EL
PT
N
Vertical axis Milling machine
EL
PT
N
Axes designation for CNC turning
center
EL
PT
N
CNC Horizontal axis boring mills in
3 and 4 axes versions
EL
PT
N
5 axes CNC Vertical axis machining
center configuration
EL
PT
N
Types of CNC machines
EL
• Based on Motion Type:
Point-to-Point or Continuous path
PT
• Based on Power Supply:
Electric or Hydraulic or Pneumatic
N
• Based on Positioning System
Incremental or Absolute
Control Loops
• Open loop systems have no access to the real time data about the
performance of the system and therefore no immediate corrective action can
be taken in case of system disturbance.
EL
PT
N
Open Loop Systems
EL
PT
N
Control Loops
• In a close loop system, feed back devices closely monitor the output
and any disturbance will be corrected in the first instance. Therefore high
system accuracy is achievable.
EL
PT
N
Close Loop Systems
EL
PT
N
Motion Control Systems
EL
• Also applicable in robotics
PT
N
Motion Control Systems
EL
(e.g., milling and turning)
PT
N
Computer Numeric Control
Define Tool
EL
PT CNC data
N
Make 3D model
Simulate
cutting
Elements of a CNC System
• Input Device
• Central Processing Unit/ Machine Control Unit
EL
• Machine Tool
• Driving System
• Feedback Devices
• Display Unit
PT
N
Input Devices
EL
• Serial Communication
PT
• Ethernet communication
• Conversational Programming
N
Central Processing Unit/ Machine
Control Unit
EL
• It accepts the information stored in the memory as part program.
• This data is decoded and transformed into specific position control and
velocity signals.
PT
• It also oversees the movement of the control axis or spindle and whenever
N
this does not match with the programmed values, a corrective action as
taken.
Central Processing Unit/ Machine
Control Unit
EL
PT
N
Cutting Tools
• Most are made from high speed steel (HSS), tungsten carbide or ceramics.
EL
• Some tools need coolant such as oil to protect the tool and work.
PT
N
https://giphy.com/explore/cnc-machine
https://gfycat.com/gifs/search/milling+machine
Driving System
EL
• The motor is coupled either directly or through a gear box to the machine
lead screw to moves the machine slide or the spindle.
PT
• Three types of electrical motors are commonly used:
1. DC Servo motor
N
2. AC Servo motor
3. Stepper motor
Servo motors
• Servomotors are also called control motors as they are involved in controlling a
EL
mechanical system.
PT
• Input is sent to the servo amplifier, which controls the speed of the
servomotor.
N
• In many servo systems, both velocity and position are monitored.
EL
• The armature winding is connected to a commutator, which is a cylinder of
insulated copper segments mounted on the shaft.
PT
• DC current is passed to the commutator through carbon brushes, which
are connected to the machine terminals.
N
DC Servo Motor
• The change of the motor speed is by varying the armature voltage and the
control of motor torque is achieved by controlling the motor's armature
current.
EL
• In order to achieve the necessary dynamic behavior it is operated in a closed
loop system equipped with sensors to obtain the velocity and position
feedback signals.
PT
N
AC Servo Motor
EL
• Magnetic force is generated by a permanent magnet and current which
further produce the torque.
•
PT
It has no brushes so there is little noise/vibration. This motor provides
high precision control with the help of high resolution encoder.
N
• The speed and position of the motor is notified by the encoder, which
can be incremental or absolute.
AC Servo Motor
EL
• Digital encoder can be of optical or magnetic type. It gives digital
signals, which are in proportion of rotation of the shaft.
PT
N
Servo system block diagram
EL
PT
N
Advantages of servo motors
• Provides high intermittent torque, high torque to inertia ratio, and high
speeds
EL
• Work well for velocity control
• Available in all sizes
• Quiet in operation
•
PT
Smoother rotation at lower speeds
• The stepper motor is known by its property to convert a train of input pulses
(typically square wave pulses) into a precisely defined increment in the shaft
position.
EL
• Each pulse moves the shaft through a fixed angle.
• Multiple "toothed" electromagnets arranged around a central gear-shaped
piece of iron.
PT
• The electromagnets are energized by an external driver circuit or a micro
controller. In that way, the motor can be turned by a precise angle.
N
What does Stepper means?
• To make the motor shaft turn, first, one electromagnet is given power,
which magnetically attracts the gear's teeth.
• When the gear's teeth are aligned to the first electromagnet, they are
slightly offset from the next electromagnet.
EL
• This means that when the next electromagnet is turned on and the first is
turned off, the gear rotates slightly to align with the next one.
• From there the process is repeated. Each of those rotations is called a
PT
"step", with an integer number of steps making a full rotation.
N
https://en.wikipedia.org/wiki/Stepper_motor
Stepper Motor types
EL
Employ permanent magnet
Low speed, relatively high torque
PT
• Variable Reluctance
Does not have permanent magnet
Low torque
N
Permanent magnet (PM) stepper
motor
• Rotor is a permanent magnet.
• PM motor rotor has no teeth and is designed to be magnetized at a right
EL
angle to its axis.
• Figure shows a simple, 90⁰ PM motor with four phases (A-D).
PT
• Applying current to each phase in sequence will cause the rotor to rotate
by adjusting to the changing magnetic fields.
N
• Although it operates at fairly low speed, the PM motor has a relatively
high torque characteristic.
• These are low cost motors with typical step angle ranging between 7.5⁰
to 15⁰
Permanent magnet (PM) stepper
motor
EL
PT
N
Permanent magnet stepper
Variable Reluctance Motor
• The cylindrical rotor is made of soft steel and has four poles.
• It has four rotor teeth, 90⁰ apart and six stator poles, 60⁰ apart.
EL
• Electromagnetic field is produced by activating the stator coils in sequence.
PT
• It attracts the metal rotor. When the windings are energized in a reoccurring
sequence of 2, 3, 1, and so on, the motor will rotate in a 30⁰ step angle.
• In the non-energized condition, there is no magnetic flux in the air gap, as the
N
stator is an electromagnet and the rotor is a piece of soft iron; hence, there is no
detent torque.
Variable Reluctance Motor
EL
PT
N
Variable reluctance stepper motor
Hybrid stepper motor
EL
• The number of rotor pole pairs is equal to the number of teeth on one of
the rotor's parts.
PT
• The hybrid motor stator has teeth creating more poles than the main
poles windings.
N
• When a winding is energized, north and south poles are created,
depending on the polarity of the current flowing.
• These generated poles attract the permanent poles of the rotor and also
the finer metal teeth present on rotor.
Hybrid stepper motor
EL
PT
N
Hybrid stepper
Advantages of stepper motors
• Low cost
• Ruggedness
EL
• Simplicity of construction
• Low maintenance
• Less likely to stall or slip
•
•
PT
Will work in any environment
Excellent start-stop and reversing responses
N
Disadvantages of stepper motors
• Low torque capacity compared to DC motors
• Limited speed
• During overloading, the synchronization will be broken. Vibration and noise
occur when running at high speed.
Stepper Motor calculations
• CNC uses a stepper motor to rotate the lead screw. A stepper motor is
driven by series of electrical pulses generated by MCU (Machine Control
Unit).
EL
• For each pulse the motor rotates a fraction of revolution called Step Angle,
it is given by:
PT
N
Where, ns = Number of step angles for the motor (an integer)
• If np is the pulses received by the motor then angle through which motor
rotates is:
Stepper Motor calculations
EL
PT rg = Gear ratio = Am/A= Nm/ N
N
• Nm= RPM of motor, N= RPM of lead Screw
• A: Angle of Rotation(Am/ rg), p= Lead screw pitch
• The linear movement of worktable is given by:
Stepper Motor calculations
EL
Where ,ns = 360/ α
PT
• Control pulses are transmitted from pulse generator at a certain frequency
which drives the work table at the corresponding velocity.
N
• The rotational speed of lead screw depends on the frequency of the pulse
train
Equation (1)
• The table travel speed in the direction of lead screw axis is determined by:
𝑉𝑡 = 𝑓𝑟 = 𝑁 ∗ 𝑝
EL
Equation (2)
• The required pulse train frequency to drive the table at a specified linear
N
travel rate by combining equations (1) and (2):
Numerical Problem
Q1. The shaft of a stepping motor is connected directly to the X-axis leadscrew
of the machine table. The pitch of the leadscrew is 3.0mm. The number of step
angles on the stepping motor is 200.
EL
a) Determine how closely the position of the table can be controlled, assuming
that there are no mechanical errors in the positioning system.
b) b) What is the required frequency of the pulse train and the corresponding
PT
rotational speed of the stepping motor in order to drive the table at a travel
rate of 100 mm/min?
N
Numerical Problem
EL
PT
N
Numerical Problem
EL
the leadscrew).The stepping motor has 48 step angles. The table must move a
distance of 250mm from its present position at a linear velocity =500mm/min.
a) Determine how many pulses are required to move the table the specified
distance and
PT
b) the required motor speed and pulse rate to achieve the desired table
velocity.
N
Numerical Problem
EL
PT
N
Linear motion drives
• Linear motion drives are mechanical transmission systems which are used to
convert rotary motion into linear motion.
EL
• The conventional thread forms like ‘V’ or square are not suitable in CNC
because of their high wear and less efficiency.
PT
• Therefore CNC machines generally employ ball screw for driving their
workpiece carriages.
N
• These drives provide backlash free operation with low friction-wear
characteristics.
EL
• High Speed capability
• Less Wear
• Longer life
PT
N
Ball Lead Screws
EL
PT
N
Feedback Devices
EL
the actual displacement of the slide in such a way that backlash of screws,
motors etc. would not cause any error in the feed back data.
PT
N
https://www.indiamart.com/proddetail/cnc-linear-encoder-12573739991.html
Feedback Devices
EL
PT
N
Rotary Encoders
EL
PT
N
https://gfycat.com/gifs/search/rotary+encoder
The closed loop feedback control
system
EL
PT
N
The absolute encoder disc for rotary
position measurement.
EL
PT
N
Operation of a digital rotary encoder
for position measurement
EL
PT
N
The encoder disc mounted on
the lead screw
EL
PT
N
Principle of optical grating for
position measurement in linear scales
EL
PT
N
The linear scale fixed to the machine
tool structure
EL
PT
N
Analysis of Positioning NC Systems
EL
1. Control resolution
2. Accuracy
PT
3. Repeatability
N
Positioning NC Systems
EL
addressable points in the axis movement
2. Accuracy - maximum possible error that can occur between
the desired target point and the actual position taken by the
system
PT
3. Repeatability - defined as 3 of the mechanical error
N
distribution associated with the axis
Control Resolution, Accuracy, and
Repeatability
EL
PT
N
Velocity Feedback Device
EL
• The voltage generated by the DC tachometer is compared with the
command voltage corresponding to the desired speed.
PT
• The difference of the voltages is used to actuate the motor to eliminate the
error.
N
Display Unit
EL
• spindle RPM
• feed rate
• part programs
PT
• graphics simulation of the tool path.
N
Interpolation Methods
1. Linear interpolation
– Straight line between two points in space
EL
2. Circular interpolation
– Circular arc defined by starting point, end point, center or radius,
and direction
– PT
3. Helical interpolation
Circular plus linear motion
N
4. Parabolic and cubic interpolation
– Free form curves using higher order equations
Linear interpolation
• The axis of the spindle moves in the orthogonal movement from the beginning
to the end of the path
EL
• The program is divided into short straight lines.
PT
N
Circular Interpolation
EL
PT
• Approximation of a curved path in NC by
a series of straight line segments, where
N
tolerance is defined on (a) inside, (b)
outside, and (c) both inside and outside
of the actual curve
Absolute and Incremental
Positioning
• An ABSOLUTE movement moves TO A COORDINATE based on your ZERO
POINT.
EL
• An INCREMENTAL movement moves A DISTANCE based on your CURRENT
POSITION. An incremental movement does not take your part zero point
PT
into consideration.
N
Absolute vs. Incremental Positioning
EL
to point (40, 50)
• In absolute positioning, the
move is specified by
x = 40, y = 50
PT
• In incremental positioning, the
move is specified by x = 20, y =
N
30
Summary
EL
• What is Computer Numerical Control(CNC)?
PT
• Various types of CNC machines
N
• Various elements of CNC System
References
EL
2. Zeid, I., 1991. CAD/CAM theory and practice. McGraw-Hill Higher
Education.
3.
PT
Lee, K., 1999. Principles of CAD/CAM/CAE systems. Addison-Wesley
Longman Publishing Co., Inc.
N
Thank You
EL
PT
N