Académique Documents
Professionnel Documents
Culture Documents
Prof. J. Ramkumar
Department of Mechanical Engineering
IIT Kanpur
Computer Numeric Control
A system in which actions are controlled by the direct insertion of numerical data at some point. The
system must automatically interpret at least some portion of this data.
Computer Numerical Control (CNC) Machine
Advantages and Disadvantages of CNC
Advantages:
High Repeatability and Precision e.g. Aircraft parts.
Volume of production is very high.
Complex contours/surfaces can be easily machined.
Flexibility in job change, automatic tool settings, less scrap.
More safe, higher productivity, better quality.
Less paper work, faster prototype production, reduction in lead times.
Disadvantages:
Costly setup, skilled operators.
Computer programming knowledge required.
Maintenance is difficult.
Open Loop Systems
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.
Input Device
Central Processing Unit/ Machine Control Unit
Machine Tool
Driving System
Feedback Devices
Display Unit
Input Devices
This data is decoded and transformed into specific position control and velocity signals.
It also oversees the movement of the control axis or spindle and whenever this does not
match with the programmed values, a corrective action as taken.
Machine Tool
Most are made from high speed steel (HSS), tungsten carbide or ceramics.
Some tools need coolant such as oil to protect the tool and work.
Driving System
The requirement is that the driving system has to response accurately according to the programmed
instructions.
The motor is coupled either directly or through a gear box to the machine lead screw to moves the
machine slide or the spindle.
Three types of electrical motors are commonly used:
1. DC Servo motor
2. AC Servo motor
3. Stepping motor as explained ahead.
1. DC Servo Motor
The principle of operation is based on the rotation of an armature winding in a permanently energized
magnetic field.
The armature winding is connected to a commutator, which is a cylinder of insulated copper segments
mounted on the shaft.
DC current is passed to the commutator through carbon brushes, which are connected to the machine
terminals.
2. AC Servo Motor
In an AC servomotor, the rotor is a permanent magnet while the stator is equipped with 3-phase
windings.
The speed of the rotor is equal to the rotational frequency of the magnetic field of the stator, which
is regulated by the frequency converter.
3. Stepping Motor
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.
Each pulse moves the shaft through a fixed angle.
Multiple "toothed" electromagnets arranged around a central gear-shaped piece of iron.
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.
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.
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 "step", with an integer number of
steps making a full rotation.
However, stepping motors are not commonly used in machine tools due to the following drawbacks:
slow speed,
low torque,
low resolution
easy to slip in case of overload.
Open Loop Positioning Systems
Stepper Motor calculations
It uses a stepper motor to rotate the lead screw. A stepper motor is driven by series of
electrical pulses generated by MCU.
For each pulse the motor rotates a fraction of revolution called Step Angle, it is given by
rg = Gear ratio
= Am/A= Nm/ N
Nm= RPM of motor, N= RPM of lead Screw
The linear movement of worktable is given by
Total number of pulses required to achieve a specified x-position increment is calculated by:
Equation (1)
The table travel speed in the direction of lead screw axis is determined by:
Equation (2)
The actual speed of the motor can be measured in terms of voltage generated from a tachometer mounted
at the end of the motor shaft.
The voltage generated by the DC tachometer is compared with the command voltage corresponding to
the desired speed.
The difference of the voltages is used to actuate the motor to eliminate the error.
Display Unit
Interface between the machine and the operator.
1.Linear interpolation
Straight line between two points in space
2. Circular interpolation
Circular arc defined by starting point, end point, centre or radius, and direction.
3. Helical interpolation
Circular plus linear motion
4. Parabolic and cubic interpolation
Free form curves using higher order equations
Circular Interpolation
Preparatory Codes:
Feed and Speed Codes: F and S- Specify feed and spindle speed
N5 M12
N10 T0101
N15 G0 X100 Z50
N20 M3 S600
N25 M8
N30 G1 X50 Z0 F600
N40 Y-30 F200
N50 X80 Y-20 F150
N60 G0 X100 Z50
N70 T0100
N80 M5
N90 M9
N100 M13
N110 M30
Programming Example
CNC multi step Turning operation
Part program
N5 G90 G71
N10 T1 M6
N15 G92 X-100 Y86 Z95
N20 G0 X0 Y0 S2500 M3
N25 Z12.5
N30 G1 Z-12.5 F150
N35 X-20 Y30
N40 G2 X10 Y100 R80
N45 G1 X140 Y60
N50 G2 X150 Y0 R50
N55 G1 X0 Y0
N60 G0 Z12.5
N65 G91 G28 Z0 M5
N70 G91 G28 X0 Y0
N75 M30
Programming Example
N2 G17 G71 G90 G94 G54
N4 T1 L90
N6 G00 Z5 D5 M3 S500 X20 Y90
N8 G01 Z-2 F50
N10 G02 X60 Y50 I0 J-40
N12 G03 X80 Y50 I20 J0
N14 G00 Z100
N16 M02
Sample program on drilling
N1 T16 M06
N2 G90 G54 G00 X0.5 Y-0.5
N3 S1450 M03
N4 G43 H16 Z1. M08
N5 G81 G99 Z-0.375 R0.1 F9.
N6 X1.5
N7 Y-1.5
N8 X0.5
N9 G80 G00 Z1. M09
N10 G53 G49 Z0. M05
N11 M30
THANK YOU