![]() | |
| 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
| |||
| |||
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 |
|
#2
| |||
| |||
| 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. |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| 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! |
| Sponsored Links |
|
#6
| |||
| |||
| 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. |
|
#8
| |||
| |||
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 |
|
#9
| |||
| |||
| Regards, Bill |
|
#10
| |||
| |||
| 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 |
| Sponsored Links |
|
#11
| |||
| |||
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 |
|
#12
| |||
| |||
| 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. |
![]() |
| 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 |
| 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 |