SlideShare a Scribd company logo
1 of 34
Computer Numerical Control
Sudip Phuyal
MS by Research
Dept. of Electrical and Electronics Engineering
Sunday, June 24, 2018
• Introduction to CNC
• Types of CNC machines
• Numerical Control Coordinate System
• CNC controller
• Part Programming for CNC
• Direct Numerical Control
• Applications of CNC
• Adaptive control machining and developments
Contents
Introduction
• CNC (Computer Numerical Control) is the
name received to machines that are able to
position a tool without human assistance
• To position the tool, CNC machines have an
interpreter that translate a series of
instructions (G-Code) to electronic orders
(for example, step and direction signals)
Introduction
Fig: Machine Control System
We can classify these machines by:
• Number of axis
• Tool used
• Control system
• Motion system
There are other variable elements in a CNC machine, but these
elements don’t change the way our machine works (for example the
materials used to build it).
Types of CNC machines
1. Two axis machines
They are two axis machines work like a plotter
Classification based on number of axis
2. Three axis CNC Machines
Classification based on number of axis
They are commonly used in
wood carving and 3D
modelling
3. Four or more axis
With four or more axis we can orientate the tool, adding more
possibilities of machining:
Classification based on number of axis
They are more popular
in CNC Lathes for
metalworks
Tools
Spindle Plasma CutterLaser Cutter
• We can use a open loop or closed loop control system
• Open loop uses stepper motors to reach a position. We’ll study them
later.
Control system
• When we use DC, AC or lineal motors we have to use a closed loop
control system
• To capture the position of the tool we need an encoder for each axis,
increasing total cost
• Most CNC machines use stepper motors due to their low cost and
high precision (0.9º per steep
Control system
• There are two type of motion elements:
• Active elements: They transmit movement from position motors to mobile
elements
• Passive elements: They act like a guide or rail for mobile elements
Motion system
Motion system
Leadscrews
Ballscrews
Rack and pinion
Belts
Linear and radial bearings
Stepper motor
Motion Actuators
• AC or DC motors are less used in CNC machines than stepper
motors due to requirement of encoders,
• Linear motors are not suitable for heavy loads and are expensive
AC or DC motor Linear motors
Numerical Control
• Programmable automation in which the mechanical actions of a
‘machine tool’ are controlled by a program containing coded
alphanumeric data that represents relative positions between a work
head (e.g., cutting tool) and a work part
Machine
Control Unit
Power
Program
Instructions
Transformation
Process
NC Co-ordinate System
Fig: NC Co-ordinate system [5]
For flat and prismatic (block-like) parts:
• Milling and drilling operations
• Conventional Cartesian coordinate system
• Rotational axes about each linear axis
For rotational parts:
• Turning operations
• Only x- and z-axes
Motion Control Systems
Point-to-Point systems
• Also called position systems
• System moves to a location and performs an
operation at that location (e.g., drilling)
• Also applicable in robotics
Continuous path systems
• Also called contouring systems in machining
• System performs an operation during movement
(e.g., milling and turning)
Fig: Motion Control systems [5]
• It has to receive a list of G-code instructions and translate it to
electronic signals
• These electronics signals are sent to motor controllers. These
controllers act like a power stage, amplifying and translating the
signals that motors will receive
CNC Motor controller
Programming a CNC
• The code used to program CNC machines is generically called Part
Programming
• G-code instructions are the major part of the programming language
• Specifically, G-codes give CNC machines the coordinates from which
to hold and engage the machining tool in order to cut and shape
metal to certain specifications.
• The entire series of codes used to operate CNC machines also include
M-codes and T-Codes, which manage the CNC machine and drill tool,
respectively. Tooling speed and feed controls are dictated by S-Codes
and F-Codes, while X, Y, and Z-codes determine absolute position.
G-code (Geometric code)
Part Programming Key Letters
O - Program number (Used for program identification)
N – Sequence / Line number (Used for line identification)
G - Motion
X,Y,Z - Axis designation
R - Radius designation
F – Feed rate designation
S - Spindle speed designation
T - Tool Designation
H - Tool length offset designation
D - Tool radius offset designation
M - Miscellaneous function
Motion instructions (G Codes)
G00 – Positioning at rapid
speed
G01 – Linear interpolation
(machining a straight line)
G02 – CW Circular
interpolation (machining arcs)
G03 – CCW Circular
interpolation
G09 – Exact stop
G12 – Circular pocket milling, CW
G13 – Circular pocket milling, CCW
G17 – X-Y plane for arc machining
G18 – Z-X plane for arc machining
G19 – Z-Y plane for arc machining
G20 – Imperial units (Inch)
G21 – Metric units (mm)
Miscellaneous functions (M Codes)
M00 – Program stop
M01 – Optional program stop
M02 – End of program
M03 – Spindle on clockwise
M04 – Spindle on CCW
M05 – Spindle stop
M06 – Tool change
M08 – Flood coolant on
M09 – Flood coolant off
M30 – End of program/return to
start
M41 – Spindle low gear range
M42 – Spindle high gear range
Sample Part Programming
O1284 (Program number)
N02 G21 (Metric programming)
N03 M03 S1000
(Spindle start clockwise with
1000rpm)
N04 G00 X0 Y0 (Rapid motion towards (0,0))
N05 G00 Z-10.0
(Rapid motion towards Z=-10
plane)
N06 G01 X50.0 (Linear interpolation)
N07 G01 Y20.0 (Linear interpolation)
N08 G02 X25.0 Y45.0 R25.0
(Circular interpolation
clockwise)
N09 G03 X-25.0 Y45.0 R25.0
(Circular interpolation
counter clockwise)
N10 G02 X-50.0 Y20.0 R25.0
(Circular interpolation
clockwise)
N11 G01 Y0.0 (Linear interpolation)
N12 G01 X0.0 (Linear interpolation)
N13 G00 Z10.0
(Rapid motion towards
Z=10 plane)
N14 M05 M09
(Spindle stop and
program end)
Direct Numerical Control (DNC)
• Direct Numerical Control or Distributed Numerical Control (DNC) is a
common manufacturing term for networking CNC machine tools
consisting of central computer connected to machine tool MCUs
• In some CNC machine controllers, the available memory is too small
to contain the machining program (for example machining complex
surfaces), in this case the program is stored in a separate computer
and sent directly to the machine, one block at a time
• DNC networking or DNC communication is always required
when CAM programs are to run on some CNC machine control
• Usually, the CNC manufacturer provides suitable DNC software
Direct Numerical Control (DNC)
Machine
Control Unit
Transformation
Process
Machine
Control Unit
Machine
Control Unit
Central
Computer NC Pgms
BTR BTR BTR
Computer Network
Fig: Distributed / Direct Numerical Control [6]
Applications of CNC
• Batch and High Volume production
• Repeat and/or Repetitive orders
• Complex part geometries
• Mundane operations
• Many separate operations on one part
Adaptive Control Machining
NC System
CNC Machine
Tool
Sensors
Adaptive
Controller
Part Program
Constraints, Strategy and
Performance Index
Drive
Command
Position
Command
Fig: Block diagram of adaptive control Machining
Adaptive Control Machining
• It is a logical extension of the CNC-mechanism
• In CNC mechanism the cutting speed and feed rates are prescribed by
the part programmer
• Adaptive control determines proper speeds and feeds during
machining as a function of variation in work piece hardness, width of
cut, air gaps in part geometry etc.
• there is improvement in the production rate and reduction in the
machining cost as a result of calculating and setting of optimal
parameters during machining
• Recent adaptive control uses microprocessor based controls and is
typically integrated with an existing CNC system [7]
Functions of adaptive Control
The three functions of adaptive control are:
1. Identification
Using the feedback data from the process performance quality of the system is
identified
2. Decision
Once the system performance is determined, the decision is carried out by
comparison with pre-programmed logic provided by the designer
3. Modification
Modification is concerned with a physical or mechanical change in the system
Developments in Computer Numerical Control
• Computer Aided Manufacturing (CAM) is widely implemented
• Adaptive control machining Increased production rates, Increased
tool life, Greater part protection and Less operator intervention
• Direct Numerical Control reduced the required memory size of CNC
machine controllers and distributed control of many CNCs in the same
network
• Laser cutting, Plasma Cutting and 3D printing technologies are the
latest developments of CNC technology
References
• http://nptel.ac.in/courses/112102103/Module%20F/Module%20F(1)/
p9.htm
• www.editcnc.com
• www.cnctrainingcentre.com
Thank You !

More Related Content

What's hot

COMPUTER NUMERICAL CONTROL MACHINE
COMPUTER NUMERICAL CONTROL MACHINECOMPUTER NUMERICAL CONTROL MACHINE
COMPUTER NUMERICAL CONTROL MACHINEGopal Bhargava
 
CNC part programming
CNC part programmingCNC part programming
CNC part programmingjntuhcej
 
FUNDAMENTALS OF CNC & PART PROGRAMMING - UNIT - 4 CAD&M
FUNDAMENTALS OF CNC & PART PROGRAMMING - UNIT - 4 CAD&MFUNDAMENTALS OF CNC & PART PROGRAMMING - UNIT - 4 CAD&M
FUNDAMENTALS OF CNC & PART PROGRAMMING - UNIT - 4 CAD&MBalamurugan Subburaj
 
Cncpresentation CNC lathe machine
Cncpresentation CNC lathe machineCncpresentation CNC lathe machine
Cncpresentation CNC lathe machineHaseeb Butt
 
12 cnc & part programming
12 cnc & part programming12 cnc & part programming
12 cnc & part programmingM Siva Kumar
 
CNC machining center and CNC controllers
CNC machining center and CNC controllersCNC machining center and CNC controllers
CNC machining center and CNC controllerssushma chinta
 
Cnc turning(Fanuc system)
Cnc turning(Fanuc system)Cnc turning(Fanuc system)
Cnc turning(Fanuc system)NavinBurnwal1
 
Cnc Programming Basics
Cnc Programming BasicsCnc Programming Basics
Cnc Programming Basicsshlxtn
 
CNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASH
CNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASHCNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASH
CNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASHVed Prakash
 
Computer aided quality control
Computer aided quality controlComputer aided quality control
Computer aided quality controlAhmad Bajwa
 
computer numerical control
computer numerical controlcomputer numerical control
computer numerical controlLalrin Muani
 
Coordinate Measuring Machine(CMM)
Coordinate Measuring Machine(CMM)Coordinate Measuring Machine(CMM)
Coordinate Measuring Machine(CMM)Tushar Makvana
 
Chapter 2 constructional feature of cnc machine
Chapter 2 constructional feature of cnc machineChapter 2 constructional feature of cnc machine
Chapter 2 constructional feature of cnc machineRAHUL THAKER
 

What's hot (20)

COMPUTER NUMERICAL CONTROL MACHINE
COMPUTER NUMERICAL CONTROL MACHINECOMPUTER NUMERICAL CONTROL MACHINE
COMPUTER NUMERICAL CONTROL MACHINE
 
CNC part programming
CNC part programmingCNC part programming
CNC part programming
 
CNC Milling
CNC MillingCNC Milling
CNC Milling
 
Nc Machine
Nc MachineNc Machine
Nc Machine
 
Cnc machine centre
Cnc machine centreCnc machine centre
Cnc machine centre
 
FUNDAMENTALS OF CNC & PART PROGRAMMING - UNIT - 4 CAD&M
FUNDAMENTALS OF CNC & PART PROGRAMMING - UNIT - 4 CAD&MFUNDAMENTALS OF CNC & PART PROGRAMMING - UNIT - 4 CAD&M
FUNDAMENTALS OF CNC & PART PROGRAMMING - UNIT - 4 CAD&M
 
ppt on cnc
ppt on cncppt on cnc
ppt on cnc
 
Cncpresentation CNC lathe machine
Cncpresentation CNC lathe machineCncpresentation CNC lathe machine
Cncpresentation CNC lathe machine
 
12 cnc & part programming
12 cnc & part programming12 cnc & part programming
12 cnc & part programming
 
CNC machining center and CNC controllers
CNC machining center and CNC controllersCNC machining center and CNC controllers
CNC machining center and CNC controllers
 
Cnc turning(Fanuc system)
Cnc turning(Fanuc system)Cnc turning(Fanuc system)
Cnc turning(Fanuc system)
 
Cnc Programming Basics
Cnc Programming BasicsCnc Programming Basics
Cnc Programming Basics
 
CNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASH
CNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASHCNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASH
CNC(COMPUTER NUMERICAL CONTROL MACHINE) By-Er. VED PRAKASH
 
Computer aided quality control
Computer aided quality controlComputer aided quality control
Computer aided quality control
 
CNC
CNCCNC
CNC
 
computer numerical control
computer numerical controlcomputer numerical control
computer numerical control
 
Cnc machine
Cnc machineCnc machine
Cnc machine
 
Coordinate Measuring Machine(CMM)
Coordinate Measuring Machine(CMM)Coordinate Measuring Machine(CMM)
Coordinate Measuring Machine(CMM)
 
Apt programming
Apt programmingApt programming
Apt programming
 
Chapter 2 constructional feature of cnc machine
Chapter 2 constructional feature of cnc machineChapter 2 constructional feature of cnc machine
Chapter 2 constructional feature of cnc machine
 

Similar to Computer numerical control (CNC)

Similar to Computer numerical control (CNC) (20)

CNC Programmingmodifies examination 1
CNC Programmingmodifies examination 1CNC Programmingmodifies examination 1
CNC Programmingmodifies examination 1
 
Cnc programming basics.doc
Cnc programming basics.docCnc programming basics.doc
Cnc programming basics.doc
 
CNC Programmingmodifies1
CNC Programmingmodifies1CNC Programmingmodifies1
CNC Programmingmodifies1
 
CNC.ppt
CNC.pptCNC.ppt
CNC.ppt
 
introduction to cnc machines
 introduction to cnc machines introduction to cnc machines
introduction to cnc machines
 
CNC Maching.pptx
CNC Maching.pptxCNC Maching.pptx
CNC Maching.pptx
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
Introduction to CNC machines.pptx
Introduction to CNC machines.pptxIntroduction to CNC machines.pptx
Introduction to CNC machines.pptx
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
Cnc1
Cnc1Cnc1
Cnc1
 
CNC1 (1).ppt
CNC1 (1).pptCNC1 (1).ppt
CNC1 (1).ppt
 
CNC Training.ppt
CNC Training.pptCNC Training.ppt
CNC Training.ppt
 
9.pmat m 01
9.pmat m 019.pmat m 01
9.pmat m 01
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
Cnc pgrming seminar-
Cnc pgrming   seminar-Cnc pgrming   seminar-
Cnc pgrming seminar-
 
CNCPRESENTATION.pdf
CNCPRESENTATION.pdfCNCPRESENTATION.pdf
CNCPRESENTATION.pdf
 
cnc danish3.pptx
cnc danish3.pptxcnc danish3.pptx
cnc danish3.pptx
 
Computer numerical control ( CNC )
Computer numerical control  ( CNC )Computer numerical control  ( CNC )
Computer numerical control ( CNC )
 
INTRODUCTION ABOUT CNC MACHINE with G Code and M Code.pptx
INTRODUCTION ABOUT CNC MACHINE with G Code and M Code.pptxINTRODUCTION ABOUT CNC MACHINE with G Code and M Code.pptx
INTRODUCTION ABOUT CNC MACHINE with G Code and M Code.pptx
 
Part programming for nc machines
Part programming for nc machinesPart programming for nc machines
Part programming for nc machines
 

Recently uploaded

Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...ssuserdfc773
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfsumitt6_25730773
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxNANDHAKUMARA10
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxMustafa Ahmed
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessorAshwiniTodkar4
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information SystemsAnge Felix NSANZIYERA
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsmeharikiros2
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesRashidFaridChishti
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)ChandrakantDivate1
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxMustafa Ahmed
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...josephjonse
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...ronahami
 

