CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > Fanuc


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 04-25-2010, 12:11 PM
 
Join Date: Mar 2010
Location: usa
Posts: 4
Tricky1 is on a distinguished road
Tool change Macro 9020?

I've been reading a lot about this macro, and I am really confused, was hoping someone can shed some light on this topic.... What exactly is the purpose of using a macro for a tool change? In all my yrs of cnc machining, I have never run across this. A simple T command with an M06 is all I ever needed to change tools. The ATC on this Funuc O-M will not work. There is a 9020 macro program in the memory. Do I need to call it up as a subprogram in order to change tools? That just doesn't make sense to me to use a separate program for a tool change... Can someone post an example of how the progrom should look to change tools? Any help is appreciated.
Reply With Quote

  #2   Ban this user!
Old 04-25-2010, 05:43 PM
christinandavid's Avatar  
Join Date: Aug 2009
Location: New Zealand
Posts: 573
christinandavid is on a distinguished road

All controls use a 'background' program to perform a tool change, invoked by the M6 command, using the T value as an argument. The program should be full of obscure M-codes to check relays and work the ATC hydraulics/mechanisms. As machines vary, you will need to get in touch with the relevant machine tool builder to assist you with setting up a tool call macro.

If 9020 is indeed the correct program to use, and is in the correct directory (system folder, for example), it should be a simple task to set up the controls system parameters to invoke this program at every M6 command.

DP

Last edited by christinandavid; 04-25-2010 at 05:49 PM. Reason: Additional
Reply With Quote

  #3   Ban this user!
Old 04-25-2010, 11:02 PM
 
Join Date: Nov 2009
Location: united states
Posts: 1
r.kynaston is on a distinguished road

i found myself in the same position about a year ago. we picked up a horizontal
which needed to go to a set point in the x,y axii and up to that point i had been
only dealing with vertical mills that only required to be sent home in the z axis
---G0 G91 G28 Z0;G90T1;M6;
nice and simple
in the case of the new(to me) horizontal i entered --T1;M6;--turned on the
single block switch,put the rapid over-ride on "slow" and began pushing the cycle start button,after two pushes the screen was showing a 9000-series program which sent the spindle to the required G53 X,Y position and the z axis home, gives the control a couple m codes including M6 and the tool changed.
the control on that machine is set up to run the 9000-series program to change the tool every time an M6 is read along with handling the M6 as a tool change
in the 9000-series program---in the same way that a haas control can be asked
to check for H+T code every time a G43 is read,this can also be done with the fanuc using a 9000 series program. so take a look in the 9020 program you mentioned and see what it's doing,i picked he one apart from the horizontal and used it in one of our verticals to avoid interference between
tool and fixture during changes of long tools while tall fixtures are mounted on the table. hope this helped, and have a nice day
Reply With Quote

  #4   Ban this user!
Old 04-25-2010, 11:10 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

It's done in a macro to eliminate you having to program the individual commands for each tool change.

On your 0-M, parameter #0230 should be a 6. This parameter specifies the M-code that calls macro O9020. If #0230 isn't a 6 then when you program an M6 it won't call the macro.
Reply With Quote

  #5   Ban this user!
Old 04-27-2010, 02:10 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Another reason for using a tool-change macro is safety. Tool change has to be done is a safe position, say, at home position, to avoid a possible interference between moving parts (of ATC) and fixtures. A macro can be designed to automatically send the tool (spindle) to a safe position before changing the tool. If you need, you can also include spindle orientation in the macro, among other things.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 04-27-2010, 07:34 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

The macros in the 8000 and 9000 range can also be set so you do not see them running on the screen. So it could have been that some of the machines you were running did actually use a macro but you never noticed it because it was not visible. I would have to say that 98% of the machines that I have dealt with, setup, or installed have had macro programs for tool changes. If they didn't I would write one.

To add to what Sinha has mentioned. I use the macro not just to move to a safe position but to skip the tool change if you are calling a tool that is already in the spindle. I also set my G43H() so that I do not have to program it after every tool change in the main program. I also set the S&F to the tools. The list can go on for the reasons to have a macro tool change.

As you said all you needed was a T() command and an M6. Macros can be setup so that it is called every time a T() or a M6 are programmed just by setting the proper parameters as Dave specified. This is not the same thing as a subprogram call with M98 which I believe you are referring to. If 9020 was indeed your tool change program you do not need to call it. By setting #230 to 6 this will call program 9020 every time a M6 is programmed.

