SlideShare a Scribd company logo
1 of 44
CNC PARTCNC PART
PROGRAMMINGPROGRAMMING
PART PROGRAMPART PROGRAM
• A part program is a series of coded instructions required toA part program is a series of coded instructions required to
produce a part. It controls the movement of the machine toolproduce a part. It controls the movement of the machine tool
and the on/off control of auxiliary functions such as spindleand the on/off control of auxiliary functions such as spindle
rotation and coolant. The coded instructions are composed ofrotation and coolant. The coded instructions are composed of
letters, numbers and symbols and are arranged in a format ofletters, numbers and symbols and are arranged in a format of
functional blocks as in the following examplefunctional blocks as in the following example
N10 G01 X5.0 Y2.5 F15.0N10 G01 X5.0 Y2.5 F15.0
   |       |       |         |        |   |       |       |         |        |
   |       |       |         |       Feed rate (15 in/min)   |       |       |         |       Feed rate (15 in/min)
   |       |       |        Y-coordinate (2.5")   |       |       |        Y-coordinate (2.5")
   |       |      X-coordinate (5.0")   |       |      X-coordinate (5.0")
   |      Linear interpolation mode   |      Linear interpolation mode
  Sequence number  Sequence number
PROGRAM INPUT DEVICEPROGRAM INPUT DEVICE
• The program input device is the mechanism forThe program input device is the mechanism for
part programs to be entered into the CNCpart programs to be entered into the CNC
control. Thcontrol. The moste most commonly used programcommonly used program
input devices areinput devices are keyboardskeyboards,, punched tapepunched tape
reader, diskette drivers, throgh RS 232 serialreader, diskette drivers, throgh RS 232 serial
ports and networksports and networks..
MACHINE CONTROL UNITMACHINE CONTROL UNIT
The machine control unit (MCU) is the heart of a CNC system. ItThe machine control unit (MCU) is the heart of a CNC system. It
is used to perform the following functions:is used to perform the following functions:
• Read coded instructionsRead coded instructions
• Decode coded instructionsDecode coded instructions
• Implement interpolations (linear, circular, and helical) to generateImplement interpolations (linear, circular, and helical) to generate
axis motion commandsaxis motion commands
• Feed axis motion commands to the amplifier circuits for drivingFeed axis motion commands to the amplifier circuits for driving
the axis mechanismsthe axis mechanisms
• Receive the feedback signals of position and speed for each driveReceive the feedback signals of position and speed for each drive
axisaxis
• Implement auxiliary control functions such as coolant or spindleImplement auxiliary control functions such as coolant or spindle
on/off, and tool changeon/off, and tool change
CNC PROGRAMMINGCNC PROGRAMMING
• Offline programmingOffline programming linked to CADlinked to CAD
programs.programs.
• Conversational programmingConversational programming by the operator.by the operator.
• MDIMDI ~ Manual Data Input.~ Manual Data Input.
• Manual ControlManual Control using jog buttons orusing jog buttons or
`electronic handwheel'.`electronic handwheel'.
• Word-Address CodingWord-Address Coding using standard G-codesusing standard G-codes
and M-codes.and M-codes.
The position of the tool is describedThe position of the tool is described
by using a Cartesian coordinateby using a Cartesian coordinate
system. If (0,0,0) position can besystem. If (0,0,0) position can be
described by the operator, then it isdescribed by the operator, then it is
calledcalled floating zerofloating zero..
In defining the motion of the toolIn defining the motion of the tool
from one point to another,from one point to another,
eithereither absoluteabsolute positioningpositioning mode ormode or
incrementalincremental positioningpositioning modemode
can be used.can be used.
1.1. Absolute positioningAbsolute positioning. In this mode, the. In this mode, the
desired target position of the tool for adesired target position of the tool for a
particular move is given relative to the originparticular move is given relative to the origin
point of the program.point of the program.
2.2. Incremental positioningIncremental positioning. In this mode, the. In this mode, the
next target position for the tool is givennext target position for the tool is given
relative to the current toolrelative to the current tool position.position.
Structure of an NC Part Program:Structure of an NC Part Program:
Commands are input into the controller in
units called blocks or statements.
Block Format:
1. Fixed sequential format
2. Tab sequential format
3. Word address format
EXAMPLE:EXAMPLE:
Assume that a drilling operation is to be
programmed as:
1. The tool is positioned at (25.4,12.5,0) by a
rapid movement.
2. The tool is then advanced -10 mm in the z
direction at a feed rate of 500 mm/min., with the
flood coolant on.
3.The is then retracted back 10 mm at the rapid
feed rate, and the coolant is turned off.
1. Fixed sequential format1. Fixed sequential format
0050 00 +0025400 +0012500 +0000000 0000 000050 00 +0025400 +0012500 +0000000 0000 00
0060 01 +0025400 +0012500 -0010000 0500 080060 01 +0025400 +0012500 -0010000 0500 08
0070 00 +0025400 +0012500 +0000000 0000 090070 00 +0025400 +0012500 +0000000 0000 09
2. Tab sequential format
0050 TAB 00 TAB +0025400 TAB +0012500 TAB +0000000 TA
0060 TAB 01 TAB TAB TAB -0010000 TAB 0500 TAB 08
0070 TAB 00 TAB TAB TAB -0000000 TAB 0000 TAB 09
3. Word address format
N50 G00 X25400 Y125 Z0 F0
N60 G01 Z-10000 F500 M08
N70 G00 Z0 M09
Modal commandsModal commands: Commands issued in the: Commands issued in the
NC program that will stay in effect until it isNC program that will stay in effect until it is
changed by some other command, like, feedchanged by some other command, like, feed
rate selection, coolant selection, etc.rate selection, coolant selection, etc.
Nonmodal commandsNonmodal commands: Commands that are: Commands that are
effective only when issued and whose effectseffective only when issued and whose effects
are lost for subsequent commands, like, aare lost for subsequent commands, like, a
dwell command which instructs the tool todwell command which instructs the tool to
remain in a given configuration for a givenremain in a given configuration for a given
amount of time.amount of time.
INFORMATION NEEDED by aINFORMATION NEEDED by a
CNCCNC
1. Preparatory Information: units, incremental or absolute
positioning
2. Coordinates: X,Y,Z, RX,RY,RZ
3. Machining Parameters: Feed rate and spindle speed
4. Coolant Control: On/Off, Flood, Mist
5. Tool Control: Tool and tool parameters
6. Cycle Functions: Type of action required
7. Miscellaneous Control: Spindle on/off, direction of rotation,
stops for part movement
This information is conveyed to the machine through a set
of instructions arranged in a desired sequence – Program.
BLOCK FORMATBLOCK FORMAT
Sample BlockSample Block
N135 G01 X1.0 Y1.0 Z0.125 F5
• 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 feedrate
• 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
WORD-ADDRESS CODINGWORD-ADDRESS CODING
• N5 G90 G20N5 G90 G20
• N10 M06 T3N10 M06 T3
• N15 M03 S1250N15 M03 S1250
• N20 G00 X1 Y1N20 G00 X1 Y1
• N25 Z0.1N25 Z0.1
• N30 G01 Z-0.125 F5N30 G01 Z-0.125 F5
• N35 X3 Y2 F10N35 X3 Y2 F10
• N40 G00 Z1N40 G00 Z1
• N45 X0 Y0N45 X0 Y0
• N50 M05N50 M05
• N55 M30N55 M30
Example CNC ProgramExample CNC Program
Each instruction to the machine
consists of a letter followed by a
number.
Each letter is associated with a
specific type of action or piece of
information needed by the machine.
Letters used in Codes
N,G,X,Y,Z,A,B,C,I,J,K,F,S,T,R,M
G CodesG Codes
• G00G00 Rapid traverseRapid traverse
• G01 Linear interpolationG01 Linear interpolation
• G02G02 Circular interpolation,Circular interpolation,
CWCW
• G03 Circular interpolation,G03 Circular interpolation,
CCWCCW
• G04 DwellG04 Dwell
• G08 AccelerationG08 Acceleration
• G09 DecelerationG09 Deceleration
• G17 X-Y PlaneG17 X-Y Plane
• G18 Z-X PlaneG18 Z-X Plane
• G19 Y-Z PlaneG19 Y-Z Plane
• G20 Inch Units (G70)G20 Inch Units (G70)
• G21 Metric Units (G71)G21 Metric Units (G71)
• G40 Cutter compensation –G40 Cutter compensation –
cancelcancel
• G41 Cutter compensation –G41 Cutter compensation –
leftleft
• G42 Cutter compensation-G42 Cutter compensation-
rightright
• G70 Inch formatG70 Inch format
• G71 Metric formatG71 Metric format
• G74 Full-circleG74 Full-circle programmingprogramming
offoff
• G75 Full-circle programmingG75 Full-circle programming
onon
• G80 Fixed-cycle cancelG80 Fixed-cycle cancel
• G81-G89 Fixed cyclesG81-G89 Fixed cycles
• G90 Absolute dimensionsG90 Absolute dimensions
• G91 Incremental dimensionsG91 Incremental dimensions
M CodesM Codes
• M00M00 Program stopProgram stop
• M01M01 Optional program stopOptional program stop
• M02M02 Program endProgram end
• M03M03 Spindle on clockwiseSpindle on clockwise
• M04M04 Spindle on counterclockwiseSpindle on counterclockwise
• M05M05 Spindle stopSpindle stop
• M06M06 Tool changeTool change
• M08M08 Coolant onCoolant on
• M09M09 Coolant offCoolant off
• M10M10 Clamps onClamps on
• M11M11 Clamps offClamps off
• M30M30 Program stop, reset to startProgram stop, reset to start
N CodesN Codes
• Gives anGives an identifying number for eachidentifying number for each block ofblock of
information.information.
• It is generally good practice toIt is generally good practice to increment eachincrement each
block number byblock number by 5 or 10 to allow additional5 or 10 to allow additional
blocks to be inserted if futureblocks to be inserted if future changes arechanges are
required.required.
X,Y, and Z CodesX,Y, and Z Codes
• X, Y, and ZX, Y, and Z codes are used tocodes are used to specify thespecify the
coordinate axis.coordinate axis.
• Number following the codeNumber following the code defines thedefines the
coordinate at the endcoordinate at the end of the move relative to anof the move relative to an
incremental or absoluteincremental or absolute reference point.reference point.
I,J, and K CodesI,J, and K Codes
• I, J, and KI, J, and K codes are used tocodes are used to specify thespecify the
coordinate axiscoordinate axis when defining the center of awhen defining the center of a
circle.circle.
• Number following the codeNumber following the code defines thedefines the
respective coordinaterespective coordinate for the center of the circle.for the center of the circle.
FF,,SS, and, and TT CodesCodes
• F-codeF-code: used to specify the feed: used to specify the feed raterate
• S-codeS-code: used to specify the: used to specify the spindle speedspindle speed
• T-codeT-code: used to specify the tool: used to specify the tool identificationidentification
number associatednumber associated with the tool to be used inwith the tool to be used in
subsequent operations.subsequent operations.
Application of Some CodesApplication of Some Codes
G01 Linear InterpolationG01 Linear Interpolation
Format: N_ G01 X_ Y_ Z_ F_Format: N_ G01 X_ Y_ Z_ F_
• Linear Interpolation results in a straight line feedLinear Interpolation results in a straight line feed
move.move.
• Unless tool compensation is used, theUnless tool compensation is used, the
coordinates arecoordinates are associated with the centerline ofassociated with the centerline of
the tool.the tool.
Application of Some CodesApplication of Some Codes
G01 Linear InterpolationG01 Linear Interpolation
• . As an example, for the motion that occurs in. As an example, for the motion that occurs in
x-y plane with the same maximum speed for thex-y plane with the same maximum speed for the
x- and y-axis, initial motion is at an angle of 45ox- and y-axis, initial motion is at an angle of 45o
to the axes until motion in one ofto the axes until motion in one of
• the axes is completed and then the balance ofthe axes is completed and then the balance of
the motion occurs in the other axis. This isthe motion occurs in the other axis. This is
calledcalled point-to-point motionpoint-to-point motion..
Application of Some CodesApplication of Some Codes
G01 Linear InterpolationG01 Linear Interpolation
5
10
15
20
25
5 10 15 20 25 30
A
B C
Positioning motion from A to C
N10 G00 X30000 Y20000 F0
N10N10 G00 X1G00 X1 ZZ11
NN115 Z0.15 Z0.1
NN2020 G01 Z-0.125 F5G01 Z-0.125 F5
NN2255 X2 Z2X2 Z2 F10F10
G01 Linear InterpolationG01 Linear Interpolation
X
Z
G02 Circular InterpolationG02 Circular Interpolation
• G02 is also a preparatory function to specify thatG02 is also a preparatory function to specify that
the tool should be moved to a specified locationthe tool should be moved to a specified location
along a circular path in a clockwise direction. Inalong a circular path in a clockwise direction. In
order to specify the path to the MCU, the endorder to specify the path to the MCU, the end
point of the arc and the location of the center ofpoint of the arc and the location of the center of
the arc should be specified. Within the block inthe arc should be specified. Within the block in
which the G02 code is programmed, the centerwhich the G02 code is programmed, the center
of the arc is given by specifying its locationof the arc is given by specifying its location
relative to the start of the arc.relative to the start of the arc.
G02 Circular Interpolation (CW)G02 Circular Interpolation (CW)
• The G02 commandThe G02 command requiresrequires
an endpoint and a radiusan endpoint and a radius inin
order to cut the arc.order to cut the arc.
• I,J, and K are relativeI,J, and K are relative to theto the
start point.start point.
N_ G02 X2 Y1 I0 J-1 F10N_ G02 X2 Y1 I0 J-1 F10
oror
N_ G02 X2 Y1 R1N_ G02 X2 Y1 R1
G02 Circular Interpolation (CW)G02 Circular Interpolation (CW)
5
10
15
20
25
5 10 15 20 25 30
C
C
Circular interpolation from A to B
about a circle centered at C
N10 G02 X20000 Y10000
I5000 J15000 F2500
A
B
I=5
J=15
The sequence of some machining operations
is may be the same for any part and for any
machine. For example, drilling a hole involves
the following steps:
Position the tool above the point where the
hole will be drilled
Set the correct spindle speed
Feed the tool into the workpiece at a
controlled feed rate to a predetermined depth
Retract the tool at a rapid rate to just above
the point where the hole started
Canned Cycles
Some Commonly Used Canned Cycle
Code Function Down feed At bottom Retracti
on
G81 Drilling Continuous
feed
No action Rapid
G82 Spot face,
counterbore
Continuous
feed
Dwell Rapid
G83 Deep hole drilling Peck No action Rapid
G84 Tapping Continuous
feed
Reverse
spindle
Feed
rate
G85 Through boring(in
& out)
Continuous
feed
No action Feed
rate
G86 Through boring(in
only)
Continuous
feed
Stop
spindle
Rapid
G81 ILLUSTRATIONG81 ILLUSTRATION
Three Main parts of a CNC programThree Main parts of a CNC program
• N5 G90 G2N5 G90 G211 (Absolute units,(Absolute units, metricmetric))
• N10 M06 T2N10 M06 T2 (Stop for tool change, use(Stop for tool change, use
tool # 2)tool # 2)
• N15 M03 S1200N15 M03 S1200 (Turn the spindle on CW(Turn the spindle on CW
toto 1200 rpm)1200 rpm)
Part 1- Program PetupPart 1- Program Petup
Three Main parts of a CNC programThree Main parts of a CNC program
• N20 G00 X1 Y1N20 G00 X1 Y1 (Rapid to X1,Y1 from origin(Rapid to X1,Y1 from origin
point)point)
• N25 Z0.125N25 Z0.125 (Rapid down to Z0.125)(Rapid down to Z0.125)
• N30 G01 Z-0.125 FN30 G01 Z-0.125 F100100 (Feed down to Z-0.125 at(Feed down to Z-0.125 at
100 mm/100 mm/mminin))
• N35 G01 X2 Y2N35 G01 X2 Y2 (Feed diagonally to X2,Y2)(Feed diagonally to X2,Y2)
• N40 G00 Z1N40 G00 Z1 (Rapid up to Z1)(Rapid up to Z1)
• N45 X0 Y0N45 X0 Y0 (Rapid to X0,Y0)(Rapid to X0,Y0)
Part 2- Chip RemovalPart 2- Chip Removal
Three Main parts of a CNC programThree Main parts of a CNC program
• N50 M05N50 M05 (Turn the spindle off)(Turn the spindle off)
• N55 MN55 M0000 ((PProgramrogram stopstop))
Part 3- System ShutdownPart 3- System Shutdown
EXAMPLE OPERATION on CNCEXAMPLE OPERATION on CNC
MILLING MACHINEMILLING MACHINE
G-CODE PROGRAMG-CODE PROGRAM
• First pass : conventional mill to a
depth of 0.125 around edge profile.
Tool 1 is a ½ inch dia. end mill.
%
:1002
N5 G90 G20
N10 M06 T1
N15 M03 S1200
N20 G00 X0.125 Y0.125
N30 Z0.125
N35 G01 Z-0.125 F5
N40 X3.875
N45 Y4.125
N50 X0.125
N55 Y0.125
• Second pass:
conventional mill to a
depth of 0.25 around
edge profile.
N35 Z-0.250
N40 X3.875
N45 Y4.125
N50 X0.125
N55 Y0.125
N60 Z0.125
• Third pass: conventional
mill to a depth of 0.125
around pocket profile.
N65 G00 X1.25 Y1.0
N70 G01 Z-0.125 F5
N75 X1.75
N80 Y2.5
N85 X1.25
N90 Y1.0
N95 Z0.125
• Fourth pass: climb mill
to a depth of 0.125
across remaining
material.
N100 Y2.125
N105 X2.625
N110 Z0.125
N115 G00 X-5 Y-5 Z5
N120 M05
N125 M30
Advanced features:Advanced features:
• Execution of the part of the program in a rotatedExecution of the part of the program in a rotated
or mirrored position.or mirrored position.
• Ability to scale the program and produce larger orAbility to scale the program and produce larger or
smaller programs.smaller programs.
• Three dimensional circular interpolation whichThree dimensional circular interpolation which
produces a helical shape.produces a helical shape.
• Parabolic and cubic interpolation.Parabolic and cubic interpolation.
• NC program preparation may be tedious and difficultNC program preparation may be tedious and difficult
if the part to be machined has a complex geometry.if the part to be machined has a complex geometry.
The main difficulty is to find out the cutter locationsThe main difficulty is to find out the cutter locations
during the machining. Computers may be used toduring the machining. Computers may be used to
assist the programmers in preparing the NC codes.assist the programmers in preparing the NC codes.
Computer Aided Part Programming:
Advantages of applying computer-aided partAdvantages of applying computer-aided part
programming include the following:programming include the following:
• 1. It reduces the manual calculations involves in1. It reduces the manual calculations involves in
determining the geometric characteristics of the part.determining the geometric characteristics of the part.
• It provides the cutter path simulation.It provides the cutter path simulation.
• It provides tool collision checking.It provides tool collision checking.
• It shortens the program preparation time.It shortens the program preparation time.
• It makes the program preparation easier.It makes the program preparation easier.
• The Aerospace Industries Association sponsored theThe Aerospace Industries Association sponsored the
work that led to the first part programming language,work that led to the first part programming language,
developed in MIT in 1955.developed in MIT in 1955.
• This was called:This was called: Automatically Programmed ToolsAutomatically Programmed Tools (APT).(APT).
• APT is an English like simple programming languageAPT is an English like simple programming language
which basically produce thewhich basically produce the Cutter LocationCutter Location (CL) data.(CL) data.
• Using the cutter location data, the program canUsing the cutter location data, the program can
generate the actual NC codes by using agenerate the actual NC codes by using a
postprocessor .postprocessor .
• The output of any CAD package include theThe output of any CAD package include the
geometric data of the part to be machined. Therefore,geometric data of the part to be machined. Therefore,
many CAD/CAM package can produce cuttermany CAD/CAM package can produce cutter
location (CL) data to be used for NC code generation.location (CL) data to be used for NC code generation.
• There is still to be a process planning module for aThere is still to be a process planning module for a
workable NC code generation.workable NC code generation.
• Some of the CAD/CAM packages that have the NCSome of the CAD/CAM packages that have the NC
code generation capabilities are Computervision,code generation capabilities are Computervision,
CATIA, CADAM, ProEngineer, MechanicalDesktopCATIA, CADAM, ProEngineer, MechanicalDesktop
(Auto Desk).(Auto Desk).
CAD/CAM Based Part Programming:CAD/CAM Based Part Programming:

More Related Content

What's hot

Cnc tooling for cnc machine(130670119596)
Cnc tooling for cnc machine(130670119596)Cnc tooling for cnc machine(130670119596)
Cnc tooling for cnc machine(130670119596)Kushal Shah
 
Chapter 3 CNC turning and machining centers
Chapter 3 CNC turning and machining centersChapter 3 CNC turning and machining centers
Chapter 3 CNC turning and machining centersRAHUL THAKER
 
Cnc turning(Fanuc system)
Cnc turning(Fanuc system)Cnc turning(Fanuc system)
Cnc turning(Fanuc system)NavinBurnwal1
 
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 PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1Parveen Kumar
 
Manual part programming
Manual part programmingManual part programming
Manual part programmingjntuhcej
 
Cnc cutting tools
Cnc cutting toolsCnc cutting tools
Cnc cutting toolsRakesh Raki
 
CNC Milling (fanuc system)
CNC Milling (fanuc system)CNC Milling (fanuc system)
CNC Milling (fanuc system)NavinBurnwal1
 
Cnc lathe ppt
Cnc lathe pptCnc lathe ppt
Cnc lathe ppt99759067
 
4 basic cnc programming milling
4 basic cnc programming milling4 basic cnc programming milling
4 basic cnc programming millingMahesh Namdev
 
Chapter 4 cnc part programming
Chapter 4 cnc part programmingChapter 4 cnc part programming
Chapter 4 cnc part programmingRAHUL THAKER
 
Cncpresentation CNC lathe machine
Cncpresentation CNC lathe machineCncpresentation CNC lathe machine
Cncpresentation CNC lathe machineHaseeb Butt
 
CNC part programming
CNC part programmingCNC part programming
CNC part programmingjntuhcej
 
Introduction to CNC machine and Hardware.
Introduction to CNC machine and Hardware. Introduction to CNC machine and Hardware.
Introduction to CNC machine and Hardware. aman1312
 
nc and cnc dp
nc and cnc dpnc and cnc dp
nc and cnc dpDpulast
 
Numerical control machines tool
Numerical control machines toolNumerical control machines tool
Numerical control machines tooljntuhcej
 

What's hot (20)

CNC MILLING Operations
CNC MILLING OperationsCNC MILLING Operations
CNC MILLING Operations
 
Cnc tooling for cnc machine(130670119596)
Cnc tooling for cnc machine(130670119596)Cnc tooling for cnc machine(130670119596)
Cnc tooling for cnc machine(130670119596)
 
Chapter 3 CNC turning and machining centers
Chapter 3 CNC turning and machining centersChapter 3 CNC turning and machining centers
Chapter 3 CNC turning and machining centers
 
Cnc turning(Fanuc system)
Cnc turning(Fanuc system)Cnc turning(Fanuc system)
Cnc turning(Fanuc system)
 
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 PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1CNC PROGRAMMING FOR BEGAINER Part 1
CNC PROGRAMMING FOR BEGAINER Part 1
 
Tool presetting
Tool presettingTool presetting
Tool presetting
 
Manual part programming
Manual part programmingManual part programming
Manual part programming
 
Cnc cutting tools
Cnc cutting toolsCnc cutting tools
Cnc cutting tools
 
CNC Milling (fanuc system)
CNC Milling (fanuc system)CNC Milling (fanuc system)
CNC Milling (fanuc system)
 
Cnc lathe ppt
Cnc lathe pptCnc lathe ppt
Cnc lathe ppt
 
4 basic cnc programming milling
4 basic cnc programming milling4 basic cnc programming milling
4 basic cnc programming milling
 
Chapter 4 cnc part programming
Chapter 4 cnc part programmingChapter 4 cnc part programming
Chapter 4 cnc part programming
 
Cncpresentation CNC lathe machine
Cncpresentation CNC lathe machineCncpresentation CNC lathe machine
Cncpresentation CNC lathe machine
 
CNC part programming
CNC part programmingCNC part programming
CNC part programming
 
Introduction to CNC machine and Hardware.
Introduction to CNC machine and Hardware. Introduction to CNC machine and Hardware.
Introduction to CNC machine and Hardware.
 
Nc part programming
Nc part programmingNc part programming
Nc part programming
 
CNC Programming
CNC Programming CNC Programming
CNC Programming
 
nc and cnc dp
nc and cnc dpnc and cnc dp
nc and cnc dp
 
Numerical control machines tool
Numerical control machines toolNumerical control machines tool
Numerical control machines tool
 

Viewers also liked

Viewers also liked (17)

CNC Machines
CNC MachinesCNC Machines
CNC Machines
 
part programming (cnc)
part programming (cnc)part programming (cnc)
part programming (cnc)
 
Cnc lathe
Cnc latheCnc lathe
Cnc lathe
 
NC, CNC & DNC Machine
NC, CNC & DNC Machine NC, CNC & DNC Machine
NC, CNC & DNC Machine
 
CNC Programmingmodifies examination 1
CNC Programmingmodifies examination 1CNC Programmingmodifies examination 1
CNC Programmingmodifies examination 1
 
CNC Programmingmodifies1
CNC Programmingmodifies1CNC Programmingmodifies1
CNC Programmingmodifies1
 
Recent Advancement of CNC Technology
Recent Advancement of CNC TechnologyRecent Advancement of CNC Technology
Recent Advancement of CNC Technology
 
cnc machining
cnc machiningcnc machining
cnc machining
 
CNC Seminar
CNC SeminarCNC Seminar
CNC Seminar
 
DEVELOPING CNC PROGRAM FOR THE MANUFACTURING OF GUIDE
DEVELOPING CNC PROGRAM FOR THE MANUFACTURING OF GUIDEDEVELOPING CNC PROGRAM FOR THE MANUFACTURING OF GUIDE
DEVELOPING CNC PROGRAM FOR THE MANUFACTURING OF GUIDE
 
Lecture 17 position systems of nc [compatibility mode]
Lecture 17 position systems of nc [compatibility mode]Lecture 17 position systems of nc [compatibility mode]
Lecture 17 position systems of nc [compatibility mode]
 
CNC Programming
CNC ProgrammingCNC Programming
CNC Programming
 
Computer numerical controlled machine project
Computer numerical controlled machine projectComputer numerical controlled machine project
Computer numerical controlled machine project
 
CNC AND ITS COMPONENTS
CNC AND ITS COMPONENTSCNC AND ITS COMPONENTS
CNC AND ITS COMPONENTS
 
CNC MACHINE
CNC MACHINECNC MACHINE
CNC MACHINE
 
Nc programming
Nc programmingNc programming
Nc programming
 
Friction problems
Friction problemsFriction problems
Friction problems
 

Similar to Cnc part programming 4 unit

CNC PART PROGRAMMING.pptx
CNC PART PROGRAMMING.pptxCNC PART PROGRAMMING.pptx
CNC PART PROGRAMMING.pptxAtharvaJagtap15
 
CAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptx
CAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptxCAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptx
CAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptxsahils237192101
 
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.pdfJAYANTKUMAR469151
 
Numerical control and CNC
Numerical control and CNCNumerical control and CNC
Numerical control and CNCnmahi96
 
Production automation lab
Production automation labProduction automation lab
Production automation labismail khan
 
Computer Numerical Control (CNC) & Manufacturing Automation
Computer Numerical Control (CNC) & Manufacturing AutomationComputer Numerical Control (CNC) & Manufacturing Automation
Computer Numerical Control (CNC) & Manufacturing AutomationSTAY CURIOUS
 
CNC(computerized Numeric Coding) Lecture.pptx
CNC(computerized Numeric  Coding) Lecture.pptxCNC(computerized Numeric  Coding) Lecture.pptx
CNC(computerized Numeric Coding) Lecture.pptxHusnain181
 
Cnc pgrming seminar-
Cnc pgrming   seminar-Cnc pgrming   seminar-
Cnc pgrming seminar-abhipawar123
 

Similar to Cnc part programming 4 unit (20)

CNC PART PROGRAMMING.pptx
CNC PART PROGRAMMING.pptxCNC PART PROGRAMMING.pptx
CNC PART PROGRAMMING.pptx
 
CAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptx
CAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptxCAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptx
CAD-CAM-Module-4-Subtractive-Manufacturing-1-print.pptx
 
CNC.ppt
CNC.pptCNC.ppt
CNC.ppt
 
CNC Turning.ppt
CNC Turning.pptCNC Turning.ppt
CNC Turning.ppt
 
Lecture 25.pdf
Lecture 25.pdfLecture 25.pdf
Lecture 25.pdf
 
Cnc programming
Cnc programmingCnc programming
Cnc programming
 
Cncprogramming
CncprogrammingCncprogramming
Cncprogramming
 
Cnc programming
Cnc programmingCnc programming
Cnc programming
 
BHEL PPT
BHEL PPTBHEL PPT
BHEL PPT
 
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
 
Mach4 mill-g code-manual
Mach4 mill-g code-manualMach4 mill-g code-manual
Mach4 mill-g code-manual
 
Numerical control and CNC
Numerical control and CNCNumerical control and CNC
Numerical control and CNC
 
Production automation lab
Production automation labProduction automation lab
Production automation lab
 
5 g-code
5   g-code5   g-code
5 g-code
 
Computer Numerical Control (CNC) & Manufacturing Automation
Computer Numerical Control (CNC) & Manufacturing AutomationComputer Numerical Control (CNC) & Manufacturing Automation
Computer Numerical Control (CNC) & Manufacturing Automation
 
cadcampart11.ppt
cadcampart11.pptcadcampart11.ppt
cadcampart11.ppt
 
CNC(computerized Numeric Coding) Lecture.pptx
CNC(computerized Numeric  Coding) Lecture.pptxCNC(computerized Numeric  Coding) Lecture.pptx
CNC(computerized Numeric Coding) Lecture.pptx
 
Cnc pgrming seminar-
Cnc pgrming   seminar-Cnc pgrming   seminar-
Cnc pgrming seminar-
 
CNC1.ppt
CNC1.pptCNC1.ppt
CNC1.ppt
 
CNC1 (1).ppt
CNC1 (1).pptCNC1 (1).ppt
CNC1 (1).ppt
 

More from palanivendhan

Super surplus-brochure
Super surplus-brochureSuper surplus-brochure
Super surplus-brochurepalanivendhan
 
Non patentable inventions
Non patentable inventionsNon patentable inventions
Non patentable inventionspalanivendhan
 
Quality function deployment
Quality function deploymentQuality function deployment
Quality function deploymentpalanivendhan
 
failure modes and effects analysis (fmea)
failure modes and effects analysis (fmea)failure modes and effects analysis (fmea)
failure modes and effects analysis (fmea)palanivendhan
 
MATERIALS TECHNOLOGY
MATERIALS TECHNOLOGYMATERIALS TECHNOLOGY
MATERIALS TECHNOLOGYpalanivendhan
 
MATERIALS TECHNOLOGY
MATERIALS TECHNOLOGYMATERIALS TECHNOLOGY
MATERIALS TECHNOLOGYpalanivendhan
 
Fundamentals of cutting
Fundamentals of cuttingFundamentals of cutting
Fundamentals of cuttingpalanivendhan
 
Cnc 2 unit palanivendhan cnc elements
Cnc 2 unit palanivendhan cnc elementsCnc 2 unit palanivendhan cnc elements
Cnc 2 unit palanivendhan cnc elementspalanivendhan
 
Cam 1 unit palanivendhan manufacturin systems
Cam 1 unit palanivendhan manufacturin systemsCam 1 unit palanivendhan manufacturin systems
Cam 1 unit palanivendhan manufacturin systemspalanivendhan
 
Directing,principles of management,palanivendhan
Directing,principles of management,palanivendhanDirecting,principles of management,palanivendhan
Directing,principles of management,palanivendhanpalanivendhan
 

More from palanivendhan (14)

Super surplus-brochure
Super surplus-brochureSuper surplus-brochure
Super surplus-brochure
 
Non patentable inventions
Non patentable inventionsNon patentable inventions
Non patentable inventions
 
Quality function deployment
Quality function deploymentQuality function deployment
Quality function deployment
 
Management system
Management systemManagement system
Management system
 
failure modes and effects analysis (fmea)
failure modes and effects analysis (fmea)failure modes and effects analysis (fmea)
failure modes and effects analysis (fmea)
 
new quality tools
 new quality tools new quality tools
new quality tools
 
MATERIALS TECHNOLOGY
MATERIALS TECHNOLOGYMATERIALS TECHNOLOGY
MATERIALS TECHNOLOGY
 
PHASE DIAGRAMS
PHASE DIAGRAMSPHASE DIAGRAMS
PHASE DIAGRAMS
 
FRACTURE BEHAVIOUR
FRACTURE BEHAVIOURFRACTURE BEHAVIOUR
FRACTURE BEHAVIOUR
 
MATERIALS TECHNOLOGY
MATERIALS TECHNOLOGYMATERIALS TECHNOLOGY
MATERIALS TECHNOLOGY
 
Fundamentals of cutting
Fundamentals of cuttingFundamentals of cutting
Fundamentals of cutting
 
Cnc 2 unit palanivendhan cnc elements
Cnc 2 unit palanivendhan cnc elementsCnc 2 unit palanivendhan cnc elements
Cnc 2 unit palanivendhan cnc elements
 
Cam 1 unit palanivendhan manufacturin systems
Cam 1 unit palanivendhan manufacturin systemsCam 1 unit palanivendhan manufacturin systems
Cam 1 unit palanivendhan manufacturin systems
 
Directing,principles of management,palanivendhan
Directing,principles of management,palanivendhanDirecting,principles of management,palanivendhan
Directing,principles of management,palanivendhan
 

Recently uploaded

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 

Recently uploaded (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 

Cnc part programming 4 unit

  • 2. PART PROGRAMPART PROGRAM • A part program is a series of coded instructions required toA part program is a series of coded instructions required to produce a part. It controls the movement of the machine toolproduce a part. It controls the movement of the machine tool and the on/off control of auxiliary functions such as spindleand the on/off control of auxiliary functions such as spindle rotation and coolant. The coded instructions are composed ofrotation and coolant. The coded instructions are composed of letters, numbers and symbols and are arranged in a format ofletters, numbers and symbols and are arranged in a format of functional blocks as in the following examplefunctional blocks as in the following example N10 G01 X5.0 Y2.5 F15.0N10 G01 X5.0 Y2.5 F15.0    |       |       |         |        |   |       |       |         |        |    |       |       |         |       Feed rate (15 in/min)   |       |       |         |       Feed rate (15 in/min)    |       |       |        Y-coordinate (2.5")   |       |       |        Y-coordinate (2.5")    |       |      X-coordinate (5.0")   |       |      X-coordinate (5.0")    |      Linear interpolation mode   |      Linear interpolation mode   Sequence number  Sequence number
  • 3. PROGRAM INPUT DEVICEPROGRAM INPUT DEVICE • The program input device is the mechanism forThe program input device is the mechanism for part programs to be entered into the CNCpart programs to be entered into the CNC control. Thcontrol. The moste most commonly used programcommonly used program input devices areinput devices are keyboardskeyboards,, punched tapepunched tape reader, diskette drivers, throgh RS 232 serialreader, diskette drivers, throgh RS 232 serial ports and networksports and networks..
  • 4. MACHINE CONTROL UNITMACHINE CONTROL UNIT The machine control unit (MCU) is the heart of a CNC system. ItThe machine control unit (MCU) is the heart of a CNC system. It is used to perform the following functions:is used to perform the following functions: • Read coded instructionsRead coded instructions • Decode coded instructionsDecode coded instructions • Implement interpolations (linear, circular, and helical) to generateImplement interpolations (linear, circular, and helical) to generate axis motion commandsaxis motion commands • Feed axis motion commands to the amplifier circuits for drivingFeed axis motion commands to the amplifier circuits for driving the axis mechanismsthe axis mechanisms • Receive the feedback signals of position and speed for each driveReceive the feedback signals of position and speed for each drive axisaxis • Implement auxiliary control functions such as coolant or spindleImplement auxiliary control functions such as coolant or spindle on/off, and tool changeon/off, and tool change
  • 5. CNC PROGRAMMINGCNC PROGRAMMING • Offline programmingOffline programming linked to CADlinked to CAD programs.programs. • Conversational programmingConversational programming by the operator.by the operator. • MDIMDI ~ Manual Data Input.~ Manual Data Input. • Manual ControlManual Control using jog buttons orusing jog buttons or `electronic handwheel'.`electronic handwheel'. • Word-Address CodingWord-Address Coding using standard G-codesusing standard G-codes and M-codes.and M-codes.
  • 6. The position of the tool is describedThe position of the tool is described by using a Cartesian coordinateby using a Cartesian coordinate system. If (0,0,0) position can besystem. If (0,0,0) position can be described by the operator, then it isdescribed by the operator, then it is calledcalled floating zerofloating zero..
  • 7. In defining the motion of the toolIn defining the motion of the tool from one point to another,from one point to another, eithereither absoluteabsolute positioningpositioning mode ormode or incrementalincremental positioningpositioning modemode can be used.can be used.
  • 8. 1.1. Absolute positioningAbsolute positioning. In this mode, the. In this mode, the desired target position of the tool for adesired target position of the tool for a particular move is given relative to the originparticular move is given relative to the origin point of the program.point of the program. 2.2. Incremental positioningIncremental positioning. In this mode, the. In this mode, the next target position for the tool is givennext target position for the tool is given relative to the current toolrelative to the current tool position.position.
  • 9. Structure of an NC Part Program:Structure of an NC Part Program: Commands are input into the controller in units called blocks or statements. Block Format: 1. Fixed sequential format 2. Tab sequential format 3. Word address format
  • 10. EXAMPLE:EXAMPLE: Assume that a drilling operation is to be programmed as: 1. The tool is positioned at (25.4,12.5,0) by a rapid movement. 2. The tool is then advanced -10 mm in the z direction at a feed rate of 500 mm/min., with the flood coolant on. 3.The is then retracted back 10 mm at the rapid feed rate, and the coolant is turned off.
  • 11. 1. Fixed sequential format1. Fixed sequential format 0050 00 +0025400 +0012500 +0000000 0000 000050 00 +0025400 +0012500 +0000000 0000 00 0060 01 +0025400 +0012500 -0010000 0500 080060 01 +0025400 +0012500 -0010000 0500 08 0070 00 +0025400 +0012500 +0000000 0000 090070 00 +0025400 +0012500 +0000000 0000 09 2. Tab sequential format 0050 TAB 00 TAB +0025400 TAB +0012500 TAB +0000000 TA 0060 TAB 01 TAB TAB TAB -0010000 TAB 0500 TAB 08 0070 TAB 00 TAB TAB TAB -0000000 TAB 0000 TAB 09 3. Word address format N50 G00 X25400 Y125 Z0 F0 N60 G01 Z-10000 F500 M08 N70 G00 Z0 M09
  • 12. Modal commandsModal commands: Commands issued in the: Commands issued in the NC program that will stay in effect until it isNC program that will stay in effect until it is changed by some other command, like, feedchanged by some other command, like, feed rate selection, coolant selection, etc.rate selection, coolant selection, etc. Nonmodal commandsNonmodal commands: Commands that are: Commands that are effective only when issued and whose effectseffective only when issued and whose effects are lost for subsequent commands, like, aare lost for subsequent commands, like, a dwell command which instructs the tool todwell command which instructs the tool to remain in a given configuration for a givenremain in a given configuration for a given amount of time.amount of time.
  • 13. INFORMATION NEEDED by aINFORMATION NEEDED by a CNCCNC 1. Preparatory Information: units, incremental or absolute positioning 2. Coordinates: X,Y,Z, RX,RY,RZ 3. Machining Parameters: Feed rate and spindle speed 4. Coolant Control: On/Off, Flood, Mist 5. Tool Control: Tool and tool parameters 6. Cycle Functions: Type of action required 7. Miscellaneous Control: Spindle on/off, direction of rotation, stops for part movement This information is conveyed to the machine through a set of instructions arranged in a desired sequence – Program.
  • 14. BLOCK FORMATBLOCK FORMAT Sample BlockSample Block N135 G01 X1.0 Y1.0 Z0.125 F5 • 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 feedrate • 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
  • 15. WORD-ADDRESS CODINGWORD-ADDRESS CODING • N5 G90 G20N5 G90 G20 • N10 M06 T3N10 M06 T3 • N15 M03 S1250N15 M03 S1250 • N20 G00 X1 Y1N20 G00 X1 Y1 • N25 Z0.1N25 Z0.1 • N30 G01 Z-0.125 F5N30 G01 Z-0.125 F5 • N35 X3 Y2 F10N35 X3 Y2 F10 • N40 G00 Z1N40 G00 Z1 • N45 X0 Y0N45 X0 Y0 • N50 M05N50 M05 • N55 M30N55 M30 Example CNC ProgramExample CNC Program Each instruction to the machine consists of a letter followed by a number. Each letter is associated with a specific type of action or piece of information needed by the machine. Letters used in Codes N,G,X,Y,Z,A,B,C,I,J,K,F,S,T,R,M
  • 16. G CodesG Codes • G00G00 Rapid traverseRapid traverse • G01 Linear interpolationG01 Linear interpolation • G02G02 Circular interpolation,Circular interpolation, CWCW • G03 Circular interpolation,G03 Circular interpolation, CCWCCW • G04 DwellG04 Dwell • G08 AccelerationG08 Acceleration • G09 DecelerationG09 Deceleration • G17 X-Y PlaneG17 X-Y Plane • G18 Z-X PlaneG18 Z-X Plane • G19 Y-Z PlaneG19 Y-Z Plane • G20 Inch Units (G70)G20 Inch Units (G70) • G21 Metric Units (G71)G21 Metric Units (G71) • G40 Cutter compensation –G40 Cutter compensation – cancelcancel • G41 Cutter compensation –G41 Cutter compensation – leftleft • G42 Cutter compensation-G42 Cutter compensation- rightright • G70 Inch formatG70 Inch format • G71 Metric formatG71 Metric format • G74 Full-circleG74 Full-circle programmingprogramming offoff • G75 Full-circle programmingG75 Full-circle programming onon • G80 Fixed-cycle cancelG80 Fixed-cycle cancel • G81-G89 Fixed cyclesG81-G89 Fixed cycles • G90 Absolute dimensionsG90 Absolute dimensions • G91 Incremental dimensionsG91 Incremental dimensions
  • 17. M CodesM Codes • M00M00 Program stopProgram stop • M01M01 Optional program stopOptional program stop • M02M02 Program endProgram end • M03M03 Spindle on clockwiseSpindle on clockwise • M04M04 Spindle on counterclockwiseSpindle on counterclockwise • M05M05 Spindle stopSpindle stop • M06M06 Tool changeTool change • M08M08 Coolant onCoolant on • M09M09 Coolant offCoolant off • M10M10 Clamps onClamps on • M11M11 Clamps offClamps off • M30M30 Program stop, reset to startProgram stop, reset to start
  • 18. N CodesN Codes • Gives anGives an identifying number for eachidentifying number for each block ofblock of information.information. • It is generally good practice toIt is generally good practice to increment eachincrement each block number byblock number by 5 or 10 to allow additional5 or 10 to allow additional blocks to be inserted if futureblocks to be inserted if future changes arechanges are required.required.
  • 19. X,Y, and Z CodesX,Y, and Z Codes • X, Y, and ZX, Y, and Z codes are used tocodes are used to specify thespecify the coordinate axis.coordinate axis. • Number following the codeNumber following the code defines thedefines the coordinate at the endcoordinate at the end of the move relative to anof the move relative to an incremental or absoluteincremental or absolute reference point.reference point.
  • 20. I,J, and K CodesI,J, and K Codes • I, J, and KI, J, and K codes are used tocodes are used to specify thespecify the coordinate axiscoordinate axis when defining the center of awhen defining the center of a circle.circle. • Number following the codeNumber following the code defines thedefines the respective coordinaterespective coordinate for the center of the circle.for the center of the circle.
  • 21. FF,,SS, and, and TT CodesCodes • F-codeF-code: used to specify the feed: used to specify the feed raterate • S-codeS-code: used to specify the: used to specify the spindle speedspindle speed • T-codeT-code: used to specify the tool: used to specify the tool identificationidentification number associatednumber associated with the tool to be used inwith the tool to be used in subsequent operations.subsequent operations.
  • 22. Application of Some CodesApplication of Some Codes G01 Linear InterpolationG01 Linear Interpolation Format: N_ G01 X_ Y_ Z_ F_Format: N_ G01 X_ Y_ Z_ F_ • Linear Interpolation results in a straight line feedLinear Interpolation results in a straight line feed move.move. • Unless tool compensation is used, theUnless tool compensation is used, the coordinates arecoordinates are associated with the centerline ofassociated with the centerline of the tool.the tool.
  • 23. Application of Some CodesApplication of Some Codes G01 Linear InterpolationG01 Linear Interpolation • . As an example, for the motion that occurs in. As an example, for the motion that occurs in x-y plane with the same maximum speed for thex-y plane with the same maximum speed for the x- and y-axis, initial motion is at an angle of 45ox- and y-axis, initial motion is at an angle of 45o to the axes until motion in one ofto the axes until motion in one of • the axes is completed and then the balance ofthe axes is completed and then the balance of the motion occurs in the other axis. This isthe motion occurs in the other axis. This is calledcalled point-to-point motionpoint-to-point motion..
  • 24. Application of Some CodesApplication of Some Codes G01 Linear InterpolationG01 Linear Interpolation 5 10 15 20 25 5 10 15 20 25 30 A B C Positioning motion from A to C N10 G00 X30000 Y20000 F0
  • 25. N10N10 G00 X1G00 X1 ZZ11 NN115 Z0.15 Z0.1 NN2020 G01 Z-0.125 F5G01 Z-0.125 F5 NN2255 X2 Z2X2 Z2 F10F10 G01 Linear InterpolationG01 Linear Interpolation X Z
  • 26. G02 Circular InterpolationG02 Circular Interpolation • G02 is also a preparatory function to specify thatG02 is also a preparatory function to specify that the tool should be moved to a specified locationthe tool should be moved to a specified location along a circular path in a clockwise direction. Inalong a circular path in a clockwise direction. In order to specify the path to the MCU, the endorder to specify the path to the MCU, the end point of the arc and the location of the center ofpoint of the arc and the location of the center of the arc should be specified. Within the block inthe arc should be specified. Within the block in which the G02 code is programmed, the centerwhich the G02 code is programmed, the center of the arc is given by specifying its locationof the arc is given by specifying its location relative to the start of the arc.relative to the start of the arc.
  • 27. G02 Circular Interpolation (CW)G02 Circular Interpolation (CW) • The G02 commandThe G02 command requiresrequires an endpoint and a radiusan endpoint and a radius inin order to cut the arc.order to cut the arc. • I,J, and K are relativeI,J, and K are relative to theto the start point.start point. N_ G02 X2 Y1 I0 J-1 F10N_ G02 X2 Y1 I0 J-1 F10 oror N_ G02 X2 Y1 R1N_ G02 X2 Y1 R1
  • 28. G02 Circular Interpolation (CW)G02 Circular Interpolation (CW) 5 10 15 20 25 5 10 15 20 25 30 C C Circular interpolation from A to B about a circle centered at C N10 G02 X20000 Y10000 I5000 J15000 F2500 A B I=5 J=15
  • 29. The sequence of some machining operations is may be the same for any part and for any machine. For example, drilling a hole involves the following steps: Position the tool above the point where the hole will be drilled Set the correct spindle speed Feed the tool into the workpiece at a controlled feed rate to a predetermined depth Retract the tool at a rapid rate to just above the point where the hole started Canned Cycles
  • 30. Some Commonly Used Canned Cycle Code Function Down feed At bottom Retracti on G81 Drilling Continuous feed No action Rapid G82 Spot face, counterbore Continuous feed Dwell Rapid G83 Deep hole drilling Peck No action Rapid G84 Tapping Continuous feed Reverse spindle Feed rate G85 Through boring(in & out) Continuous feed No action Feed rate G86 Through boring(in only) Continuous feed Stop spindle Rapid
  • 32. Three Main parts of a CNC programThree Main parts of a CNC program • N5 G90 G2N5 G90 G211 (Absolute units,(Absolute units, metricmetric)) • N10 M06 T2N10 M06 T2 (Stop for tool change, use(Stop for tool change, use tool # 2)tool # 2) • N15 M03 S1200N15 M03 S1200 (Turn the spindle on CW(Turn the spindle on CW toto 1200 rpm)1200 rpm) Part 1- Program PetupPart 1- Program Petup
  • 33. Three Main parts of a CNC programThree Main parts of a CNC program • N20 G00 X1 Y1N20 G00 X1 Y1 (Rapid to X1,Y1 from origin(Rapid to X1,Y1 from origin point)point) • N25 Z0.125N25 Z0.125 (Rapid down to Z0.125)(Rapid down to Z0.125) • N30 G01 Z-0.125 FN30 G01 Z-0.125 F100100 (Feed down to Z-0.125 at(Feed down to Z-0.125 at 100 mm/100 mm/mminin)) • N35 G01 X2 Y2N35 G01 X2 Y2 (Feed diagonally to X2,Y2)(Feed diagonally to X2,Y2) • N40 G00 Z1N40 G00 Z1 (Rapid up to Z1)(Rapid up to Z1) • N45 X0 Y0N45 X0 Y0 (Rapid to X0,Y0)(Rapid to X0,Y0) Part 2- Chip RemovalPart 2- Chip Removal
  • 34. Three Main parts of a CNC programThree Main parts of a CNC program • N50 M05N50 M05 (Turn the spindle off)(Turn the spindle off) • N55 MN55 M0000 ((PProgramrogram stopstop)) Part 3- System ShutdownPart 3- System Shutdown
  • 35. EXAMPLE OPERATION on CNCEXAMPLE OPERATION on CNC MILLING MACHINEMILLING MACHINE
  • 36. G-CODE PROGRAMG-CODE PROGRAM • First pass : conventional mill to a depth of 0.125 around edge profile. Tool 1 is a ½ inch dia. end mill. % :1002 N5 G90 G20 N10 M06 T1 N15 M03 S1200 N20 G00 X0.125 Y0.125 N30 Z0.125 N35 G01 Z-0.125 F5 N40 X3.875 N45 Y4.125 N50 X0.125 N55 Y0.125
  • 37. • Second pass: conventional mill to a depth of 0.25 around edge profile. N35 Z-0.250 N40 X3.875 N45 Y4.125 N50 X0.125 N55 Y0.125 N60 Z0.125
  • 38. • Third pass: conventional mill to a depth of 0.125 around pocket profile. N65 G00 X1.25 Y1.0 N70 G01 Z-0.125 F5 N75 X1.75 N80 Y2.5 N85 X1.25 N90 Y1.0 N95 Z0.125
  • 39. • Fourth pass: climb mill to a depth of 0.125 across remaining material. N100 Y2.125 N105 X2.625 N110 Z0.125 N115 G00 X-5 Y-5 Z5 N120 M05 N125 M30
  • 40. Advanced features:Advanced features: • Execution of the part of the program in a rotatedExecution of the part of the program in a rotated or mirrored position.or mirrored position. • Ability to scale the program and produce larger orAbility to scale the program and produce larger or smaller programs.smaller programs. • Three dimensional circular interpolation whichThree dimensional circular interpolation which produces a helical shape.produces a helical shape. • Parabolic and cubic interpolation.Parabolic and cubic interpolation.
  • 41. • NC program preparation may be tedious and difficultNC program preparation may be tedious and difficult if the part to be machined has a complex geometry.if the part to be machined has a complex geometry. The main difficulty is to find out the cutter locationsThe main difficulty is to find out the cutter locations during the machining. Computers may be used toduring the machining. Computers may be used to assist the programmers in preparing the NC codes.assist the programmers in preparing the NC codes. Computer Aided Part Programming:
  • 42. Advantages of applying computer-aided partAdvantages of applying computer-aided part programming include the following:programming include the following: • 1. It reduces the manual calculations involves in1. It reduces the manual calculations involves in determining the geometric characteristics of the part.determining the geometric characteristics of the part. • It provides the cutter path simulation.It provides the cutter path simulation. • It provides tool collision checking.It provides tool collision checking. • It shortens the program preparation time.It shortens the program preparation time. • It makes the program preparation easier.It makes the program preparation easier.
  • 43. • The Aerospace Industries Association sponsored theThe Aerospace Industries Association sponsored the work that led to the first part programming language,work that led to the first part programming language, developed in MIT in 1955.developed in MIT in 1955. • This was called:This was called: Automatically Programmed ToolsAutomatically Programmed Tools (APT).(APT). • APT is an English like simple programming languageAPT is an English like simple programming language which basically produce thewhich basically produce the Cutter LocationCutter Location (CL) data.(CL) data. • Using the cutter location data, the program canUsing the cutter location data, the program can generate the actual NC codes by using agenerate the actual NC codes by using a postprocessor .postprocessor .
  • 44. • The output of any CAD package include theThe output of any CAD package include the geometric data of the part to be machined. Therefore,geometric data of the part to be machined. Therefore, many CAD/CAM package can produce cuttermany CAD/CAM package can produce cutter location (CL) data to be used for NC code generation.location (CL) data to be used for NC code generation. • There is still to be a process planning module for aThere is still to be a process planning module for a workable NC code generation.workable NC code generation. • Some of the CAD/CAM packages that have the NCSome of the CAD/CAM packages that have the NC code generation capabilities are Computervision,code generation capabilities are Computervision, CATIA, CADAM, ProEngineer, MechanicalDesktopCATIA, CADAM, ProEngineer, MechanicalDesktop (Auto Desk).(Auto Desk). CAD/CAM Based Part Programming:CAD/CAM Based Part Programming: