![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fanuc Discuss Fanuc controllers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
The current tool change macro does not check to see if the called tool is already in the spindle. As a result the spindle will do a G91 G28(or G30) Z0 several times before starting the machining cycle. I would like to edit the macro to skip everything if the called tool is already in the spindle. Does anyone know the variable numbers that store the called tool number when the M6 is executed? There are no variable definitions in the tool change macro but it has to get the input fromn somewhere. Also does anyone know the variable number that stores the number of the current tool in the spindle? Thanks to all !!! Tim |
|
#2
| |||
| |||
| #4120=last T code For the tool in the spindle, if it is not stored in some variable #500..#999, then the PLC stores that info. But you can add a line just before M99 in TC macro like: #999=#4120 (CURRENT TOOL) best regards, |
|
#3
| |||
| |||
| Great - thanks f-bu. I thought it was 4120 but when I checked it the first time it was empty. It looks like you have to grab that variable right away because it doesn't stay. I think my code is going to look something like this ...(pseudocode) beginning... #998 = #4120 If #998 = #999 then (skip all the spindle moves) end... #999 = #4120 M99 Does this make sense? |
|
#4
| |||
| |||
| Yes, that is. Well, you can add come checks for correct values, because switching off during tool change will not update #999. Another thing, if the tool change is made only by T##, without M06, then inside o9000 #149 holds the T-code. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| O9000 Tool Change Macro | omkargupta | Fanuc | 1 | 09-11-2007 04:34 PM |
| O9000 Tool Change Macro | omkargupta | Fanuc | 1 | 09-10-2007 04:41 PM |
| EDIT O9000 tool change macro fanuc 0M | mikul | Fanuc | 1 | 04-20-2007 06:06 PM |
| Tool Change Macro | cncdiag | Mazak, Mitsubishi, Mazatrol | 0 | 03-26-2007 02:20 PM |
| A sample tool change macro. | gar | Haas Mills | 17 | 08-22-2005 05:13 PM |