SlideShare a Scribd company logo
1 of 32
NC and CNC machines and Control Programming
Introduction to NC and CNC machines
CNC controls and RS274 programming
History of CNC
1949
US Air Force asks MIT to develop a "numerically controlled"
machine.
1952
Prototype NC machine demonstrated (punched tape input)
1980-
CNC machines (computer used to link directly to controller)
1990-
DNC: external computer “drip feeds” control programmer
to machine tool controller
Motivation and uses
To manufacture complex curved geometries in 2D or 3D
was extremely expensive by mechanical means (which
usually would require complex jigs to control the cutter
motions)
Machining components with repeatable accuracy
Unmanned machining operations
Advantages of CNC
- Easier to program;
- Easy storage of existing programs;
- Easy to change a program
- Avoids human errors
- NC machines are safer to operate
- Complex geometry is produced as cheaply as simple ones
- Usually generates closer tolerances than manual machines
Conventional milling machines
Vertical milling machine
Vertical Milling machine architecture
Conventional milling machines
Horizontal Milling machine architecture
Conventional milling machines
How does the table move along X- Y- and Z- axes ?
NC machines
Motion control is done by: servo-controlled motors
~
S
e
r
v
oC
o
n
tr
o
lle
r
C
o
u
n
te
r C
o
m
p
a
r
a
to
r
E
n
c
o
d
e
r A
/C
M
o
to
r
In
p
u
t(
c
o
n
v
e
r
te
dfr
o
m
a
n
a
lo
gtod
ig
ita
lv
a
lu
e
)
T
a
b
le
L
e
a
d
s
c
r
e
w
CNC terminology
BLU: basic length unit 
smallest programmable move of each axis.
Controller: (Machine Control Unit, MCU) 
Electronic and computerized interface between operator and m/c
Controller components:
1. Data Processing Unit (DPU)
2. Control-Loops Unit (CLU)
Controller components
Data Processing Unit:
Input device [RS-232 port/ Tape Reader/ Punched Tape Reader]
Data Reading Circuits and Parity Checking Circuits
Decoders to distribute data to the axes controllers.
Control Loops Unit:
Interpolator to supply machine-motion commands between data points
Position control loop hardware for each axis of motion
Types of CNC machines
Based on Motion Type:
Point-to-Point or Continuous path
Based on Control Loops:
Open loop or Closed loop
Based on Power Supply:
Electric or Hydraulic or Pneumatic
Based on Positioning System
Incremental or Absolute
Open Loop vs. Closed Loop controls
Open loop control of a Point-to-Point NC drilling machine
NOTE: this machine uses stepper motor control
Components of Servo-motor controlled CNC
Motor speed control
Two types of encoder configurations
Motor lead screw rotation table moves
position sensed by encoder
feedback
Motion Control and feedback
Encoder outputs: electrical pulses (e.g. 500 pulses per revolution)
Rotation of the motor  linear motion of the table: by the leadscrew
The pitch of the leadscrew: horizontal distance between successive threads
One thread in a screw  single start screw: Dist moved in 1 rev = pitch
Two threads in screw  double start screw: Dist moved in 1 rev = 2* pitch
Example 1
A Stepping motor of 20 steps per revolution moves a machine table
through a leadscrew of 0.2 mm pitch.
(a) What is the BLU of the system ?
(b) If the motor receives 2000 pulses per minute, what is the linear
velocity in inch/min ?
Example 2
A DC servo-motor is coupled to a leadscrew (pitch 5mm) of a machine table.
A digital encoder, which emits 500 pulses per revolution, is mounted on the
leadscrew. If the motor rotates at 600 rpm, find
(a) The linear velocity of the table
(b) The BLU of the machine
(c) The frequency of pulses emitted by the encoder.
Manual NC programming
Part program: A computer program to specify
- Which tool should be loaded on the machine spindle;
- What are the cutting conditions (speed, feed, coolant ON/OFF etc)
- The start point and end point of a motion segment
- how to move the tool with respect to the machine.
Standard Part programming language: RS 274-D (Gerber, GN-code)
History of CNC
The RS274-D is a word address format
Each line of program == 1 block
Each block is composed of several instructions, or (words)
Sequence and format of words:
N3 G2 X+1.4 Y+1.4 Z+1.4 I1.4 J1.4 K1.4 F3.2 S4 T4 M2
sequence no
preparatory function
destination coordinates dist to center of circle
feed rate spindle speed
tool
miscellaneous function
Manual Part Programming Example
Tool size = 0.25 inch,
Feed rate = 6 inch per minute,
Cutting speed = 300 rpm,
Tool start position: 2.0, 2.0
Programming in inches
(4, 4)
(2, 2)
5”
p0
p1
p2
5”
2.5”
1”
45°
p3
p4
p5
Motion of tool:
p0  p1  p2  p3  p4  p5  p1  p0
Spindle CCW
(4, 4)
(2, 2)
5”
p0
p1
p2
5”
2.5”
1”
45°
p3
p4
p5
1. Set up the programming parameters
N010 G70 G90 G94 G97 M04
Programming in inches
Use absolute coordinates
Spindle speed in rpm
Feed in ipm
Flood coolant ON
(4, 4)
(2, 2)
5”
p0
p1
p2
5”
2.5”
1”
45°
p3
p4
p5
2. Set up the machining conditions
N020 G17 G75 F6.0 S300 T1001 M08
Machine moves in XY-plane
Feed rate
Tool no.
Spindle speed
Use full-circle interpolation
(4, 4)
(2, 2)
5”
p0
p1
p2
5”
2.5”
1”
45°
p3
p4
p5
3. Move tool from p0 to p1 in straight line
N030 G01 X3.875 Y3.698
Linear interpolation
target coordinates
(4, 4)
(2, 2)
5”
p0
p1
p2
5”
2.5”
1”
45°
p3
p4
p5
4. Cut profile from p1 to p2
N040 G01 X3.875 Y9.125
Linear interpolation
target coordinates
N040 G01 Y9.125
X-coordinate does not change  no need to program it
or
(4, 4)
(2, 2)
5”
p0
p1
p2
5”
2.5”
1”
45°
p3
p4
p5
5. Cut profile from p2 to p3
N050 G01 X5.634 Y9.125
Linear interpolation
target coordinates
1
”
p
3
.1
2
5
(
x
,y
)
(
6
.5
,9
)
y=
9+
0
.1
2
5=
9
.1
2
5
(
6
.5-x
)
2+
0
.1
2
5
2=
(
1-0
.1
2
5
)
2
x=
5
.6
3
4
coordinates of center of circle
(4, 4)
(2, 2)
5”
p0
p1
p2
5”
2.5”
1”
45°
p3
p4
p5
6. Cut along circle from p3 to p4
N060 G03 X7.366 Y9.125 I6.5 J9.0
circular interpolation, CCW motion
target coordinates
(4, 4)
(2, 2)
5”
p0
p1
p2
5”
2.5”
1”
45°
p3
p4
p5
7. Cut from p4 to p5
N070 G01 X9.302
target coordinates (Y is unchanged)
Linear interpolation
(4, 4)
(2, 2)
5”
p0
p1
p2
5”
2.5”
1”
45°
p3
p4
p5
8. Cut from p5 to p1
N080 G01 X3.875 Y3.698
target coordinates (see step 3)
Linear interpolation
(4, 4)
(2, 2)
5”
p0
p1
p2
5”
2.5”
1”
45°
p3
p4
p5
9. Return to home position, stop program
N090 G01 X2.0 Y2.0 M30
end of data
target coordinates (see step 3)
Linear interpolation
N100 M00
program stop
Automatic Part Programming
Software programs can automatic generation of CNC data
Make 3D model
Define Tool
CNC data
Simulate
cutting
Automatic part programming and DNC
Very complex part shapes  very large NC program
NC controller memory may not handle HUGE part program
computer feeds few blocks of
NC program to controller
When almost all blocks executed,
controller requests more blocks
Summary
CNC machines allow precise and repeatable control in machining
CNC lathes, Milling machines, etc. are all controlled by NC programs
NC programs can be generated manually, automatically
Additional references: RS274D code descriptions

More Related Content

What's hot

Elements of mechatronics
Elements of mechatronicsElements of mechatronics
Elements of mechatronicsppkachare
 
Servo motor and servo drive
Servo motor and servo driveServo motor and servo drive
Servo motor and servo driveSai Kumar
 
NC pogramming
NC pogrammingNC pogramming
NC pogrammingillpa
 
Unit 1 - Basics of Mechanisms
Unit 1 - Basics of MechanismsUnit 1 - Basics of Mechanisms
Unit 1 - Basics of MechanismsBalasundar P
 
Mechatronics-Introduction to Mechatronics System
Mechatronics-Introduction to Mechatronics SystemMechatronics-Introduction to Mechatronics System
Mechatronics-Introduction to Mechatronics SystemMani Vannan M
 
Robot programming , accuracy ,repeatability and application
Robot programming , accuracy ,repeatability  and applicationRobot programming , accuracy ,repeatability  and application
Robot programming , accuracy ,repeatability and applicationvishaldattKohir1
 
MR3491 SENSORS AND INSTRUMENTATION (UNIT III - FORCE, MAGNETIC AND HEADING SE...
MR3491 SENSORS AND INSTRUMENTATION (UNIT III - FORCE, MAGNETIC AND HEADING SE...MR3491 SENSORS AND INSTRUMENTATION (UNIT III - FORCE, MAGNETIC AND HEADING SE...
MR3491 SENSORS AND INSTRUMENTATION (UNIT III - FORCE, MAGNETIC AND HEADING SE...A R SIVANESH M.E., (Ph.D)
 
Flexible manufacturing systems (FMS)
Flexible manufacturing systems (FMS)Flexible manufacturing systems (FMS)
Flexible manufacturing systems (FMS)SERCOD
 
Robotics unit3 sensors
Robotics unit3 sensorsRobotics unit3 sensors
Robotics unit3 sensorsJanarthanan B
 

What's hot (20)

Elements of mechatronics
Elements of mechatronicsElements of mechatronics
Elements of mechatronics
 
CNC
CNCCNC
CNC
 
Servo motor and servo drive
Servo motor and servo driveServo motor and servo drive
Servo motor and servo drive
 
NC pogramming
NC pogrammingNC pogramming
NC pogramming
 
Unit 1 - Basics of Mechanisms
Unit 1 - Basics of MechanismsUnit 1 - Basics of Mechanisms
Unit 1 - Basics of Mechanisms
 
Mechatronics-Introduction to Mechatronics System
Mechatronics-Introduction to Mechatronics SystemMechatronics-Introduction to Mechatronics System
Mechatronics-Introduction to Mechatronics System
 
Inspection metrology
Inspection metrologyInspection metrology
Inspection metrology
 
CNC Machines and its Components
CNC Machines and its ComponentsCNC Machines and its Components
CNC Machines and its Components
 
Robot programming , accuracy ,repeatability and application
Robot programming , accuracy ,repeatability  and applicationRobot programming , accuracy ,repeatability  and application
Robot programming , accuracy ,repeatability and application
 
3 numerical control
3 numerical control3 numerical control
3 numerical control
 
Cnc technology
Cnc technology Cnc technology
Cnc technology
 
fundamentals of machine vision system
fundamentals of machine vision systemfundamentals of machine vision system
fundamentals of machine vision system
 
part programming (cnc)
part programming (cnc)part programming (cnc)
part programming (cnc)
 
MR3491 SENSORS AND INSTRUMENTATION (UNIT III - FORCE, MAGNETIC AND HEADING SE...
MR3491 SENSORS AND INSTRUMENTATION (UNIT III - FORCE, MAGNETIC AND HEADING SE...MR3491 SENSORS AND INSTRUMENTATION (UNIT III - FORCE, MAGNETIC AND HEADING SE...
MR3491 SENSORS AND INSTRUMENTATION (UNIT III - FORCE, MAGNETIC AND HEADING SE...
 
Encoders
EncodersEncoders
Encoders
 
Flexible manufacturing systems (FMS)
Flexible manufacturing systems (FMS)Flexible manufacturing systems (FMS)
Flexible manufacturing systems (FMS)
 
Actuators
ActuatorsActuators
Actuators
 
Robot Classification
Robot ClassificationRobot Classification
Robot Classification
 
Unit 3 machine vision
Unit 3 machine vision Unit 3 machine vision
Unit 3 machine vision
 
Robotics unit3 sensors
Robotics unit3 sensorsRobotics unit3 sensors
Robotics unit3 sensors
 

Similar to MT-II UNIT V CNC MACHINING

Similar to MT-II UNIT V CNC MACHINING (20)

9 cnc (1)
9 cnc (1)9 cnc (1)
9 cnc (1)
 
9 cnc
9 cnc9 cnc
9 cnc
 
9_CNC.ppt
9_CNC.ppt9_CNC.ppt
9_CNC.ppt
 
9_CNC.ppt
9_CNC.ppt9_CNC.ppt
9_CNC.ppt
 
Cnc programming
Cnc programmingCnc programming
Cnc programming
 
Part Programming Examples.pdf
Part Programming Examples.pdfPart Programming Examples.pdf
Part Programming Examples.pdf
 
9_CNC (1).ppt
9_CNC (1).ppt9_CNC (1).ppt
9_CNC (1).ppt
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
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
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
nc and cnc dp
nc and cnc dpnc and cnc dp
nc and cnc dp
 
Ch-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdf
Ch-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdfCh-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdf
Ch-11 NC; CNC; DNC; FMS; Automation and Robotics_2.pdf
 
Ncmachine (1)
Ncmachine (1)Ncmachine (1)
Ncmachine (1)
 
Me761 a lecture-4 cnc
Me761 a lecture-4 cncMe761 a lecture-4 cnc
Me761 a lecture-4 cnc
 
PPT ON BHEL HARIDWAR
PPT ON BHEL HARIDWARPPT ON BHEL HARIDWAR
PPT ON BHEL HARIDWAR
 
Numerical control and CNC
Numerical control and CNCNumerical control and CNC
Numerical control and CNC
 
Product manufacturing cnc edm
Product manufacturing  cnc edmProduct manufacturing  cnc edm
Product manufacturing cnc edm
 

More from Karthik R

MT-II UNIT II TURNING
MT-II UNIT II TURNING MT-II UNIT II TURNING
MT-II UNIT II TURNING Karthik R
 
MT-II UNIT II TURNING
MT-II UNIT II TURNING MT-II UNIT II TURNING
MT-II UNIT II TURNING Karthik R
 
MT-II UNIT IV ABRASIVE PROCESS AND BROACHING
MT-II UNIT IV ABRASIVE PROCESS AND BROACHINGMT-II UNIT IV ABRASIVE PROCESS AND BROACHING
MT-II UNIT IV ABRASIVE PROCESS AND BROACHINGKarthik R
 
MT-II UNIT V CNC MACHINING
MT-II UNIT V CNC MACHININGMT-II UNIT V CNC MACHINING
MT-II UNIT V CNC MACHININGKarthik R
 
MT-II UNIT II TURNING MACHINES
MT-II UNIT II TURNING MACHINESMT-II UNIT II TURNING MACHINES
MT-II UNIT II TURNING MACHINESKarthik R
 
UNIT III SHAPER, MILLING AND GEAR CUTTING MACHINES
UNIT III SHAPER, MILLING AND GEAR CUTTING MACHINESUNIT III SHAPER, MILLING AND GEAR CUTTING MACHINES
UNIT III SHAPER, MILLING AND GEAR CUTTING MACHINESKarthik R
 
MT-II UNIT I THEORY OF METAL CUTTING
MT-II UNIT I THEORY OF METAL CUTTINGMT-II UNIT I THEORY OF METAL CUTTING
MT-II UNIT I THEORY OF METAL CUTTINGKarthik R
 
KOM-UNIT-V-Friction
KOM-UNIT-V-FrictionKOM-UNIT-V-Friction
KOM-UNIT-V-FrictionKarthik R
 
KOM-UNIT-V-Belt
KOM-UNIT-V-BeltKOM-UNIT-V-Belt
KOM-UNIT-V-BeltKarthik R
 
KOM-Unit V-clutches
KOM-Unit V-clutchesKOM-Unit V-clutches
KOM-Unit V-clutchesKarthik R
 
KOM-UNIT-5-Pivoted block or shoe brakes
KOM-UNIT-5-Pivoted block or shoe brakesKOM-UNIT-5-Pivoted block or shoe brakes
KOM-UNIT-5-Pivoted block or shoe brakesKarthik R
 
KOM-UNIT4-Gear train
KOM-UNIT4-Gear trainKOM-UNIT4-Gear train
KOM-UNIT4-Gear trainKarthik R
 
KOM-UNIT4-Kom gears
KOM-UNIT4-Kom gearsKOM-UNIT4-Kom gears
KOM-UNIT4-Kom gearsKarthik R
 
KOM-UNIT4-Gear 2
KOM-UNIT4-Gear 2KOM-UNIT4-Gear 2
KOM-UNIT4-Gear 2Karthik R
 
KOM-UNIT-4Gear 1
KOM-UNIT-4Gear 1KOM-UNIT-4Gear 1
KOM-UNIT-4Gear 1Karthik R
 
KOM- Unit 3 -tangent cam
KOM- Unit 3 -tangent camKOM- Unit 3 -tangent cam
KOM- Unit 3 -tangent camKarthik R
 
KOM Unit ---I
KOM Unit ---IKOM Unit ---I
KOM Unit ---IKarthik R
 
HYDRAULICS & PNEUMATICS UNIT-4
HYDRAULICS & PNEUMATICS UNIT-4HYDRAULICS & PNEUMATICS UNIT-4
HYDRAULICS & PNEUMATICS UNIT-4Karthik R
 
hydraulics and pneumaticsUNIT 3
hydraulics and pneumaticsUNIT 3hydraulics and pneumaticsUNIT 3
hydraulics and pneumaticsUNIT 3Karthik R
 

More from Karthik R (20)

MT-II UNIT II TURNING
MT-II UNIT II TURNING MT-II UNIT II TURNING
MT-II UNIT II TURNING
 
MT-II UNIT II TURNING
MT-II UNIT II TURNING MT-II UNIT II TURNING
MT-II UNIT II TURNING
 
MT-II UNIT IV ABRASIVE PROCESS AND BROACHING
MT-II UNIT IV ABRASIVE PROCESS AND BROACHINGMT-II UNIT IV ABRASIVE PROCESS AND BROACHING
MT-II UNIT IV ABRASIVE PROCESS AND BROACHING
 
MT-II UNIT V CNC MACHINING
MT-II UNIT V CNC MACHININGMT-II UNIT V CNC MACHINING
MT-II UNIT V CNC MACHINING
 
MT-II UNIT II TURNING MACHINES
MT-II UNIT II TURNING MACHINESMT-II UNIT II TURNING MACHINES
MT-II UNIT II TURNING MACHINES
 
UNIT III SHAPER, MILLING AND GEAR CUTTING MACHINES
UNIT III SHAPER, MILLING AND GEAR CUTTING MACHINESUNIT III SHAPER, MILLING AND GEAR CUTTING MACHINES
UNIT III SHAPER, MILLING AND GEAR CUTTING MACHINES
 
MT-II UNIT I THEORY OF METAL CUTTING
MT-II UNIT I THEORY OF METAL CUTTINGMT-II UNIT I THEORY OF METAL CUTTING
MT-II UNIT I THEORY OF METAL CUTTING
 
KOM-UNIT-V-Friction
KOM-UNIT-V-FrictionKOM-UNIT-V-Friction
KOM-UNIT-V-Friction
 
KOM-UNIT-V-Belt
KOM-UNIT-V-BeltKOM-UNIT-V-Belt
KOM-UNIT-V-Belt
 
KOM-Unit 5
KOM-Unit 5KOM-Unit 5
KOM-Unit 5
 
KOM-Unit V-clutches
KOM-Unit V-clutchesKOM-Unit V-clutches
KOM-Unit V-clutches
 
KOM-UNIT-5-Pivoted block or shoe brakes
KOM-UNIT-5-Pivoted block or shoe brakesKOM-UNIT-5-Pivoted block or shoe brakes
KOM-UNIT-5-Pivoted block or shoe brakes
 
KOM-UNIT4-Gear train
KOM-UNIT4-Gear trainKOM-UNIT4-Gear train
KOM-UNIT4-Gear train
 
KOM-UNIT4-Kom gears
KOM-UNIT4-Kom gearsKOM-UNIT4-Kom gears
KOM-UNIT4-Kom gears
 
KOM-UNIT4-Gear 2
KOM-UNIT4-Gear 2KOM-UNIT4-Gear 2
KOM-UNIT4-Gear 2
 
KOM-UNIT-4Gear 1
KOM-UNIT-4Gear 1KOM-UNIT-4Gear 1
KOM-UNIT-4Gear 1
 
KOM- Unit 3 -tangent cam
KOM- Unit 3 -tangent camKOM- Unit 3 -tangent cam
KOM- Unit 3 -tangent cam
 
KOM Unit ---I
KOM Unit ---IKOM Unit ---I
KOM Unit ---I
 
HYDRAULICS & PNEUMATICS UNIT-4
HYDRAULICS & PNEUMATICS UNIT-4HYDRAULICS & PNEUMATICS UNIT-4
HYDRAULICS & PNEUMATICS UNIT-4
 
hydraulics and pneumaticsUNIT 3
hydraulics and pneumaticsUNIT 3hydraulics and pneumaticsUNIT 3
hydraulics and pneumaticsUNIT 3
 

Recently uploaded

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
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
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfsumitt6_25730773
 
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
 
Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)ChandrakantDivate1
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
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
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Ramkumar k
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessorAshwiniTodkar4
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...ppkakm
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
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
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxhublikarsn
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
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
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesChandrakantDivate1
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdfKamal Acharya
 

Recently uploaded (20)

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
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
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
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
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)Introduction to Artificial Intelligence ( AI)
Introduction to Artificial Intelligence ( AI)
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
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
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
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
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
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 Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdf
 

MT-II UNIT V CNC MACHINING

  • 1. NC and CNC machines and Control Programming Introduction to NC and CNC machines CNC controls and RS274 programming
  • 2. History of CNC 1949 US Air Force asks MIT to develop a "numerically controlled" machine. 1952 Prototype NC machine demonstrated (punched tape input) 1980- CNC machines (computer used to link directly to controller) 1990- DNC: external computer “drip feeds” control programmer to machine tool controller
  • 3. Motivation and uses To manufacture complex curved geometries in 2D or 3D was extremely expensive by mechanical means (which usually would require complex jigs to control the cutter motions) Machining components with repeatable accuracy Unmanned machining operations
  • 4. Advantages of CNC - Easier to program; - Easy storage of existing programs; - Easy to change a program - Avoids human errors - NC machines are safer to operate - Complex geometry is produced as cheaply as simple ones - Usually generates closer tolerances than manual machines
  • 6. Vertical Milling machine architecture Conventional milling machines
  • 7. Horizontal Milling machine architecture Conventional milling machines How does the table move along X- Y- and Z- axes ?
  • 8. NC machines Motion control is done by: servo-controlled motors ~ S e r v oC o n tr o lle r C o u n te r C o m p a r a to r E n c o d e r A /C M o to r In p u t( c o n v e r te dfr o m a n a lo gtod ig ita lv a lu e ) T a b le L e a d s c r e w
  • 9. CNC terminology BLU: basic length unit  smallest programmable move of each axis. Controller: (Machine Control Unit, MCU)  Electronic and computerized interface between operator and m/c Controller components: 1. Data Processing Unit (DPU) 2. Control-Loops Unit (CLU)
  • 10. Controller components Data Processing Unit: Input device [RS-232 port/ Tape Reader/ Punched Tape Reader] Data Reading Circuits and Parity Checking Circuits Decoders to distribute data to the axes controllers. Control Loops Unit: Interpolator to supply machine-motion commands between data points Position control loop hardware for each axis of motion
  • 11. Types of CNC machines Based on Motion Type: Point-to-Point or Continuous path Based on Control Loops: Open loop or Closed loop Based on Power Supply: Electric or Hydraulic or Pneumatic Based on Positioning System Incremental or Absolute
  • 12. Open Loop vs. Closed Loop controls
  • 13. Open loop control of a Point-to-Point NC drilling machine NOTE: this machine uses stepper motor control
  • 14. Components of Servo-motor controlled CNC Motor speed control Two types of encoder configurations Motor lead screw rotation table moves position sensed by encoder feedback
  • 15. Motion Control and feedback Encoder outputs: electrical pulses (e.g. 500 pulses per revolution) Rotation of the motor  linear motion of the table: by the leadscrew The pitch of the leadscrew: horizontal distance between successive threads One thread in a screw  single start screw: Dist moved in 1 rev = pitch Two threads in screw  double start screw: Dist moved in 1 rev = 2* pitch
  • 16. Example 1 A Stepping motor of 20 steps per revolution moves a machine table through a leadscrew of 0.2 mm pitch. (a) What is the BLU of the system ? (b) If the motor receives 2000 pulses per minute, what is the linear velocity in inch/min ?
  • 17. Example 2 A DC servo-motor is coupled to a leadscrew (pitch 5mm) of a machine table. A digital encoder, which emits 500 pulses per revolution, is mounted on the leadscrew. If the motor rotates at 600 rpm, find (a) The linear velocity of the table (b) The BLU of the machine (c) The frequency of pulses emitted by the encoder.
  • 18. Manual NC programming Part program: A computer program to specify - Which tool should be loaded on the machine spindle; - What are the cutting conditions (speed, feed, coolant ON/OFF etc) - The start point and end point of a motion segment - how to move the tool with respect to the machine. Standard Part programming language: RS 274-D (Gerber, GN-code)
  • 19. History of CNC The RS274-D is a word address format Each line of program == 1 block Each block is composed of several instructions, or (words) Sequence and format of words: N3 G2 X+1.4 Y+1.4 Z+1.4 I1.4 J1.4 K1.4 F3.2 S4 T4 M2 sequence no preparatory function destination coordinates dist to center of circle feed rate spindle speed tool miscellaneous function
  • 20. Manual Part Programming Example Tool size = 0.25 inch, Feed rate = 6 inch per minute, Cutting speed = 300 rpm, Tool start position: 2.0, 2.0 Programming in inches (4, 4) (2, 2) 5” p0 p1 p2 5” 2.5” 1” 45° p3 p4 p5 Motion of tool: p0  p1  p2  p3  p4  p5  p1  p0
  • 21. Spindle CCW (4, 4) (2, 2) 5” p0 p1 p2 5” 2.5” 1” 45° p3 p4 p5 1. Set up the programming parameters N010 G70 G90 G94 G97 M04 Programming in inches Use absolute coordinates Spindle speed in rpm Feed in ipm
  • 22. Flood coolant ON (4, 4) (2, 2) 5” p0 p1 p2 5” 2.5” 1” 45° p3 p4 p5 2. Set up the machining conditions N020 G17 G75 F6.0 S300 T1001 M08 Machine moves in XY-plane Feed rate Tool no. Spindle speed Use full-circle interpolation
  • 23. (4, 4) (2, 2) 5” p0 p1 p2 5” 2.5” 1” 45° p3 p4 p5 3. Move tool from p0 to p1 in straight line N030 G01 X3.875 Y3.698 Linear interpolation target coordinates
  • 24. (4, 4) (2, 2) 5” p0 p1 p2 5” 2.5” 1” 45° p3 p4 p5 4. Cut profile from p1 to p2 N040 G01 X3.875 Y9.125 Linear interpolation target coordinates N040 G01 Y9.125 X-coordinate does not change  no need to program it or
  • 25. (4, 4) (2, 2) 5” p0 p1 p2 5” 2.5” 1” 45° p3 p4 p5 5. Cut profile from p2 to p3 N050 G01 X5.634 Y9.125 Linear interpolation target coordinates 1 ” p 3 .1 2 5 ( x ,y ) ( 6 .5 ,9 ) y= 9+ 0 .1 2 5= 9 .1 2 5 ( 6 .5-x ) 2+ 0 .1 2 5 2= ( 1-0 .1 2 5 ) 2 x= 5 .6 3 4
  • 26. coordinates of center of circle (4, 4) (2, 2) 5” p0 p1 p2 5” 2.5” 1” 45° p3 p4 p5 6. Cut along circle from p3 to p4 N060 G03 X7.366 Y9.125 I6.5 J9.0 circular interpolation, CCW motion target coordinates
  • 27. (4, 4) (2, 2) 5” p0 p1 p2 5” 2.5” 1” 45° p3 p4 p5 7. Cut from p4 to p5 N070 G01 X9.302 target coordinates (Y is unchanged) Linear interpolation
  • 28. (4, 4) (2, 2) 5” p0 p1 p2 5” 2.5” 1” 45° p3 p4 p5 8. Cut from p5 to p1 N080 G01 X3.875 Y3.698 target coordinates (see step 3) Linear interpolation
  • 29. (4, 4) (2, 2) 5” p0 p1 p2 5” 2.5” 1” 45° p3 p4 p5 9. Return to home position, stop program N090 G01 X2.0 Y2.0 M30 end of data target coordinates (see step 3) Linear interpolation N100 M00 program stop
  • 30. Automatic Part Programming Software programs can automatic generation of CNC data Make 3D model Define Tool CNC data Simulate cutting
  • 31. Automatic part programming and DNC Very complex part shapes  very large NC program NC controller memory may not handle HUGE part program computer feeds few blocks of NC program to controller When almost all blocks executed, controller requests more blocks
  • 32. Summary CNC machines allow precise and repeatable control in machining CNC lathes, Milling machines, etc. are all controlled by NC programs NC programs can be generated manually, automatically Additional references: RS274D code descriptions