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 01-03-2010, 12:17 PM
 
Join Date: Dec 2009
Location: The netherlands
Posts: 10
bensoli is on a distinguished road
Kiwa excel 510 toolchange HELP!!

Hi there,

As my title already showed, I have a problem with my KIWA excel 510. The machine was build in 1990 with a fanuc OM control system. The machine has a carousel with 16 tools vertically placed.

I must admit I am new in the cnc world and because a lack of good machine documentation and experience, I accidently modified/deleted the toolchange macro (O9001).

After a good search I found some useful information, so I was able to program a part of the macro back in the system. Now when I call in the toolchange progam (T01 M16) the following happens:

The carousel comes forward, picks out the present tool, drops down, rotates to the new tool and comes to a hold. So it stays in the drop down position.

TOOL CHANGE MACRO:

O9001;
G80 G40 M9;
G91 G30 Z0 M19;
M6 T#149;
M99;

I know something is missing but don't see what. Maybe someone has the same machine with a good macro? All suggestions are greatly appreciated!


Ben
The Netherlands
Reply With Quote

  #2   Ban this user!
Old 01-04-2010, 12:49 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Does the control call the 9001 program with the M6 code? Does the new tool actually get clamped then just sits there?

Stevo
Reply With Quote

  #3   Ban this user!
Old 01-04-2010, 04:58 PM
 
Join Date: Dec 2009
Location: The netherlands
Posts: 10
bensoli is on a distinguished road

Originally Posted by stevo1 View Post
Does the control call the 9001 program with the M6 code? Does the new tool actually get clamped then just sits there?

Stevo
Hi Stevo,

Thanks for your reply! The control does call the 9001 program. On my machine I call it with T01 M16

When ik call the program the toolchange starts:

Carrousel comes forward and picks out the current tool,
Rotates to the next holder and then comes to a hold.

So it should be moving upward to clamp the new tool and then retract the
carrousel, this doesn't happen.

When I'm in jog mode at toolchange position (G30 Z0) the whole cycle works fine. I know something is wrong with the code.

Ben
Reply With Quote

  #4   Ban this user!
Old 01-05-2010, 09:06 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Ok I have a few questions. First one is kind of insignificant. Whey M16 and not M6? It should not matter because obviously you have parameter 240 set to 16 so the M16 is used but I was just curious.

Now you say when you are in jog mode and G30Z0 position that the cycle works fine. What are you typing to make the cycle work? Are you just moving it to G30Z0 then typing in M6?

Now from a code standpoint there are a few things we can try. Depending on how your machine is setup to function. G30 is for your return from 2nd,3rd,4th reference positions and I ass u me that your tool change position is Z0 and the carrousel does the work of up and down without moving Z correct?? If that is the case then a simple G91G28Z0 would be more appropriate but not a necessity. Take your M19 and put it in the next line.

Now depending on how your code is completed in the ladder typically all that is needed is a M6. You have M6T#149. Now I ass u me that you got that maybe from an example of a tool change program however if your machine or program does not set #149 to the modal T then it will mug things up. If you were to start the tool change process and stop it before the M6T#149 block then look at what the value of #149 is set to. I have seen variables set to the modal T thru the PMC data before but this is typically done via tool change macro and you don’t have it coded. It would be something like #149=#4120 to capture the modal T and set it to #149. However most tool changes will change with a M6 already knowing the modal T via ladder. If you would like to use #149 to track the tool in the spindle then that is ok it can be added to the macro.

I would start with something like this.
O9001;
G80 G40 M9;
G91G28Z0
M19;
M6
#149=#4120---(optional to track the tool)
M99;

If your code needs #149 and it is not being set when you look at #149 then put #149=#4120 at the beginning of your program and then put the T#149 back in the M6 line.

Stevo
Reply With Quote

  #5   Ban this user!
Old 01-05-2010, 11:47 AM
 
Join Date: Dec 2009
Location: The netherlands
Posts: 10
bensoli is on a distinguished road

Thanks steve for your help!

First of all I bought the machine via auction. When I first took a look at the programs located in the memory, I noticed that all toolchanges were called with this M16. I don't really know why this is done, but I do know it worked before. The previous machine operator must have had his reasons.

When I am in jog mode I can operate the ATC via the specific switches located on the control panel. This can only be done after I enter a G30 Z0 in MDI mode. So the spindle has to be in this position to make (manual operated) toolchange possible.

The carrousel is the one that moves the tools up and down. The Z axis stays in the G30 Z0 position during the whole toolchange.

You are correct about the T#149. I have found this on an other thread for a KIWA machine. I (maybe dumb) assumed that this was a neccesity in the code. Now when the toolchange starts, it stops in my M6 T#149 line, which is a strange coincidence maybe. Realising that the T#149 might be the one messing up the toolchange cycle?!

I will remove the T#149, see what is does and check the other things you have mentioned. I'll keep you informed!

Ben
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-05-2010, 12:45 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Ben,
I believe you will probably find that to be the problem. Once it pauses on the M6T#149 go look at what common variable #149 is set to. My guess is it is set to null. This in turn is trying to call null. As an example if #149 was set to say 2 then the line of code would represent M6T2.

The document attached will tell you how to view the variables on your control.

