Problem- Radieus milling macro
Member
Radieus milling macro
Does anyone have radius milling macro for Fanuc ?
I have turned hole for example D100, i would like to mill from 90deg to 120 deg an arc with D140
Input:
cutter diameter D20
start angle 250deg
end angle 90deg
start diameter 100
end diameter 140
chip size in radius 5
chip size in depth
ZIGZAG millin g (both G02 & G03)
-GB Similar Threads:
Last edited by Green Button; 02-14-2017 at 06:05 AM .
Member
Re: Radieus milling macro
This is what i did but not working....
Start angle=250 #1
end angle =90 #2
start radius =100 #3
end radius=140 #4
chip 5 #8
tool diam =20 #20
G65P8100 A250B90C100D140E5T20
O8100
#109=#3-#20
#110=cos(#1)*(#109-2)
#111=SIN(#1) *(#109-2)
G00X#110Y#111
N1 IF #109 GT #4 GOTO 99
#109=#109+STEP
#110=cos(#1)*(#109)
#111=SIN(#1) *(#109)
G01X#110Y#111
#110=cos(#2)*(#109)
#111=SIN(#2) *(#109)
G02X#110Y #111R#109
N2 IF #109 GT #4 GOTO99
#109=#109+STEP
#110=cos(#2)*(#109)
#111=SIN(#2) *(#109)
G01X#110Y#111
#110=cos(#1)*(#109)
#111=SIN(#1) *(#109)
G03X#110Y #111R#109
GOTO 1
N99M99
Member
Re: Radieus milling macro
What do you mean "it's not working"? Do you get an alarm?
What is STEP? That looks like it should cause an alarm.
Member
Re: Radieus milling macro
My mistake..STEP should be #8
Also tool diam have to be changed to radius
I was able to do program with Basic (attached ), it was easiest way to check program. How can i do following line with Fanuc:
IF a109 > a4 or a109=a4 GOTO 99
BASIC language
a1=250 'start angle)
a2=90 'end angle)
a3 =50 'start radius)
a4=70 'end radius
a8=10 ' chip thickness
a20=10 'tap radius
a109=a3-a20
a110=cos(a1)*(a109-2)
a111=SIN(a1) *(a109-2)
PRINT "G00",a110,a111
1
a109=a109+a8
IF a109 > a4 or a109=a4 GOTO 99
a110=cos(a1)*(a109)
a111=SIN(a1) *(a109)
PRINT "G01",a110,a111
a110=cos(a2)*(a109)
a111=SIN(a2) *(a109)
PRINT "G02",a110,a111,"R",a109
a109=a109+a8
2 IF a109 > a4 or a109=a4 GOTO 99
a110=cos(a2)*(a109)
a111=SIN(a2) *(a109)
PRINT "G01",a110,a111
a110=cos(a1)*(a109)
a111=SIN(a1) *(a109)
PRINT "G03",a110,a111,"R",a109
GOTO 1
99
END
Member
Re: Radieus milling macro
GE is Fanuc's "greater than or equal to", so you can use:
IF[#109GE#4]GOTO99
Member
Re: Radieus milling macro
Thanks !
Have a nice day,
GB
Problem- Radieus milling macro
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules