![]() | |
| 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
| |||
| |||
Hello everyone. I have an issue on my Bridgeport Mill. In order to pop the tool out of the spindle, you must send the machine to the home position. I accomplish this via M25. Normally this is ok, unless tool length has been called up. If tool length is active the machine tries to rapid down into the vice. I have machine zero set on the vice ways so that all my tool lengths and w.s. are positive numbers. I assume that when the macro is called to return to my reference point it tries to return to my part zero. Here is the macro called up when I enter M25 O9002; G91 G28 Z0.0.; M25; G90; M30; % Seems like its a pretty simple macro and I tried entering a G49 in before the return to reference point line. Still it wants to rapid back to z zero. Any ideas on how to keep this from happening. Thanks in advance. |
|
#2
| ||||
| ||||
| AFIAK, G28 should send the axis to the Machine zero point. This should ignore any part zero, as long as your machine zero is in the right place for tool change? Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#4
| |||
| |||
Unless there is another program that is called by M25, you will achieve the same result by just programming G91 G28 Z0.0 in your main program and not call the Macro program. If you can find another program that is called by M25, post it so that every one can take a look. Look at parameter numbers 0240 to 0242, corresponding to program numbers O9001 to O9003 respectively, and see which one holds the setting "25" Regards, Bill Last edited by angelw; 03-23-2011 at 07:49 AM. |
|
#5
| |||
| |||
| I agree with the double m25. I've seen this morenthan once if the g91 is not called before the g28, but your macro has it in it. How about being safe and just cancel tool length offset in the beginning of the macro? |
| Sponsored Links |
|
#6
| |||
| |||
| I tried editing it like this earlier today and it did the same thing. Here's what I did: O9002; G49; (tool length cancel) G91 G28 Z0.0.; M25; G90; M30; % I put it here so it would cancel tool length first before any Z moves. Perhaps I am missing something with the G49? Also I should be a little more specific. I only use the M25 In the MDI page. It's not posted out in any programs. Tool length is the only thing that I can come up with that screws with it. |
|
#8
| |||
| |||
As Al stated, if the Z Zero Return position is correct for your tool change, all you need to do is program G91 G28 Z0.0; the tool offset and part Zero will be irrelevant. The Tool Offset for the next tool will be applied when you call it's offset. Regards, Bill |
|
#9
| |||
| |||
| Regards, Bill |
|
#11
| |||
| |||
| When I use M25 In MDI it calls up program 9002. That's why I posted that program. Here is 9001 which is what it uses to do an actual tool change. % :9001 N1G80G91G30Z0.0M65 N2IF[#1012EQ1]GOTO6 N3M66 N4G91G28Z0.0M67 N5G91G30Z0.0M68 N6G90M99 % Bill, Parameter #241 has a value of 25 in it. |
|
#12
| |||
| |||
Is there a number in parameter #0240, perhaps the number 6? There is nothing in either of the 2 programs that you've posted that would normally cause the Z axis to behave as you've described when a tool length offset is active. The only thing I'm not familiar with in O9002 is the function of M25. The way you're using G49 is correct, and should cancel the active offset. H0 can also be used to cancel an offset. Regards, Bill |
![]() |
| 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 |
| Fanuc 21i MB control | partsmkr | Surfcam | 0 | 12-13-2010 07:13 PM |
| Need Help!- Velocity Control Drives and Fanuc 2000C control | redialtone | Fanuc | 3 | 06-21-2010 09:26 PM |
| Fanuc O-T control | Antonio Arguijo | Fanuc | 7 | 06-20-2010 04:46 PM |
| Fanuc T6 Control | adamant | G-Code Programing | 5 | 12-19-2007 11:09 AM |
| INT 412 with Fanuc control | Jurek | Bridgeport and Hardinge Mills | 0 | 12-16-2007 04:34 PM |