Professional Documents
Culture Documents
Page. Page.
History of CNC
At the end of this lecture, students will be able to At the same time, a French mechanic, J. M. Jacquard,
introduced a punch card system to direct the
operations of a weaving loom.
explain the differences among NC, CNC and DNC machines
In 1930, Konrad Zuse built a simple computer that was used to
describe hardware and interfaces required for various NC machine calculate wing designs for the German aircraft industry.
Page. Page.
What is a NC machine? What is a NC machine?
Numerical control (NC) may be defined as- A machine tool is said to be numerically controlled if
Page. Page.
Types of CNC machines
NC Machine controls are divided into three groups. Problems with the NC machine
1. Traditional numerical control (NC) Part programming mistakes: In preparing the punched
tape, part programming mistakes are common. The
2. Computer numerical control (CNC) mistakes can either be syntax or numerical errors.
3. Distributed numerical control (DNC).
Non optimal speeds and feeds: The control system
does not provide the opportunity to make changes in
Numerical Control machines:
speeds and feeds during the cutting process.
The traditional NC machines were referred to as NC
machine tool. Punched tape: Problem related to programming is the
They have generally hardwired control, whereby tape itself.
control is accomplished through the use of punched
tapes or cards. Tape reader: It interprets the punched tape is the least
reliable hardware component of the machine.
Many other problems arise from the use of NC tapes,
e.g., need to manual reload the NC tapes for each new
part and the lack of program editing abilities, which Controller: The NC controller unit cannot be easily
increases the lead time. alerted to incorporate improvements into the unit.
Page. Page.
Computer numerical control (CNC): Reduced scrap rate: Use of Part programs that are
An NC system that utilizes a dedicated, stored program developed using optimization procedures.
computer to perform some or all of the basic numerical
control functions. Reliable and safe operation: Advanced design and
manufacturing, automated monitoring, improved
Computer allows machining programs to edit, store in the maintenance and low human interaction.
computer memory, permit diagnostics & quality control.
Improved quality: Due to accurate part dimensions and Need for skilled part programmers.
excellent surface finish, precision motion control and
improved thermal control by automatic coolant flow.
2/15/2023
Page. Page.
Page. Page.
NC vs CNC Hardware and Interfaces
Features NC machine CNC machine
The hardware components include:
Definition Already mentioned Already mentioned
Storage Punch cards are used Directly stored in 1. A man-machine control (MMC) module using
computer memory an integrated industrial PC, and
Numerical Numeric, symbols, G-codes and M-codes a control panel with thin film translator (TFT)
codes letters color display
Flexibility Low High full numerical control keyboard as an input unit.
Page. Page.
NC/CNC Machine Construction
A NC/CNC machine consists of seven elements. These are:
Internal structure: The 3 hardware modules splits
into three hardware components are: 1. Set of instructions or Program
2. Machine Control Unit (MCU)
i. Operating area hardware: for all operation and display
functions; not real-time capable, normally PC-based 3. Punch card or Tape reader
hardware with Windows operating systems.
4. Signal Output Channel
ii. NC kernel hardware: for running geometric calculations and 5. Data buffer
path control, real-time capable, normally special hardware
with a real-time operating system 6. Feedback channel, and
7. Machine tools.
iii. PLC hardware: for machine adaptation of the controller
(logic control); real-time capable, normally special
hardware with firmware for cyclic sequencing.
► Program: A series of coded instructions that guides
the machine tool on how and what to do.
Program input device
Program input device is the means for part program to be Each step of the program indicates the movement
entered into the CNC control. and position of the machine tool.
Three commonly used program input devices are punch Earlier punched cards, 35mm motion picture film,
tape reader, magnetic tape reader, and computer
and magnetic tapes were used.
communication.
Page. Page.
► Machine Control Unit (MCU): This part is the brain of ►Signal Output Channel : It is responsible for sending
a machine. Like, CPU is to the computer. instructions to the machine tool (servomotor) about
what function to perform and how to perform. The
Essential components of the control unit consist of a punch or
tape reader, a data buffer, a signal output channel, and a combination of holes read in a character must be
feedback channel. changed into an unambiguous signal, which is utilized
for switching a particular machine tool function or is the
physical equivalent of a numerical quantity.
►Punch card or Tape reader: It is an electromechanical
device that reads the instruction embedded in the • This function is carried out by a decoder.
punched card or magnetic tape.
• If there is no hole on the
Coded instructions on the tape are transformed into their punched tape, the corresponding
electrical analogues which are utilized for controlling. relay remains closed and
Electromechanical type, there are eight fixed and eight occupies position 0
movable contacts for reading tracts of the punched tape. (dotted lines).
Page. Page.
Page. Page.
Fig. 1 Block diagram of a NC Machine tools : It is the part of the machine that
system for simple performs the function or operation.
turning operation.
For example, suppose an NC machine designed to
perform machine drilling operations. This machine
consists of tools like spindles, motors that control
movement, cutting tools, work tables, work fixtures,
Fig. 2 Schematic diagram of a NC and other supporting equipment.
system for simple turning
operation
Regardless of which type of machine tool is
controlled, it always has a slide table and a spindle
to control position and speed.
Page. Page.
Coordinate Systems in NC/CNC
There are nine standard axes universally used in CNC When faced with an unfamiliar CNC
machining. machine, always look for the Z axis first as it
1. Three are the familiar primary linear (straight-line) will be the easiest to identify. Then with the Z
movements X, Y, and Z. axis under control, apply the righthand rule
2. Three primary rotary axes (A, B, and C) are used to to identify the other two axes.
identify arc or circular movements (rotary motion).
3. Three secondary, straight-line motions called the Z → axis parallel to the main spindle
auxiliary linear axes (U, V, and W). X → usually the longest axis, parallel to the floor
Y → axis perpendicular to both X and Z
The basic axes used to define a three-space (3D)
envelope lie at 900 to each other, and as such are 3 Rotary Axes
called an orthogonal axis set.
In the rotary machine, there are three
primary rotary axes: A, B, and C.
Each is identified by the central primary
linear axis around which it pivots.
A axis rotates around a line parallel to X
B axis rotates around a line parallel to Y
C axis rotates around a line parallel to Z
Page. Page.
Page. Page.
Interpolation
Point-to-point (Positioning) and Continuous-path (Contouring) Systems In mathematics, interpolation is a method of deriving a simple function
Depending upon the type of functions assigned to the machine tool, from the given discrete data set such that the function passes through the
1. Point-to-point or positioning control systems. provided data points.
2. Positioning-cum-straight-cut systems. In the CNC machining, interpolation is a process of determining the
3. Continuous-path or contouring systems. unknown values that lie in between the known data points.
In point-to-point systems, the table (or spindle) is
Interpolation is required only for continuous path NC machine tools for
moved by numerical control from one defined
two or more simultaneous cutting movements.
location.
1. The digital differential analyzer (DDA) method.
Positioning-cum-straight-cut systems are basically
2. The direct function estimation (DFE) method.
positioning systems with the additional capability of
cutting along straight lines parallel to coordinate Inside tolerance
(IN TOL) Linear interpolator is primarily meant
axis.
for straight lines but can be employed
In the contouring systems the simultaneous to approximate curved profiles too.
movements of the tool and workpiece are
coordinated to generated arcs, circles, segments of Interpolation may be linear, circular,
parabola. parabolic, depending on the given
profile is approximated.
Page. Page.
Drive Systems in NC/CNC
Drives are used to provide controlled motion to CNC elements.
STEPPER MOTOR
A drive system consists of amplifier circuits, drive motors, and ball A stepper motor is a pulse-driven motor that
lead-screws. changes the angular position of the rotor in steps.
The MCU feeds the control signals (position and speed) of each
axis to the amplifier circuits. Due to this nature of a stepper motor, it is widely
The control signals are augmented to actuate drive motors which used in low cost, open loop position control systems.
in turn rotate the ball lead-screws to position the machine table.
Types of stepper motors:
In machine tools, power is generally required for driving the main 1. Permanent magnet- Employ permanent magnet, low speed, relatively
spindle, saddles and carriages and to some auxiliary units. high torque
2. Variable reluctance- Does not have permanent magnet, low torque
The motors used for CNC system are of two kinds:
1. Electrical - AC , DC or Stepper motors Permanent magnet (PM) stepper motor
2. Fluid - Hydraulic or Pneumatic • Rotor is a permanent magnet.
• PM motor rotor has no teeth and is designed to be
In CNC, usually stepper and servo electrical drives are used. magnetized at a right angle to its axis.
• These are low cost motors with typical step angle ranging
They exhibit favorable torque-speed characteristics and are • between 7.5⁰ to 15⁰.
relatively inexpensive.
2/15/2023
Page. Page.
Page. Page.
SERVO MOTORS Servomotors are also called ‘control motors’ as they are involved in
A servo motor is a special electromechanical type of motor that can rotate controlling a mechanical system.
with great precise degrees of rotation. A servomotor is used in a closed-loop
This motor consists of a control servo system, where a reference input is
circuit that provides feedback on the sent to the servo amplifier, which
current position of the motor shaft, controls the speed of the servomotor.
this feedback allows the servo motors
to rotate with great precision. A feedback device is mounted on the machine, which is either
A motor is powered by a DC power an encoder or resolver. This device changes mechanical
supply then it is called DC servo motion into electrical signals and is used as a feedback.
motor, and if it is AC-powered motor
then it is called AC servo motor.
This feedback is sent to the error detector , which compares
A servo motor usually comes with a very high torque in small and the actual operation with that of the reference input.
lightweight packages.
Apart from these classifications, there are many other types of servo If there is an error, that error is fed directly to the amplifier, which
motors based on the type of gear arrangement and operating features. will be used to make necessary corrections in control action.
2/15/2023
Page. Page.
Page. Page.
Justification of NC/CNC
LINEAR MOTION DRIVES Some of the most important applications of CNC are:
Linear motion drives are mechanical transmission systems which are
used to convert rotary motion into linear motion. CNC machining is a versatile and cost-effective manufacturing
The conventional thread forms like vee or square are not suitable process. This process is compatible with a huge range of materials.
in CNC because of their high wear and less efficiency.
Generally employ ball screw for driving their workpiece carriages. Manufacturers and machinists use CNC in various ways: in the direct
It provide backlash free operation with low friction wear. and indirect manufacturing process, or in conjunction with other
Most widely used linear motion drives are ball screws. processes.
motor The benefits of CNC are desirable in virtually any industry. They are:
table
Aerospace industry: The machining of metal aircraft
ball screw components occurs at the highest level of precision.
Bearing
guide block
Automotive industry: Industries regularly enjoy the uses of
ball screw nut CNC machining for both prototyping and production.
guide rail
Consumer electronics: CNC machining helps in the
prototyping and production of consumer electronics such
Fig. Components of a linear motion drive as laptops, smartphones, smart watch and many others.
2/15/2023
Page. Page.
Defense industry: The military sector frequently turns Some of the most important advantages of CNC are:
to CNC machining for the prototyping of rugged and 1. Greater operator safety. 7. Complex machining operations.
reliable parts.
2. Greater operator efficiency. 8. Lower tooling costs.
Rapid prototyping: CNC machines have greatest
applications in the fabrication of precise parts in a short 3. Reduction of scrap. 9. Increased productivity.
space of time.
4. Reduced lead time for production. 10. Minimal spare parts inventory.
Healthcare sector: CNC machinable medical parts include
surgical instruments, electronic enclosures, orthotics, and
5. Fewer chances for human error. 11. Greater machine tool safety.
implants.
Oil & gas Industry: CNC machines for precise, reliable 6. Maximum part accuracy and 12. Fewer worker hours for
parts such as pistons, cylinders, rods, pins, and valves. interchange. inspection.
Page. Page.
Programming in NC/CNC
A Part A group of commands given to the CNC for operating CNC Program Structure
Program the machine is called the program. There are four basic terms used in CNC programming
It consists of: Character Word Block Program
Information about part geometry
Motion statements to move the cutting tool • A program block may contain multiple words, sequenced
Cutting speed, feed, depth of cut in a logical order of processing.
Auxiliary functions such as coolant on and off, spindle
The program comprises of multiple lines of instructions,
direction
blocks, which will be executed by the machine control unit
Today, nearly all programs are generated using CAM software. (MCU).
1. Complete control of a machine tool, one must be able to read the Word is a combination of alpha-numerical characters. This creates
program
a single instruction.
2. CAM program (or any program) is rarely a perfect work.
Each word begins with a capital letter, followed by a numeral.
3. The need often arises for a quick program to make soft jaws, a
These are used to represent axes positions, feedrate, speed,
fixture, or some other provision for holding the work during a
preparatory commands, and miscellaneous functions.
machine setup.
4. Code writing is a backup skill. Character is the smallest unit of CNC program. It can have digit/ letter
The main objective is not to memorize codes, although doing so will accelerate mastery. / symbol.
2/15/2023
Page. Page.
Page. Page.
• Commands are inputs into the controller in units called blocks or X, Y, Z- X, Y & Z-Codes are coordinates. These give the coordinate
statements. Several commands are grouped together to accomplish a
specific machining operation, hence the use of a block of information
Code: positions of the tool.
for each operation. F-Code: Feed rate, F code specifies the feed in the machining operation.
• The way in which words are arranged within the block is called
block format. S-Code: Spindle speed, S code specifies the cutting speed of machining.
T- Code: Tool selection, T code specifies which tool is to be used.
Three different block formats are commonly used,
1. Fixed sequential format, 2. Tab sequential format, M- Code: Miscellaneous function, M code is used to designate a particular
3. Word address format. mode of operation for an NC machine tool.
2/15/2023
Page. Page.
Mehta, N.K._Machine Tool Design and Numerical Control, 3e, pp 452