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