![]() | |
| 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 |
|
#3
| ||||
| ||||
| #148 is a local variable, not necessarily the tool # in the spindle. On a 21iM, #4120 is the active T# (last T read), not necessarily the tool # in the spindle. I'm not sure there IS a variable for the tool # in the spindle. You may have to store the T# in a 500 series variable, i.e.: #520=#4120 after the M06. |
|
#4
| |||
| |||
| Sometimes the MTB will assign a variable for the current tool in the spindle. Check your parameter book from the MTB it should specify if they used one. If they did then it will probably be assigned to one of the input/output variables #1000-#1035 or #1100-#1135. If they did not use one Dcoupar is correct the best way to track the tool in the spindle is to write it to a variable in your tool change macro. Stevo |
|
#6
| |||
| |||
hi this is the best way to trace current tool in spindle but if #500 changed after m06 may not possible to trace the tool. ie restriction to change #500, thanks msantaji1
|
|
#7
| |||
| |||
| Lucky, What Dcoupar means is that #148 is not "Fanucs" variable for the current tool in the spindle as you stated. #4120 is also not the current tool in the spindle. You have this in your program because either the MTB wrote it to the tool change macro or a programmer did. #148 is specific for "your" machine but there is a bunch of ways this can be done. With using #148 this variable is cleared at power down. How do you know what tool is in the spindle at first power up? Msantaji1, What do you mean you can't change #500? You should be able to read and write to these variables. What kind of control are you using? You should be able to program right to these variables by #500=#4120. I would use #500 and above as these do not clear at power down. #1-#33 are local variable assignments. They clear at reset and power down. #100-#199 are common variables. They clear at power down. #500-#599 are permanent common variables. They stay until programmed to change. Stevo |
![]() |
| 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 |
| Macro | Get lucky | G-Code Programing | 2 | 08-01-2008 10:59 AM |
| Need Help!- Need a Macro-pro | Ceramic Man | Haas Lathes | 6 | 03-06-2008 04:09 PM |
| Convert Fanuc Macro to Fadal Macro | bfoster59 | Fadal | 1 | 11-08-2007 11:41 PM |
| Macro | gm3211 | Mazak, Mitsubishi, Mazatrol | 2 | 09-06-2007 07:02 AM |
| Macro A | StinkFish | Fanuc | 8 | 08-08-2007 09:19 AM |