Stevo
Reply With Quote

  #7   Ban this user!
Old 04-28-2010, 03:35 AM
 
Join Date: Mar 2008
Location: Sweden
Age: 40
Posts: 135
Swemill is on a distinguished road

Anybody that have info on which parameter these Macro - as Stevo describes would call on the 3M control?
I cant find the right parameter but i also dont know if its even possible on my old control....

Thanks.
__________________
Kitamura Mycenter 1 -83 with Fanuc 3M-C and Mycenter 1B -85 with 10M control.
Yes, they are old..... but i still like them!
Reply With Quote

  #8   Ban this user!
Old 04-28-2010, 06:43 PM
 
Join Date: Mar 2005
Location: United States
Age: 34
Posts: 657
gbowne1 is on a distinguished road

I need a much more defined M6. It's pretty good, but I don't know if there could be improvements. It's a sort of homebrew ATC w/20 station carousel, but the M6 macro runs so that it moves to X, Y and Z safe locations, and then snap, out comes the arm and flips around the tool meanhile replacing the tool in the carousel and the spindle at the same time. I do not remember which 8000 or 9000 program it is. I believe when Brent came over to build the ladder and the 9000 series programs for my 15-MA, he set the M6 they way it is standard on most machine tools.

I remember that he and I talked at legth about how my other FANUC controls and machines were built and set up when he built the ladder and programs for this 15-MA like my 11M and 0M are.

Greg
Reply With Quote

  #9   Ban this user!
Old 04-29-2010, 07:23 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Greg,
Did he set it up via ladder or parameters? What is it that you would like to change or add? Can you post the code?

Stevo
Reply With Quote

  #10   Ban this user!
Old 04-29-2010, 04:57 PM
 
Join Date: Mar 2005
Location: United States
Age: 34
Posts: 657
gbowne1 is on a distinguished road

I think it is Parameters I need to call Brent anyhow so I will ask him.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 04-30-2010, 06:54 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Originally Posted by gbowne1 View Post
I think it is Parameters I need to call Brent anyhow so I will ask him.
This is a list of the parameters that will set the custom codes on the 15series.

7050-7059 parameters calls programs 9010-9019 with a custom G-code
7060-7069 parameters calls programs 9040-9049 with a custom G-code
7071-7079 parameters calls programs 9001-9009 with a custom M-code
7080-7089 parameters calls programs 9020-9029 with a custom M-code

So as an example if you want to call program 9020 as your tool change macro with M6 then you have to set parameter 7080=6

Stevo
Reply With Quote

  #12   Ban this user!
Old 04-30-2010, 05:27 PM
 
Join Date: Jan 2010
Location: usa
Posts: 89
gwarble is on a distinguished road

in my experience, you never know...

we have some machines with a macro tool change... from the factory (and ard copied in the manuals) which use m codes for each action of the toolchange (umbrella changer)

some machines that needed a toolchange macro added to home the axis to the change position, but otherwise the m6 directly actuates the toolchange action sequence internally, without any NC code besides the m6


some more modern fanuc's have other ways to "embedd" certain macros in the f-rom and you can't see them, but they are still NC driven, or at least home and orient with NC code and then internal drive the toolchange action by the ladder or macro executor via the m6

also be aware o9001-09 toolchange macros handle the t# differently than o9020-29... o9020 toolchange will treat the t# passed in the same line as internal variable #20, while an o9001 macro (subprogram style) will allow the t# to be system-applied to variable #4120 before the macro is called, so you will have to handle this internally like:

T#20

to apply the system tool # before the machine's tool change action in most cases...


- gwarble
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help wana make macro for getting tool change by giving tool pot no on vmc instea ghevari Parametric Programing 0 02-14-2010 12:26 PM
help in macro program for tool change traxxtito Parametric Programing 2 11-26-2009 04:17 AM
Need Help!- M6 tool change macro at6c Mach Mill 0 08-08-2009 07:41 AM
Help for tool change macro on OM VMC Namnp2007 Fanuc 3 08-12-2008 11:18 AM
Tool Change Macro cncdiag Mazak, Mitsubishi, Mazatrol 0 03-26-2007 02:20 PM




All times are GMT -5. The time now is 04:11 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361