## SEARCH PROGRAM

FOR HOLES 1 CYCLE :-

HOLES 1 ( SPCA , SPCO , STA1 , FDIS , DBH , NUM )

Where, SPCA = Abscissa of a reference point on the straight line (X-axis)
SPCO = Ordinate of this reference point (y-axis)
STA1 =  Angle to abscissa
Range : -180 < STA1<_ 180
FDIS = Distance from reference point to first hole
DBH = Distance between drilling hole
NUM = No of repeating operation

FOR CYCLE 82 :-

CYCLE82 (RTP , RFP , SDIS , DP , DPR , DTB )
Where, RTP- Retraction plane (absolute)
RFP- Reference plane (absolute)
SDIS- Safety distance
DP- Final drilling depth (absolute)
DPR- Final drilling depth related to a reference plane.
DTB- Dwell time at final

EXAMPLE :- Depth of operation is 30 mm

HARSH.MPF
N10   G90 G71 G94 F50 ;
N20   T03 D01 M06 ;
N30   S1000  M03  M08;
N40   G17 G00 X15 Y10 Z50 ;
N50   MCALL CYCLE 82 (15 , 0 , 5 , -30 , 0 , 5)
N60   HOLES 1 ( 15 , 10 , 45 , 30 , 20 , 5 )
N70   MCALL ;
N80   G00 X20 Y20 Z50 ;
N90   M05 , M09 , M30 ;

DESCRIPTION

HARSH.MPF- Name of the main program
N10- Absolute coordinate system, a metric input command, feed rate per minute 50;
N20- tool change command select tool no. 3
N30- Spindle on clockwise, speed is 1000 rpm, Coolant on.
N40- Machining in XY-plane, rapid traverse where X 15, Y10 & Z50 ( tool at a ref. point )
N50- Modal call CYCLE 82 ( RTP= 15 , RFP= 0 , SDIS = 5 , DP= -30 , DPR =0 , DTB= 5 sec )
N60- HOLES 1 ( SPCA = 15 , SPCO= 10 , STA1 = 45 , FDIS= 30 , DBH = 20 , NUM= 5 )
N70- Modal call
N80- Rapid traverse where tool goes X20 ,.Y20 & Z50 ;
N90- Spindle stop , Coolant off, main program end