Sie sind auf Seite 1von 150

|  





 
| 
‡ Fast change in product technology requires
that the manufacturing resources be more
flexible and adaptable quick changeover.
‡ Productivity improvement without hampering
quality.
ð  
‡ Higher flexibility.
‡ Increase in productivity.
‡ Consistency in quality.
‡ Higher accuracy.
‡ Reliability in operation.
‡ Reduction in nonproductive time.
‡ Reduction in manpower.
‡ Shorter cycle time.
‡ Reduction in material handling.
ð  
‡ Reduced lead time.
‡ Reduction in material handling.
‡ Lesser floor space.
‡ More operational safety.
Ä 
  
  
 
‡ Vertical machining centre with three axes
for multiple machining operation with
manual tool change.
‡ Vertical machining centre with auto tool
change.
‡ Horizontal machining centre with auto tool
changer.
‡ Addition of 4th axis (Rotary table) making
it possible to work on four sides.
Ä 
  
  
 
‡ Addition of automatic twin pallet changer
on VTC and HMC to eliminate machine
idle time during component loading and
unloading.
‡ Introduction of feature like tool life
monitoring, sister tool replacement,tool
breakage detection,etc.
‡ Provision of spindle mounted probe for
measuring critical dimensions before taking
final cuts.
Ä 
  
  
 
‡ Increased tool magazines capacity (from 20
tools to 90 tools) to accommodate no. of
operations.
‡ Provision of direct numerical control feature
to upload and download part program.
‡ Faster tool change time.(1.5 to 6sec.)
‡ Higher spindle speeds (10,000-20,000rpm)
for very high material removal rate in soft
materials like aluminum.
Ä 
  
  
 
‡ Higher rapid travel rates to minimize
positioning time.(60,000 mm/min)
‡ Development of universal machining
centres that have vertical and horizontal
spindles which can be rotated to obtain a
vertical or horizontal configuration. This
can machine all five sides of component in
single setup.
! Ä
‡ FMS is a manufacturing system which
consists of one or more CNC machines
connected by an automated material
handling system and all are operated under
the control of central computer along with
auxiliary subsystems like component
load/unload station,automatic tool handling
system ,tool presetter,component measuring
equipment ,wash station etc..
! Ä

! Ä

   
 
  

     

     

 Ä 

    
   
  
    Ä 
  
          
 
 
MND
INTRODUCTION
COMPONMNTS OF NC SYSTMMS
CLASSIFICATION OF NC MACHINMS
CONSRUCTIONAL DMTAILS
Definition:-

Numerical control

A system in which the actions are controlled by


direct insertion of numerical data at some point.
The system must automatically interpret at least
some portion of this data.
meneral Classification :-

1) N.C. Machines

2) C.N.C. Machines

3) D.N.C. Machines
N.C. Machines
It gives position of the workpiece relative to
cutting tool.
The instructions to the NC Machines are fed
through an external medium ie through paper
tape or magnetic tape.
For minor change in the design new tape has to
be prepared for new program.
  
The part program can be input through controller
unit.
Part program once inserted can be used again.
Part program can be edited & optimised at
machine tool itself
The input information can be reduced to great
extent with the special use of sub program.
The part program can be proved on control itself
before actual running of the machine.
Various cutting tools can be used`
:  
It is a manufacturing system in which large no.
of machines are controlled by computer
through direct connection.
All the machines are linked to main frame
computer which sends the information to
individual machine as & when required.
  
  

 

‡ 1) Program of instruction
‡ 2) Machine control unit
‡ 3) Machine tool
Program of instruction:- It is a detailed step by
step set of directions which tell machine tool
what to do & in what sequence.

Machine control Unit:- It is the unit which


stores, converts the logical data inside the system

Machine tool:- It is the unit which actually does


the movements which are fed through program`
Classification of Numerical control system:-
Based on Feedback control
1) Open loop control system:- Machine tool in
which there is no provision to compare the
actual provision of the cutting tool or work
piece with the input command or value.

