586,036 active members*
3,731 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2015
    Posts
    3

    Damn Macro programing

    Hi,

    We have a new machine (to us!!) That i am trying to transfer macros from an old machine to the newer one

    The old one was a Fanuc 6M the newer one is a Fanuc 0M d

    the macro we use is a bolt hole one but we never drill on the 0, 90, 180 and 270 angles

    the example is below on line

    G65 P8000 D200.0(PCD) K8 number of holes (first hole postion)
    G81 Etc etc
    G65 P8001 D200.0 K8 rest of the holes


    the macros are below

    %
    :8000
    (FULL CIRCLE START POS)
    (D#7=P.C.D.)
    (K#6=TOTAL.NUMBER.OF.HOLES)
    #100=1
    #101=SIN[[0.360/#6*#100]-[0.180/#6]]*[#7/2]
    #102=COS[[0.360/#6*#100]-[0.180/#6]]*[#7/2]
    G90G00X#102Y#101
    M99

    :8001
    (FULL CIRCLE REMAINING HOLES)
    #29=[#6*1000]
    #100=2
    WHILE[#100LE#29]DO1
    #101=SIN[[0.360/#6*#100]-[0.180/#6]]*[#7/2]
    #102=COS[[0.360/#6*#100]-[0.180/#6]]*[#7/2]
    G90X#102Y#101
    #100=#100+1
    END1
    M99
    %
    there are a few more

    it just dont want to work on the 0M controller

    im just struggling as im not that used to programming macros Can anybody help???

  2. #2
    Join Date
    Feb 2006
    Posts
    1792

    Re: Damn Macro programing

    The new machine may not be macro enabled.
    Execute, say, #500 = 1 in the MDI mode, and check if there is any error message.

Similar Threads

  1. WANT TO KNOW ABOUT MACRO PROGRAMING
    By Rajeshpg in forum Community Club House
    Replies: 0
    Last Post: 01-26-2014, 07:09 PM
  2. Macro/Variable Programing
    By chadr03 in forum WinCnc
    Replies: 1
    Last Post: 02-02-2011, 02:00 PM
  3. macro programing
    By ikneb in forum Fanuc
    Replies: 10
    Last Post: 10-03-2008, 01:52 AM
  4. macro programing
    By 9axis in forum G-Code Programing
    Replies: 2
    Last Post: 03-19-2008, 11:52 AM

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
  •