SlideShare a Scribd company logo
1 of 110
CNC PROGRAMMING & MACHININGCNC PROGRAMMING & MACHINING
PREPARED BYPREPARED BY
CNC TECHNOLOGYCNC TECHNOLOGY
andand
CNC PROGRAMMINGCNC PROGRAMMING
CRT/MDI
Machine Tool
Servo Motor
Spindle Motor
Window
Window
WindowCNC
Computerized
Numerical
Control
MMC
Man Machine Control
PMC
Programmable Machine Control
MACHINESMACHINES
CONVENTIONAL UNCONVENTIONAL
CNC CONTROL
CLOSED LOOP
SYSTEM
OPEN LOOP
SYSTEM
CNC MACHINES
NC PARALLEL
AXIS
POINT TO POINT
CNC CONTINUOUS
PATH
DNC
MANUAL PART
PROGRAMMING
CAD CAMCNC MACHINING
DEFINITIONDEFINITION
• InIn CNCCNC ((Computer Numerical ControlComputer Numerical Control),), thethe
instructions are stored as a program in ainstructions are stored as a program in a
micro-computer attached to the machine.micro-computer attached to the machine.
The computer will also handle much of theThe computer will also handle much of the
control logic of the machine, making itcontrol logic of the machine, making it
more adaptable than earlier hard-wiredmore adaptable than earlier hard-wired
controllers.controllers.
Utilization of computers inUtilization of computers in
manufacturing applications hasmanufacturing applications has
proved to be one of the mostproved to be one of the most
significant developments over thesignificant developments over the
last couple of decades in helping tolast couple of decades in helping to
improve the productivity andimprove the productivity and
efficiency of manufacturingefficiency of manufacturing
systems.systems.
The metal cutting operationsThe metal cutting operations (also(also
called machining)called machining) is one of theis one of the
most important manufacturingmost important manufacturing
processes in industry todayprocesses in industry today (as it(as it
was yesterday)was yesterday)..
MACHININGMACHINING IS THEIS THE
REMOVAL OF MATERIALSREMOVAL OF MATERIALS
IN FORMS OF CHIPS FROMIN FORMS OF CHIPS FROM
THE WORKPIECE BYTHE WORKPIECE BY
SHEARING WITH A SHARPSHEARING WITH A SHARP
TOOL.TOOL.
The main function of a machine toolThe main function of a machine tool
is to control the workpiece-cuttingis to control the workpiece-cutting
tool positional relationship in such atool positional relationship in such a
way as to achieve a desiredway as to achieve a desired
geometric shape of the workpiecegeometric shape of the workpiece
with sufficient dimensionalwith sufficient dimensional
accuracy.accuracy.
Machine tool provides:
work holding
tool holding
relative motion between tool
and workpiece
primary motion
secondary motion
Primary motion
Relative motion
between tool and
workpiece
Secondary motion
Cutting motion
Cutting speed
Feed motion
Feed rate
CLASSIFICATION OF THE CHIP REMOVING METHODSCLASSIFICATION OF THE CHIP REMOVING METHODS
ACCORDING TO THE RELATIVE MOTIONACCORDING TO THE RELATIVE MOTION
CNC SYSTEMCNC SYSTEM
ELEMENTSELEMENTS
CNC SYSTEM ELEMENTSCNC SYSTEM ELEMENTS
A typical CNC system consists of thA typical CNC system consists of thee
following six elementsfollowing six elements
• Part programPart program
• Program input deviceProgram input device
• Machine control unitMachine control unit
• Drive systemDrive system
• Machine toolMachine tool
• Feedback systemFeedback system
20042004 1515
NC SYSTEM ELEMENTSNC SYSTEM ELEMENTS
OPERATIONAL FEATURES ofOPERATIONAL FEATURES of
CNC MACHINESCNC MACHINES
CNC MACHINE TOOLCNC MACHINE TOOL
Part drawing
&
Part Programming
Input Part Programming
By Tape / MDI / Computer
How CNC Works
• Controlled by G and M codes.
• These are number values and co-
ordinates.
• Each number or code is assigned to a
particular operation.
• Typed in manually to CAD by machine
operators.
• G&M codes are automatically generated
by the computer software..
Features of CNC Machinery
• The tool or material moves.
• Tools can operate in 1-5 axes.
• Larger machines have a machine control
unit (MCU) which manages operations.
• Movement is controlled by a motors
(actuators).
• Feedback is provided by sensors
(transducers)
• Tool magazines are used to change tools
Tools
• Most are made from
high speed steel (HSS),
tungsten carbide or ceramics.
• Tools are designed to direct waste away
from the material.
• Some tools need coolant such as oil to
protect the tool and work.
Tool Paths, Cutting
and Plotting Motions
• Tool paths describes the route the cutting tool takes.
• Motion can be described as point to point, straight
cutting or contouring.
• Speeds are the rate at which the tool operates e.g. rpm.
• Feeds are the rate at which the cutting tool and work
piece move in relation to each other.
• Feeds and speeds are determined by cutting depth,
material and quality of finish needed. e.g. harder
materials need slower feeds and speeds.
• Rouging cuts remove larger amounts of material than
finishing cuts.
• Rapid traversing allows the tool or work piece to move
rapidly when no machining is taking place.
CNC Programming Basics
• CNC instructions are called part program commands.
• When running, a part program is interpreted one
command line at a time until all lines are completed.
• Commands, which are also referred to as blocks, are
made up of words which each begin with a letter address
and end with a numerical value.
Programming Key Letters
• O - Program number (Used for program identification) 
• N - Sequence number (Used for line identification) 
• G - Preparatory function 
• X - X axis designation 
• Y - Y axis designation 
• Z - Z axis designation 
• R - Radius designation 
• F – Feed rate designation 
• S - Spindle speed designation 
• H - Tool length offset designation 
• D - Tool radius offset designation 
• T - Tool Designation 
• M - Miscellaneous function
Explanation of commonly used
G codes
• G00 – Preparatory code to control final position of the
tool and not concerned with the path that is followed in
arriving at the final destination.
• G01 – Tool is required to move in a straight line
connecting current position and final position. Used for
tool movement without any machining- point to point
control. (linear interpolation)
• G02 – Tool path followed is along an arc specified by I, J
and K codes.( circular interpolation)
Table of Important G codes
G00 Rapid Transverse
G01 Linear Interpolation
G02 Circular Interpolation, CW
G03 Circular Interpolation, CCW
G17 XY Plane,G18 XZ Plane,G19 YZ Plane
G20/G70 Inch units
G21/G71 Metric Units
G40 Cutter compensation cancel
G41 Cutter compensation left
G42 Cutter compensation right
G43 Tool length compensation (plus)
G43 Tool length compensation (plus)
G44 Tool length compensation (minus)
G49 Tool length compensation cancel
G80 Cancel canned cycles
G81 Drilling cycle
G82 Counter boring cycle
G83 Deep hole drilling cycle
G90 Absolute positioning
G91 Incremental positioning
Table of Important M codes
• M00 Program stop
• M01 Optional program stop
• M02 Program end
• M03 Spindle on clockwise
• M04 Spindle on counterclockwise
• M05 Spindle stop
• M06 Tool change
• M08 Coolant on
• M09 Coolant off
• M10 Clamps on
• M11 Clamps off
• M30 Program stop, reset to start
Optimum machine programming requires consideration of certain machine
operating parameters including:
• Positioning control
• Compensations
• Special machine features
Positioning control is the ability to program tool and machine slide movement
simultaneously along two or more axes. Positioning may be for point-to-point
movement or for contouring movement along a continuous path. Contouring
requires tool movement along multiple axes simultaneously. This movement is
referred to as “Interpolation” which is the process of calculating intermediate
values between specific points along a programmed path and outputting those
values as a precise motion. Interpolation may be linear having just a start and end
point along a straight line, or circular which requires an end point, a center and a
direction around the arc.
Program Command Parameters
CNC Programming Basics
• Each letter address relates to a specific machine
function. “G” and “M” letter addresses are two of the
most common. A “G” letter specifies certain machine
preparations such as inch or metric modes, or absolutes
versus incremental modes.
• A “M” letter specifies miscellaneous machine functions
and work like on/off switches for coolant flow, tool
changing, or spindle rotation. Other letter addresses are
used to direct a wide variety of other machine
commands.
• Programming consists of a series of instructions in form of letter
codes
• Preparatory Codes:
• G codes- Initial machining setup and establishing operating
conditions
• N codes- specify program line number to executed by the MCU
• Axis Codes: X,Y,Z - Used to specify motion of the slide along X, Y,
Z direction
• Feed and Speed Codes: F and S- Specify feed and spindle speed
• Tool codes: T – specify tool number
CNC programming
CNC programming
Important things to know:
• Coordinate System
• Units, incremental or absolute positioning
• Coordinates: X,Y,Z, RX,RY,RZ
• Feed rate and spindle speed
• Coolant Control: On/Off, Flood, Mist
• Tool Control: Tool and tool parameters
Rules for programmingRules for programming
Block Format
N135 G01 X1.0 Y1.0 Z0.125 F5
Sample Block
• Restrictions on CNC blocks
• Each may contain only one tool move
• Each may contain any number of non-tool move G-codes
• Each may contain only one feed rate
• Each may contain only one specified tool or spindle speed
• The block numbers should be sequential
• Both the program start flag and the program number must be
independent of all other commands (on separate lines)
• The data within a block should follow the sequence shown
in the above sample block
Two computer-based systems which impact the use of CNC technology are
computer aided design and computer aided manufacturing.
A computer aided design, or CAD, system uses computers to graphically create
product designs and models. These designs can be reviewed, revised, and
refined for optimum end use and application. Once finalized, the CAD design is
then exported to a computer aided manufacturing, or CAM, system.
CAM systems assist in all phases of manufacturing a product, including process
planning, production planning, machining, scheduling, management and quality
control.
CAD/CAM
APT Programming Example
Cylindrical Part
Φ25
Φ22.5
Φ17.5
20
Raw Material
Finished Part
70
30
APT Programming Example
(Cylindrical Part)O0013
N0005 G53
N0010 T0303
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
N0040 G00 Z2.0
N0050 X50.0 Z50.0
N0060 T0404
N0070 G57 G00 X22.50 Z2.0 S500
N0080 G01 Z-30.0 F100
N0090 G00 X23.0 Z2.0 S500
N0100 G84 X17.5 Z-20.0 D0=200 D2=200 D3=650
N0110 G00 Z2.0
N0120 X50.0 Z50.0
N0130 M30
O0013
N0005 G53
N0010 T0404
N0020 G57 G00 X26.0 Z0.0 S500 M04
G57 To set the working zero point as saved
G00 Rapid movement (no cutting)
X26.0 X location (as a diameter; 13 form zero)
Z0.0 Z location
S500 Spindle speed is 500 rpm
M04 Rotate spindle counterclockwise
APT Program Interpretation
x
z
(0,0) +ve
+ve
O0013
N0005 G53
N0010 T0404
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
G01 Linear interpolation (cutting)
X-0.20 Move only in x direction until
you pass
the center by 0.1 mm (facing)
F100 Set feed rate to 100 mm/min.
APT Program Interpretation
O0013
N0005 G53
N0010 T0404
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
N0040 G00 Z2.0
G00 Move rapidly away from work piece (no
cutting)
Z2.0 the movement is 2 mm away from the
face.
APT Program Interpretation
O0013
N0005 G53
N0010 T0404
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
N0040 G00 Z2.0
N0050 X50.0 Z50.0
Go to a safe location away from the
workpiece [x = 50 (25 from zero), z
= 50] to change the tool.
APT Program Interpretation
O0013
N0005 G53
N0010 T0404
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
N0040 G00 Z2.0
N0050 X50.0 Z50.0
N0060 T0404
T0404 Select tool number 404
APT Program Interpretation
O0013
N0005 G53
N0010 T0404
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
N0040 G00 Z2.0
N0050 X50.0 Z50.0
N0060 T0404
N0070 G57 G00 X22.50 Z2.0 S500
G57 PS0
G00 Rapid movement (no cutting)
X22.50 X location (as a diameter; 11.25 form zero)
Z2.0 Z location
S500 Spindle speed is 500 rpm
APT Program Interpretation
APT Program Interpretation
O0013
Program identification number
APT Program Interpretation
O0013
N0005 G53
To cancel any previous working
zero point
APT Program Interpretation
O0013
N0005 G53
N0010 T0303
N0010 Sequence number
T0303 Select tool number 303
O0013
N0005 G53
N0010 T0404
N0020 G57 G00 X26.00 Z0.0 S500 M04
N0030 G01 X-0.20 F100
N0040 G00 Z2.0
N0050 X50.0 Z50.0
N0060 T0404
N0070 G57 G00 X25.00 Z2.0 S500 M04
N0080 G01 Z-30.0 F100
G01 Linear interpolation (cutting)
Z-30 Move only in z direction (external turning)
F100 Set feed rate to 100 mm/min.
APT Program Interpretation
VARIOUS MACHINING OPERATIONSVARIOUS MACHINING OPERATIONS
1. SURFACE MACHINING
2. TURNING OPERATION
3. DRILLING
4. REAMING
5. BORING
6. THREAD CUTTING
7. GRINDING
8. EDM & ECM
9. PROFILE MACHINING
10. CIRCULAR INTERPOLATION
11. HELICAL INTERPOLATION
12. EXPONENTIAL INTERPOLATION
13. POLAR COORDINATE INTERPOLATION
14. CYLINDERICAL INTERPOLATION
15. ALL OTHER MACHININGS
16. FABRICATION / WELDING & GAS CUTTING
4646
HardwareHardware Configuration of NCConfiguration of NC
MachineMachine
Machine Control Unit (MCU)
the brain of the NC machine.
The Data Processing Unit (DPU)
reads the part program.
The Control Loop Unit (CLU)
controls the machine tool operation.
Point to Point and Tool Paths
4848
Point-to-Point Tool MovementsPoint-to-Point Tool Movements
Point-to-point control systems cause the tool to move to a point on
the part and execute an operation at that point only. The tool is not in
continuous contact with the part while it is moving.
Drilling, reaming, punching, boring and tapping are examples of point-to-
point operations.
4949
Continuous-Path Tool MovementsContinuous-Path Tool Movements
Continuous-path controllers cause the tool to maintain continuous contact
with the part as the tool cuts a contour shape. These operations include milling
along any lines at any angle, milling arcs and lathe turning.
5050
Loop Systems for Controlling ToolLoop Systems for Controlling Tool
MovementMovement
Open Loop
System
Uses stepping motor to create movement. Motors rotate a fixed
amount for each pulse received from the MCU. The motor
sends a signal back indicating that the movement is
completed. No feedback to check how close the actual
machine movement comes to the exact movement
programmed.
5151
Loop Systems for Controlling ToolLoop Systems for Controlling Tool
MovementMovement
Closed Loop System
AC, DC, and hydraulic servo-motors are used. The speed of
these motors are variable and controlled by the amount of
current or fluid. The motors are connect to the spindle and the
table. A position sensor continuously monitors the movement
and sends back a single to Comparator to make adjustments.
5252
CNC Machine Axes of MotionCNC Machine Axes of Motion
The coordinate system used for the tool path must be identical to the
coordinate system used by the CNC machine. The standards for
machine axes are established according to the industry standard
report EIA RS-267A.
Right hand rule
CNC machines milling machines can
perform simultaneous linear motion along
the three axis and are called three-axes
machines.
Horizonta
l milling
machine
5353
CNC Machine Axes of MotionCNC Machine Axes of Motion
Coordinate system for a Lathe
5454
CNC Machine Axes of MotionCNC Machine Axes of Motion
More complex CNC machines have the capability of executing additional
rotary motions (4th
and 5th
axes).
5555
CNC Machine Axes of MotionCNC Machine Axes of Motion
Five-axis
machine
configurations
MACHINING PLANMACHINING PLAN
* Determination of work pieces machining range
* Method of mounting workpieces on the machine
* Machining sequence in every cutting process
* Cutting tools and cutting conditions
X +
X -
Y +
Y -
Z +
Z -
DEFINING THE AXIS OF CNC MACHINING CENTREDEFINING THE AXIS OF CNC MACHINING CENTRE
X0.Y0.Z0
X0,Z0
X+
X -
Z+Z -
AXIS DEFINITION OF CNC LATHEAXIS DEFINITION OF CNC LATHE
Machine Table
Work piece
MachineX
Y
Z
Coordinate SystemCoordinate System
Machine Vs Work pieceMachine Vs Work piece
Reference Point
X0,Y0,Z0
Work piece
Reference Point
X0,Y0,Z0
MACHINE
SPINDLE
STANDARD
TOOL BAR
LENGTH 200 mm
MACHINE TABLE
SLIP GAUGE(25 mm)
Z 25 mm
Z 200+25 mm
ZZ AXIS MACHINE REFERENCE POINT SETTINGAXIS MACHINE REFERENCE POINT SETTING
X1
Z1
MEASURED VALUE
X0,Z0
MACHINE
REFERENCE
POINT
SHIFTING MACHINE REFERENCE POINTSHIFTING MACHINE REFERENCE POINT
TOTO
WORK PIECE REFERENCE POINT IN CNC LATHEWORK PIECE REFERENCE POINT IN CNC LATHE
CODE FOR SHIFTING MACHINE REFERENCE POINTCODE FOR SHIFTING MACHINE REFERENCE POINT
TO WORK PIECE REFERENCE POINTTO WORK PIECE REFERENCE POINT
OROR ZERO OFFSETZERO OFFSET
G54,G55, G56,G57,G59,G60ZERO OFFSET are
CANCELLATION OF ZERO OFFSET IS G53
G54 X,Y,Z
Note:
The Values of X,Y,Z are
difference between machine reference point
to work piece reference point
EXAMPLE
R1
R2
End mill
Work Piece
Manual Part Programming Vs Computer ProgrammingManual Part Programming Vs Computer Programming
R1>R2
Coordinate Values in Absolute / IncrementalCoordinate Values in Absolute / Incremental
Absolute Incremental
Y Y
X
X
20
40
20 20
30
3030
60
A
B
A
B
Circle
Part of Circle
Straight Line
Starting point
&
Ending point are same
Starting point
Ending point
Starting point Ending point
Ending point
Start point
or or
Commonly used GeometryCommonly used Geometry
Centre of
circle
Ending point
Starting point
or
or
I.J
X1.Y1
X1.Y1
I.J
G00 OR G01
X2,y2
CIRCULAR MOTION
COUNTERCLOCKWISE
DIRECTION
CIRCULAR MOTION
CLOCKWISE
DIRECTION
GO3
GO2
Start point
End point
Start point
End point
CIRCULAR MOTIONCIRCULAR MOTION
Z
X
Y
G02 G03G18
G19
G03
G02
G
02
G03G17
Circular Interpolation With Respect to plane selectionCircular Interpolation With Respect to plane selection
6868
Basic Concept of PartBasic Concept of Part
ProgrammingProgramming
Part programming contains geometric data about the part and motion
information to move the cutting tool with respect to the work piece.
Basically, the machine receives instructions as a sequence of blocks
containing commands to set machine parameters; speed, feed and
other relevant information.
A block is equivalent to a line of codes in a part program.
N135 G01 X1.0 Y1.0 Z0.125 T01 F5.0
Coordinates Special function
Block number
G-code Tool number
6969
Basic Concept of PartBasic Concept of Part
ProgrammingProgramming
Preparatory command (G code)
The G codes prepare the MCU for a given operation, typically involving a cutter
motion.
G00 rapid motion, point-to-point positioning
G01 linear interpolation (generating a sloped or straight cut)
G06 parabolic interpolation (produces a segment of a parabola)
G17 XY plane selection
G20 circular interpolation
G28 automatic return to reference point
G33 thread cutting
7070
Basic Concept of PartBasic Concept of Part
ProgrammingProgrammingMiscellaneous commands (M code)
M00 program stop
M03 start spindle rotation (cw)
M06 tool change
M07 turn coolant on
Feed commands (F code)
Used to specify the cutter feed rates in inch per minute.
Speed commands (S code)
Used to specify the spindle speed in rpm.
Tool commands (T code)
Specifies which tool to be used, machines with automatic tool
changer.
Mechanical EngineeringMechanical Engineering
DepartmentDepartment 7171
CNC Machine Tool PositioningCNC Machine Tool Positioning
ModesModesWithin a given machine axes coordinate system, CNC can be
programmed to locate tool positions in the following modes; incremental,
absolute, or mixed.
7272
Manual Part ProgrammingManual Part Programming
Example:Example:
Mechanical EngineeringMechanical Engineering
DepartmentDepartment 7373
Example of a part programExample of a part program
Loading tool
N003 G00 X0.0 Y0.0 Z40.0 T01 M06
Tool change
Rapid
motion
Positioning tool at P1
N004 G01 X75.0 Y0.0 Z-40.0 F350 M03 M08
Start spindle
Start coolant
Linear interpolation
N001 G91 (incremental)
N002 G71 (metric)
7474
Manual Part ProgrammingManual Part Programming
Answer:Answer:
N001 G91N001 G91
N002 G71N002 G71
N003 G00 X0.0 Y0.0 Z40.0 T0.1 M06N003 G00 X0.0 Y0.0 Z40.0 T0.1 M06
N004 G01 X65.0 Y0.0 Z-40.0 F950 S717 M03N004 G01 X65.0 Y0.0 Z-40.0 F950 S717 M03
N005 G01 X10.0 F350 M08N005 G01 X10.0 F350 M08
N006 G01 X110.0N006 G01 X110.0
N007 G01 Y70.0N007 G01 Y70.0
N008 G01 X-40.86N008 G01 X-40.86
N009 G02 X-28.28 Y0.0 I14.14 J5.0N009 G02 X-28.28 Y0.0 I14.14 J5.0
N010 G01 X-40.86N010 G01 X-40.86
N011 G01 Y-70.0N011 G01 Y-70.0
N012 G01 X-75.0 Y0.0 Z40.0 F950 M30N012 G01 X-75.0 Y0.0 Z40.0 F950 M30
7575
Computer-Assisted PartComputer-Assisted Part
ProgrammingProgramming
• Identify the part geometry, cutter motions, speeds,Identify the part geometry, cutter motions, speeds,
feeds, and cutter parameter.feeds, and cutter parameter.
• Code the above information using ATP.Code the above information using ATP.
• Compile to produce the list of cutter movements andCompile to produce the list of cutter movements and
machine control information (Cutter Location datamachine control information (Cutter Location data
file, CL).file, CL).
• Use post-processor to generate machine controlUse post-processor to generate machine control
data for a particular machine. This is the same asdata for a particular machine. This is the same as
NC blocks.NC blocks.
Automatically Programmed Tools (ATP) language is the most comprehensive
and widely used program. The language is based on common words and easy
to use mathematical notations
NomenclaturNomenclatur
ee
ToolTool
NoNo
RadiusRadius
XX
LengtLengt
hh
ZZ
ENDMILLENDMILL T01T01 20.0020.00 150.0150.0
00
DRILLDRILL T02T02 00 100.0100.0
00
BORING ToolBORING Tool T03T03 125.0125.0
00
Starting point
Ending point
G41
Starting point
G42
Required tool path
Actual tool path
CRC CUTTER RADIUS COMPENSATIONCRC CUTTER RADIUS COMPENSATION G41& G42G41& G42
Tool Starting point
Arc ending point
I, J
LEAD
X1,(Y1+LEAD)
X2,Y2
Arc starting pointX1,Y1 Cutter compensation executed
Programmed path
Cutter moving path
Centre of arc
Radius Compensation ExecutionRadius Compensation Execution
G42
R1
R2
Point1
Point2
N20 G54 X (point1 value) Y(point1 value) Z500
N30 T0101 M06
N60 G02X-(R1value) Y-(R1value) I0 J-(R1value)
N90 G53 G00 G40 X(point1 value) Y(point1 value)
N55 G01 Z-500 F500
%N9001
N10 G00 G90
N40 G01 G42X (point2 value) Y(point2 value)
N50 G91
N70 G03 X0 Y0 I0J-(R2value)
N80 G02X-(R1value) Y+(R1value) I0 J+(R1value)
Greater than
Cutter
Radius
N35 M03
N95 M05
CIRCULAR INTERPOLATION PROGREMMECIRCULAR INTERPOLATION PROGREMME
R1
R2
Point1
Point2
N20 G54 X (point1 value) Y(point1 value) Z500
N30 T0101 M06
N90 G53 G00 G40 X(point1 value) Y(point1 value)
N55 G01 Z-500 F500
%N9001
N10 G00 G90
N40 G01 G42X (point2 value) Y(point2 value)
N50 G91
N70 G03 X0 Y0 I0J-(R2value)
N80 G02X-(R1value) Y+(R1value) I0 J+(R1value)
Greater than
Cutter
Radius
N65 E0205
N60 G02X-(R1value) Y-(R1value) I0 J-(R1value)
N85 G01 G90 Z500
CIRCULAR INTERPOLATION PROGREMMECIRCULAR INTERPOLATION PROGREMME
THREAD CUTTING PROGRAMMETHREAD CUTTING PROGRAMME
Greater than Cutter RadiusR1
R2
R1 Greater than Cutter Radius
R2 Circular Interpolation
G90
G00 X (Point1 value) Y (Point1 value) Z0
D01
G41 G01 X (Point 2value) Y (Point2 value)
G91 G03 X-(R1value) Y+(R1value) I-(R1value) J 0
G03 X0 Y0 I0 J-(R2value) Z -(Pitch value)
G03 X-(R1value) Y-(R1value) I0 J-(R1value)
G90 G00 Z500
G40
Threading tool
Point 1
Point2
10
20
30
60
M10, 4Nos 10mm depth
Tapped as shown PointsPoints XX YY
11 10.0010.00 30.0030.00
22 20.0020.00 30.0030.00
33 10.0010.00 60.0060.00
44 20.0020.00 60.0060.00
N40 G81 M03 X10.00 Y30.00 R200S500 F300 Z-300
N50 G22 X9008
N60 G22 X9005
N30 T0101 M06
N30 T0102 M06
N40 G81 M03 X10.00 Y30.00 R200 S500 F300 Z-1500
N50 G22 X9008
N60 G22 X9005
N40 G84 M03 X10.00 Y30.00 R200 S40 F100 Z-1500
N50 G22 X9008
N60 G22 X9005N10 X2000 Y3000
N20 X1000 Y6000
N30 X2000 Y6000
% N9008 Sub Programme
% N9005 Sub Programme
N10 G80 G00 X50000 Y50000
DRILLING PROGRAMMEDRILLING PROGRAMME
Centre
drilling
Core
drilling
M10
Tapping
%N9001
N10 G54
N20 G22 X9005
N70 G53 M05
#102 = 12
#103 = 90
#110 = 1
#104 = #103 + #102
N10 #105= 270 *COS(#104)
#106=270*SIN(#104)
IF( #110 EQ 8) GOTO30
IF (#110 EQ 15) GOTO30
IF (#110 EQ 22) GOTO30
G81 x#105 Y#106 Z-8 R10 F150
#110=#110+1
#104 = #104 +#102
GOTO10
N20 G80
N30 IF(#110GT30) GOTO20
Programme using Mathematical FunctionProgramme using Mathematical Function
X0.Z0
X1.Z1
X4.Z4
G71 P10 Q60 U200 W200 D300 e100
G00 X4+500 Z+200
N10 G00 X0
G42 G01 Z0
X1 Z1
G03 X2 Z2 R400
G01X3Z3
N60 X4 Z4
G40
ROUGH TURNING CYCLE AT CNC LATHEROUGH TURNING CYCLE AT CNC LATHE
X3.Z3
X2.Z2
8484
Direct numerical controlDirect numerical control
CNC Machines-
Advantages/Disadvantages
Advantages:
• High Repeatability and Precision e.g. Aircraft parts
• Volume of production is very high
• Complex contours/surfaces need to be machined. E.g. Turbines
• 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
• Computers, programming knowledge required
• Maintenance is difficult
CNC Lathe
• Automated version of a manual lathe.
• Programmed to change tools
automatically.
• Used for turning and boring wood, metal
and plastic.
CNC Milling Machine
• Has 3 to 5 axes.
• Used for wood, metal and plastic.
• Used to make 3D prototypes, moulds,
cutting dies, printing plates and signs.
TOOL DESIGNATIONTOOL DESIGNATION
5
7
6
1
3
2
4
1. BACK RAKE
2. SIDE RAKE
3. END RAKE
4. SIDE RAKE
5. END CUTTING EDGE ANGLE
6. SIDE CUTTING EDGE ANGLE
7. NOSE RADIUS
METAL CHIPS
METAL CHIPS
GROOVING TOOL
GROOVING OPERATION
20042004 9090
ADVANTAGES of CNCADVANTAGES of CNC
• ProductivityProductivity
Machine utilisation is increased becauseMachine utilisation is increased because
more time is spent cutting and less time ismore time is spent cutting and less time is
taken by positioning.taken by positioning.
Reduced setup time increases utilisationReduced setup time increases utilisation
too.too.
20042004 9191
ADVANTAGES of CNCADVANTAGES of CNC
• QualityQuality
Parts are more accurate.Parts are more accurate.
Parts are more repeatable.Parts are more repeatable.
Less waste due to scrap.Less waste due to scrap.
20042004 9292
ADVANTAGES of CNCADVANTAGES of CNC
• Reduced inventoryReduced inventory
Reduced setup time permits smallerReduced setup time permits smaller
economic batch quantities.economic batch quantities.
Lower lead time allows lower stock levels.Lower lead time allows lower stock levels.
Lower stock levels reduce interest chargesLower stock levels reduce interest charges
and working capital requirements.and working capital requirements.
20042004 9393
ADVANTAGES of CNCADVANTAGES of CNC
• Machining Complex shapesMachining Complex shapes
Slide movements under computer control.Slide movements under computer control.
Computer controller can calculate steps.Computer controller can calculate steps.
First NC machine built 1951 at MIT forFirst NC machine built 1951 at MIT for
aircraft skin milling.aircraft skin milling.
20042004 9494
ADVANTAGES of CNCADVANTAGES of CNC
• Management ControlManagement Control
CNC leads to CADCNC leads to CAD
Process planningProcess planning
Production planningProduction planning
20042004 9595
DRAWBACKS of CNCDRAWBACKS of CNC
• High capital costHigh capital cost
Machine tools cost $30,000 - $1,500,000Machine tools cost $30,000 - $1,500,000
• Retraining and recruitment of staffRetraining and recruitment of staff
• New support facilitiesNew support facilities
• High maintenance requirementsHigh maintenance requirements
• Not cost-effective for low-level production onNot cost-effective for low-level production on
simple partssimple parts
• As geometric complexity or volume increasesAs geometric complexity or volume increases
CNC becomes more economicalCNC becomes more economical
• Maintenance personnel must have bothMaintenance personnel must have both
mechanical and electronics expertisemechanical and electronics expertise
20042004 9696
CNC APPLICATIONSCNC APPLICATIONS
• MachiningMachining
2.5D / 3D2.5D / 3D
Turning ~ Lathes, Turning CentreTurning ~ Lathes, Turning Centre
Milling ~ Machining CentresMilling ~ Machining Centres
• FormingForming
2D2D
Plasma and Laser CuttingPlasma and Laser Cutting
Blanking, nibbling and punchingBlanking, nibbling and punching
3D3D
Rapid PrototypingRapid Prototyping
20042004 9797
SAMPLESAMPLE
CNC MACHINESCNC MACHINES
9898
CNC TURNINGCNC TURNING
9999
CNC MILLINGCNC MILLING
20042004 100100
CNC PLASMA CUTTINGCNC PLASMA CUTTING
20042004 101101
CNC PRESSCNC PRESS
20042004 102102
INDUSTRIES MOST AFFECTEDINDUSTRIES MOST AFFECTED
by CNCby CNC
• AerospaceAerospace
• MachineryMachinery
• ElectricalElectrical
• FabricationFabrication
• AutomotiveAutomotive
• InstrumentationInstrumentation
• Mold makingMold making
20042004 103103
SAMPLE PRODUCTSSAMPLE PRODUCTS
OFOF
CNC MANUFACTURINGCNC MANUFACTURING
20042004 104104
AUTOMOTIVE INDUSTRYAUTOMOTIVE INDUSTRY
Engine BlockEngine Block
20042004 105105
AUTOMOTIVE INDUSTRY(Cont’d)AUTOMOTIVE INDUSTRY(Cont’d)
Different ProductsDifferent Products
20042004 106106
AEROSPACE INDUSTRYAEROSPACE INDUSTRY
Aircraft Turbine Machined byAircraft Turbine Machined by
5-Axis CNC Milling Machine5-Axis CNC Milling Machine
20042004 107107
CNC MOLD MAKINGCNC MOLD MAKING
20042004 108108
ELECTRONIC INDUSTRYELECTRONIC INDUSTRY
20042004 109109
RAPID PROTOTYPINGRAPID PROTOTYPING
PRODUCTSPRODUCTS
CNC Programmingmodifies1

More Related Content

What's hot

CNC machining center and CNC controllers
CNC machining center and CNC controllersCNC machining center and CNC controllers
CNC machining center and CNC controllerssushma chinta
 
Manufacturing Technology-II Unit 5
Manufacturing Technology-II Unit 5Manufacturing Technology-II Unit 5
Manufacturing Technology-II Unit 5Ravi Sankar
 
CNC Part programming
CNC Part programmingCNC Part programming
CNC Part programmingjani parth
 
Introduction to cnc machines (1)
Introduction to cnc machines (1)Introduction to cnc machines (1)
Introduction to cnc machines (1)someshking
 
Canned cycle
Canned cycleCanned cycle
Canned cycleaman1312
 
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
 
COMPUTER NUMERICAL CONTROL MACHINE
COMPUTER NUMERICAL CONTROL MACHINECOMPUTER NUMERICAL CONTROL MACHINE
COMPUTER NUMERICAL CONTROL MACHINEGopal Bhargava
 
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
 
CNC Machines
CNC MachinesCNC Machines
CNC Machinespratik207
 
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
 
Cnc part programming 4 unit
Cnc part programming 4 unitCnc part programming 4 unit
Cnc part programming 4 unitpalanivendhan
 
Numerical control machines tool
Numerical control machines toolNumerical control machines tool
Numerical control machines tooljntuhcej
 
Absolute and incremental in CAD & CAM
Absolute and incremental in CAD & CAMAbsolute and incremental in CAD & CAM
Absolute and incremental in CAD & CAMVaibhavBHARAMBE3
 
CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1Parveen Kumar
 
MACHINING TIME CALCULATION
MACHINING TIME CALCULATIONMACHINING TIME CALCULATION
MACHINING TIME CALCULATIONMohanKirthik
 

What's hot (20)

CNC machining center and CNC controllers
CNC machining center and CNC controllersCNC machining center and CNC controllers
CNC machining center and CNC controllers
 
CNC machining centers
CNC machining centersCNC machining centers
CNC machining centers
 
Cnc milling
Cnc millingCnc milling
Cnc milling
 
Manufacturing Technology-II Unit 5
Manufacturing Technology-II Unit 5Manufacturing Technology-II Unit 5
Manufacturing Technology-II Unit 5
 
Apt programming
Apt programmingApt programming
Apt programming
 
CNC Programming
CNC Programming CNC Programming
CNC Programming
 
CNC Part programming
CNC Part programmingCNC Part programming
CNC Part programming
 
Introduction to cnc machines (1)
Introduction to cnc machines (1)Introduction to cnc machines (1)
Introduction to cnc machines (1)
 
Canned cycle
Canned cycleCanned cycle
Canned cycle
 
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
 
COMPUTER NUMERICAL CONTROL MACHINE
COMPUTER NUMERICAL CONTROL MACHINECOMPUTER NUMERICAL CONTROL MACHINE
COMPUTER NUMERICAL CONTROL MACHINE
 
part programming (cnc)
part programming (cnc)part programming (cnc)
part programming (cnc)
 
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
 
CNC Machines
CNC MachinesCNC Machines
CNC Machines
 
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
 
Cnc part programming 4 unit
Cnc part programming 4 unitCnc part programming 4 unit
Cnc part programming 4 unit
 
Numerical control machines tool
Numerical control machines toolNumerical control machines tool
Numerical control machines tool
 
Absolute and incremental in CAD & CAM
Absolute and incremental in CAD & CAMAbsolute and incremental in CAD & CAM
Absolute and incremental in CAD & CAM
 
CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1
 
MACHINING TIME CALCULATION
MACHINING TIME CALCULATIONMACHINING TIME CALCULATION
MACHINING TIME CALCULATION
 

Viewers also liked (19)

Cnc Programming Basics
Cnc Programming BasicsCnc Programming Basics
Cnc Programming Basics
 
4 basic cnc programming milling
4 basic cnc programming milling4 basic cnc programming milling
4 basic cnc programming milling
 
cnc machining
cnc machiningcnc machining
cnc machining
 
CNC Machining Centres
CNC Machining CentresCNC Machining Centres
CNC Machining Centres
 
CNC Programmingmodifies examination 1
CNC Programmingmodifies examination 1CNC Programmingmodifies examination 1
CNC Programmingmodifies examination 1
 
Cnc hardware
Cnc hardwareCnc hardware
Cnc hardware
 
CNC Seminar
CNC SeminarCNC Seminar
CNC Seminar
 
G-Code Functional Reporting: Are You Compliant?
G-Code Functional Reporting: Are You Compliant?G-Code Functional Reporting: Are You Compliant?
G-Code Functional Reporting: Are You Compliant?
 
G and m_programming_for_mills_manual
G and m_programming_for_mills_manualG and m_programming_for_mills_manual
G and m_programming_for_mills_manual
 
9.pmat m 01
9.pmat m 019.pmat m 01
9.pmat m 01
 
Profile mua thi Kenhtuyensinh
Profile mua thi KenhtuyensinhProfile mua thi Kenhtuyensinh
Profile mua thi Kenhtuyensinh
 
Fikus presentation 2015
Fikus presentation 2015Fikus presentation 2015
Fikus presentation 2015
 
Cnc પ્રોગ્રામિંગ
Cnc પ્રોગ્રામિંગCnc પ્રોગ્રામિંગ
Cnc પ્રોગ્રામિંગ
 
NC pogramming
NC pogrammingNC pogramming
NC pogramming
 
Cnc 2 0
Cnc 2 0 Cnc 2 0
Cnc 2 0
 
Cnc programming handbook - Peter Schmid
Cnc programming handbook - Peter SchmidCnc programming handbook - Peter Schmid
Cnc programming handbook - Peter Schmid
 
CNC Programming
CNC ProgrammingCNC Programming
CNC Programming
 
Laser Drilling
Laser DrillingLaser Drilling
Laser Drilling
 
Special purposer lathe machine. ppt
Special purposer lathe machine. pptSpecial purposer lathe machine. ppt
Special purposer lathe machine. ppt
 

Similar to CNC Programmingmodifies1

cnc danish3.pptx
cnc danish3.pptxcnc danish3.pptx
cnc danish3.pptxAMWANI2
 
CNC PROGRAMMING.pdf
CNC PROGRAMMING.pdfCNC PROGRAMMING.pdf
CNC PROGRAMMING.pdfAbhiKarn2
 
Computer numerical control (CNC)
Computer numerical control (CNC)Computer numerical control (CNC)
Computer numerical control (CNC)Sudip Phuyal
 
MT-II UNIT V CNC MACHINING
MT-II UNIT V CNC MACHININGMT-II UNIT V CNC MACHINING
MT-II UNIT V CNC MACHININGKarthik R
 
Computer numerical control ( CNC )
Computer numerical control  ( CNC )Computer numerical control  ( CNC )
Computer numerical control ( CNC )BhaveshChaudhari21
 
INDUSTRIAL TRAINING CIHT
INDUSTRIAL TRAINING CIHTINDUSTRIAL TRAINING CIHT
INDUSTRIAL TRAINING CIHTASHISH ACHARJEE
 
introduction to cnc machines
 introduction to cnc machines introduction to cnc machines
introduction to cnc machinesSTAY CURIOUS
 
Introduction to CNC machines.pptx
Introduction to CNC machines.pptxIntroduction to CNC machines.pptx
Introduction to CNC machines.pptxDr.M BALA THEJA
 
CNC part programming
CNC part programmingCNC part programming
CNC part programmingjntuhcej
 
Numerical control and CNC
Numerical control and CNCNumerical control and CNC
Numerical control and CNCnmahi96
 
Modern machine
Modern machineModern machine
Modern machineUbaid Shah
 

Similar to CNC Programmingmodifies1 (20)

cnc danish3.pptx
cnc danish3.pptxcnc danish3.pptx
cnc danish3.pptx
 
CNCPRESENTATION.pdf
CNCPRESENTATION.pdfCNCPRESENTATION.pdf
CNCPRESENTATION.pdf
 
CNC PROGRAMMING.pdf
CNC PROGRAMMING.pdfCNC PROGRAMMING.pdf
CNC PROGRAMMING.pdf
 
Computer numerical control (CNC)
Computer numerical control (CNC)Computer numerical control (CNC)
Computer numerical control (CNC)
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
Cnc programming basics.doc
Cnc programming basics.docCnc programming basics.doc
Cnc programming basics.doc
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
CNC1 (1).ppt
CNC1 (1).pptCNC1 (1).ppt
CNC1 (1).ppt
 
CNC Training.ppt
CNC Training.pptCNC Training.ppt
CNC Training.ppt
 
Cnc1
Cnc1Cnc1
Cnc1
 
MT-II UNIT V CNC MACHINING
MT-II UNIT V CNC MACHININGMT-II UNIT V CNC MACHINING
MT-II UNIT V CNC MACHINING
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
Computer numerical control ( CNC )
Computer numerical control  ( CNC )Computer numerical control  ( CNC )
Computer numerical control ( CNC )
 
INDUSTRIAL TRAINING CIHT
INDUSTRIAL TRAINING CIHTINDUSTRIAL TRAINING CIHT
INDUSTRIAL TRAINING CIHT
 
introduction to cnc machines
 introduction to cnc machines introduction to cnc machines
introduction to cnc machines
 
Introduction to CNC machines.pptx
Introduction to CNC machines.pptxIntroduction to CNC machines.pptx
Introduction to CNC machines.pptx
 
CNC part programming
CNC part programmingCNC part programming
CNC part programming
 
unit5newppt-180520142423.pptx
unit5newppt-180520142423.pptxunit5newppt-180520142423.pptx
unit5newppt-180520142423.pptx
 
Numerical control and CNC
Numerical control and CNCNumerical control and CNC
Numerical control and CNC
 
Modern machine
Modern machineModern machine
Modern machine
 

More from Prof. S.Rajendiran

Problem1 Engineering mechanics
Problem1 Engineering mechanicsProblem1 Engineering mechanics
Problem1 Engineering mechanicsProf. S.Rajendiran
 
Step by step Engineering Mechanics updated
Step by step Engineering Mechanics updatedStep by step Engineering Mechanics updated
Step by step Engineering Mechanics updatedProf. S.Rajendiran
 
Presentationcycloid reference point from top
Presentationcycloid reference point from topPresentationcycloid reference point from top
Presentationcycloid reference point from topProf. S.Rajendiran
 
Projection of Hexagonal Prism
Projection of Hexagonal Prism Projection of Hexagonal Prism
Projection of Hexagonal Prism Prof. S.Rajendiran
 
Projection of Pentagonal Pyramid
Projection of Pentagonal PyramidProjection of Pentagonal Pyramid
Projection of Pentagonal PyramidProf. S.Rajendiran
 
Projection of Pentagonal Pyramid solid
Projection of Pentagonal Pyramid solidProjection of Pentagonal Pyramid solid
Projection of Pentagonal Pyramid solidProf. S.Rajendiran
 
Projection of rectangular Plane
Projection of rectangular PlaneProjection of rectangular Plane
Projection of rectangular PlaneProf. S.Rajendiran
 
Projection of hexagonal pyramid step by step by process
Projection of hexagonal pyramid step by step by processProjection of hexagonal pyramid step by step by process
Projection of hexagonal pyramid step by step by processProf. S.Rajendiran
 
Drawing ellipse by eccentricity method
Drawing ellipse by eccentricity methodDrawing ellipse by eccentricity method
Drawing ellipse by eccentricity methodProf. S.Rajendiran
 
Drawing ellipse by concentric circle method
Drawing ellipse by concentric circle method Drawing ellipse by concentric circle method
Drawing ellipse by concentric circle method Prof. S.Rajendiran
 
Step by Step process of drawing cycloid
Step by Step  process of drawing  cycloidStep by Step  process of drawing  cycloid
Step by Step process of drawing cycloidProf. S.Rajendiran
 
Projection of Circular plane step by Step Process
Projection of Circular plane step by Step ProcessProjection of Circular plane step by Step Process
Projection of Circular plane step by Step ProcessProf. S.Rajendiran
 
Step by Step Process of Projection of Pentagonal Plane New approach
Step by Step Process of Projection of Pentagonal Plane New approachStep by Step Process of Projection of Pentagonal Plane New approach
Step by Step Process of Projection of Pentagonal Plane New approachProf. S.Rajendiran
 
Drawing involute explained in different way than book
Drawing involute explained in different way than bookDrawing involute explained in different way than book
Drawing involute explained in different way than bookProf. S.Rajendiran
 
ENGINEERING MATERIALS AND METALLURGY Part - I
ENGINEERING MATERIALS AND METALLURGY Part - IENGINEERING MATERIALS AND METALLURGY Part - I
ENGINEERING MATERIALS AND METALLURGY Part - IProf. S.Rajendiran
 
Projection of Plane Step by step Process
Projection of Plane Step by step ProcessProjection of Plane Step by step Process
Projection of Plane Step by step ProcessProf. S.Rajendiran
 
Projection of lines step by step process
Projection of lines  step by step process Projection of lines  step by step process
Projection of lines step by step process Prof. S.Rajendiran
 

More from Prof. S.Rajendiran (20)

Problem1 Engineering mechanics
Problem1 Engineering mechanicsProblem1 Engineering mechanics
Problem1 Engineering mechanics
 
Step by step Engineering Mechanics updated
Step by step Engineering Mechanics updatedStep by step Engineering Mechanics updated
Step by step Engineering Mechanics updated
 
Presentationcycloid reference point from top
Presentationcycloid reference point from topPresentationcycloid reference point from top
Presentationcycloid reference point from top
 
isometric projection
isometric projectionisometric projection
isometric projection
 
Projection of Hexagonal Prism
Projection of Hexagonal Prism Projection of Hexagonal Prism
Projection of Hexagonal Prism
 
Circular plane Projection
Circular plane ProjectionCircular plane Projection
Circular plane Projection
 
Projection of Pentagonal Pyramid
Projection of Pentagonal PyramidProjection of Pentagonal Pyramid
Projection of Pentagonal Pyramid
 
Projection of Pentagonal Pyramid solid
Projection of Pentagonal Pyramid solidProjection of Pentagonal Pyramid solid
Projection of Pentagonal Pyramid solid
 
Projection of pentagon plane
Projection of pentagon plane Projection of pentagon plane
Projection of pentagon plane
 
Projection of rectangular Plane
Projection of rectangular PlaneProjection of rectangular Plane
Projection of rectangular Plane
 
Projection of hexagonal pyramid step by step by process
Projection of hexagonal pyramid step by step by processProjection of hexagonal pyramid step by step by process
Projection of hexagonal pyramid step by step by process
 
Drawing ellipse by eccentricity method
Drawing ellipse by eccentricity methodDrawing ellipse by eccentricity method
Drawing ellipse by eccentricity method
 
Drawing ellipse by concentric circle method
Drawing ellipse by concentric circle method Drawing ellipse by concentric circle method
Drawing ellipse by concentric circle method
 
Step by Step process of drawing cycloid
Step by Step  process of drawing  cycloidStep by Step  process of drawing  cycloid
Step by Step process of drawing cycloid
 
Projection of Circular plane step by Step Process
Projection of Circular plane step by Step ProcessProjection of Circular plane step by Step Process
Projection of Circular plane step by Step Process
 
Step by Step Process of Projection of Pentagonal Plane New approach
Step by Step Process of Projection of Pentagonal Plane New approachStep by Step Process of Projection of Pentagonal Plane New approach
Step by Step Process of Projection of Pentagonal Plane New approach
 
Drawing involute explained in different way than book
Drawing involute explained in different way than bookDrawing involute explained in different way than book
Drawing involute explained in different way than book
 
ENGINEERING MATERIALS AND METALLURGY Part - I
ENGINEERING MATERIALS AND METALLURGY Part - IENGINEERING MATERIALS AND METALLURGY Part - I
ENGINEERING MATERIALS AND METALLURGY Part - I
 
Projection of Plane Step by step Process
Projection of Plane Step by step ProcessProjection of Plane Step by step Process
Projection of Plane Step by step Process
 
Projection of lines step by step process
Projection of lines  step by step process Projection of lines  step by step process
Projection of lines step by step process
 

CNC Programmingmodifies1

  • 1. CNC PROGRAMMING & MACHININGCNC PROGRAMMING & MACHINING PREPARED BYPREPARED BY
  • 2. CNC TECHNOLOGYCNC TECHNOLOGY andand CNC PROGRAMMINGCNC PROGRAMMING
  • 3. CRT/MDI Machine Tool Servo Motor Spindle Motor Window Window WindowCNC Computerized Numerical Control MMC Man Machine Control PMC Programmable Machine Control
  • 4. MACHINESMACHINES CONVENTIONAL UNCONVENTIONAL CNC CONTROL CLOSED LOOP SYSTEM OPEN LOOP SYSTEM CNC MACHINES NC PARALLEL AXIS POINT TO POINT CNC CONTINUOUS PATH DNC MANUAL PART PROGRAMMING CAD CAMCNC MACHINING
  • 5. DEFINITIONDEFINITION • InIn CNCCNC ((Computer Numerical ControlComputer Numerical Control),), thethe instructions are stored as a program in ainstructions are stored as a program in a micro-computer attached to the machine.micro-computer attached to the machine. The computer will also handle much of theThe computer will also handle much of the control logic of the machine, making itcontrol logic of the machine, making it more adaptable than earlier hard-wiredmore adaptable than earlier hard-wired controllers.controllers.
  • 6. Utilization of computers inUtilization of computers in manufacturing applications hasmanufacturing applications has proved to be one of the mostproved to be one of the most significant developments over thesignificant developments over the last couple of decades in helping tolast couple of decades in helping to improve the productivity andimprove the productivity and efficiency of manufacturingefficiency of manufacturing systems.systems.
  • 7. The metal cutting operationsThe metal cutting operations (also(also called machining)called machining) is one of theis one of the most important manufacturingmost important manufacturing processes in industry todayprocesses in industry today (as it(as it was yesterday)was yesterday)..
  • 8. MACHININGMACHINING IS THEIS THE REMOVAL OF MATERIALSREMOVAL OF MATERIALS IN FORMS OF CHIPS FROMIN FORMS OF CHIPS FROM THE WORKPIECE BYTHE WORKPIECE BY SHEARING WITH A SHARPSHEARING WITH A SHARP TOOL.TOOL.
  • 9. The main function of a machine toolThe main function of a machine tool is to control the workpiece-cuttingis to control the workpiece-cutting tool positional relationship in such atool positional relationship in such a way as to achieve a desiredway as to achieve a desired geometric shape of the workpiecegeometric shape of the workpiece with sufficient dimensionalwith sufficient dimensional accuracy.accuracy.
  • 10. Machine tool provides: work holding tool holding relative motion between tool and workpiece primary motion secondary motion
  • 11. Primary motion Relative motion between tool and workpiece Secondary motion Cutting motion Cutting speed Feed motion Feed rate
  • 12. CLASSIFICATION OF THE CHIP REMOVING METHODSCLASSIFICATION OF THE CHIP REMOVING METHODS ACCORDING TO THE RELATIVE MOTIONACCORDING TO THE RELATIVE MOTION
  • 14. CNC SYSTEM ELEMENTSCNC SYSTEM ELEMENTS A typical CNC system consists of thA typical CNC system consists of thee following six elementsfollowing six elements • Part programPart program • Program input deviceProgram input device • Machine control unitMachine control unit • Drive systemDrive system • Machine toolMachine tool • Feedback systemFeedback system
  • 15. 20042004 1515 NC SYSTEM ELEMENTSNC SYSTEM ELEMENTS
  • 16. OPERATIONAL FEATURES ofOPERATIONAL FEATURES of CNC MACHINESCNC MACHINES
  • 17. CNC MACHINE TOOLCNC MACHINE TOOL Part drawing & Part Programming Input Part Programming By Tape / MDI / Computer
  • 18. How CNC Works • Controlled by G and M codes. • These are number values and co- ordinates. • Each number or code is assigned to a particular operation. • Typed in manually to CAD by machine operators. • G&M codes are automatically generated by the computer software..
  • 19. Features of CNC Machinery • The tool or material moves. • Tools can operate in 1-5 axes. • Larger machines have a machine control unit (MCU) which manages operations. • Movement is controlled by a motors (actuators). • Feedback is provided by sensors (transducers) • Tool magazines are used to change tools
  • 20. Tools • Most are made from high speed steel (HSS), tungsten carbide or ceramics. • Tools are designed to direct waste away from the material. • Some tools need coolant such as oil to protect the tool and work.
  • 21. Tool Paths, Cutting and Plotting Motions • Tool paths describes the route the cutting tool takes. • Motion can be described as point to point, straight cutting or contouring. • Speeds are the rate at which the tool operates e.g. rpm. • Feeds are the rate at which the cutting tool and work piece move in relation to each other. • Feeds and speeds are determined by cutting depth, material and quality of finish needed. e.g. harder materials need slower feeds and speeds. • Rouging cuts remove larger amounts of material than finishing cuts. • Rapid traversing allows the tool or work piece to move rapidly when no machining is taking place.
  • 22. CNC Programming Basics • CNC instructions are called part program commands. • When running, a part program is interpreted one command line at a time until all lines are completed. • Commands, which are also referred to as blocks, are made up of words which each begin with a letter address and end with a numerical value.
  • 23. Programming Key Letters • O - Program number (Used for program identification)  • N - Sequence number (Used for line identification)  • G - Preparatory function  • X - X axis designation  • Y - Y axis designation  • Z - Z axis designation  • R - Radius designation  • F – Feed rate designation  • S - Spindle speed designation  • H - Tool length offset designation  • D - Tool radius offset designation  • T - Tool Designation  • M - Miscellaneous function
  • 24. Explanation of commonly used G codes • G00 – Preparatory code to control final position of the tool and not concerned with the path that is followed in arriving at the final destination. • G01 – Tool is required to move in a straight line connecting current position and final position. Used for tool movement without any machining- point to point control. (linear interpolation) • G02 – Tool path followed is along an arc specified by I, J and K codes.( circular interpolation)
  • 25. Table of Important G codes G00 Rapid Transverse G01 Linear Interpolation G02 Circular Interpolation, CW G03 Circular Interpolation, CCW G17 XY Plane,G18 XZ Plane,G19 YZ Plane G20/G70 Inch units G21/G71 Metric Units G40 Cutter compensation cancel G41 Cutter compensation left G42 Cutter compensation right G43 Tool length compensation (plus) G43 Tool length compensation (plus) G44 Tool length compensation (minus) G49 Tool length compensation cancel G80 Cancel canned cycles G81 Drilling cycle G82 Counter boring cycle G83 Deep hole drilling cycle G90 Absolute positioning G91 Incremental positioning
  • 26. Table of Important M codes • M00 Program stop • M01 Optional program stop • M02 Program end • M03 Spindle on clockwise • M04 Spindle on counterclockwise • M05 Spindle stop • M06 Tool change • M08 Coolant on • M09 Coolant off • M10 Clamps on • M11 Clamps off • M30 Program stop, reset to start
  • 27. Optimum machine programming requires consideration of certain machine operating parameters including: • Positioning control • Compensations • Special machine features Positioning control is the ability to program tool and machine slide movement simultaneously along two or more axes. Positioning may be for point-to-point movement or for contouring movement along a continuous path. Contouring requires tool movement along multiple axes simultaneously. This movement is referred to as “Interpolation” which is the process of calculating intermediate values between specific points along a programmed path and outputting those values as a precise motion. Interpolation may be linear having just a start and end point along a straight line, or circular which requires an end point, a center and a direction around the arc. Program Command Parameters
  • 28. CNC Programming Basics • Each letter address relates to a specific machine function. “G” and “M” letter addresses are two of the most common. A “G” letter specifies certain machine preparations such as inch or metric modes, or absolutes versus incremental modes. • A “M” letter specifies miscellaneous machine functions and work like on/off switches for coolant flow, tool changing, or spindle rotation. Other letter addresses are used to direct a wide variety of other machine commands.
  • 29. • Programming consists of a series of instructions in form of letter codes • Preparatory Codes: • G codes- Initial machining setup and establishing operating conditions • N codes- specify program line number to executed by the MCU • Axis Codes: X,Y,Z - Used to specify motion of the slide along X, Y, Z direction • Feed and Speed Codes: F and S- Specify feed and spindle speed • Tool codes: T – specify tool number CNC programming
  • 30. CNC programming Important things to know: • Coordinate System • Units, incremental or absolute positioning • Coordinates: X,Y,Z, RX,RY,RZ • Feed rate and spindle speed • Coolant Control: On/Off, Flood, Mist • Tool Control: Tool and tool parameters
  • 31. Rules for programmingRules for programming Block Format N135 G01 X1.0 Y1.0 Z0.125 F5 Sample Block • Restrictions on CNC blocks • Each may contain only one tool move • Each may contain any number of non-tool move G-codes • Each may contain only one feed rate • Each may contain only one specified tool or spindle speed • The block numbers should be sequential • Both the program start flag and the program number must be independent of all other commands (on separate lines) • The data within a block should follow the sequence shown in the above sample block
  • 32. Two computer-based systems which impact the use of CNC technology are computer aided design and computer aided manufacturing. A computer aided design, or CAD, system uses computers to graphically create product designs and models. These designs can be reviewed, revised, and refined for optimum end use and application. Once finalized, the CAD design is then exported to a computer aided manufacturing, or CAM, system. CAM systems assist in all phases of manufacturing a product, including process planning, production planning, machining, scheduling, management and quality control. CAD/CAM
  • 33. APT Programming Example Cylindrical Part Φ25 Φ22.5 Φ17.5 20 Raw Material Finished Part 70 30
  • 34. APT Programming Example (Cylindrical Part)O0013 N0005 G53 N0010 T0303 N0020 G57 G00 X26.00 Z0.0 S500 M04 N0030 G01 X-0.20 F100 N0040 G00 Z2.0 N0050 X50.0 Z50.0 N0060 T0404 N0070 G57 G00 X22.50 Z2.0 S500 N0080 G01 Z-30.0 F100 N0090 G00 X23.0 Z2.0 S500 N0100 G84 X17.5 Z-20.0 D0=200 D2=200 D3=650 N0110 G00 Z2.0 N0120 X50.0 Z50.0 N0130 M30
  • 35. O0013 N0005 G53 N0010 T0404 N0020 G57 G00 X26.0 Z0.0 S500 M04 G57 To set the working zero point as saved G00 Rapid movement (no cutting) X26.0 X location (as a diameter; 13 form zero) Z0.0 Z location S500 Spindle speed is 500 rpm M04 Rotate spindle counterclockwise APT Program Interpretation x z (0,0) +ve +ve
  • 36. O0013 N0005 G53 N0010 T0404 N0020 G57 G00 X26.00 Z0.0 S500 M04 N0030 G01 X-0.20 F100 G01 Linear interpolation (cutting) X-0.20 Move only in x direction until you pass the center by 0.1 mm (facing) F100 Set feed rate to 100 mm/min. APT Program Interpretation
  • 37. O0013 N0005 G53 N0010 T0404 N0020 G57 G00 X26.00 Z0.0 S500 M04 N0030 G01 X-0.20 F100 N0040 G00 Z2.0 G00 Move rapidly away from work piece (no cutting) Z2.0 the movement is 2 mm away from the face. APT Program Interpretation
  • 38. O0013 N0005 G53 N0010 T0404 N0020 G57 G00 X26.00 Z0.0 S500 M04 N0030 G01 X-0.20 F100 N0040 G00 Z2.0 N0050 X50.0 Z50.0 Go to a safe location away from the workpiece [x = 50 (25 from zero), z = 50] to change the tool. APT Program Interpretation
  • 39. O0013 N0005 G53 N0010 T0404 N0020 G57 G00 X26.00 Z0.0 S500 M04 N0030 G01 X-0.20 F100 N0040 G00 Z2.0 N0050 X50.0 Z50.0 N0060 T0404 T0404 Select tool number 404 APT Program Interpretation
  • 40. O0013 N0005 G53 N0010 T0404 N0020 G57 G00 X26.00 Z0.0 S500 M04 N0030 G01 X-0.20 F100 N0040 G00 Z2.0 N0050 X50.0 Z50.0 N0060 T0404 N0070 G57 G00 X22.50 Z2.0 S500 G57 PS0 G00 Rapid movement (no cutting) X22.50 X location (as a diameter; 11.25 form zero) Z2.0 Z location S500 Spindle speed is 500 rpm APT Program Interpretation
  • 42. APT Program Interpretation O0013 N0005 G53 To cancel any previous working zero point
  • 43. APT Program Interpretation O0013 N0005 G53 N0010 T0303 N0010 Sequence number T0303 Select tool number 303
  • 44. O0013 N0005 G53 N0010 T0404 N0020 G57 G00 X26.00 Z0.0 S500 M04 N0030 G01 X-0.20 F100 N0040 G00 Z2.0 N0050 X50.0 Z50.0 N0060 T0404 N0070 G57 G00 X25.00 Z2.0 S500 M04 N0080 G01 Z-30.0 F100 G01 Linear interpolation (cutting) Z-30 Move only in z direction (external turning) F100 Set feed rate to 100 mm/min. APT Program Interpretation
  • 45. VARIOUS MACHINING OPERATIONSVARIOUS MACHINING OPERATIONS 1. SURFACE MACHINING 2. TURNING OPERATION 3. DRILLING 4. REAMING 5. BORING 6. THREAD CUTTING 7. GRINDING 8. EDM & ECM 9. PROFILE MACHINING 10. CIRCULAR INTERPOLATION 11. HELICAL INTERPOLATION 12. EXPONENTIAL INTERPOLATION 13. POLAR COORDINATE INTERPOLATION 14. CYLINDERICAL INTERPOLATION 15. ALL OTHER MACHININGS 16. FABRICATION / WELDING & GAS CUTTING
  • 46. 4646 HardwareHardware Configuration of NCConfiguration of NC MachineMachine Machine Control Unit (MCU) the brain of the NC machine. The Data Processing Unit (DPU) reads the part program. The Control Loop Unit (CLU) controls the machine tool operation.
  • 47. Point to Point and Tool Paths
  • 48. 4848 Point-to-Point Tool MovementsPoint-to-Point Tool Movements Point-to-point control systems cause the tool to move to a point on the part and execute an operation at that point only. The tool is not in continuous contact with the part while it is moving. Drilling, reaming, punching, boring and tapping are examples of point-to- point operations.
  • 49. 4949 Continuous-Path Tool MovementsContinuous-Path Tool Movements Continuous-path controllers cause the tool to maintain continuous contact with the part as the tool cuts a contour shape. These operations include milling along any lines at any angle, milling arcs and lathe turning.
  • 50. 5050 Loop Systems for Controlling ToolLoop Systems for Controlling Tool MovementMovement Open Loop System Uses stepping motor to create movement. Motors rotate a fixed amount for each pulse received from the MCU. The motor sends a signal back indicating that the movement is completed. No feedback to check how close the actual machine movement comes to the exact movement programmed.
  • 51. 5151 Loop Systems for Controlling ToolLoop Systems for Controlling Tool MovementMovement Closed Loop System AC, DC, and hydraulic servo-motors are used. The speed of these motors are variable and controlled by the amount of current or fluid. The motors are connect to the spindle and the table. A position sensor continuously monitors the movement and sends back a single to Comparator to make adjustments.
  • 52. 5252 CNC Machine Axes of MotionCNC Machine Axes of Motion The coordinate system used for the tool path must be identical to the coordinate system used by the CNC machine. The standards for machine axes are established according to the industry standard report EIA RS-267A. Right hand rule CNC machines milling machines can perform simultaneous linear motion along the three axis and are called three-axes machines. Horizonta l milling machine
  • 53. 5353 CNC Machine Axes of MotionCNC Machine Axes of Motion Coordinate system for a Lathe
  • 54. 5454 CNC Machine Axes of MotionCNC Machine Axes of Motion More complex CNC machines have the capability of executing additional rotary motions (4th and 5th axes).
  • 55. 5555 CNC Machine Axes of MotionCNC Machine Axes of Motion Five-axis machine configurations
  • 56. MACHINING PLANMACHINING PLAN * Determination of work pieces machining range * Method of mounting workpieces on the machine * Machining sequence in every cutting process * Cutting tools and cutting conditions
  • 57. X + X - Y + Y - Z + Z - DEFINING THE AXIS OF CNC MACHINING CENTREDEFINING THE AXIS OF CNC MACHINING CENTRE X0.Y0.Z0
  • 58. X0,Z0 X+ X - Z+Z - AXIS DEFINITION OF CNC LATHEAXIS DEFINITION OF CNC LATHE
  • 59. Machine Table Work piece MachineX Y Z Coordinate SystemCoordinate System Machine Vs Work pieceMachine Vs Work piece Reference Point X0,Y0,Z0 Work piece Reference Point X0,Y0,Z0
  • 60. MACHINE SPINDLE STANDARD TOOL BAR LENGTH 200 mm MACHINE TABLE SLIP GAUGE(25 mm) Z 25 mm Z 200+25 mm ZZ AXIS MACHINE REFERENCE POINT SETTINGAXIS MACHINE REFERENCE POINT SETTING
  • 61. X1 Z1 MEASURED VALUE X0,Z0 MACHINE REFERENCE POINT SHIFTING MACHINE REFERENCE POINTSHIFTING MACHINE REFERENCE POINT TOTO WORK PIECE REFERENCE POINT IN CNC LATHEWORK PIECE REFERENCE POINT IN CNC LATHE
  • 62. CODE FOR SHIFTING MACHINE REFERENCE POINTCODE FOR SHIFTING MACHINE REFERENCE POINT TO WORK PIECE REFERENCE POINTTO WORK PIECE REFERENCE POINT OROR ZERO OFFSETZERO OFFSET G54,G55, G56,G57,G59,G60ZERO OFFSET are CANCELLATION OF ZERO OFFSET IS G53 G54 X,Y,Z Note: The Values of X,Y,Z are difference between machine reference point to work piece reference point EXAMPLE
  • 63. R1 R2 End mill Work Piece Manual Part Programming Vs Computer ProgrammingManual Part Programming Vs Computer Programming R1>R2
  • 64. Coordinate Values in Absolute / IncrementalCoordinate Values in Absolute / Incremental Absolute Incremental Y Y X X 20 40 20 20 30 3030 60 A B A B
  • 65. Circle Part of Circle Straight Line Starting point & Ending point are same Starting point Ending point Starting point Ending point Ending point Start point or or Commonly used GeometryCommonly used Geometry Centre of circle Ending point Starting point or or I.J X1.Y1 X1.Y1 I.J G00 OR G01 X2,y2
  • 66. CIRCULAR MOTION COUNTERCLOCKWISE DIRECTION CIRCULAR MOTION CLOCKWISE DIRECTION GO3 GO2 Start point End point Start point End point CIRCULAR MOTIONCIRCULAR MOTION
  • 67. Z X Y G02 G03G18 G19 G03 G02 G 02 G03G17 Circular Interpolation With Respect to plane selectionCircular Interpolation With Respect to plane selection
  • 68. 6868 Basic Concept of PartBasic Concept of Part ProgrammingProgramming Part programming contains geometric data about the part and motion information to move the cutting tool with respect to the work piece. Basically, the machine receives instructions as a sequence of blocks containing commands to set machine parameters; speed, feed and other relevant information. A block is equivalent to a line of codes in a part program. N135 G01 X1.0 Y1.0 Z0.125 T01 F5.0 Coordinates Special function Block number G-code Tool number
  • 69. 6969 Basic Concept of PartBasic Concept of Part ProgrammingProgramming Preparatory command (G code) The G codes prepare the MCU for a given operation, typically involving a cutter motion. G00 rapid motion, point-to-point positioning G01 linear interpolation (generating a sloped or straight cut) G06 parabolic interpolation (produces a segment of a parabola) G17 XY plane selection G20 circular interpolation G28 automatic return to reference point G33 thread cutting
  • 70. 7070 Basic Concept of PartBasic Concept of Part ProgrammingProgrammingMiscellaneous commands (M code) M00 program stop M03 start spindle rotation (cw) M06 tool change M07 turn coolant on Feed commands (F code) Used to specify the cutter feed rates in inch per minute. Speed commands (S code) Used to specify the spindle speed in rpm. Tool commands (T code) Specifies which tool to be used, machines with automatic tool changer.
  • 71. Mechanical EngineeringMechanical Engineering DepartmentDepartment 7171 CNC Machine Tool PositioningCNC Machine Tool Positioning ModesModesWithin a given machine axes coordinate system, CNC can be programmed to locate tool positions in the following modes; incremental, absolute, or mixed.
  • 72. 7272 Manual Part ProgrammingManual Part Programming Example:Example:
  • 73. Mechanical EngineeringMechanical Engineering DepartmentDepartment 7373 Example of a part programExample of a part program Loading tool N003 G00 X0.0 Y0.0 Z40.0 T01 M06 Tool change Rapid motion Positioning tool at P1 N004 G01 X75.0 Y0.0 Z-40.0 F350 M03 M08 Start spindle Start coolant Linear interpolation N001 G91 (incremental) N002 G71 (metric)
  • 74. 7474 Manual Part ProgrammingManual Part Programming Answer:Answer: N001 G91N001 G91 N002 G71N002 G71 N003 G00 X0.0 Y0.0 Z40.0 T0.1 M06N003 G00 X0.0 Y0.0 Z40.0 T0.1 M06 N004 G01 X65.0 Y0.0 Z-40.0 F950 S717 M03N004 G01 X65.0 Y0.0 Z-40.0 F950 S717 M03 N005 G01 X10.0 F350 M08N005 G01 X10.0 F350 M08 N006 G01 X110.0N006 G01 X110.0 N007 G01 Y70.0N007 G01 Y70.0 N008 G01 X-40.86N008 G01 X-40.86 N009 G02 X-28.28 Y0.0 I14.14 J5.0N009 G02 X-28.28 Y0.0 I14.14 J5.0 N010 G01 X-40.86N010 G01 X-40.86 N011 G01 Y-70.0N011 G01 Y-70.0 N012 G01 X-75.0 Y0.0 Z40.0 F950 M30N012 G01 X-75.0 Y0.0 Z40.0 F950 M30
  • 75. 7575 Computer-Assisted PartComputer-Assisted Part ProgrammingProgramming • Identify the part geometry, cutter motions, speeds,Identify the part geometry, cutter motions, speeds, feeds, and cutter parameter.feeds, and cutter parameter. • Code the above information using ATP.Code the above information using ATP. • Compile to produce the list of cutter movements andCompile to produce the list of cutter movements and machine control information (Cutter Location datamachine control information (Cutter Location data file, CL).file, CL). • Use post-processor to generate machine controlUse post-processor to generate machine control data for a particular machine. This is the same asdata for a particular machine. This is the same as NC blocks.NC blocks. Automatically Programmed Tools (ATP) language is the most comprehensive and widely used program. The language is based on common words and easy to use mathematical notations
  • 76. NomenclaturNomenclatur ee ToolTool NoNo RadiusRadius XX LengtLengt hh ZZ ENDMILLENDMILL T01T01 20.0020.00 150.0150.0 00 DRILLDRILL T02T02 00 100.0100.0 00 BORING ToolBORING Tool T03T03 125.0125.0 00 Starting point Ending point G41 Starting point G42 Required tool path Actual tool path CRC CUTTER RADIUS COMPENSATIONCRC CUTTER RADIUS COMPENSATION G41& G42G41& G42
  • 77. Tool Starting point Arc ending point I, J LEAD X1,(Y1+LEAD) X2,Y2 Arc starting pointX1,Y1 Cutter compensation executed Programmed path Cutter moving path Centre of arc Radius Compensation ExecutionRadius Compensation Execution G42
  • 78. R1 R2 Point1 Point2 N20 G54 X (point1 value) Y(point1 value) Z500 N30 T0101 M06 N60 G02X-(R1value) Y-(R1value) I0 J-(R1value) N90 G53 G00 G40 X(point1 value) Y(point1 value) N55 G01 Z-500 F500 %N9001 N10 G00 G90 N40 G01 G42X (point2 value) Y(point2 value) N50 G91 N70 G03 X0 Y0 I0J-(R2value) N80 G02X-(R1value) Y+(R1value) I0 J+(R1value) Greater than Cutter Radius N35 M03 N95 M05 CIRCULAR INTERPOLATION PROGREMMECIRCULAR INTERPOLATION PROGREMME
  • 79. R1 R2 Point1 Point2 N20 G54 X (point1 value) Y(point1 value) Z500 N30 T0101 M06 N90 G53 G00 G40 X(point1 value) Y(point1 value) N55 G01 Z-500 F500 %N9001 N10 G00 G90 N40 G01 G42X (point2 value) Y(point2 value) N50 G91 N70 G03 X0 Y0 I0J-(R2value) N80 G02X-(R1value) Y+(R1value) I0 J+(R1value) Greater than Cutter Radius N65 E0205 N60 G02X-(R1value) Y-(R1value) I0 J-(R1value) N85 G01 G90 Z500 CIRCULAR INTERPOLATION PROGREMMECIRCULAR INTERPOLATION PROGREMME
  • 80. THREAD CUTTING PROGRAMMETHREAD CUTTING PROGRAMME Greater than Cutter RadiusR1 R2 R1 Greater than Cutter Radius R2 Circular Interpolation G90 G00 X (Point1 value) Y (Point1 value) Z0 D01 G41 G01 X (Point 2value) Y (Point2 value) G91 G03 X-(R1value) Y+(R1value) I-(R1value) J 0 G03 X0 Y0 I0 J-(R2value) Z -(Pitch value) G03 X-(R1value) Y-(R1value) I0 J-(R1value) G90 G00 Z500 G40 Threading tool Point 1 Point2
  • 81. 10 20 30 60 M10, 4Nos 10mm depth Tapped as shown PointsPoints XX YY 11 10.0010.00 30.0030.00 22 20.0020.00 30.0030.00 33 10.0010.00 60.0060.00 44 20.0020.00 60.0060.00 N40 G81 M03 X10.00 Y30.00 R200S500 F300 Z-300 N50 G22 X9008 N60 G22 X9005 N30 T0101 M06 N30 T0102 M06 N40 G81 M03 X10.00 Y30.00 R200 S500 F300 Z-1500 N50 G22 X9008 N60 G22 X9005 N40 G84 M03 X10.00 Y30.00 R200 S40 F100 Z-1500 N50 G22 X9008 N60 G22 X9005N10 X2000 Y3000 N20 X1000 Y6000 N30 X2000 Y6000 % N9008 Sub Programme % N9005 Sub Programme N10 G80 G00 X50000 Y50000 DRILLING PROGRAMMEDRILLING PROGRAMME Centre drilling Core drilling M10 Tapping %N9001 N10 G54 N20 G22 X9005 N70 G53 M05
  • 82. #102 = 12 #103 = 90 #110 = 1 #104 = #103 + #102 N10 #105= 270 *COS(#104) #106=270*SIN(#104) IF( #110 EQ 8) GOTO30 IF (#110 EQ 15) GOTO30 IF (#110 EQ 22) GOTO30 G81 x#105 Y#106 Z-8 R10 F150 #110=#110+1 #104 = #104 +#102 GOTO10 N20 G80 N30 IF(#110GT30) GOTO20 Programme using Mathematical FunctionProgramme using Mathematical Function
  • 83. X0.Z0 X1.Z1 X4.Z4 G71 P10 Q60 U200 W200 D300 e100 G00 X4+500 Z+200 N10 G00 X0 G42 G01 Z0 X1 Z1 G03 X2 Z2 R400 G01X3Z3 N60 X4 Z4 G40 ROUGH TURNING CYCLE AT CNC LATHEROUGH TURNING CYCLE AT CNC LATHE X3.Z3 X2.Z2
  • 85. CNC Machines- Advantages/Disadvantages Advantages: • High Repeatability and Precision e.g. Aircraft parts • Volume of production is very high • Complex contours/surfaces need to be machined. E.g. Turbines • 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 • Computers, programming knowledge required • Maintenance is difficult
  • 86. CNC Lathe • Automated version of a manual lathe. • Programmed to change tools automatically. • Used for turning and boring wood, metal and plastic.
  • 87. CNC Milling Machine • Has 3 to 5 axes. • Used for wood, metal and plastic. • Used to make 3D prototypes, moulds, cutting dies, printing plates and signs.
  • 88. TOOL DESIGNATIONTOOL DESIGNATION 5 7 6 1 3 2 4 1. BACK RAKE 2. SIDE RAKE 3. END RAKE 4. SIDE RAKE 5. END CUTTING EDGE ANGLE 6. SIDE CUTTING EDGE ANGLE 7. NOSE RADIUS
  • 89. METAL CHIPS METAL CHIPS GROOVING TOOL GROOVING OPERATION
  • 90. 20042004 9090 ADVANTAGES of CNCADVANTAGES of CNC • ProductivityProductivity Machine utilisation is increased becauseMachine utilisation is increased because more time is spent cutting and less time ismore time is spent cutting and less time is taken by positioning.taken by positioning. Reduced setup time increases utilisationReduced setup time increases utilisation too.too.
  • 91. 20042004 9191 ADVANTAGES of CNCADVANTAGES of CNC • QualityQuality Parts are more accurate.Parts are more accurate. Parts are more repeatable.Parts are more repeatable. Less waste due to scrap.Less waste due to scrap.
  • 92. 20042004 9292 ADVANTAGES of CNCADVANTAGES of CNC • Reduced inventoryReduced inventory Reduced setup time permits smallerReduced setup time permits smaller economic batch quantities.economic batch quantities. Lower lead time allows lower stock levels.Lower lead time allows lower stock levels. Lower stock levels reduce interest chargesLower stock levels reduce interest charges and working capital requirements.and working capital requirements.
  • 93. 20042004 9393 ADVANTAGES of CNCADVANTAGES of CNC • Machining Complex shapesMachining Complex shapes Slide movements under computer control.Slide movements under computer control. Computer controller can calculate steps.Computer controller can calculate steps. First NC machine built 1951 at MIT forFirst NC machine built 1951 at MIT for aircraft skin milling.aircraft skin milling.
  • 94. 20042004 9494 ADVANTAGES of CNCADVANTAGES of CNC • Management ControlManagement Control CNC leads to CADCNC leads to CAD Process planningProcess planning Production planningProduction planning
  • 95. 20042004 9595 DRAWBACKS of CNCDRAWBACKS of CNC • High capital costHigh capital cost Machine tools cost $30,000 - $1,500,000Machine tools cost $30,000 - $1,500,000 • Retraining and recruitment of staffRetraining and recruitment of staff • New support facilitiesNew support facilities • High maintenance requirementsHigh maintenance requirements • Not cost-effective for low-level production onNot cost-effective for low-level production on simple partssimple parts • As geometric complexity or volume increasesAs geometric complexity or volume increases CNC becomes more economicalCNC becomes more economical • Maintenance personnel must have bothMaintenance personnel must have both mechanical and electronics expertisemechanical and electronics expertise
  • 96. 20042004 9696 CNC APPLICATIONSCNC APPLICATIONS • MachiningMachining 2.5D / 3D2.5D / 3D Turning ~ Lathes, Turning CentreTurning ~ Lathes, Turning Centre Milling ~ Machining CentresMilling ~ Machining Centres • FormingForming 2D2D Plasma and Laser CuttingPlasma and Laser Cutting Blanking, nibbling and punchingBlanking, nibbling and punching 3D3D Rapid PrototypingRapid Prototyping
  • 100. 20042004 100100 CNC PLASMA CUTTINGCNC PLASMA CUTTING
  • 102. 20042004 102102 INDUSTRIES MOST AFFECTEDINDUSTRIES MOST AFFECTED by CNCby CNC • AerospaceAerospace • MachineryMachinery • ElectricalElectrical • FabricationFabrication • AutomotiveAutomotive • InstrumentationInstrumentation • Mold makingMold making
  • 103. 20042004 103103 SAMPLE PRODUCTSSAMPLE PRODUCTS OFOF CNC MANUFACTURINGCNC MANUFACTURING
  • 104. 20042004 104104 AUTOMOTIVE INDUSTRYAUTOMOTIVE INDUSTRY Engine BlockEngine Block
  • 105. 20042004 105105 AUTOMOTIVE INDUSTRY(Cont’d)AUTOMOTIVE INDUSTRY(Cont’d) Different ProductsDifferent Products
  • 106. 20042004 106106 AEROSPACE INDUSTRYAEROSPACE INDUSTRY Aircraft Turbine Machined byAircraft Turbine Machined by 5-Axis CNC Milling Machine5-Axis CNC Milling Machine
  • 107. 20042004 107107 CNC MOLD MAKINGCNC MOLD MAKING
  • 109. 20042004 109109 RAPID PROTOTYPINGRAPID PROTOTYPING PRODUCTSPRODUCTS