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 10-05-2011, 01:34 AM
 
Join Date: Apr 2004
Location: Canada
Age: 31
Posts: 290
laka is on a distinguished road
Fanuc OM, lost tool change macro

I aquired a used VMC with 21 tool drum ATC. The toolchanger works fine mechanically as I can jog it in all ways that it should. However with a M06 command I get nothing. So I have learned that it is looking for a macro program, in this case it seems to be O9000. I've read on here about some of the M-codes that will activate different functions of a toolchange sequence but can only get M19 to work in MDI or in O9000 program.

Do I require a fully written macro program to have all the different M codes to work properly? I do not have the proper operating manuals from the MTB for the mill so I am a little lost. I have found some macro examples on here and will be trying then out soon to see if I can get any results. But I am mainly curious as to why I can only get a response from M19 currently and nothing else.

Machine is a Cincinnati Sabre 750

Thanks for any input
Reply With Quote

  #2   Ban this user!
Old 10-05-2011, 04:23 AM
 
Join Date: Feb 2006
Location: United States
Posts: 273
dpuch is on a distinguished road

Well first check parameter 6080 thru 6089 Those specify what M code calls O9020 thru O9029 If one of those is not set to 6 then it is not expecting a macro.

Also if there is one, change it back to 0 and it will no longer need a macro, but you will have to program what would be in the macro in your normal program instead.

Somewhere here I posted some sample tool change macros. Probably more than you want, but I think there are some other samples if you search.
Reply With Quote

  #3   Ban this user!
Old 10-06-2011, 03:54 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

For the O series you also need to check more parameters then that.

230-239 calls programs 9020-9029
240-242 calls programs 9001-9003
40.5 calls program 9000 when a T() is specified

Check all these parameters. If any of the first 2 sets are =6 then it is calling a macro in accordance with the specific parameter related to the program. If none are set to 6 then look at parameter 40 bit 5 to see if it is set to 1 or 0.

Now as for programming that is needed from a macro it is very basic but can written to use more complex features. If your tool change was written into the ladder and no macro is needed then you can simply program a
G91G28Z0
T()M6
But it may also depend on the MTB if they want the T() in a line before the M6. I write macros even if the tool change is programmed in the ladder. So if you find that you want to use a macro or your parameters above are set to use a specific program then I would start real basic with the code and you can add from there if you need to or want to.

So as an example if parameter 240=6 then program 9001 will be called every time an M6 is programmed. So now create program 9001 in your machine memory and start real basic with the code.

O9001(TOOL CHANGE MACRO)
G40G80—(tool dia cancel & canned cycle cancel)
G91G28Z0M9—(tool change position in Z & coolant off)
M19--(tool orientation)
G28Y0—(tool change position in Y)
M6—(tool call of modal T value)
M99

Stevo
Reply With Quote

  #4   Ban this user!
Old 10-06-2011, 07:16 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Further to Steve's advice, if your machine has both G28 and G30 (most machining centers do) you should check which is used to obtain the Z tool change position.

To check this do as follows:
1. Place a tool holder in the tool gripper of the tool change arm.
2. Using a height gauge, or what ever you have available, measure from the machine table to the underside of the tool change flange of the tool holder.
3. Place the same tool in the spindle and make the same measurement after executing G91 G28 Z0.0 and then after executing G91 G30 Z0.0
4. Compare the results of point 3 with that of point 2
5. The compared values have to be very close to being the same so that the tool change arm can engage the spindle tool safely and without causing damage. If both are incorrect, I'd suggest using G30 in your Macro program and adjust the G30 position with its corresponding parameter.

Regards,

Bill
Reply With Quote

  #5   Ban this user!
Old 10-06-2011, 09:53 PM
 
Join Date: Apr 2004
Location: Canada
Age: 31
Posts: 290
laka is on a distinguished road

Thanks for the info Steve.

So I've tried what you suggested and here's where I stand:

P40 B5 was set to 1, and P230-242 were all 0's

So from what you've mentioned, my TC macro will be program O9000. Which the machine is pulling up once I enter a T#M06 command.

I've entered your program you gave me into my O9000 program and it stops at the M6 line with Alarm 1054: Program Err T Without M06

Any idea how to get around this? I've tried entering a T3 after the M06 and in O9000 as a test and I received the same alarm. I've been fighting with this thing for two weeks now with no luck.

Thanks for the advice so far!
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-06-2011, 10:28 PM
 
Join Date: Feb 2006
Location: United States
Posts: 273
dpuch is on a distinguished road

Personally (and what I am used to) I would change 40.5=0 and 240=6 then change the macro back to O9001 as posted. Usage would then be T# M6 or possibly you will have to split them into 2 lines.

If you want to leave the parameters as they are, your normal program will not include any M6 commands, just the T# and that alone fires off the macro which includes the M6 but I am not that familiar with usage that way.
Reply With Quote

  #7   Ban this user!
Old 10-06-2011, 10:40 PM
 
Join Date: Apr 2004
Location: Canada
Age: 31
Posts: 290
laka is on a distinguished road

I set my 40.5=0, and 240=6

Now when I program (or MDI) T#M06 or T#;M06 the machine alarms out even before it pulls up the macro program. Giving me the same alarm, T# without M06?
Reply With Quote

  #8   Ban this user!