No feedback is given for the actual


displacement of machine slide`
2)Closed loop control system:- In a closed loop
control system the actual output from the
system i.e. actual displacement of the machine
slide is compared with the input signal.
It consists of two types of feedbacks
i) Velocity feedback:-measures & monitors
speed of motor
ii) positional feedback:- measures &
monitors position of machine slide.
          
 
 

1) Point to point control system:- There is no
machining operation carried out when tool
travels from one program point to other
program point.
2) Straight line control system:- It is an
extension of point to point control system
where machining operation can be done along a
straight line.
3) Continuous path system:- It generates a
continuously controlled motion of the tool &
work piece along different coordinate axis.
    
    
 

1) Absolute coordinate system:- In this system


coordinates are always referred with the
reference to the same datum.

2) Incremental coordinate system:-In this system


coordinates are calculated with reference to
previous point.
 
      

 

1) Machine Mlements
2) muide ways
3) Feed drives
4) Spindle & spindle bearings
5) Measuring system
Machine structure :- It is the load carrying &
supporting member of the machine tool.

All the motors, drive mechanism & other


functional assemblies are aligned & rigidly fixed
to the machine structure.

The machine element is designed to take static


load, dynamic load, thermal load`
m    :-It controls the direction or line of action
of the carriage or table on which a tool or a work is
held.

It absorbs all the static & dynamic forces.

The quality of the work produced depends not only on


the accuracy of the relative movement of the tool w.r.t.
work piece but also on the geometric accuracies &
kinematic accuracies of the guide ways.
m   
 :-

     :- These guide ways operate
under the condition of sliding friction. They do not
have constant coefficient of friction, it varies with
the sliding velocities.
It is having good damping capacity.
  
  
      ! These
guide ways use rolling element in between moving
& stationary element of the machine.
It is having good load carrying capacity.
Other types of guide ways
I) Hydrostatic guide ways
II) Aerostatic guide ways
Feed Drives:- It gives motion to the slide as per
motion commands.

The feed drive consists of


a) Servomotor :- It provides excellent speed
regulation, high torque & high efficiency.

b) Mechanical Transmission system:- It is required


