Upload
schriener
View
240
Download
1
Embed Size (px)
Citation preview
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
1/14
CAD/CAM
LABORATORY
MEL58
RAMMING
FUNDA
MENTA
NC
PROCEDURE
The
following
are
he
basic
steps
n
NC
procedure
o
process
lanning
o
part
programming
o
Part
program
entry
o
Proving
the
part
program
o
Production
A) PROCESS
PLANNING
The
part
programmer
will
often
carryout
he
task
of
process
planning.
Process
lanning
is the procedure
of deciding
what
operations
are to
be done
on
the
component,
n
wtrat
ordef
and
with what
tooling
and
work
holding
facilities.
Both
the
proceis
planning
and part
programming
aspects
f manufacture
ccur
after
he
detail
drawings
of
a
component
ave
been
prepared.
The
following procedure
may
be used as
a
guide
to assist
the
programmer,
by
describing
each
step
equired
n
preoarins
he methodof nrocfirction
Dlng
eac
S
the method
o
tlon
l
PROCESS LANNING
o
Receive
he
part
drawing
from part
drawing
nformation,
check
suitability
of part
to be
machined
against
he
machine
capacity.
o
Determine
a
method
of
driving
the
component
chuck
type,
chuck
sir., typ.
or
jaw)
and the
method
of qachining.
Determine
he tooling
required
o
suit
the method
of
machining
and
utilize
as
much
as
possible
he
tools
which
are
permanently
n the
turret
set
upon
the
machine.
a
o
Determine
he
order
of machining
nd
he ooling
stations.
.
D;t"
operator
Determine
cutting
speeds
ased
on
-
Component
material,
method
of driving,
rigidity
of component
-
Tooling
selected
or roughing
and inishing
o
o
Determ
ne the
depths
of cr,4
and
feeds
or roughing
operations
o
Determine
surface
inish
requirements,
he cutter
nose
adius
most
suitecl
or
finishing
operations
nd
determine
eed
ates.
r
Allocates
ool
o&g 3s
required
.
Cqmplete
planning
sheet
ART PROGRA NG
o
After completing
he planning
sheet,
raw
he component
howing
he cutter
s
(a
simple
sketch
s
sufficient
or
simple
com
rts
to
be used.
lltlte
the
part
program
according
o the
sequence
f
operations.
DEPARTMENTOF MECHANICAL BNGINEERING,K.S.I.T, BANGALORE-62
42
Select
a component
datum
and carryout
he necessary
alculations
t slopes
and
Preparetool inglayoutsheeishowingtoolstobeusedi i r theff i
the
stationnumber
or
each
ool.
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
2/14
CAD/CAM
LABORATORY
MEL58
C) PART PROGRAM
ENTRY OR TAPE
PREPARATION
The
part program
is
prepared
punched
on
a
25 mm wide
paper
tape with 8 tracks and
is fed to
MCU in order to
produce
a component
of interest
on machine ool.
Other
forms
of
input
media include,
punched
cards,magnetic ape,
35 mm
motion
picture
film. The input
to
the NC system an be
n
two
ways : l)lv{anualdata
nput 2)Direct Numerical control.
1) Direct Data Inpu(MDI) : Completepart programsare entered nto CNC control unit via'
the console
keyboard. t is
suited
only for relativelysimple
obs.
The most common application
for MDI is the editing
of
part programs
already
esident
n
controllers
memory.
One
variation
of
MDI is a concept called
"Conversational Programming".
CNC
machinesare
programmed
via a
question
and
answer echnique
whereby
a resident
software
program
asks the operator a series of
questions.
n response o the operators nput,
and by
accessinq
rammed
data file, the
-
Select
numericalvalues or usewithin machining
calculations
-
Performcalculationso
optimize
machiningconditions
-
Identiff
standard
ools
and
coordinates
-
Calculate
utter
paths
and
coordinates
- Generate he oart Drosram o machine he comoonent
A typical
dialogue from
the
machinewould be as ollows
for the operator o identify such
things as :
-
Material to be cut
-
Surface oughnessolerance
-
Machined shape equired
-
Sizeof the
raw
material
blank
-
Machining allowances,
ut
directions
-
Tools
and
ool
detail
etc.
The operatormay then examine and
prove
the
program
via
computer
graphics
simulation
on
the
consoleVDU. After this, the program s storedor punchedon tape. Although there is some
sacrifice
in machine utilization, actual
programming time is minimal and much
tedious
production
engineeringwork is eliminated.
2) Direct Numerical Control : The
process
of transferring
part programs
nto
memcry
of
a
CNC
machine ool from a
host
computer
s
called
Direct
Numerical Control
or
DNC
D) PROVING PART PROGRAMS
It is
safe
practice
o check the
programmedpath for
any
interference
between he
tool
the work before using the
part program
or
production.
The
proving
part program
s done
o Visual inspection
.
Singlestepexecution
.
Dryrun
.
Graphicalsimulation.
Visual Inspection : It represents
he
method of checking
visually the
program present
n
the
memoryof the CNC machine. n
this, actual
program
s run and he
programmed
movements n
all
axesare to
be
checkedalong with ensuring he
tool offset and cutter compensationeatrrre.
This method epresentshe least orm of ver ification
and shouldnot be relied up on entirely.
DEPARTMENT OF MECHANICAL ENGINEERING,
K.S.I.T, BANGALORE-62
43
control can
and
by :
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
3/14
CAD/CAM
LABORATORY
MEL58
Single
Step
Execution
: Before
auto-running
he
part
program
t
should
be
executed
n
a
step
mode
.e
block
by block.
During
this
execution,
pindle
speed
and
feed
rate
override
acilities
are to
be
used
so that
axes
movement
can
be
easily
monitored.
This
operation
may
be
canied
out
with
or
without
mounting
the
component
on the machine.
Dry
run
: A
dry
run
consists
of running
the
part
program
in auto-mode.
During
this,
the
component
s not installedon the machine ableand the cutting is done n air. The purposeof
this run
is
to
verifu
the programmed
path
of the tool
under
continuous
operation
and
to
check
whether
adequate
clearance
exist
between
he
clamping
arrangement
and
other projections
within
the
set
up. Feed
ate
override
acilities
are used
o slow
down
the
speed
of
execution
of
the
program.
Graphical
simulation
: A
graphical
simulation
package
emulates
he
machine
ool
and,
using
computer
graphics,
plots
out
the
machine
movements
on a
VDU
screen.
Machine
,''ou.*.ni
often
takes
the
form
a cutting
tool
shape
moving
around
the
screen
according
to
the
programmed
movements.
When
the
tool
shapepasses
over
a
shaded
representation
f
the
component,
t
erases
hat
part
of the
component.
The
resulting
shape,
est
after
the
execution
representshe shapeof the finishedcomponent.Any grossdeviations rom the intended ool
path
can
be
observed
nd
any potential
nterferences
an
be highlighted.
PART
PROGRAMMING
GBOMETRY
A.
COORDINATE
SYSTBM
FOR
A
CNC LATHE.
Machining
of
a
workpiece
by
an NC program
equires
a
coordinate
ystem
o
be applied
o
the
machine
ool- As
all
machine
ools
have
more
han
one slide,
t
is important
hat
each
slide
is identified
ndividually.
There
are
two planes
n which
movements
an
akeplace
.
Longitudinal.
o
Transverse.
Eachplane
s
assigned
letterand s referred o asan axis.
o
Axis
X
.
Axis
Z
The
two
axis
are dentified
by
upper
caseX,Z
and he
direction
of movement
along
each
axis
(+)
or
(-).
The
Z axis
s always
parallel
o
the
main
spindle
of
the machine.
The
X
axis
s
alwaysparallel
o the
work
holding
surface,
nd alwiys
at right
angles
o the
Z
axis.
The
coordinate
ystem
or
tuming
operations
s
shown
n figure
below
:
DEPARTMENTOF'MECHANICAL ENGINBERING,K.S.I.T, BANGALORE-62
44
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
4/14
CAD/CAM
LABORATORY
MEL58
+
I
F i o 1 , C O B R D I N A T E Y S T E M
F O R
T U R N I N GO P E R A T I O N S
B. ZERO POINTS AND REFERENCE POINTS
All
CNC
machine tool
traversesare controlled
by coordinating systems.
Their accurate
positionwithin the
machine ool is
established y
"ZERO
POINTS".
MACHINE
ZERO
POINT
(M)
: is specifiedby
the manufacturer f
the machine.This is the
zero
point
for the
coordinate systems
and reference
points
in
the machine.
On
turning lathes,
the machine
zero
point
is
generally
at the center of
the spindle
nose ace. The main spindle axis
(center
ine) represents
he Z axis, the
face
determines
he
X axis.
The
directions
of the
positive
X and
Z
axes
point
toward
the working areaas
shown n
figure below:
WORKPIECE
ZERO POINT
(W)
: This
point
determines he
workpiece
coordinatesystem
in relation to the machine
zero
point.
The workpiece
zerc
pint
is
chosenby the
programmer
and
input into the CNC
systemwhen sett ing up
the machine.
The
position
of the
workpiece
zero
point
can be freely chosenby
the
programmerwithin the workpiece
envelopeof the machine. t
DEPARTMENTOF MECIIANICAL
ENGINEERING,K.S.I.T, BANGALORE-62
45
NE ZERtr PI INT
W RKP] I C f ZERD PNINT
RfF fRfNCE
PI INT
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
5/14
CAD/CAM
LABORATORY
MEL58
is however
advisable
o
place
the
workpiece
zero point
in
such
a
manner
hat
the
dimensions
n
the
workpiece
drawing
can
be
conveniently
coni'erted
into
coordinate
values
and
orientation
when
clamping
1
chucking,
setting
up
and
checking,
the
traverse
measuring
system
can
be
effected
easily.
For
turned parts,
the
workpiece
zero
point
should
be
placed
along
the
spindle
axis
(center
ine),
in
line
with
the
right
iand
or left
hand
encl
ace
of the
finished
contour
as shown
in figure.Occasionallyheworkpiecezeropoint is also called he "programzero point.',
'
REFERNCE
POINT (
R)
: This point
serves
or
calibrating
and
for
controllingthe
measuring
system
of the
slides
and
tool
traverses.
he position
of theieference
point
as
,ho*.,
in
figur
below
is
accurately
predetermined
n
every
traverse
axis
by
the
trip
dogs
and
limit
switches.
Therefore,
he
reference
point
coordinates
lways
have the
same precisely
known
numerical
value
in
relation
to
the
machine
zero
point.
After
initiating
the
control
.yrt.-,
the
reference
point
must
always
be approached
rom
all
axes
to calibrate
he
traverse
measuring
ystem.
f
current
slide
and ool position
data
should
be
lost
in
the
control
system
as
for."urr1pt.,
through
an
electrical
ailure,
he
machine
must
again
be
positioned
o
the reference
oint
to
re-establish
the
proper
positioning
values.
C. NC- RELATED DIMENSIONING
Dimensional
nformation
in
a
workpiece
drawing
can
be
stated
n
two
ways
:
Flg
A.
Absotu te
Dlnenslons
o
e o
o
50
o
3 0
o
- 2 n
- 7 0
Incremento. (
d lnens lons
F IE
E.
l nc r ^emen ta l
I J l r nens lons
Inc remen ta t
Coo rd lna tes
l.Absolute
Dimension
System:
Data
in
absolute
dimension
system
always
refer
to
a fixed
reference
oint
in
the
drawing
as
shown
in
figure
A above.
This point
has
the
function
of
a
coordinate
ero point
as n
figure
B.
The
dimension
ines
run parallel
o
the
coordinate
xes
and
always
start
at
the
reference
point.
Absolute
dimensions
are
also
called
as
,.Reference
dimensions".
2.
Incremental
Dimension
System:
When
using
incremental
dimension
system,
every
measurement
efers
to
a
previously
dimensioned
position
as
shown
in
figure
A
below.
P1
P 2
P 3
F 4
P 5
F6
P7
PE
P 9
DEPARTMENTOF MECHANICAL ENGINEERING,K.S.I.T, BANGALORE-62
46
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
6/14
CAD/CAM LABORATORY
MBL58
Incremental dimensions are distance
between adjacent
points.
These distances
are converted
into incremental oordinates
y accepting he
last
dimension
point
as the coordinate
origin for
the
new
point.
This may be compared o
a small
coordinatesystem, .e.
shifted consequently
frorn
point
to
point
as shown in figurer
B. Incremental
dimensions
are also frequently
called
"Relative
dimensions"
or
"Chain
dimensions".
NC PROGRAMBUILD UP
In an NC
program
he machining
steps
Operations)
or
producing
a
part
on
the machine
tool are aid down in
a form that the control
system an
understand.
program
s
composed
f
severalblocks. A block is a collection
of NC words.
An
NC word is a collection
of
address
letterand
f numbers.Table
shows
he
address
ette
s e
oI num
e rS :
Address
Characters
Character
Meaning
A
Rotationabout.
X-axrs
B
Rotation bout,Y-axrs
C
Rotation about, Z-axrs
D&E
Rotationaboutadditional xis
F
Feed
G
Preparatory
unction,
dentifuine
he action o
be
executed
I
Interpolation
parameter
Thread
pitch parallel
o X-axis.
J
Thread
pitch parallel
o Y-axis
K
Thread
pitch parallel
o
Y-axis
M
Auxiliarv function
N Block Number
P,Q,R
Threadmovement
parallel
o
X,Y,Z
axis respectively.
P
&
Q
are also usedas
parameters
n
cycles.
S
Spindlespeed
T
Tool
U.V.W
Secondmovement
parallel
o X,Y,Z axis respectively
X
Movement n X-axis
Y
Movement n
Y-axis
Z
Movement n Z-axis
All the NC words
may not be used
on
every
CNC machine.Using these
words
as an
assembleds ollows:
xample, he com tion
of
a block is
PART PROGRAMFORMATS
The order n which these
words appear n a block of instructions s called
Basically
hereare wo types
of
format:
.
Fixed Block Format
-Fixed
sequential ormat
-Tab
sequential
ormat
.
Word AddressFormat
the
format.
DEPARTMENTOF MECIIANICAL ENGINEERING.K.S.I.T. BANGALORE-62
47
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
7/14
CAD/CAM
LABORATORY
MEL58
I. FIXED BLOCK
FORMAT
:
a)Fixed
Sequential Format
: Every instruction
containsall
the words
in the
same
sequence
irrespective
of the
words
being
the
same as in the
previous
blocks.
Hence
the identifuing
address etter
need
not be
provided.
For
example,
f
some coordinate
values
remain
constant
from
one block
to next
block these
valueshave
o be specified n
the next
block
also. The
data
must
be
input
in a
specified
sequence
nd characterswithin
each word
must
be of the
same
length.
'
Example
N0l0
G00X10 Z0 F60
5800EOB
N020cOl
x20 20F60
s800EoB
b)Tab Sequential
Format
: The words
n each nstruction
block are
always
provided
n
the
same
sequence
but
each word
is
preceded
by the TAB
character.
f instructions
remain
unchangedn
succeeding
locks,
he instructions
eednot
be repeated
ut TAB
character
must
be
punched.
Here also,
he identifuing
etteraddress
eednot be
em
2.
WORD
ADDRESS
FORMAT:
Each word
is
preceded
nd dentified
by its
letter
address.
This
format
enables nstructions
which
remain unchanged
rom
the
preceding
block,
to be
omitted from succeedingblocks. This system speedsprogramming,
and tape
lengths
are
considerably
educed.
This
is the format
adoptedby most
CNC machine
control
units.
Detailed
format
classification
s
provided
by the
control
systemmanufacturer.
FANUC
TURNING
PROGRAMMING
MISCELLANEOUS
FUNCTION
(M
Codes)
M
Codesare nstructions
describing
machine unctions
such as
calling the
tool,
spindle
rotation,
coolant
on,
door cl
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
8/14
CAD/CAM LABORATORY
MEL58
M00 PROGRAM
STOP
:
By
inserting
M00 in a
program,
he cutting
cycle
is
stopped
after
the
block containing
M00 code.
This
faciliW s useful f an
nspection
check s
necessary
uring
an operation.
The cycle
is then continued
by a cycle start.
M01 OPTIONAL
STOP : Cycle
operation is
stopped after
a block
containing
MOl
is
executed.This
code is
only effective rvhen
he optional
stop switch
on the
machine
control
panelhasbeenpressed.
M02 PROGRAM
BND
: This code
s insertedat
the end
of the
program,
when
encountered
the cycle will end.
To
produce
another,
he
systemmust be reset.
M03 SPINDLE
FORWARD
: Starts
the spindle
spinning forward,
clockwise
or
negative
direction
at the last
specified
spindle ate.
M04
SPINDLE
REVERSE
: Starts
he spindlespinning
everse,
ounter
clockwise
or
positive
directionat the
last
specifiedspindle
ate.
M05 STOP SPINDLE : Stops hespindlewithout changing he spindlespeed.
M06 TOOL
CHANGE
: The M06
in conjunction
with
"T"
word is
used
o call up
the
required
tool on an automatic
ndexing
turret
machine,
and to activate
ts tool
offsets.
The left
most
digit
of the
"T"
ignoring zeros,
Selects he new
tool. Tool changes
re normally performed
with the
tool
post
at a safe
position
away from the
workpiece,
so the
code G28
REFERENCE
POINT
RETURN
would
be used n
the block
prior
to M06.
M08 COOLANT
ON : Turns he
coolant
on.
M09
COOLANT
OFF
: Turns he
coolant
off.
MlO
CHUCK OPEN
:
Opens
pneumatic
or similar
automaticchuck
to allow
for bar
feed.
Mll CHUCK
CLOSE
: Closes
hechuck.
Ml3
SPINDLE FORWARD,
COOLANT
ON : Sets
spindle rotation
forward
and
sets
he
coolant
on, both are
performed
by
singlecode.
M14
SPINDLE
RBVERSE,
COOLANT
ON
:
Sets he
spindle rotation
n reverse
direction
andsets
he coolant
on.
M30 PROGRAM END : Stops the spindle, urns the coolant off, terminatesand resets he
CNC
program.
M38
DOOR
OPEN :
Opens he door, waiting
until
the door is
open.
M39 DOOR
CLOSE :
Cioses he
door, waiting
until the door
is closed.
DEPARTMENTOF
MECHANICAL
ENGINEERING,
K.S.I.T.
BANGALORE-62
49
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
9/14
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
10/14
CAD/CAM
LABORATORY
MEL58
GOl
LINEAR
MOTION
Description
Illustration
G01 traverses
he
tool
along
a linear
path
o
the
given
target point
rvith
the feed
rate
input
as
a
supplementary
function.
The
feed rate determines he speedwith which
the
workpiece
s
machined.
The
choice
of
feed rate
depends
on
the
tool,
the material
being machined,
he
required
surface
inish
and
the drive
rating
and rigidity
of
the
machine
ool.
When
giving
the instructions
G0l,
the
coordinates
f the
destination
point
can
be
expressed
using
either
absolute
or
incremental
imensions.
Example
GOl
X30 Zl0
F100
51000
TargetpointFee4 Speed
GO4DWELL
Description
Illustration
A
G04 causes
the
program
to
wait
for
a specified
amount
of time.
The
time
can
be specified
in
seconds
with the "X"
or
"IJ" prefixes
or
in
milliseconds
with
the
"P" prefix.
A G04
code
can
be inserted
between
he
two
statements
o make
a
sharp
corner.
G04
G04
G04
x1.5
u l .5
Pls00
G20 INCH DATA INPUT : A G20causesositiono beas being n imperialunits.
input
values
re n
inches.
This
can
only
be
at the start
of the
main
program.
G21 METRIC
DATA
INPUT
:
A G21
causes
ositions
o
be interpreted
s
being
n
units.
All
the nput
values
re n
mm.This
can
only beat the
start
of the
main
program.
G28
REFERENCE
POINT
RETURN
All the
_
metric
DEPARTMENTOF MECHANICAL
ENGINEERJNG,
K.S.I.T,
BANGALORE.62
5I
Description
Illustration
A
G28 causes
a fast
traverse
to the
specified
position
and hen
to the
machine
datum.
G28X35
Z5
G28U0
W0
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
11/14
CAD/CAM
LABORATORY
MEL58
G4t,C42
TOOL
NOSE
RADIUS
COMPENSATION
GsO
COORDINATE
SETTING
Descrintion
onModernCNCmachines,specialcalculationfu"ctionso.cutG@
codes
re
provided
o
allow
a
user
o
utilizepartprofile
coorCinates
btainable
iom
the
part
drawing
o
program
a contouring
motion.
These
are
he
G41
and
G42
codes
or
tool
radius
compensation
on
the
left
and
right
hand
sides
of a profile.
A left
or
right
compensations basedon the fact that he tool is on left or right handsidewhenone goes
along
he part
profile
in
the
direction
specified
by the
contouring
motion
statements
n
the
am.
A
G40
code
s
provided
to
cancel
he
cutter
radius
com
G50 enables
ool
nose
adius
co*pensat
uses.
coordinate
setting
block
has "x","2","u",
or "w"
upon
it.
A maximum
spindle
block
does
not
have
all
these.
n
The cutting speedduring turning is the
t;
speed
s
a rotating
work
represents
heperipheral
ath
n
a
given
unit
time
as
shown
n
figure'
The
peripheral
speed
or cutting
speed
s
thus
the
fully
stretched
chip
length
produced
n
one
time.
The
cutting
speeds
ary
in
direct
relation
o
the
diameters,
ven
f
the
number
of revolutions
per
minute
s the
same
n all
cases.
The
correct
selection
of the
cutting
speed
or
turning
s
very important,
Cutting
speed
oo
low
: Time
loss
and
ow
surface
inish.
With
increasing
utting
speed
the
surface
peed
s
improved.
Cutting
speed
oo
hiqh
:
Hish
tool
wear.
G96
CONSTANT
SURFACE
SPEED
G98
FEED
PER
MINUTE
:
Description
Illustration
This
command
coupled
with
the
F
word
is
used
o
speci$,
feed
rate per
minute.
This
can
be n
either
mm/min
or inch/min.
his
is
the
default.
F=nisp lncement
o{ong
the
Z
qxis
per
minu te
DEPARTMENTOF MECHANICAL ENGINEERING,K.S.I.T,
BANGALORE-62
52
NORMAL SPINDLESPEED
G97
cancels
constant
surface
speed.
The
spind
value
s reached.
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
12/14
CAD/CAM LABORATORY
MEL58
G99FEED
PER REVOLUTION
Descrintion
This command
coupled
with the F word
is
used
to
speciff a feed rate
per
revolution. This
can
be in mrn/rev
or inch/rev. the feed
rates
available n
the machine
simulation are
0.01-
200 mm/min. Recommended feed rates are
published
by tool and
cutter manufacturers,
along with recommended
utting
speeds. f the
feed rate is expressed
as mm/rev,
a
simple
calculation an
be used
o convert o mm/min.
FEED, mm/min:FEED(mm/rev)
X
spindle
speed(r.p.m)
PROGRAM
BUILD.UP
FOR
CNC
LATHE
(FANUC)
CNC
program
can
be
divided
nto
3
parts,
Start-up,Body and End of the program.
START-UP OF
CNC PROGRAM
or000
IBTLLET
20 260
G2r/G20G98/G99 40
G50S1800
G28U0 W0
M06
T0101
M03/M04
1000
G00x2rr
EXPLANATION
o1000
While writing
a
program
on FANUC controller
irst line
has
o be
started
with letter
'O'
followed by four digit number which
specifies he
program
name.
IBTLLET
X20 260
This directive
is
used only
for simulation
purpose.
t defines
he
work
piece
dimensions s
60
mm long
and 20 mm in
diameter.
G2uG20G98/G99
G40
G2l
-
code
specifies hat
program
s
done n metric units.
G20
-
code
specifies
hat
program
s done n imperial
units
G98
-
gives
he
unit of feed n mm/minute.
G99
-
gives
he unit
of
feed
n mm/revolution.
G40
-
Compensation
ancel.
G50S1800
Clamps he
spindle
peed
t 1800 pm.
G28
U0 W0
Makes
he tool to
go
to
home
position.
U & W are
Secondary
movements boutX and Z axis.
M06
T0101
Tool change
The first
two digits
specify he tool
position
n
the turret and
ast
two
digits denotes
he tool
offset
number.
M03/fi404
1000
G00
2r z1
M03- makes
he
spindle otate n clock'wise
irection.
M04
-
makes he
spindle otate n counter-clockwise
irection.
S1000-Spindle
otates
t 1000 pm.
G00
gives
rapid
position
of the tool
to a
point
X2l Zl which
is
iust
above he
billet. This
point
is cailedas
he tool entrv
ooint.
DEPARTMENTOF MECHANICAL ENGINEERING.
K.S.I.T. BANGALORE-62
53
Illustration
F=IJlspto.cer'1ent
,[ong
the
Z oxls
per^ nevotr- l t lon of
the workplec
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
13/14
CAD/CAM
LABORATORY
MEL58
METAL
N
BILLET
MATERIAL
:
Aluminum
BODY
OF
THE
PROGRAM
:
This
s
dealr
operation
ise
END
OF
THE
PROGRAM
:
G28
U0
w0
M05
M02t30
in
the
succeeding
ages.
FOR
ART
SIMPLE
FACING
for
Simple
Facing
Operafion
for
the
component
hown
n
2 nrnr or fACING
t l
t l
tF-
t l
t l
DWG.NO.
Write
a
manual
part
program
figure
below.
' l
f i?
SL.NO
0peration
Simple
Faci
EXPLANA
G28
U0
W0
Makes
the
tool
to
go
to
ho
movements
bout
X
and
Z
axis.
Stopr
he
spind
M02
-
Optionu
M30
-
Program
top
and
ewind.
M0s
M02/30
OPERATIONS F'EED
mm/min
TURI\ING
0.25-0.5
THREADING
PLANNING
ND
Opnnnrtor,ls
sunnr
BILLET
SIZE
z
22
x
60
MATERIAL:
Aluminum
PROGRAM
NO
: t00l
DWGNO:1
SDJCR
t2t2llll
DEPARTMENTOF MECHANICAL ENGINEERING,
K.S.I.T,
BANGALORE-62
54
7/25/2019 CNC Turning Programming Fundementalsls, Step by Step
14/14
CAD/CAM LABORATORY
MEL58
TOOL
OFFSETSHEET
Tool offsetNo.
Compensations,
mm
Toolnose
Radius. mm
Standard
Tool
Number
X
Z R
I
0.4
{
(Drawing
No .1
(CNC
program
or
Simple Facing
(Material
o
be
removed
by facing :2mm
o l00 l
ProgramNumber 1001
[BILLET
X22
260
DefiningBillet sizedia : 22length
60 mm
G2l
G98
G28U0
W0
M06T0303
M03S1200
G00 22zr
GOl
z-0.5F4s
GOI
XO
GOIZI
G00 22
G}l z-r F45
GOI
XO
GOI
ZT
G00 22
G}r
-r.5
GOIXO
GOI
ZI
G00
22
G0rz-2
GOIXO
GOI
ZI
G00x22
G28U0 W0
M05
M30
Initial settings
Going
o
home
position
Selecting
Tool No.
3
with
offset No. 3
Setting pindle peed
t
1200 pm
Tool moving to tool entry
point
X22 Zl at
rapid raverse.
Giving depth
of cut
of 0.5 mm at
a
feed
rate
of
45 mm/min.
Moving the tool to spindle
center ine
Retractback
the
tool
Moving the tool to X22
Giving
the seconddepth of cut.
Retractback
he
tool
Going
o home
position
Stop
he
spindle
Proqram
top
and rewind.
DEPARTMENT
OF
MECHANICAL
ENGINEERING,
K.S.I.T.
BANGALORE-62