565,316 active members*
2,647 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Download or enter macro to Fanuc OMD
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Dec 2012
    Posts
    43

    Download or enter macro to Fanuc OMD

    I've started a new post as this is a bit different to downloading parameters.

    I think I have recovered all the data and parameters and all the screen are there. I'm now looking at saving the 2 tool change macros. One for auto and one manual.

    Here is one macro

    Code:
    09021(MANUAL TOOL CHANGE MACRO)
    IF[#1015 EQ 1] GOTO 50; 	CHECK MACHINE LOCK / Z AXIS LOCK
    #1100=1;			CHECK M86 COMMAND FORM 09020 SIGNAL
    #101 = #4001;			MEMORY G CODE
    #102 = #4002;			MEMORY G CODE
    #103 = #4003;			MEMORY G CODE
    M05;				SPINDLE STOP
    G17 G91 G80 G0;			DEM G STATION
    M19;				SPINDLE ORIENTATION
    M86;				ENTER ATC MODE
    M07;				AIR BLOW
    G30 Z0.0;			Z AXIS RETURN SECOND POINT
    M00;				PROGRAM STOP
    M07;				AIR BLOW
    G28 Z0.0;			RETURN REF
    G#101 G#102 G#103;		SET G CODE
    #1100 = 0;			CANCEL M86 COMMAND FROM 09020 SIGNAL
    M87;				FINISH TOOL CHANGE
    N50 # 3000 = 2 (MACHINE LOCK / Z AXIZ LOCK) ;ALAM MESSAGE
    M99;
    %
    I can't find much on entering or sending macros to the controller.

    Any suggestions ?

  2. #2
    Flies Fast
    Join Date
    Dec 2008
    Posts
    2939

    Re: Download or enter macro to Fanuc OMD

    This "macro" is just a O9000 series program that resides in the program memory space that is then protected from accidental editing. It is the "macro" that is called up to toolchange by using the M06 code. The program # may be incorrect, it is usually assigned in the parameters.

    USE WITH CARE, PROVE IT FIRST

    Be careful about using someone else's macros.
    It is written by the MTB for that particular machine.
    You may have unset M30 reference positions that could drive your machine into a crash
    You may have additional axes not covered by the macro.
    Your machine may use different M codes for the toolchanger operation.

  3. #3
    Member
    Join Date
    Dec 2012
    Posts
    43

    Re: Download or enter macro to Fanuc OMD

    Thanks for the info.
    My parameters stop at N8399 so firstly I need to unlock the O9000. Can that be done ?
    The macro numbers (as per the data sheet from the machine builder) are 09020 and 09021.
    Once unlocked, how is the info entered into the controller ?

  4. #4
    Flies Fast
    Join Date
    Dec 2008
    Posts
    2939
    Quote Originally Posted by marsheng View Post
    Thanks for the info.
    My parameters stop at N8399 so firstly I need to unlock the O9000. Can that be done ?
    The macro numbers (as per the data sheet from the machine builder) are 09020 and 09021.
    Once unlocked, how is the info entered into the controller ?
    I think there is a little confusion
    - O8000 to O9999 programs can be protected by a parameter(makes them not visible & not editable).
    - When parameter is set to unprotected, those hidden programs are then visible AND able to be edited, downloadable, etc. (Played with & possibly corrupted).
    - The program storage area is the same location you store your other NC programs.
    - Protected programs could be those to toolchange, Pallet change, probing (part & tool measure) or any other program that you don't want played around with by any inquisitive, inexperienced operators. It's just another safety layer for the machine owner.
    - a hardcopy of the toolchange program should be with the machine documentation.
    - A good machine owner should have his machine users backup these machine files, including the machine parameters. Just in case, it is better than having nothing at all.

    No backups.... no machine work... just a big boat anchor

  5. #5
    Member
    Join Date
    Dec 2012
    Posts
    43

    Re: Download or enter macro to Fanuc OMD

    Hi Superman

    I do understand. What parameter do I need to change to get access to these features ?

  6. #6
    Member
    Join Date
    Dec 2012
    Posts
    43

    Re: Download or enter macro to Fanuc OMD

    I've done a bit more reading and I think I don't fully understand the operation

    I have never run this machine before so I'm new to this all. My current CNC (and old machine but a goodie) can only have one program loaded at a time.

    Are macros stored in program memory or is there a special place for them?

    Youtube dosen't seem to help on this.

  7. #7
    Flies Fast
    Join Date
    Dec 2008
    Posts
    2939
    Quote Originally Posted by marsheng View Post
    Hi Superman

    I do understand. What parameter do I need to change to get access to these features ?
    I'm currently on leave from work, & I don't have access to that model's parameter book.
    If you can find the correct parameter to allow access to the protected area, then, transfer & editing is as a normal NC file ... it just needs M99 at the end to allow it be called, executed & return to the original program & continuing on.

    You will start to understand why I mentioned copying everything before any edits. You can restore back to what you started with.
    Always record, read, and then double check any parameter before any modifying. Have some method of backtracking a wrong input.

  8. #8
    Member
    Join Date
    Dec 2012
    Posts
    43

    Re: Download or enter macro to Fanuc OMD

    Found some macro info.

    I assumed that O9000 was an address. Wrong, I beleive that it is a program number and you can hide or display these programs. My mistake was my current machine can only have one program in memory at a time and I thought Fanuc was the same !!!

    This page was helpful.

    https://en.industryarena.com/forum/h...os--81508.html.

Similar Threads

  1. Pre Made Macro Programs for MAZAK or FANUC for download
    By Jamatech in forum Mazak, Mitsubishi, Mazatrol
    Replies: 0
    Last Post: 04-11-2022, 12:02 PM
  2. Help With DNC on FANUC OMD
    By Allen123 in forum Fanuc
    Replies: 4
    Last Post: 04-01-2009, 09:46 PM
  3. Line numbers Fanuc OMD
    By Gncc50 in forum Fanuc
    Replies: 1
    Last Post: 08-22-2007, 07:30 PM
  4. Replies: 7
    Last Post: 03-03-2007, 04:49 PM

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
  •