0% found this document useful (0 votes)
109 views

Macro For Interpolation

This program can be used for Drilling pitch circle holes & also interpolating these holes. This is done in order to achieve position tolerance. With the new CNC system this best & economical method where no special tool is required. This is useful where batch sizes are small

Uploaded by

sujaypj
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
109 views

Macro For Interpolation

This program can be used for Drilling pitch circle holes & also interpolating these holes. This is done in order to achieve position tolerance. With the new CNC system this best & economical method where no special tool is required. This is useful where batch sizes are small

Uploaded by

sujaypj
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 4

Center Drilling

G65 P7081 X0.0 Y0.0 R3.0 Z-0.5 M3 I139.22 A90.0 F85


1
Peck Drilling
G65 P7083 X0.0 Y0.0 R3.0 Q2.0 Z-12.5 M3 I139.22 A90.0 F85
A
Tapping
G65 P7084 X0.0 Y0.0 R3.0 Z-12.5 M6 I139.22 A90.0 F85

Roughing interpolation 3
G65 P7091 X0.0 Y0.0 D14.0 R6.0 Z-12.0 Q6 U0.5 M4 I139.22 A90.0 F200 2
Finishing interpolation
G65 P7092 X0.0 Y0.0 D14.0 R6.0 Z-12.0 Q6 U0.5 M4 I139.22 A90.0 F200 I
Finishing interpolation D
G65 P7093 X0.0 Y0.0 D14.0 R6.0 Z-12.0 C.5 M4 I139.22 A90.0 F200

Chamfering interpolation
G65 P7093 X0.0 Y0.0 D14.0 Z-2.0 H2.5 U0.5 M4 I139.22 A90.0 F200

P7081___________________________ SUBPROGRAM CALL

X0.0 Y0.0________________________ COORDINATES OF CTR OF PITCH CIRCLE

R3.0 Q2.0 Z-12.5V1.0 ______________ DRILLING CYCLE PARAMETERS / PITCH

D14.0 R6.0 Z-12.0 Q6 U0.5 H0.5 __ REQ HOLE DIA /TOOL RADIUS/HOLE DEPTH/NO OF PASSES/SAFETY DIST/CHF

M3 I139.22 A90.0__________________ NO OF HOLES / PCD / START ANGLE