Old 10-06-2011, 11:07 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by laka View Post
Thanks for the info Steve.

So I've tried what you suggested and here's where I stand:

P40 B5 was set to 1, and P230-242 were all 0's

So from what you've mentioned, my TC macro will be program O9000. Which the machine is pulling up once I enter a T#M06 command.

I've entered your program you gave me into my O9000 program and it stops at the M6 line with Alarm 1054: Program Err T Without M06

Any idea how to get around this? I've tried entering a T3 after the M06 and in O9000 as a test and I received the same alarm. I've been fighting with this thing for two weeks now with no luck.

Thanks for the advice so far!
As a test, set #40.5 to 0 then either via a short program or MDI launch the following.

G91 G28 Z0.0
M19
T1
M06

If the tool change occurs, drop the M19 and try again. If that still works, combine the T1 and M06 on one line to see if that still works.

In your original post, you stated that you get nothing when M06 is executed. I first thought that your tool change program must have been called by M6(M06), and that it was calling an empty program. But as you have determined that 6 is not included in any of the Macro Call parameters, M06 should be treated as a normal M function by the control. As you get no response from executing M06, look for other conditions that may inhibit the tool change. Check that the Z axis is in the correct position as suggested in Post #4. There may also be a proximity switch to check the in position of the Z axis for tool change. I attended a service call recently regarding such a limit switch. The switch was faulty, and therefore the correct state was not being seen by the PLC, but no error message was being generated.

Most machines with drum type tool magazines allow for preselection of the next tool in the program. For this to happen, and with #40.5 set to 1, I would think that M6 would have to be programmed first, otherwise, as soon as the T was read to preselect the next tool, program 9000 would be launched. But the order of T(number) and M06, as Steve mentioned, can be dependent on the MTB

A typical example of the program format to preselect a tool is as follows:
(FIRST TOOL)
T1 M6
T2
-------
-------
-------
-------
-------
-------
(NEXT TOOL)
T2 M6
T3
and so on
Reply With Quote

  #9   Ban this user!
Old 10-06-2011, 11:22 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by laka View Post
I set my 40.5=0, and 240=6

Now when I program (or MDI) T#M06 or T#;M06 the machine alarms out even before it pulls up the macro program. Giving me the same alarm, T# without M06?
Following on from my last post, and I apologize to dpuch, I was still typing when you made your post, 1054: Program Err T Without M06 is a MTB's error. If you have a viewable ladder program on you machine, or if not and you have a hard copy of same, you may have to trace trough to see what conditions have to be met for a successful tool change and what conditions make the rung for the error you're getting, test true.

Regards,

Bill
Reply With Quote

  #10   Ban this user!
Old 10-06-2011, 11:33 PM
 
Join Date: Apr 2004
Location: Canada
Age: 31
Posts: 290
laka is on a distinguished road

With 40.5 set to 0 and no other Macro parameters set to 6 I still receive the alarm "T without M06" no matter how I enter the code (T#M06, M06T#, T#;M06, etc)

The machine does have a viewable ladder, but I may as well be reading japanese since I am totally lost when I go to that screen
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 10-06-2011, 11:57 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by laka View Post
With 40.5 set to 0 and no other Macro parameters set to 6 I still receive the alarm "T without M06" no matter how I enter the code (T#M06, M06T#, T#;M06, etc)

The machine does have a viewable ladder, but I may as well be reading japanese since I am totally lost when I go to that screen
What happens now if only M06 is executed with all the associated parameters set to 0? Before you try this, make sure that the spindle is at the correct height for a tool change to occur. I have worked on many machines that sit and do nothing, and without an alarm message, until the Z axis is in the correct position. If you get no response, and in view of the missing M06 error that you have been getting, it would seem that an M finish signal is not being processed.

Post back the result of executing M06 only. If launching via MDI, make sure you include an EOB in the command before pressing cycle start.

Regards,

Bill
Reply With Quote

  #12   Ban this user!
Old 10-07-2011, 12:10 AM
 
Join Date: Apr 2004
Location: Canada
Age: 31
Posts: 290
laka is on a distinguished road

With all parameters at 0, If I enter simply M06 in MDI, I receive a "M06 without T" error. If I enter T#M06, I receive "059 P/S Alarm"

If I enter M06 in a program and run, it quickly flashes alarm and then finishes the program.

The above scenarios happen regardless of where my Z is positioned.

However, I cannot manually jog the tool drum to the spindle unless my Z is at G28 position.
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!- Fanuc OM - How do I display the tool change macro? techscan Fanuc 6 09-15-2011 07:33 PM
Sample Fanuc Tool change macro dpuch G-Code Programing 6 06-01-2011 08:13 PM
Toyoda FV65/ Fanuc 15ma tool change macro NJohnson Fanuc 5 01-09-2011 05:44 PM
Fanuc OM tool change macro for a Kiwa/Excel TR MFG Fanuc 5 01-27-2008 04:00 AM
EDIT O9000 tool change macro fanuc 0M mikul Fanuc 1 04-20-2007 06:06 PM




All times are GMT -5. The time now is 07:25 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