Stevo
Attached Files
File Type: pdf Var.pdf‎ (16.4 KB, 108 views)
Reply With Quote

  #7   Ban this user!
Old 01-05-2010, 11:46 PM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Use of T#149 is making me curious. Read the attached document. It applies to 0i control, but you may expect a similar thing on your control also (?). The given example pertains to a lathe. But a similar thing happens on a milling machine also.
Attached Files
File Type: pdf Subprogram call using a T-code.pdf‎ (86.9 KB, 152 views)
Reply With Quote

  #8   Ban this user!
Old 01-06-2010, 07:57 AM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

Originally Posted by sinha_nsit View Post
Use of T#149 is making me curious. Read the attached document. It applies to 0i control, but you may expect a similar thing on your control also (?). The given example pertains to a lathe. But a similar thing happens on a milling machine also.
Hey Sinha....good info on the T#149.

As you know #149 is one of your common variables. These pertain to all Fanuc controls that are using macro programming. When these are put into macros or tool change programs they are usually done so by the MTB. As to what your document is specifying is that you can call a sub via T() code and it will set #149 to the modal T. Which IIRC can be done on any Fanuc control. This is typically used when an M6 function is not used or not allowed. Some machines were set up to call the tool sole based on the T() command with no M6. I have also used this so I can write a pre-called tool to a permanent common variable so I can track it. Or if you want to avoid or skip specific tool pockets in the magazine.

I am sure there may be more reasons for using this and would be curious to hear them.

However according to the rules of sub called with the T-code when Ben’s programming is running it is a macro/sub and will treat the T#149 as a common T and not call program 9000. This will also be true because it is being used with the M6 function. Now given the fact that 9000 is not being called that tells me that #149 is not being set to modal T which in turn would leave #149 null and mug up the tool change call.

Because of a lot of this is the main reason most macros are not just easily transferable to any machine. Most programs can look good in theory but 1 parameter setting different from 1 machine to the next can cause unforeseen problems. In this case we are adding a M16 into the mix along with it. Which in reality means nothing other than 16 is set in the parameter for the 9001 macro call instead of 6 but to some people they would think it pertains to the O series control or Kiwa machines.

I am going purely based on what the conditions say is allowed and what is not. I do not setup any of my tool change macros in this manner and never run this syntax through any of my controls so I can’t speak with 100% certainty. I have used the sub call with a T on unique occasions otherwise pretty much anything you want to do can be easily done in the tool change macro without adding confusion with the T subprogram call function.

I apologize….I just kind of kept rambling. For some reason this morning I felt the need to over explain which probably was not a good idea on a issue I am not 100% on. Go ahead take turns

Stevo
Reply With Quote

  #9   Ban this user!
Old 01-06-2010, 08:57 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

My document is 100% based on 0i Operator's Manual. So, it holds good irrespective of what MTB might be doing. Of course, other control versions may have certain differences, of which I am not sure.

Actually, I always suspect Fanuc manuals. It was difficult to believe that a common variable automatically gets defined in this manner (After all, what is so special about number 149!). So, I tested it on the machine. Yes, Fanuc was correct this time!
Reply With Quote

  #10   Ban this user!
Old 01-06-2010, 09:10 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by stevo1 View Post
As to what your document is specifying is that you can call a sub via T() code and it will set #149 to the modal T.
Stevo
The second part of this sentence in not exactly what I meant. Only #149 gets defined. It has to be used in conjunction with a T-word, inside the subprogram. A simple M06 would not do anything.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-07-2010, 05:19 AM
 
Join Date: Dec 2009
Location: The netherlands
Posts: 10
bensoli is on a distinguished road
Not been able to test it

Hi guys!

Sadly I haven't been able to test all the things you have opted. I went away
for buisiness yesterday and because I follow classes once a week, I'm not
at work today also. The fist oppertunity will be friday. I'll keep you informed on the progress!

Thanks for all the help!
Reply With Quote

  #12   Ban this user!
Old 01-07-2010, 05:50 AM
 
Join Date: Feb 2006
Location: india
Posts: 1,187
sinha_nsit is on a distinguished road

Originally Posted by stevo1 View Post
However according to the rules of sub called with the T-code when Ben’s programming is running it is a macro/sub and will treat the T#149 as a common T and not call program 9000.
Stevo
A parameter setting decides whether or not subprogram call (of O9000) with a T-word is permitted. On 0i control, it is 6001#5 (to be set to 1 for such a function). On other control versions, the parameter number might be different.
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
Excel / Kiwa 510 VMC Fanuc 0M) ATC Problem MotoDan Fanuc 20 08-03-2010 02:25 AM
KIWA excel 510 toolchange macro help bensoli General Metal Working Machines 0 12-29-2009 11:49 AM
Problem- tool change in DNC mode with fanuc OM controller-KIWA Excel 510 machine flaheu General Metalwork Discussion 4 09-08-2008 09:50 AM
Fanuc OM tool change macro for a Kiwa/Excel TR MFG Fanuc 5 01-27-2008 04:00 AM
Kiwa Excel Center 4 coma152 DIY-CNC Router Table Machines 0 12-01-2004 07:42 PM




All times are GMT -5. The time now is 01:56 AM.





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