% % %
O7001(MAIN PRG FOR) O7081(CTR DRILL) O7083(PECK DRIIL)
N1 #3=#4003 #3=#4003
G0G28G91H0Z0 #4=#4/2 #4=#4/2
T1(CTR BIT) #2=360/#13 #2=360/#13
M6 #5=#24+#4*COS[#1] #5=#24+#4*COS[#1]
G0G90G54 #6=#25+#4*SIN[#1] #6=#25+#4*SIN[#1]
S1000M3 G98G81X#5Y#6Z#26R#18F#9 G98G83X#5Y#6Z#26R#18Q#17F#9
G43Z50.H1M8 N1 N1
G65 P7081 X0.0Y0.0 R3.0 Z-0.5 M5 I139.22 A90.0 F85 WHILE[#13GT1]DO1 WHILE[#13GT1]DO1
G0G90G80M9 #1=#1+#2 #1=#1+#2
G0G28G91Z0M5 #5=#24+#4*COS[#1] #5=#24+#4*COS[#1]
G0G28G91Y0 #6=#25+#4*SIN[#1] #6=#25+#4*SIN[#1]
M0 G90X#5Y#6 G90X#5Y#6
(****************) #13=#13-1 #13=#13-1
N2 END1 END1
G0G28G91H0Z0 G#3G80 G#3G80
T2(12MM DRILL) M99 M99
M6 % %
G0G90G54
S1000M3 %
G43Z50.H2M8 O7084(TAPPING)
G65 P7083 X0.0Y0.0 R3.0 Q2.0 Z-12.5 M5 I139.22 A90.0 F85 IF[#4119 NE #4109*#22]GOTO3
G0G90G80M9 #3=#4003
G0G28G91Z0M5 #4=#4/2
G0G28G91Y0 #2=360/#13
M0 #5=#24+#4*COS[#1]
(****************) #6=#25+#4*SIN[#1]
N3 G98G84X#5Y#6Z#26R#18F#9
G0G28G91H0Z0 N1
T3(M6 TAP) WHILE[#13GT1]DO1
M6 #1=#1+#2
G0G90G54 #5=#24+#4*COS[#1]
S100M3 #6=#25+#4*SIN[#1]
G43Z50.H3M8 G90X#5Y#6
G65 P7084 X0.0Y0.0 R3.0 V1.0 Z-12.5 M5 I139.22 A90.0 F85 #13=#13-1
G0G90G80M9 END1
G0G28G91Z0M5 G#3G80
G0G28G91Y0 N3
M0 M99
%
% %
(********)
O7091(ROUGHING SUB-1) O7071(ROUGH SUB-2)
N4
#3=#4003 G0G90Z20.
G0G28G91H0Z0
G66P7071D#7R#18Z#26Q#17U#21F#9 G01Z#21F500
T4(12MM E/M SEMI FINISH)
#4=#4/2 G90G10L12P10R#18
M6
#2=360/#13 #2=#7/2
G0G90G54
IF[#3EQ90]GOTO1 #26=#26-#21/#17
S2500M3
#24=#5001+#24 G01G91G41D10Y#2F#9
G43Z50.H4M8
#25=#5002+#25 M98P7072L#17
G65 P7091 X0.0 Y0.0 D14.0 R6.0 Z-12.0 Q6 U0.5 M4 I139.22 A90.0 F200
N1 G03J-#2
G0G90G80M9
WHILE[#13GT0]DO1 G01G40Y-#2
G0G28G91Z0M5
#5=#24+#4*COS[#1] G0G90Z75.
G0G28G91Y0
#6=#26+#4*SIN[#1] M99
M0
G90X#5Y#6 %
(********)
#1=#1+#2 %
N5
#13=#13-1 O7072(ROUGH SUB-3)
G0G28G91H0Z0
END1 G03J-#2Z#26
T5(12MM E/M FINISH)
G67 M99
M6
G#3G80 %
G0G90G54
M99
S2500M3
%
G43Z50.H5M8
G65 P7092 X0.0 Y0.0 D14.0 R6.0 Z-12.0 Q6 U0.5 M4 I139.22 A90.0 F200 %
G0G90G80M9 %
O7092(FINISHING SUB-1)
G0G28G91Z0M5 O7073(FINISHING SUB-2)
#3=#4003
G0G28G91Y0 G0G90Z20.
G66P7073D#7R#18Z#26Q#17U#21F#9
M0 G01Z#21F500
#4=#4/2
G90G10L12P10R#18
#2=360/#13
#2=#7/2
IF[#3EQ90]GOTO1
#26=#26-#21/#17
#24=#5001+#24
M98P7074L#17
#25=#5002+#25
G0G90Z75.
N1
M99
WHILE[#13GT0]DO1
%
#5=#24+#4*COS[#1]
#6=#26+#4*SIN[#1] %
G90X#5Y#6 O7074(FINISHING SUB-3)
#1=#1+#2 G01G91Z#26
#13=#13-1 G01G91G41D10Y#2F#9
END1 G03J-#2
G67 G03J-#2
G#3G80 G01G40Y-#2
M99 M99
% %
%
(********) O7093(CHAMFERING SUB-1)
N6 #3=#4003
G0G28G91H0Z0 G66 P7075 D#7 R#18 Z#26 Q#17 U#21 F#9
T6(12MM CHF TOOL) #4=#4/2
M6 #2=360/#13
G0G90G54 IF[#3EQ90]GOTO1
S2500M3 #24=#5001+#24
G43Z50.H5M8 #25=#5002+#25
G65 P7093 X0.0 Y0.0 D14.0 R6.0 Z-2.0 C0.5 M4 I139.22 A90.0 F200 N1
G0G90G80M9 WHILE[#13GT0]DO1
G0G28G91Z0M5 #5=#24+#4*COS[#1]
G0G28G91Y0 #6=#26+#4*SIN[#1]
M30 G90X#5Y#6
#1=#1+#2
% #13=#13-1
END1 O7075(FINISHING SUB-2)
G67 G0G90Z20.
G#3G80 G01Z#21F500
M99 #2=[#7/2]+#26+#3
% G01G91Z#26
G01G91G41D10Y#2F#9
G03J-#2
G01G40Y-#2
G0G90Z75.
M99
%

You might also like