Recently uploaded (20)

Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
Electromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptxElectromagnetic relays used for power system .pptx
Electromagnetic relays used for power system .pptx
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Introduction to Geographic Information Systems
Introduction to Geographic Information SystemsIntroduction to Geographic Information Systems
Introduction to Geographic Information Systems
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systems
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 

Computer numerical control (CNC)

  • 1. Computer Numerical Control Sudip Phuyal MS by Research Dept. of Electrical and Electronics Engineering Sunday, June 24, 2018
  • 2. • Introduction to CNC • Types of CNC machines • Numerical Control Coordinate System • CNC controller • Part Programming for CNC • Direct Numerical Control • Applications of CNC • Adaptive control machining and developments Contents
  • 3. Introduction • CNC (Computer Numerical Control) is the name received to machines that are able to position a tool without human assistance • To position the tool, CNC machines have an interpreter that translate a series of instructions (G-Code) to electronic orders (for example, step and direction signals)
  • 5. We can classify these machines by: • Number of axis • Tool used • Control system • Motion system There are other variable elements in a CNC machine, but these elements don’t change the way our machine works (for example the materials used to build it). Types of CNC machines
  • 6. 1. Two axis machines They are two axis machines work like a plotter Classification based on number of axis
  • 7. 2. Three axis CNC Machines Classification based on number of axis They are commonly used in wood carving and 3D modelling
  • 8. 3. Four or more axis With four or more axis we can orientate the tool, adding more possibilities of machining: Classification based on number of axis They are more popular in CNC Lathes for metalworks
  • 10. • We can use a open loop or closed loop control system • Open loop uses stepper motors to reach a position. We’ll study them later. Control system
  • 11. • When we use DC, AC or lineal motors we have to use a closed loop control system • To capture the position of the tool we need an encoder for each axis, increasing total cost • Most CNC machines use stepper motors due to their low cost and high precision (0.9º per steep Control system
  • 12. • There are two type of motion elements: • Active elements: They transmit movement from position motors to mobile elements • Passive elements: They act like a guide or rail for mobile elements Motion system
  • 13. Motion system Leadscrews Ballscrews Rack and pinion Belts Linear and radial bearings
  • 14. Stepper motor Motion Actuators • AC or DC motors are less used in CNC machines than stepper motors due to requirement of encoders, • Linear motors are not suitable for heavy loads and are expensive AC or DC motor Linear motors
  • 15. Numerical Control • Programmable automation in which the mechanical actions of a ‘machine tool’ are controlled by a program containing coded alphanumeric data that represents relative positions between a work head (e.g., cutting tool) and a work part Machine Control Unit Power Program Instructions Transformation Process
  • 16. NC Co-ordinate System Fig: NC Co-ordinate system [5] For flat and prismatic (block-like) parts: • Milling and drilling operations • Conventional Cartesian coordinate system • Rotational axes about each linear axis For rotational parts: • Turning operations • Only x- and z-axes
  • 17. Motion Control Systems Point-to-Point systems • Also called position systems • System moves to a location and performs an operation at that location (e.g., drilling) • Also applicable in robotics Continuous path systems • Also called contouring systems in machining • System performs an operation during movement (e.g., milling and turning) Fig: Motion Control systems [5]
  • 18. • It has to receive a list of G-code instructions and translate it to electronic signals • These electronics signals are sent to motor controllers. These controllers act like a power stage, amplifying and translating the signals that motors will receive CNC Motor controller
  • 19. Programming a CNC • The code used to program CNC machines is generically called Part Programming • G-code instructions are the major part of the programming language
  • 20. • Specifically, G-codes give CNC machines the coordinates from which to hold and engage the machining tool in order to cut and shape metal to certain specifications. • The entire series of codes used to operate CNC machines also include M-codes and T-Codes, which manage the CNC machine and drill tool, respectively. Tooling speed and feed controls are dictated by S-Codes and F-Codes, while X, Y, and Z-codes determine absolute position. G-code (Geometric code)
  • 21. Part Programming Key Letters O - Program number (Used for program identification) N – Sequence / Line number (Used for line identification) G - Motion X,Y,Z - Axis designation R - Radius designation F – Feed rate designation S - Spindle speed designation T - Tool Designation H - Tool length offset designation D - Tool radius offset designation M - Miscellaneous function
  • 22. Motion instructions (G Codes) G00 – Positioning at rapid speed G01 – Linear interpolation (machining a straight line) G02 – CW Circular interpolation (machining arcs) G03 – CCW Circular interpolation G09 – Exact stop G12 – Circular pocket milling, CW G13 – Circular pocket milling, CCW G17 – X-Y plane for arc machining G18 – Z-X plane for arc machining G19 – Z-Y plane for arc machining G20 – Imperial units (Inch) G21 – Metric units (mm)
  • 23. Miscellaneous functions (M Codes) M00 – Program stop M01 – Optional program stop M02 – End of program M03 – Spindle on clockwise M04 – Spindle on CCW M05 – Spindle stop M06 – Tool change M08 – Flood coolant on M09 – Flood coolant off M30 – End of program/return to start M41 – Spindle low gear range M42 – Spindle high gear range
  • 24. Sample Part Programming O1284 (Program number) N02 G21 (Metric programming) N03 M03 S1000 (Spindle start clockwise with 1000rpm) N04 G00 X0 Y0 (Rapid motion towards (0,0)) N05 G00 Z-10.0 (Rapid motion towards Z=-10 plane) N06 G01 X50.0 (Linear interpolation) N07 G01 Y20.0 (Linear interpolation) N08 G02 X25.0 Y45.0 R25.0 (Circular interpolation clockwise) N09 G03 X-25.0 Y45.0 R25.0 (Circular interpolation counter clockwise) N10 G02 X-50.0 Y20.0 R25.0 (Circular interpolation clockwise) N11 G01 Y0.0 (Linear interpolation) N12 G01 X0.0 (Linear interpolation) N13 G00 Z10.0 (Rapid motion towards Z=10 plane) N14 M05 M09 (Spindle stop and program end)
  • 25. Direct Numerical Control (DNC) • Direct Numerical Control or Distributed Numerical Control (DNC) is a common manufacturing term for networking CNC machine tools consisting of central computer connected to machine tool MCUs • In some CNC machine controllers, the available memory is too small to contain the machining program (for example machining complex surfaces), in this case the program is stored in a separate computer and sent directly to the machine, one block at a time
  • 26. • DNC networking or DNC communication is always required when CAM programs are to run on some CNC machine control • Usually, the CNC manufacturer provides suitable DNC software Direct Numerical Control (DNC)
  • 27. Machine Control Unit Transformation Process Machine Control Unit Machine Control Unit Central Computer NC Pgms BTR BTR BTR Computer Network Fig: Distributed / Direct Numerical Control [6]
  • 28. Applications of CNC • Batch and High Volume production • Repeat and/or Repetitive orders • Complex part geometries • Mundane operations • Many separate operations on one part
  • 29. Adaptive Control Machining NC System CNC Machine Tool Sensors Adaptive Controller Part Program Constraints, Strategy and Performance Index Drive Command Position Command Fig: Block diagram of adaptive control Machining
  • 30. Adaptive Control Machining • It is a logical extension of the CNC-mechanism • In CNC mechanism the cutting speed and feed rates are prescribed by the part programmer • Adaptive control determines proper speeds and feeds during machining as a function of variation in work piece hardness, width of cut, air gaps in part geometry etc. • there is improvement in the production rate and reduction in the machining cost as a result of calculating and setting of optimal parameters during machining • Recent adaptive control uses microprocessor based controls and is typically integrated with an existing CNC system [7]
  • 31. Functions of adaptive Control The three functions of adaptive control are: 1. Identification Using the feedback data from the process performance quality of the system is identified 2. Decision Once the system performance is determined, the decision is carried out by comparison with pre-programmed logic provided by the designer 3. Modification Modification is concerned with a physical or mechanical change in the system
  • 32. Developments in Computer Numerical Control • Computer Aided Manufacturing (CAM) is widely implemented • Adaptive control machining Increased production rates, Increased tool life, Greater part protection and Less operator intervention • Direct Numerical Control reduced the required memory size of CNC machine controllers and distributed control of many CNCs in the same network • Laser cutting, Plasma Cutting and 3D printing technologies are the latest developments of CNC technology

Editor's Notes

  1. Tool means Milling tool used in CNC
  2. AC or DC motors requires encoders and special control mechanism
  3. In adaptive control, this measure is called the index of performance (IP).