Problem Radieus milling macro


Results 1 to 6 of 6

Thread: Radieus milling macro

  1. #1
    Member
    Join Date
    Sep 2006
    Location
    Finland
    Posts
    222
    Downloads
    0
    Uploads
    0

    Default 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)

    Radieus milling macro-2dwg-jpg


    -GB

    Similar Threads:
    Last edited by Green Button; 02-14-2017 at 06:05 AM.


  2. #2
    Member
    Join Date
    Sep 2006
    Location
    Finland
    Posts
    222
    Downloads
    0
    Uploads
    0

    Default 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



  3. #3
    Member dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2932
    Downloads
    0
    Uploads
    0

    Default 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.



  4. #4
    Member
    Join Date
    Sep 2006
    Location
    Finland
    Posts
    222
    Downloads
    0
    Uploads
    0

    Default 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



  5. #5
    Member dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2932
    Downloads
    0
    Uploads
    0

    Default Re: Radieus milling macro

    GE is Fanuc's "greater than or equal to", so you can use:

    IF[#109GE#4]GOTO99



  6. #6
    Member
    Join Date
    Sep 2006
    Location
    Finland
    Posts
    222
    Downloads
    0
    Uploads
    0

    Default Re: Radieus milling macro

    Thanks !
    Have a nice day,

    GB



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Radieus milling macro

Radieus milling macro