to convert rotary motion to linear motion
(Re- circulating ball screw- nut system or rack &
pinion system) &
To transmit torque (mear box or timing belt)
Spindle & Spindle bearings :- It takes high torsional
load, radial deflections, thrust force.
Various types of spindle bearings are
a) Hydrodynamic bearings:-Hydrodynamic bearings
are journal bearings with thin film of oil between the
spindle & journal. The pressure is developed by
rotation of the spindle.
b) Hydrostatic bearings:- The spindle is supported in
the bearings by relatively thick film of oil supplied
under pressure.
c) Antifriction bearings:- These are suitable for high
speeds & high loads. Common example is Ball
bearings & Taper roller bearings`
 
"  :-Measuring system is employed
on each controlled axis to monitor the movement &
compare the position of of the slide/ spindle with the
desired position.
Measuring system used for
a) Monitoring the position of the slide on the slide way
b) Measuring the speed of the spindle.

It is done with the help of Rotary Mncoder OR


with the linear scale.
mood Practices while operating C.N.C. machines
1) Do not use heavy depth of cut
2) Use only specified taper tool mentioned in the
manual
3) Always take dry run for new program proving
4) Do not use feed, speed specified on the insert
5) Tool length should be entered correctly.
6) Always use single block proving for any change
in the program.
MND

‡ What is mean by CNC program ?
‡ Coordinate measuring systems.
‡ Dimensioning system.
‡ CNC programming formats.
‡ m-CODMS (Preparatory functions.)
‡ M-CODMS (Miscellaneous Functions)
‡ Canned Cycles.
‡ Subprogram/Subroutine.
‡ Preparation required before doing program.
‡ Mxample of one program.
‡ Precautionary measures while doing and executing
CNC Program.
  

‡ Set of instructions fed to the machine


control in the form of numerical codes
written in particular sequence.
M 
  

#$%

 &&
N20 T1 M6 ;
N30 m0 m90 m54 X200. Y150. ;
N40 m0 m43 H01 Z100. ;
N50 m98 m81 Z-25 R5 F40 ;
N60 m80 m91m28 X0. Y0. Z0. ;
Ä 
‡ It is used in preparation of part program for
introducing the position of machining.

‡ It consists of 3 axis ( X,Y&Z)

‡ There are two types of system of


coordinates.
± M/C coordinate system (m53).
± Workpiece coordinate system (m54-m59).
Ä 
 

‡ M/c actually moves in its own system of


coordinates called µ$':  (
")" *.and reference point w.r.t.which it
moves called as µ$+(,'*
‡ menerally m/c coordinate system has
machining zone on -ve direction from m/c
zero point.
Ä 
 
Ä 
 
Ä 
| 

‡ To make machining easy temporary


reference point is taken in m/c coordinate
system this point is called as µWORK
ZMRO¶.
‡ Distances of this temp. point in X,Y&Z
direction from m/c zero called as µZMRO
OFFSMT¶
Ä 
| 

‡ menerally this point should be such that all


dimensions on part drawing would be from
that point.
‡ For e.g. Locating pin center.
Ä 
| 
Ä   

ð

   
‡ It is the most common method of dimensioning
our drawings used for part production on CNC
machines.
‡ In this system all dimensions are taken from a
single point called as µDATUM POINT¶ or
µORImIN¶.
‡ This is denoted by preparatory function m90.
Ä   

ð

   
: m("
‡ If hole no. 2 is put in
wrong location hole no.3
 would not be affected.
Ö 

 



‡ menerally our drawings
Ö 

Ö 
are dimensioned in
absolute method so it
 

Ö 

becomes very to find out


the co-
co-ordinates .
Ä   

 
   

‡ It is very rarely used.


‡ menerally it is used for machining of
complicated pockets.
‡ In this system measurement is from hole to hole
‡ This is denoted by preparatory function m90.
Ä   
 
   
‡ If hole no. 2 is put in
wrong location next all
holes will be incorrectly
positioned.
‡ For doing programming in
Ö  
incremental mode
Ö  


tremendous calculations
Ö 

Ö  Ö  Ö 
are required.
‡ It benefits while doing
subprograms
Ä   
M 

m#
N10 m 1 ;


N20 m90 ;
N30 m00 X100. Y100. ;
Ö 

 
N40 X150. Y100. ;

 

Ö 
N50 X150. Y150. ;
N60 X100. Y150. ;
N 0 X100. Y100. ;
N80 M30
   
‡ Format is method of writing set of instructions.
‡ N10 m01 X10. Y10. F200 S200 T01 M3 ;
SMUMNCM
NO.

PRMPARATOTY
FUNCTION

X-COORDINATM
Y COORDINATM

FMMD FUNCTION

SPMMD FUNCTION
TOOL FUNCTION
MISCLLANMOUS FUNCTION
MND OF BLOCK
     

   

             


ð!  

  

‡ Instructions are always given in same


sequence.
‡ All instructions must be given in every
block including the instructions which
remain unchanged from previous block.
‡ Address letters are not required while
writing instructions.
ð!  

  
‡ N X Y F S
‡ 001 15.00 -20.00 200 500 ;
‡ 002 5.00 -20.00 200 500 ;


ß  ß

 

ß




r
  
 

‡ This is same as that of fixed block format


only difference is that each word is
separated by TAB character.
‡ No need to repeat same instructions in
previous block.
‡ Address letters are not required.
r
  
 
!   ! Ä
! ðr" ðr ! ðr!ðr"ðr"
! !ðr#" ðr"



ß  ß

 

 ß





|   

‡ ADDRMSS : Any word from A to Z can be


used as address. For e.g. m
‡ WORD : Address followed by any no. e.g
m01
‡ BLOCK : One more or words together form
a block e.g. N001 m01 Z10.0 MOB.
‡ If word remain unchanged not necessary to
repeat in next block.
|   
! " ! !!Ä""
! !#" "



ß  ß

 

 ß





! ð 
!   
 

#  $% !  $ ð $$ %##

     $

#          &

'          

( $       & )*+*,
ð *-*.**/*

*0*1

!          !

#             #

2          


               3
-

$        $*4

$& *)

           
 
‡ m-Codes are also called as ³Preparatory
functions´ as they take active part in part
program execution.
‡ They are always programmed at the start of
block.
‡ They decides type of machine movement
,type of interpolation,type of dimension etc.
  
 

 
r
  

 
'|     
  
      
r
   '     
 
     
 

     
  
(     

‡ Position data command programmed after


m00 is traversed at maximum possible
feedrate along a straight line set by machine
tool manufacturer.
‡ m00 can be programmed as m or m0.
‡ m00 is modal and canceled with m01 or
m02 or m03.
‡ On graphic screen m00 appears as a dotted
line.
(     
‡ Mxample :

ß  !"!
#$  %


ß 

 




    
 
‡ Position data command programmed after m01
is executed at programmed feedrate along a
straight line.
‡ Movement being made along straight line
joining start point and end point.
‡ m01 is modal and canceled with m00 , m02 or
m03.
‡ On graphic screen m01 appears as continuos
line.
    
 
‡ Mxample :
   
ß  
 

 !   !
ß
  &%
 '( )
*   

* ! 

 !



ß 







!  
   
 

‡ Position data given after m02 or m03 is


executed along a circular path at the set feed
rate.
‡ The code m02 refers to the circular
interpolation in a clockwise direction.
‡ The code m03 refers to the circular
interpolation in a Anticlockwise direction.
!  
   
 

‡ When we write code m02 ,We have to feed


information regarding
-Start point
-Mnd point
-Radius of arc or Circle center point.
M 
!     

m#
N10 m01 X40. Y40. ;
(   (   N20 m02 X80. Y80. R40 ;
(   (   m#-
N10 m01 X80. Y80. ;




N20 m03 X40. Y40. R40 ;


!   
   
 
  
   
‡ Here instead of giving radius of circle we have
to mention center point of circle in form of
parameters called I,J&K.
± Where µI¶ --- Distance between starting point of
cutter to the center of arc in µX¶ direction.
± µJ¶--- Distance between starting point of cutter to
the center of arc in µY¶ direction.
± µK¶ --- Distance between starting point of cutter
to the center of arc in µZ¶ direction.
‡ Values of I,J&K are always incremental.
M 
!   
 
    

(   m#
N10 m01 X40. Y40. ;
(  
N20 m02 X80. Y80. I40 J0 ;
  


‡ It is used to program dwell time in sec.
‡ Dwell time value is programmed by means
of letter X.
‡ For e.g. N10 m04 X2 ;
± Means spindle will take dwell of 2 sec. While
executing this line.
‡ It is blockwise active.
‡ No other function can be programmed in a
block in which m04 is programmed.
     

‡ To accommodate difference in programmed


diameter of cutter and actual diameter of
cutter ,cutter compensation concept is used.

‡ While writing part program it is necessary


to mention that whether cutter
compensation is required in left direction or
right direction.
     
‡ Following 3 m-codes are used for cutter
radius compensation.
± m Compensation applied to shift the cutter
path to left.
± m Compensation applied to shift the cutter
path to right.
± m# To cancel cutter Compensation.
‡ Direction of shift is decided by looking in
direction of cut.
     

‡ Advantages :
1.Different dia. of cutters can be used without
changing part program.

2.By using cutter radius compensation job of


programmer becomes simplified because part
program can be developed assuming zero cutter
radius and on actual dimensions of part
drawing.
     
))!

 
 
 

m 
m 
     
M 


 
Ö
Ö
Ö

Ö
#  

‡ It is used to represent inch unit system


‡ for e.g. N10 m 0 m0 X4. ;
± It indicates that X axis will move by 4´.
‡ For e.g N10 m 0 m95 F0.02 ;
± It indicates that tool will move at the feed rate
of 0.02 inch/rev
‡ This is an modal m code.
#   

‡ It is used to represent metric unit system


‡ for e.g. N10 m 1 m0 X4. ;
± It indicates that X axis will move by 4mm.
‡ For e.g N10 m 1 m95 F0.02 ;
± It indicates that tool will move at the feed rate
of 0.02 mm/rev
‡ This is an modal m code.
)  

‡ When code m94 is programmed CNC


assumes that feed rate value entered under
address F is in mm/min or inch/min.
‡ for e.g. N10 m94 F100 ;
± It means that tool moves at the rate of
100mm/min or 100 inch/min depends upon
m 0/m 1.
‡ This is an modal m code.
"  

‡ When code m95 is programmed CNC


assumes that feed rate value entered under
address F is in mm/rev or inch/rev.
‡ for e.g. N10 m94 F0.2 ;
± It means that tool moves at the rate of 0.2
mm/rev or inch/rev depends upon m 0/m 1.
‡ This is an modal m code.
MISCLLANMOUS FUNCTIONS
(M CODMS) :

‡ Miscellaneous function word is used to


specify certain miscellaneous functions
which do not relate to dimensional
movements of the machine.
‡ For e.g. Spindle start , Spindle stop etc.
 
 :

‡ Canned cycle or fixed cycle may be defined


as a set of instructions inbuilt or stored in
the system memory to perform fixed
sequence of operations.

‡ Canned cycle can be brought into action


with single command and as such reduce
programming time and efforts.
 
 :

‡ Canned cycles are used for repetitive and


commonly used machining operations .

‡ Canned cycles are stored under m code address.

‡ m81 to m89 are reserved for canned cycles and


m80 for cancellation of canned cycle.
 
   
 
Drilling cycle (m81) :

,, ,

ð55MM5

 (  (  *(*5MM5





 *+*  *+*
Format for Drilling cycle (m81) :
! ',--+-(-!-

! --.
    
! +-  
 
 +/ 
! (-    0(1

 +/ 
! !-   
Operation sequence for Drilling
cycle (m81) :

! 
      
! (           0(1
!

        0(1  0+1


! 
           
 0(1     


    
,
:


,'
! þ 

þ
 r    , 


   :M   

! Ä  0(1 

     

   
     

       

 
   :ð5 
:     
    ,  , 

 
 
,!'
,!6, ,!66

23454

6  62 62**454





 
6 * * 62* *
Format for Counter boring cycle (m82) :
! ',!--+-(--!-

! --.
    
! +-  
 
 +/ 
! (-  (  

 +/ 
! -: 

  
 

! !-   
Operation sequence for counter
boring cycle (m82) :

! 
      
! (           0(1
! :

        0(1  0+1


! 
  
 
     
   01
! 
           
 0(1     


    
,
 
 
,!'

‡ .',  .'  "


1.Before specifying m82 use a miscellaneous function
(M CODM) to rotate the spindle.
2.Specify µR¶ in block that perform drilling .If it is
specified in block that does not performed drilling it
can be stored as MODAL data.
3.Do not specify m codes from m00 To m03 together
with m82 otherwise m82 is canceled.
 


,7'

,76, ,766



 


 



 
7 7
 
Format for Peck drilling cycle (m83) :
! ',7--+-8-(-!-

! --.
    
! +-  
 
 +/ 
! (-    0(1

 +/ 
! 8-M  
ð
  

! !-   
Operation sequence for peck drilling
cycle (m83) :
! 
      
! (           0(1
! :

     (    8


! 
       (   
! 
  
     8

 

   
‡ Again drilling is performed up to depth .
‡ Process is repeated still it achieves total drilling
depth..
 


,7'

‡ .',  .'  "


1.Before specifying m83 use a miscellaneous function
(M CODM) to rotate the spindle.
2.Specify µR¶ in block that perform drilling .If it is
specified in block that does not performed drilling it
can be stored as MODAL data.
3.Do not specify m codes from m00 To m03 together
with m83 otherwise m83 is canceled.
 
,)'
,)6, ,)66

 3454





         * *454




 

  
  * *   * *
Format for tapping cycle (m84) :
! ',)--+--(-!-

! --.
    
! +-  
 
 +/ 
! (-  (  

 +/ 
! -: 

 
! !-   
Operation sequence for tapping
cycle (m84) :
! 
      
! (           0(1
!          0(1  0+1
|  
! 
  
 
     
   01
! 
        |  
   (
! 
           



   , 
 
,)'
‡ .',  .'  "
1.Before specifying m84 use a miscellaneous function
(M CODM) to rotate the spindle.
2.Specify µR¶ in block that perform drilling .If it is
specified in block that does not performed drilling it
can be stored as MODAL data.
3.Do not specify m codes from m00 To m03 together
with m84 otherwise m84 is canceled.
r 
,"'

,"6, ,"66

23454

 2  2  2**454





 2* *  2* *
Format for boring cycle (m85) :
! ',"--+-(-!-

! --.
    
! +-  
 
 +/ 
! (-    0(1

 +/ 
! !-   
Operation sequence for boring cycle
(m85) :

! 
      
! (           0(1
! r         0(1  0+1
! 
          (
! 
           



   ,
r 
,"'

‡ .',  .'  "


1.Before specifying m85 use a miscellaneous function
(M CODM) to rotate the spindle.
2.Specify µR¶ in block that perform drilling .If it is
specified in block that does not performed drilling it
can be stored as MODAL data.
3.Do not specify m codes from m00 To m03 together
with m85 otherwise m85 is canceled.
r 
,9'
,96, ,966

: 


23454
: 


62 62 62**454



: 
 : 

: 62* * : 62* *
Format for boring cycle (m86) :
! ',9--+-(-!-

! --.
    
! +-  
 
 +/ 
! (-    0(1

 +/ 
! !-   
Operation sequence for boring cycle
(m86) :

! 
      
! (           0(1
! r         0(1  0+1
! Ä 
  
 

! 
           
 0(1    0+1    
,
r 
,9 Õ

‡ .',  .'  "


1.Before specifying m86 use a miscellaneous function
(M CODM) to rotate the spindle.
2.Specify µR¶ in block that perform drilling .If it is
specified in block that does not performed drilling it
can be stored as MODAL data.
3.Do not specify m codes from m00 To m03 together
with m86 otherwise m86 is canceled.
r 
 
,#'
,#, ,#

 ;ÄM:
 (
 


 

Format for back boring cycle (m8 ) :
! ',#--+-8-(--!-

! --.
    
! +-  
   +/ 
! (-     +/ 
! 8-
 
! -: 

 
 

! !-   
Operation sequence for back boring cycle
(m8 ) :
! 
      
! Ä 
    

! 
       
 

 
8
! (           ( 
! ð 
      
 
 

8  
    |  
‡ Boring is performed up to point Z.
‡ At point Z spindle gets stopped and aligned.
‡ Again tool shifts opposite to tool tip by an amount equal to .
‡ Tool returned to initial level in rapid.
r 
 
,# Õ

‡ .',  .'  "


1.Before specifying m8 use a miscellaneous function
(M CODM) to rotate the spindle.
2.Specify µR¶ in block that perform drilling .If it is
specified in block that does not performed drilling it
can be stored as MODAL data.
3. Value of  should be always positive..
4.Do not specify m codes from m00 To m03 together
with m8 otherwise m8 is canceled.
r 
,,'
,,6, ,,66

: 


23454
: 


62 62 62**454

: 
 
: 
 :
: 

62* * 62* *
Format for boring cycle (m88) :
! ',,--+-(--!-

! --.
    
! +-:    ( 
 

! (-:     


  0(1


! -: 

  
 

! !-   
Operation sequence for boring cycle
(m88) :

! 
      
! (           0(1
! r         0(1  0+1
! 
  
 
     
   01
! 
          (
!          



   ,
r 
,, Õ

‡ .',  .'  "


1.Before specifying m88 use a miscellaneous function
(M CODM) to rotate the spindle.
2.Specify µR¶ in block that perform drilling .If it is
specified in block that does not performed drilling it
can be stored as MODAL data.
3.Do not specify m codes from m00 To m03 together
with m88 otherwise m88 is canceled.
r 
,'
,, ,

23454

62 62 62**454




 

62* * 62* *
Format for boring cycle (m89) :
! ',--+-(--!-

! --.
    
! +-  
 
 +/ 
! (-    0(1

 +/ 
! -: 

 
 

! !-   
Operation sequence for boring cycle
(m89) :

! 
      
! (           0(1
! r         0(1  0+1
! 
  
 
     
   01
! 
          (
! 
           
  
      ,
r 
, Õ

‡ .',  .'  "


1.Before specifying m89 use a miscellaneous function
(M CODM) to rotate the spindle.
2.Specify µR¶ in block that perform drilling .If it is
specified in block that does not performed drilling it
can be stored as MODAL data.
4.Do not specify m codes from m00 To m03 together
with m89 otherwise m89 is canceled.
ðM:5MÄ; ð(
ðM:5MÄ; ð(
m   $ %# % # $$ %#
(! %&
" #  '##(#) (!
&# " # 
      (     
       




   Ä 
   5  
  

 9   6   (   <  
 
   


:   (   :



  
:;   

(      
   

:      (     


     

:   Ä 
    


:     = 

:9   Ä 
(   = 

   
:   Ä 

 =   
 (   

  
::   :


 = 

Ä 
(  
   
:6   :

  = 

Ä 


SUBROUTINMS
‡ Also called as SUBPROmRAM.
‡ These are powerful time saving technique.
‡ Subroutines provides the capability of
programming certain fixed sequence or
frequently repeated patterns.
‡ Subroutines are in fact independent
programs with all feature of usual part
program.
‡ Subroutines are stored in memory under
separate program no.
SUBROUTINMS
‡ Whenever particular feature is required
within the program, associated subroutine is
called for execution.
‡ Subroutine may called any time and any
no.of times.
‡ After execution of subroutine the control
returns to main program .
‡ To describe and use a subroutine following
information is required in form of code and
symbol.
SUBROUTINMS
‡ For e.g.
± Start of subroutine.
± Mnd of subroutine.
± A means of calling subroutine.

± For start we will use letter µL¶ followed by any


no. for e.g. µL001¶
± For end we will use a word as µM1 ¶.
± For calling subroutine any where in main
program by giving just subroutine no. preceded
by letter µL¶.
±
M 

 
N10 m91 ;
N20 m01 Z-8. F300 ;
N30 m01 X40. ;
(  
N40 m01 Y40. ;
 (  
N50 m01 X-40. ;
 

Ö 
N60 m01 Y-40. ;


Ö 
  N 0 m00 Z8. ;
N80 m90 ;
N90 M1 ;
   
   
 
N10 m90 m 1 m94 S500 M03 ;
N20 m00 X50. Y50. ;
N30 m00 Z5 M08 ;
(   N40 L101 ;
 (   N50 m00 X120. Y120. ;
 
Ö 


N60 L101;
Ö 
 
N 0 m00 X200. Y200. ;
N80 L101 ;
N90 m00 X0. Y0. Z20. M09
N100 M30 ;
|      
‡ Study the drawing thoroughly.
‡ Identify type of material to be machined.
‡ Know the specification and functions of
machine to be used.
‡ Decide the dimension mode (mm or inches)
‡ Decide the coordinate system .
‡ Identify the plane of cutting.
‡ Know the cutting parameters for job/tool
combinations.
|      
‡ Know the federate programming.
‡ Check required toolings.
‡ Mstablish sequence of machining operations.
‡ Identify whether use of any special feature
like subroutines is required or not.
ï ï  `
'.(, '" ''/"
‡ Bore dia 60H Core Drill dia 55
B. Bar dia 59.5
B. Bar dia 60

‡ Drilling dia 10 HSS Drill dia 10

‡ Tapping M12X1. 5 HSS Drill dia 10.8


Tap M12 STD.

‡ Tapping M10X1.5 HSS Drill dia 8.5


Tap M10 STD.
ï ï  `
'##
#mm
#$%

 &&
N30 T1 M6 ;
N40 m0 m90 m54 X200. Y150. ;
N50 m0 m43 H01 Z100. ;
N60 S300 F30 M3 ;
N60 m98 m81 Z-25 R5 F40 ;
N 0 m80 m91m28 X0. Y0. Z0. ;
0#$%"   1

 
&&
N90 T2 M6 ;
N100 m0 m90 m54 X200. Y150. ;
N110 m0 m43 H02 Z100. ;
N120 S800 F80 M3;
N120 m98 m85 Z-25 R5 F40 ;
N130 m80 m91m28 X0. Y0. Z0. ;
ï ï  `
-#$% 
 2#
N140 T3 M6 ;
N150 m0 m90 m54 X200. Y150. ;
N160 m0 m43 H03 Z100. ;
N1 0 S1000 F80 M3 ;
N180 m98 m 6 Z-25 R5 0.5 F40 ;
N190 m80 m91m28 X0. Y0. Z0. ;
##$%:
  #
N210 T4 M6 ;
N220 m0 m90 m54 X100. Y255. ;
N230 m0 m43 H04 Z100. ;
N240 S400 F40 M3 ;
N250 m99 m81 Z-25 R5 F40 ;
N260 m98 X2 5. Y50. ;
N2 0 m80 m91 m28 X0. Y0. Z0. ;
ï ï  `
2#$%:
 #&

  
N2 0 T5 M6 ;
N280 m0 m90 m54 X380. Y255. ;
N290 m0 m43 H05 Z100. ;
N300 S400 40 M3 ;
N310 m98 m81 Z-25 R5 F40 ;
N320 m80 m91m28 X0. Y0. Z0. ;

-#$% 
N330 T6 M6 ;
N340 m0 m90 m94 m54 X380. Y255. ;
N350 m0 m43 H06 Z100. ;
N360 M29 S100
N3 0 m98 m84 Z-25 R5 F1 5 ;
N380 m80 m91 m28 X0. Y0. Z0. ;
ï ï  

-#$%:
 0&
#
  
N400 T M6 ;
N410 m0 m90 m54 X150. Y150. ;
N420 m0 m43 H0 Z100. ;
N430 S500 F50 M3 ;
N430 m99 m81 Z-25 R5 F40 ;
N440 X250. ;
N450 X200. Y200. ;
N460 m98 Y100. ;
N4 0 m80 m91m28 X0. Y0. Z0. ;
ï ï  

0#$% #
N490 T8 M6 ;
N500 m0 m90 m94 m54 X150. Y150. ;
N510 m0 m43 H08 Z100. ;
N520 M29 S100
N530 m99 m84 Z-25 R5 F150 ;
N540 X250. ;
N550 X200. Y200. ;
N560 m98 Y100. ;
N5 0 m80 m91 m28 X0. Y0. Z0. ;
N580 M30;
Ä

   

‡ Masily understood .
‡ Minimum air cutting.
‡ Avoid repetition of tools.
‡ Should be simple and short.
‡ Considered future tooling changes
feasibility.
‡ Should not hamper m/c tool life.
ï
   
 

 ï  `
‡ Always add point ( . ) at the end of each
coordinate value of axes.
For e.g. X200. , Y 50.
‡ While replacing any tool from m/c check
always tool offset and feed correctly.
‡ Always run first program in single block
and without component.
‡ After using canned cycle & interpolation
cycle , cancel it with respective m code like
m80 & m40 respectively.
MND

Das könnte Ihnen auch gefallen